Stop data retention! Click here & act! Are you a webmaster and want to participate? Here you can find all necessary material for your website - Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:
Chris Karakas Online Forum Index Karakas Online
 FAQFAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Call to undefined function: message_die() in db.php line 88


Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic
   Chris Karakas Online Forum Index -> PHP-Nuke Forum RSS Feed of this Forum
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea  View previous topic :: View next topic  
Author Message
groothuijsen
Private
Private


Joined: 07 Jun 2003
Posts: 2

PostPosted: Sat Jun 07, 2003 2:03 am    Post subject: Call to undefined function: message_die() in db.php line 88
Reply with quote

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
View user's profile Send private message Visit poster's website
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6262
Location: Outer Space

PostPosted: Sat Jun 07, 2003 8:36 am    Post subject:
Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
groothuijsen
Private
Private


Joined: 07 Jun 2003
Posts: 2

PostPosted: Thu Jun 12, 2003 12:53 am    Post subject:
Reply with quote

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
View user's profile Send private message Visit poster's website
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6262
Location: Outer Space

PostPosted: Wed Jun 25, 2003 12:11 am    Post subject:
Reply with quote

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. Wink
  • 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 Sad Sad Sad 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 Sad ) 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
View user's profile Send private message Send e-mail Visit poster's website
mwisby
Private
Private


Joined: 16 Aug 2003
Posts: 4

PostPosted: Sat Aug 16, 2003 6:22 pm    Post subject:
Reply with quote

hey. i created that test file as you said, as i have recieved that annoying little error...

it comes up with this:
Quote:
Open quoteegi("config.php",$_SERVER['PHP_SELF'])) { Header("Location: index.php"); die(); } ?> Close quote


and i'm not sure what to make of it! can anyone tell me what i need to do!?!

cheers
Back to top
View user's profile Send private message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6262
Location: Outer Space

PostPosted: Sat Aug 16, 2003 11:45 pm    Post subject:
Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
mwisby
Private
Private


Joined: 16 Aug 2003
Posts: 4

PostPosted: Sun Aug 17, 2003 10:04 am    Post subject:
Reply with quote

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
View user's profile Send private message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6262
Location: Outer Space

PostPosted: Mon Aug 18, 2003 1:33 am    Post subject:
Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
mwisby
Private
Private


Joined: 16 Aug 2003
Posts: 4

PostPosted: Mon Aug 18, 2003 8:34 am    Post subject:
Reply with quote

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
View user's profile Send private message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6262
Location: Outer Space

PostPosted: Mon Aug 18, 2003 1:26 pm    Post subject:
Reply with quote

You say everything looks O.K. in your config.php but I still don't believe it: where do those characters
Code:
?> ?>
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
View user's profile Send private message Send e-mail Visit poster's website
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea 
Display posts from previous:   
Post new topic   Reply to topic
   Chris Karakas Online Forum Index -> PHP-Nuke Forum
Page 1 of 4
This page contains valid HTML 4.01 Transitional - click here to check it!
This page contains a valid CSS - click here to check it!

 

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group