PHP Deprecated in global.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ianno
    Member
    • Jun 2011
    • 63
    • 4.1.x

    [Forum] PHP Deprecated in global.php

    Hello!

    I am running vBulletin 4.2.4 and Php 5.6. I noticed my error logs are huge and when I checked, I am getting these errors every second, literally.


    mod_fcgid: stderr: PHP Deprecated: Function split() is deprecated in /var/www/vhosts/mysite.com/httpdocs/forums/global.php(29) : eval()'d code on line 7

    mod_fcgid: stderr: PHP Deprecated: Function split() is deprecated in /var/www/vhosts/mysite.com/httpdocs/forums/includes/class_bootstrap.php(433) : eval()'d code on line 5

    mod_fcgid: stderr: PHP Deprecated: Function split() is deprecated in /var/www/vhosts/mysite.com/httpdocs/forums/includes/class_bootstrap.php(433) : eval()'d code on line 52

    mod_fcgid: stderr: PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/vhosts/mysite.com/httpdocs/forums/global.php(29) : eval()'d code on line 1

    mod_fcgid: stderr: PHP Deprecated: Function split() is deprecated in /var/www/vhosts/mysite.com/httpdocs/forums/global.php(29) : eval()'d code on line 9

    What could be done?







  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24288
    • 6.0.X

    #2
    This is from a modification that isn't compatible.

    Disable them one by one until you find the culprit, then ask the author if there is an updated version.
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 74167

      #3
      You can manually update your addons and replace calls to the split() function with calls to the explode() function.
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment

      • stingray27
        Member
        • Aug 2006
        • 49
        • 3.6.x

        #4
        Note that if you upgrade to php7, those split() calls will throw fatal errors, not just warnings.
        This is my signature.

        Comment

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