View Full Version : class_core.php on line 311 error after upgrading php and mysql
diettalk
Sat 19th Apr '08, 9:30am
Upgraded php and mysql and now I'm getting this error in httpd error log...
class_core.php on line 311
Forum page comes up blank... I've disabled all hooks.
Zachery
Sat 19th Apr '08, 9:30am
Can you give us the full error?
diettalk
Sat 19th Apr '08, 9:48am
[Sat Apr 19 07:29:59 2008] [error] [client 69.xxx.xxx.xxx] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/forums/includes/class_core.php on line 311
- CentOS 4
- http://www.diettalk.com/info.php
- Tried resetting user/pass for database
- mysql started
- I have php-mysql installed
mlx
Sat 19th Apr '08, 10:16am
Well, if php-mysql is installed correctly it will show up on the phpinfo page just like "bz2", "calendar", "ctype", etc. do.
Obviously "mysql" is missing there.
Stupid question, but did you restart Apache after you've installed php-mysql?
You might also want to check if your php.ini loads the mysql extension correctly:
extension="mysql.so"
diettalk
Sat 19th Apr '08, 10:20am
I think I have it fixed.
extension_dir = /usr/lib/php/modules
was pointing to wrong directory, which mysql.so is in.
SuperGLS
Thu 1st May '08, 10:03am
So where should it be pointing? I am having this problem too.
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.