Announcement

Collapse
No announcement yet.

error in vb4

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] error in vb4

    i got this error after upgrading to newest version 4.2.2

    Warning: Function ereg_replace() is deprecated in ..../global.php(29) : eval()'d code on line 28

    Warning: Function eregi_replace() is deprecated in ..../global.php(29) : eval()'d code on line 30

    Warning: Function ereg_replace() is deprecated in ..../global.php(29) : eval()'d code on line 28

    Warning: Function eregi_replace() is deprecated in ..../global.php(29) : eval()'d code on line
    30

    can help ?

    www.indoamulet.com

  • #2
    Ok lets do this, disable plugins via the includes/config.php file.

    To do that open your includes/config.php file and below <?php add the following.

    PHP Code:
    define('DISABLE_HOOKS'true); 
    So it looks like this:
    PHP Code:
    <?php
    define
    ('DISABLE_HOOKS'true);
    /*=================================================  =====================*\
    || ##################################################  ################## ||
    || # vBulletin 4.2.2
    Use a editor like notepad++ to edit any files, don't use Notepad or Wordpad.

    If that fixes the issue enable plugins again by adding // before the line you added, then navigate to ACP --> Plugins & Products --> Manage Products and disable one mod at a time until you find the one causing the issue.

    Once you find the culprit, post in that mods thread what the issue is, and maybe someone in that thread can help.
    My Mods also available at OzzModz.com

    New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders!
    Stop Spam Now The era of Big Spam is over.

    Vote to bring back hooks in vB5, http://tracker.vbulletin.com/browse/VBV-10333

    Comment


    • #3
      As of vBulletin 4.2.2, notices and warnings are no longer suppressed by default like in previous versions of the software. This means that on some servers, you may see warnings that you never saw before. In order to stop them from showing, add the following line to your config.php file under the <?php line:
      PHP Code:
      define('SKIP_ALL_ERRORS'true); 
      Some day you may upgrade php and find that eregi_replace() is not longer defined, in which case you'll have to stop using that mod or get an update. But until then, it's only a warning and it should continue working if you turn off warnings.

      Comment


      • #4
        You might want to upgrade to 4.2.3 Beta, since it has support for the version of PHP you're running on.

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X