Error class_bootstrap.php(1422)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sodasusu
    New Member
    • Aug 2011
    • 25
    • 4.1.x

    [Forum] Error class_bootstrap.php(1422)

    Hello all

    Have vbulletin 4.2.5 and

    Server Type Linux
    Web Server litespeed
    PHP 5.6.36
    PHP Max Post Size 8.00 MB
    PHP Maximum Upload Size 128.00 MB
    PHP Memory Limit 192.00 MB
    MySQL Version 10.2.16-MariaDB
    MySQL Packet Size 256.00 MB

    have problem "PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/kinoko/public_html/includes/class_bootstrap.php(1422) : eval()'d code on line 110"
    "PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/kinoko/public_html/includes/class_bootstrap.php(433) : eval()'d code on line 114"

    I have tried "define('DISABLE_HOOKS', true);" in config.php but still error. The error_log file is larges every second.

    thanks

  • djbaxter
    Senior Member
    • Aug 2006
    • 1418
    • 4.2.5

    #2
    When did you upgrade to 4.2.5? Did these errors start right after you upgraded?
    Psychlinks Web Services Affordable Web Design & Site Management
    Specializing in Small Businesses and vBulletin/Xenforo Forums

    Comment

    • sodasusu
      New Member
      • Aug 2011
      • 25
      • 4.1.x

      #3
      Originally posted by djbaxter
      When did you upgrade to 4.2.5? Did these errors start right after you upgraded?
      Yes, error start when i upgrade to 4.2.5.

      Comment

      • djbaxter
        Senior Member
        • Aug 2006
        • 1418
        • 4.2.5

        #4
        The "errors" you describe in your first post aren't actually errors but rather warnings about deprecated code. That means they will work under these later versions of PHP but at some point may be abandoned.

        Add the following to /includes/config.php:

        Right under line 1 which reads:

        Code:
        <?php
        add

        Code:
        ini_set("display_errors", false);
        define('SKIP_ALL_ERRORS', true);
        You probably don't need both of those lines - the second will probably do but it shouldn't hurt to have both. If they create a new error, comment out the first one using
        Code:
        //
        at the beginning of the line - and if that doesn't work, revert the first of those lines and comment out the second.

        So try

        Code:
        // ini_set("display_errors", false);
        define('SKIP_ALL_ERRORS', true);
        or

        Code:
        ini_set("display_errors", false);
        // define('SKIP_ALL_ERRORS', true);
        Last edited by djbaxter; Sun 15 Jul '18, 12:55am. Reason: Added some explanation.
        Psychlinks Web Services Affordable Web Design & Site Management
        Specializing in Small Businesses and vBulletin/Xenforo Forums

        Comment

        • sodasusu
          New Member
          • Aug 2011
          • 25
          • 4.1.x

          #5
          djbaxter thanks for advice. but not work.

          error only at vbuletin 4.xx not for 3.8.x
          Attached Files

          Comment

          • djbaxter
            Senior Member
            • Aug 2006
            • 1418
            • 4.2.5

            #6
            Your attached image doesn't tell me anything.

            Did you edit your config.php file as I suggested? How did you edit it? What editor did you use?

            After editing, did you save it back to your server?
            Psychlinks Web Services Affordable Web Design & Site Management
            Specializing in Small Businesses and vBulletin/Xenforo Forums

            Comment

            • sodasusu
              New Member
              • Aug 2011
              • 25
              • 4.1.x

              #7
              djbaxter : already edit config.php editing use cpanel editor. And try use notepad ++
              Last edited by sodasusu; Sun 15 Jul '18, 6:48am.

              Comment

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

                #8
                The original error is from an add on. If you have definitely disabled add ons via the config file, it is possible this hasn't fully worked.

                Go through each plugin (not product) and disable each one manually via the AdminCP.
                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

                • djbaxter
                  Senior Member
                  • Aug 2006
                  • 1418
                  • 4.2.5

                  #9
                  Originally posted by Mark.B
                  The original error is from an add on.
                  How can you discern that from the message posted?

                  Psychlinks Web Services Affordable Web Design & Site Management
                  Specializing in Small Businesses and vBulletin/Xenforo Forums

                  Comment

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

                    #10
                    Originally posted by djbaxter

                    How can you discern that from the message posted?
                    You do not get that error from a default installation, plus there is a hook location there: global_bootstrap_init_complete

                    Have you tried the steps that I posted?

                    If we are to provide any assistance, we need you to follow everything we ask you to do.
                    If you do not wish to do that, that is fine, but we will not be able to provide further support.
                    Last edited by Mark.B; Sun 15 Jul '18, 3:05pm.
                    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

                    • djbaxter
                      Senior Member
                      • Aug 2006
                      • 1418
                      • 4.2.5

                      #11
                      Originally posted by Mark.B
                      You do not get that error from a default installation.
                      Thank you, I was curious because I couldn't see anything in the error message that pointed to a plugin, only to class_bootstrap.php.


                      Originally posted by Mark.B
                      Have you tried the steps that I posted?

                      If we are to provide any assistance, we need you to follow everything we ask you to do.
                      If you do not wish to do that, that is fine, but we will not be able to provide further support.
                      I'm not having that problem. Just asking a general question regarding your post above.

                      Psychlinks Web Services Affordable Web Design & Site Management
                      Specializing in Small Businesses and vBulletin/Xenforo Forums

                      Comment

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

                        #12
                        Originally posted by sodasusu
                        Hello all
                        Have vbulletin 4.2.5 and

                        Server Type Linux
                        Web Server litespeed
                        PHP 5.6.36
                        PHP Max Post Size 8.00 MB
                        PHP Maximum Upload Size 128.00 MB
                        PHP Memory Limit 192.00 MB
                        MySQL Version 10.2.16-MariaDB
                        MySQL Packet Size 256.00 MB

                        have problem "PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/kinoko/public_html/includes/class_bootstrap.php(1422) : eval()'d code on line 110"
                        "PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/kinoko/public_html/includes/class_bootstrap.php(433) : eval()'d code on line 114"

                        I have tried "define('DISABLE_HOOKS', true);" in config.php but still error. The error_log file is larges every second.

                        thanks
                        This is from a third-party addon. Your addons need to be updated to work with newer versions of PHP.

                        Originally posted by djbaxter
                        Thank you, I was curious because I couldn't see anything in the error message that pointed to a plugin, only to class_bootstrap.php.
                        If you look at the error it says that the problem occurs at line 110 in the eval'd code called at line 1422 in class_bootstrap.php. This means it is is either a template, phrase or PHP hook. Since templates and phrases cannot have embeded PHP code and don't use preg_replace, it points to being a PHP Hook used in an Addon. If you look at line 1422 in class_bootstrap.php, you see this:
                        Code:
                                ($hook = vBulletinHook::fetch_hook('cache_templates')) ? eval($hook) : false;
                        This hook is used to pre-cache templates for third-party Addons.

                        The second error is from this line of code:
                        Code:
                        ($hook = vBulletinHook::fetch_hook('parse_templates')) ? eval($hook) : false;
                        Translations provided by Google.

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

                        Comment

                        • djbaxter
                          Senior Member
                          • Aug 2006
                          • 1418
                          • 4.2.5

                          #13
                          Excellent. Thanks.
                          Psychlinks Web Services Affordable Web Design & Site Management
                          Specializing in Small Businesses and vBulletin/Xenforo Forums

                          Comment

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