vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Mysql database error (https://vborg.vbsupport.ru/showthread.php?t=318338)

MAORBARI 04-21-2015 12:15 AM

Mysql database error
 
Hi,
My forum (vb 4.2.2) shows Mysql error page.
I use Mysqli, and I find that if I remove the lines:
PHP Code:

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

Quote:

Originally Posted by MAORBARI (Post 2544114)
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

Quote:

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

Quote:

Originally Posted by Lynne (Post 2544706)
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

Quote:

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
Quote:

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.


All times are GMT. The time now is 04: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.01093 seconds
  • Memory Usage 1,733KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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