PDA

View Full Version : Fatal error: Call to undefined function: mysql_connect() in /var/www/vhosts/garglebla


Keyser520
05-06-2009, 08:40 PM
anyone know how to fix this?

Fatal error: Call to undefined function: mysql_connect() in /var/www/vhosts/gargleblasterblues.com/httpdocs/forums/includes/class_core.php on line 311

Lynne
05-06-2009, 08:46 PM
It sounds like it can't connect to mysql. Is mysql up and running on your server right now?

Keyser520
05-06-2009, 08:52 PM
the host claims mysql is running just fine

Lynne
05-06-2009, 08:57 PM
So, what changed to suddenly have the site stop working? Did you install any modifications? What have you done so far to look into this issue? Checked the files on the server? Disabled mods? What?

Keyser520
05-06-2009, 08:58 PM
I was trying to fix an error with vbadvanced ( http://www.vbadvanced.com/forum/showthread.php?p=170234#post170234 ). I edited the php.ini file to change the suhosin values and also tried the .htaccess file.

That's it. Nothing else changed.

Lynne
05-06-2009, 09:04 PM
Put back the original php.ini file and the original htaccess file.

Keyser520
05-06-2009, 09:07 PM
I did. But now it's still not working :-(

Lynne
05-06-2009, 09:11 PM
And have you reuploaded any vbulletin files? Had you modified any? I'd go see which files have been modified lately and replace them with fresh, unmodified ones. Have you disabled the modifications via the config.php file? Have you tried restarting apache?

Keyser520
05-06-2009, 09:15 PM
Nope. I haven't duplicated any files. I didn't modify any other than the ones I just told you about. I don't know what you mean by disabled the modifications via the config.php file? Please elaborate? I don't know how to restart apache. (this is on a shared hosting at apollohosting)

Lynne
05-06-2009, 09:29 PM
To disable the modifications via config.php, you would do this:
edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);


But, to be honest, I don't think has anything to do with vbulletin if you were playing with server files. I think you may have to ask your host to reupload new php.ini and htaccess files for you.

Keyser520
05-07-2009, 12:06 AM
what does disabling the modificaitons do?

Lynne
05-07-2009, 03:30 AM
Turns off the plugin system so if a modification that is using the plugin system is responsible for the error, it won't 'run'.