PDA

View Full Version : Mysql database error


MAORBARI
04-21-2015, 12:15 AM
Hi,
My forum (vb 4.2.2) shows Mysql error page.
I use Mysqli, and I find that if I remove the lines:

if (function_exists('catch_db_error'))
{
set_error_handler('catch_db_error');
}


in line 309 it works..

But what really the problem?
Thank you.

ForceHSS
04-21-2015, 01:27 AM
post full error

MAORBARI
04-25-2015, 08:32 AM
There is no error.
Only default Database error page without any information about the error.

ForceHSS
04-25-2015, 11:11 AM
Check error logs without an error log it's hard to help

kh99
04-25-2015, 11:17 AM
There is no error.
Only default Database error page without any information about the error.

Try doing a "view html source" on that page (maybe by right clicking on it). Sometimes the error details are in html comments.

Lynne
04-25-2015, 03:47 PM
The error should also be sent to the email address you have entered into your /includes/config.php file.

ForceHSS
04-25-2015, 05:03 PM
If you can give us a link to your site we might be able to work out what the error is faster unless you can get a error log

MAORBARI
05-02-2015, 08:16 PM
Database error in vBulletin 4.2.2:

mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead
/home/-/domains/-.co.il/public_html/includes/class_core.php on line 317

MySQL Error :
Error Number : 0
Request Date : Sunday, May 3rd 2015 @ 01:03:35 AM
Error Date : Sunday, May 3rd 2015 @ 01:03:35 AM
Script : http://pizz.co.il/
Referrer :
IP Address : ---
Username : Guest
Classname : vB_Database_MySQLi
MySQL Version :

This is the error.
I changed mysql to mysqli.
And same error.

Lynne
05-02-2015, 09:17 PM
If you changed to mysqli then you could not have gotten the exact same error because it should says "mysqli extension is deprecated" instead of "mysql extension is deprecated" and that is impossible because mysqli is not deprecated.

MAORBARI
05-03-2015, 01:28 PM
If you changed to mysqli then you could not have gotten the exact same error because it should says "mysqli extension is deprecated" instead of "mysql extension is deprecated" and that is impossible because mysqli is not deprecated.

I know, But it what happened... So what to do?

Paul M
05-03-2015, 02:16 PM
This is the error.
I changed mysql to mysqli.
And same error.
In short, thats impossible.

If you really changed to mysqli, then you cannot get this error
mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead


Either you didnt make the change correctly, or you are getting a different error now.

So either make the change correctly, or post the correct error once you are running mysqli.