|
|
| Author |
Message |
groothuijsen Private

Joined: 07 Jun 2003 Posts: 2
|
Posted: Sat Jun 07, 2003 2:03 am Post subject: Call to undefined function: message_die() in db.php line 88 |
|
|
|
Hi,
I did everything like explained in the text file but i get the following message:
Fatal error: Call to undefined function: message_die()
in /home/httpd/vhosts/groothuijsen.nl/httpdocs/db/db.php on line 88
Please help i cant seem to find anyone that can help me with this.. |
|
| Back to top |
|
 |
chris Dark Lord of the Sith

Joined: 10 May 2003 Posts: 6262 Location: Outer Space
|
Posted: Sat Jun 07, 2003 8:36 am Post subject: |
|
|
|
Are you sure you downloaded *all* the files? It loks to me as if some file is missing. _________________ Regards
Chris Karakas
www.karakas-online.de |
|
| Back to top |
|
 |
groothuijsen Private

Joined: 07 Jun 2003 Posts: 2
|
Posted: Thu Jun 12, 2003 12:53 am Post subject: |
|
|
|
thxs for the help,
just one more little question.
When I am in the admin section and select forum a blank page is loaden how can i create topics on the forum???
or what am i doing wrong?? |
|
| Back to top |
|
 |
chris Dark Lord of the Sith

Joined: 10 May 2003 Posts: 6262 Location: Outer Space
|
Posted: Wed Jun 25, 2003 12:11 am Post subject: |
|
|
|
Perhaps the tables are not there.
Anyway, if you are getting trouble because of this silly
Fatal error: Call to undefined function: message_die()
on line 88 of db.php, then it may also be the following:
- You didn't enter "MySQL" as the dbtype in config.php. It must be exactly with a Capital M, a small y, and capital S, Q and L.
 - Even if everything is right, you will probably get this error. The code tries to select the database, but the database is not there - chicken and egg problem
Try this file (name it test.php, put it in the same directory as config.php and point your browser to it):
| Code: |
<?php
include("config.php");
mysql_connect("$dbhost", "$dbuname", "$dbpass");
mysql_select_db("$dbname");
echo mysql_error();
phpinfo();
?>
|
If everything is right, you will only see the PHP info. Otherwise, you will see the error (e.g. "Unknown database" in our case ) and also the PHP info.
So it is perhaps better to install PHP-Nuke manually:
In mysql do:
| Code: |
create database your_DB_name;
|
In the shell, go to the sql directory and do:
| Code: |
mysql -u your_MySQL_username -p your_DB_name < nuke.sql
|
_________________ Regards
Chris Karakas
www.karakas-online.de |
|
| Back to top |
|
 |
mwisby Private

Joined: 16 Aug 2003 Posts: 4
|
Posted: Sat Aug 16, 2003 6:22 pm Post subject: |
|
|
|
hey. i created that test file as you said, as i have recieved that annoying little error...
it comes up with this:
| Quote: | egi("config.php",$_SERVER['PHP_SELF'])) { Header("Location: index.php"); die(); } ?>  |
and i'm not sure what to make of it! can anyone tell me what i need to do!?!
cheers |
|
| Back to top |
|
 |
chris Dark Lord of the Sith

Joined: 10 May 2003 Posts: 6262 Location: Outer Space
|
Posted: Sat Aug 16, 2003 11:45 pm Post subject: |
|
|
|
You mean the test.php file in my post above gives you that line as output? Hard to believe!
The line you typed is *part* of a standard line in PHP-Nuke. It doesn't have to do with test.php. test.php is a separate file and, as you can see, it does not contain a line like that. _________________ Regards
Chris Karakas
www.karakas-online.de |
|
| Back to top |
|
 |
mwisby Private

Joined: 16 Aug 2003 Posts: 4
|
Posted: Sun Aug 17, 2003 10:04 am Post subject: |
|
|
|
yeah....look for yourself!! http://www.music4rums.com/html/test.php
my config.php looks like this:
| Code: |
$dbhost = "localhost";
$dbuname = "music4ru";
$dbpass = "*****";
$dbname = "music4ru_music4rumsdbuk";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SdFk*fa28367-dm56w69.3a2fDS+e9"; |
seems normal to me! |
|
| Back to top |
|
 |
chris Dark Lord of the Sith

Joined: 10 May 2003 Posts: 6262 Location: Outer Space
|
Posted: Mon Aug 18, 2003 1:33 am Post subject: |
|
|
|
What did I tell you? That this is part of a PHP-Nuke file. Indeed, it is part of your config file:
| Code: |
egi("[b]config.php[/b]",$_SERVER['PHP_SELF'])) { Header("Location: index.php"); die();
|
This means that you changed something before, or in the line
| Code: |
if (eregi("config.php",$_SERVER['PHP_SELF'])) {
|
of your config.php. Probably you added some more entries in the $CensorList array and forgot a ; at the end of the line or something like that. Or there is a ; character in the "eregi", otherwise PHP would not print it like normal HTML.
Find that extra or missing character(s) and try again.
If you get that
| Code: |
Access denied for user xxxxx
|
error again (but without that "egi..."), then you will know that you did not grant access rights to that user in your MySQL database (look for the highlighted word "privileges" in this link). _________________ Regards
Chris Karakas
www.karakas-online.de |
|
| Back to top |
|
 |
mwisby Private

Joined: 16 Aug 2003 Posts: 4
|
Posted: Mon Aug 18, 2003 8:34 am Post subject: |
|
|
|
I have checked everything in the config.php file. There are no characters out of place or missing. it is really annoying because i am still getting this annoying message everytime i load up the index.php file...
| Code: | egi("config.php",$_SERVER['PHP_SELF'])) { Header("Location: index.php"); die(); } ?> ?> ; } ?>
Fatal error: Call to undefined function: message_die() in /home/music4ru/public_html/html/db/db.php on line 88
|
|
|
| Back to top |
|
 |
chris Dark Lord of the Sith

Joined: 10 May 2003 Posts: 6262 Location: Outer Space
|
Posted: Mon Aug 18, 2003 1:26 pm Post subject: |
|
|
|
You say everything looks O.K. in your config.php but I still don't believe it: where do those characters come from on that line?
Edit a fresh config.php file with a decent text editor. Perhaps the editor you use is a crap that inserts extra invisible characters in the text. _________________ Regards
Chris Karakas
www.karakas-online.de |
|
| Back to top |
|
 |
|
|
 |
|
|