You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 59 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - FIX: undefined function: message_die in db.php on line 88 [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
kgbinc
Corporal
Corporal


Joined: Feb 03, 2004
Posts: 62


PostPosted: Thu Apr 08, 2004 10:30 pm Reply with quoteBack to top

Everything was goin good, no it was great. Everything was working according to plan, but then i had to install an SQL file for the ApproveMembership hack. i did, and it worked, but then i was looking through the SQL page in my cPanel, and because the page was so big, so much stuff, i clicked on my mouse wheel, making those two little arrows that allow you to scroll up and down, just by moving your mouse up or down. Anyway, when i go to turn it off, i used my left mouse button and accidently clicked on one of the users in my database !! what are the odds ??

look at the picture, Image

the USERS, on the lower left is what it usually looks like, with the DELETE link not really visible(but very much active!), on the right is the same USERS group but after you refresh that page a couple times, the delete shows up and is gone again. anyway, the top pic is the database.

Now i dont know what to do, when i clicked on the USERS tab, i accidentaly deleted kgbinc_nuke5 . And when i try to create a new user, it tells me that it has been created, but no user shows up. I think that is what the problem is, that there is a kgbinc_nuke5 database, but no user on there, so nuke cant access it without a user. But hey what do I know ?


I have nuke 6.8 and here are the server info, General server information:
Operating system Linux
Service Status Click to View
Kernel version 2.4.25
Apache version 1.3.29 (Unix)
PERL version 5.8.1
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
Installed Perl Modules Click to View
PHP version 4.3.3
MySQL version 4.0.18-standard
cPanel Build 9.1.0-CURRENT 199
Theme cPanel X v2.3.0
Documentation Click to View

ANY help would be appreciated !


@linuxkid76, I have the SAME EXACT problem as you, that error on liine 88 and then i applied vjg's little fix, it have me the same error you had,

Could not connect to the database 1045: Access denied for user: 'kgbinc_nuke5@localhost' (Using password: YES)

and you seem to have getten it fixed, waht do you do to fix it?


@ LostCause, where is this php.ini file where i can edit the register_globals = On .

[/img]
Find all posts by kgbincView user's profileSend private messageAIM Address
kgbinc
Corporal
Corporal


Joined: Feb 03, 2004
Posts: 62


PostPosted: Fri Apr 09, 2004 8:06 am Reply with quoteBack to top

I JUST noticed that the privileges for all the other nuke SQL things, are all on ALL PRIVILEGES

kgbinc_nuke4 (Privileges: ALL PRIVILEGES)

nuke5 isnt : kgbinc_nuke5 (Privileges: )

maybe thats why its not working ?!

hwo would i give it privileges ?
Find all posts by kgbincView user's profileSend private messageAIM Address
vjg
Captain
Captain


Joined: Oct 26, 2003
Posts: 553


PostPosted: Fri Apr 09, 2004 8:18 am Reply with quoteBack to top

You will probably have to have your host fix your user in the database. Contact the support desk/team.

- Virgil

_________________
Image
Find all posts by vjgView user's profileSend private message
kgbinc
Corporal
Corporal


Joined: Feb 03, 2004
Posts: 62


PostPosted: Fri Apr 09, 2004 8:22 am Reply with quoteBack to top

hhmm, is there anyway i could do it myself ?

give kgbinc_nuke5 all teh privileges ?

my "hostign company" is friend of mine in canada, taht barely goes online, lol. There shoudl be a way to fix it myself, shouldnt there, after alll its my DB and my SQL. Again, im just using basic reasoning, because i dont know much about sql.
Find all posts by kgbincView user's profileSend private messageAIM Address
kgbinc
Corporal
Corporal


Joined: Feb 03, 2004
Posts: 62


PostPosted: Fri Apr 09, 2004 8:54 am Reply with quoteBack to top

well i have no idea why it works now, but it does !!

This is what i did, i went to my "Scripts Library" in the cPanel, and installed a BRAND NEW installation of phpnuke on a WHOLE DIFFERENT FOLDER. instead of /russiainus like the last one, this one was /russiainus2 . so then i go to open it at the /russiainus2 URL, and it gives me an error, telling me that there are errors in the file theme.php under fiapple, the theme i used for my first original installation, which was weird, because i didnt change any settings any yet on the new installation, i didnt change the theme or anything.

And also an error under the footer.php file in the t directory of nuke in russiainus2.

i quickly realized that these two files are the two that i edited on my original site. so i figured, id try to reupload the edited files from /russiainus to the new installion, and IT WORKED ! the second installation worked, with all the same exact settings that i had in the first installtion, the color code, survey, and such, except for the logo.gif file, it was the original, php-nuke one.

so then i figured if this works, ill just try to copy the config.php file from the second installtion to the first one, and that did it ! the site works !

i still dont understand though, why did the second installtion have all the same settings as the first, it was in a whole different folder and a whole new installation ?!?!
Find all posts by kgbincView user's profileSend private messageAIM Address
chunkybb
Nuke Cadet
Nuke Cadet


Joined: Apr 16, 2004
Posts: 5


PostPosted: Fri Apr 16, 2004 12:27 am Reply with quoteBack to top

i have tryed always i have even tried a older version of php nuke still nothing i still get the same old error and wht do you mean the root directory

evry time i go to view it i just get message_die in db.php on line 88
Find all posts by chunkybbView user's profileSend private message
kgbinc
Corporal
Corporal


Joined: Feb 03, 2004
Posts: 62


PostPosted: Fri Apr 16, 2004 3:09 am Reply with quoteBack to top

root directory meaning logging into the website through an FTP client, and going into the ROOT directory, the equivilence of C:\ of your hard drive. Where you see just the very basics of the site(C: drive).
Find all posts by kgbincView user's profileSend private messageAIM Address
reph
Nuke Cadet
Nuke Cadet


Joined: May 21, 2004
Posts: 2


PostPosted: Fri May 21, 2004 4:09 pm Reply with quoteBack to top

Hi guys..I'm hoping someone can help me out with this. The site worked fine yesterday....today i tried to check everything out and i get the Fatal error: Call to undefined function: message_die() in /var/www/html/phpnuke/db/db.php on line 88

I went through this forum but haven't found the answer yet.

i checked to see that the config file was correct and it seems to be.

i also changed line 88 in the db.php so that it would give me a better error message...well, it did but i have no clue how to fix this. here is the new message.

Could not connect to the database 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

I get the same thing when i run analyze.php.

If anyone can help with this it would be greatly appreciated.

Thanks
Find all posts by rephView user's profileSend private message
vjg
Captain
Captain


Joined: Oct 26, 2003
Posts: 553


PostPosted: Fri May 21, 2004 8:42 pm Reply with quoteBack to top

Sounds like mySQL server isn't running.

Do you have shell access? What does "mysqladmin version" command return?

- Virgil

_________________
Image
Find all posts by vjgView user's profileSend private message
reph
Nuke Cadet
Nuke Cadet


Joined: May 21, 2004
Posts: 2


PostPosted: Fri May 21, 2004 10:46 pm Reply with quoteBack to top

Thanks for replying Virgil...well...I'm not really sure how to answer that..this mysql is all new to me..i've been trying to learn what i can about this problem but i haven't been very succesful so far.

I'll tell you what i do have and maybe you can help me from there.

My host has a MySQL 3.23.58 Administration tool...which i don't have a problem getting into...i just don't know what to do when i get there. Very Happy

How do i get to the "mysqladmin version" command?

yes...yes...i'm definetly a newbie....i don't know if this is something you can help me get through or not but i'm hoping you have the time to help.

Eric
Find all posts by rephView user's profileSend private message
vjg
Captain
Captain


Joined: Oct 26, 2003
Posts: 553


PostPosted: Fri May 21, 2004 11:10 pm Reply with quoteBack to top

sounds like you probably don't have shell (command line) access. As your host if mySQL is up. They should be able to help you resolve the error you're getting. Pass that message on to them.

- Virgil

_________________
Image
Find all posts by vjgView user's profileSend private message
jnk101
Nuke Soldier
Nuke Soldier


Joined: Feb 17, 2004
Posts: 23


PostPosted: Wed Jun 02, 2004 1:45 am Reply with quoteBack to top

I woke up this morning to find the fatal error message. The site has been running fine for a few months now so I have no reason to believe that any information in the config file will be wrong.

I tried changing the error meesage to that as suggested in the earlier posts and now get this error:

Could not connect to the database 2002: Can't connect to local MySQL server through socket '/var/tmp/mysql.sock' (2)

It therefore seems to be a connection problem, but now I know this what do I do?

Thanks
Find all posts by jnk101View user's profileSend private message
jnk101
Nuke Soldier
Nuke Soldier


Joined: Feb 17, 2004
Posts: 23


PostPosted: Wed Jun 02, 2004 2:43 am Reply with quoteBack to top

As soon as I started to write a message to my domain host, everything started working again. I therefore figure that mysql must have been down on their side and they sorted it out for me, just hope it doesn't happen too often!
Find all posts by jnk101View user's profileSend private message
medigangsta
Nuke Cadet
Nuke Cadet


Joined: Jan 10, 2004
Posts: 4


PostPosted: Fri Jul 16, 2004 2:48 am Reply with quoteBack to top

When my site gets heavy traffic i get the following error:

Fatal error: Call to undefined function: message_die() in /home/virtual/site2/fst/var/www/html/db/db.php on line 88

Now this means that for some reason the site can't communicate with the database.

I've tried increasing the man_connections setting on the server from 100 to 150. Initially it helps but after a few days i get the same problem again.

Does anyone have any ideas on this?

My guess is that somehow the connections are staying and not closing correctly, i have no idea what settings might fix this.

Anyone help?
Find all posts by medigangstaView user's profileSend private message
vjg
Captain
Captain


Joined: Oct 26, 2003
Posts: 553


PostPosted: Fri Jul 16, 2004 10:13 am Reply with quoteBack to top

Are you using persistent connections? If so, don't. There really isn't a need.

- Virgil

_________________
Image
Find all posts by vjgView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.223 Seconds - 347 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::