View Full Version : Yet another PHP-Nuke problem
DancingBeaver
06-16-2003, 11:42 PM
Hi, i have a PHP-Nuke problem.
I have searched the forums and can't find a solution to my problem, ah vell, here it goes...
I have uploaded the files needed for it to run, and the sql database is set up (i think but it looks right) and php-nuke is compattable with my hosting.
But i keep getting the same problem
Fatal error: Call to undefined function: message_die() in /home/sypherne/public_html/hpoolskaters/db/db.php on line 88
i have no idea what is wrong :(
Thanx in advance
DancingBeaver :)
(i also dont know if this is in the right place, sorry it its not :p)
duniyadnd
06-17-2003, 01:35 AM
It's going to be pretty hard to solve this problem without seeing the files that have to deal with the problem. What it says is that there is no function by the name message_die(). You called that function from line 88 in the file mentioned. Make sure that message_die is being called in from whatever file it is in.
Also make sure you got the parameters within message_die correct, if they got attributes that need to be inputted. eg. message_die($input, $input2, $input3..)
Hope that helps..
Otherwise check out the phpnuke official site and see if they got a help section.
STDestiny
06-17-2003, 07:34 AM
What's your host? Sounds like they may have disabled that function. (Some do, don't know why.) Try commenting out that line/group of lines and see what happens.
-Andrew
DancingBeaver
06-17-2003, 01:01 PM
My host is MORT Inc (http://www.mortinc.com) Its not dissabled because i had post-nuke (i just didnt really like it) on before php-nuke and that worked fine.
I tryed what you guys said and its still not working :(
anyway this is line 88 of the code how it came with the package
message_die(CRITICAL_ERROR, "Could not connect to the database");
(there is 5 spaces before the code that dont show here)
the database is set up, everything in the config file is correct, its just this one thing thats stopping it working :(
Thanx again
DancingBeaver :)
duniyadnd
06-17-2003, 01:07 PM
look anywhere in the file, and in any of the files called in if you can find a function called:
message_die(attribute1, attribute2)
{
blah
}
The script can't find it.
If that doesn't exist, there's something wrong. Check your include files in that file. Maybe they are being called in wrong.
weronpc
06-17-2003, 05:28 PM
Understanding method
getMethod(int, int) is not equal getMethod(float, int)
although you ahve same method name.
What is Nuke mean??
duniyadnd
06-17-2003, 09:59 PM
What is Nuke mean??
A preformatted website which you can set up for yourself. pretty effective actually.
Another thing
getMethod(int, int) is not equal getMethod(float, int)
That applies to C and Java, but I don't think it works that way in Php, as we don't usually define what kind of variable is it. I could be wrong about that though, but I haven't seen it implemented.
DancingBeaver
06-17-2003, 10:36 PM
I got it working, thanx for all you help :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.