vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Warning: Function ereg_replace() is deprecated in ..../counter/counter.php on line 6 (https://vborg.vbsupport.ru/showthread.php?t=318279)

Jheroen 04-17-2015 05:17 AM

Warning: Function ereg_replace() is deprecated in ..../counter/counter.php on line 6
 
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:
Code:

define('SKIP_ALL_ERRORS', true);

ozzy47 04-17-2015 09:04 PM

Quote:

Originally Posted by kh99 (Post 2543337)
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:
Code:

define('SKIP_ALL_ERRORS', true);

No, don't use that.


You should use:
PHP Code:

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.

PHP Code:

define('SKIP_DS_ERRORS'true); 

So it looks like this:
PHP Code:

<?php
define
('SKIP_DS_ERRORS'true);  
/*=================================================  =====================*\
|| ##################################################  ################## ||
|| # vBulletin 4.2.2

Use a editor like notepad++ 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.


All times are GMT. The time now is 03:53 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.01012 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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