vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Fatal error: Call to undefined function: mysql_connect() in /var/www/vhosts/garglebla (https://vborg.vbsupport.ru/showthread.php?t=213043)

Keyser520 05-06-2009 08:40 PM

Fatal error: Call to undefined function: mysql_connect() in /var/www/vhosts/garglebla
 
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/show...234#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

PHP Code:

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'.


All times are GMT. The time now is 05:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01059 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete