PDA

View Full Version : Warning: Function ereg_replace() is deprecated in ..../counter/counter.php on line 6


Jheroen
04-17-2015, 05:17 AM
Hi all,

just went over from php 5.3 to 5.4 and got this error on top of the page:

Warning: Function ereg_replace() is deprecated in ..../counter/counter.php on line 6

also my sidebar is positioned down and not right beside the forums is this error connected with the sidebar or some mod?

kh99
04-17-2015, 10:34 AM
What version of vbulletin are you running?

Jheroen
04-17-2015, 10:48 AM
vb 4.2.2 pl4

kh99
04-17-2015, 11:03 AM
Probably the best thing to do would be to upgrade to vb4.2.3, which is a technically a beta version but it's being used by many forums now.

If you don't want to upgrade you could try adding this line to your config.php:
define('SKIP_ALL_ERRORS', true);

ozzy47
04-17-2015, 09:04 PM
Probably the best thing to do would be to upgrade to vb4.2.3, which is a technically a beta version but it's being used by many forums now.

If you don't want to upgrade you could try adding this line to your config.php:
define('SKIP_ALL_ERRORS', true);

No, don't use that.


You should use:
define('SKIP_DS_ERRORS', true);This turns off the extra error reporting in php 5.3 & 5.4 (for strict & deprecated warnings), but will allow other important errors to show.



Open your includes/config.php file and below <?php add the following.

define('SKIP_DS_ERRORS', true); So it looks like this:
<?php
define('SKIP_DS_ERRORS', true);
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 4.2.2 Use a editor like notepad++ (http://notepad-plus-plus.org/download/v6.6.8.html) to edit any files, don't use Notepad or Wordpad.

Jheroen
04-18-2015, 02:44 PM
Could the above also work for the sidebar that has gone down right under the forums instead of right beside the forums?

ozzy47
04-18-2015, 10:14 PM
Possible, but not necessarily. It could be a mod or template conflict.