PDA

View Full Version : Errors?


oldfan
05-24-2016, 08:27 PM
Recently I had " All we did was recompile apache and PHP with mcrypt as requested." and i'm getting the following errors.


Warning: Only variables should be passed by reference in ..../newreply.php on line 389

Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in

..../includes/functions_newpost.php on line 200


Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in

..../includes/class_block.php on line 442

Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in

..../includes/class_block.php on line 442

help :eek:

--------------- Added 1464142197 at 1464142197 ---------------

Im also getting this error on another forum

Database error in vBulletin :

mysql_connect(): The mysql extension is deprecated and will be removed in the
future: use mysqli or PDO instead
/xxxx/xxxx/public_html/includes/class_core.php on line 315

kerrghann
05-29-2016, 01:20 AM
Seems like these are warnings that have to do with things being depreciated. I mean: it would be a good idea to fix them but if it's just the errors showing up you can add this to your config file


define('SKIP_ALL_ERRORS', true);

Lynne
05-29-2016, 04:14 PM
What version of vB and what version of PHP is on the server? Depending on what version of PHP, you may need to change this line in your config.php file:

$config['Database']['dbtype'] = 'mysql';

to this:

$config['Database']['dbtype'] = 'mysqli';