Announcement

Collapse
No announcement yet.

Stuck on step 21, upgrade 5.5.4 -> 5.5.5

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

  • Stuck on step 21, upgrade 5.5.4 -> 5.5.5

    I am stuck at step 21

    Code:
    sudo php -f upgrade.php
    
    
    Processing XML
    
    ----------------------------------
    
    Step 21 -
    This is the only error in error.log. Don't think it connected to the problem
    [Sun Dec 29 07:18:09.110909 2019] [php7:warn] [pid 31066] [client ] PHP Warning: Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT' (this will throw an Error in a future version of PHP) in /directory/directory/forum/core/includes/class_bootstrap.php on line 241


    It has been there for a long time. I have restarted it with no success. Any clues?




  • #2
    I had this error before (https://forum.vbulletin.com/forum/vb...-upgrade/page2)

    It didn't solve it this time.

    Comment


    • #3
      I have run this from tools.php -> This will take the latest style from ./install/vbulletin-style.xml

      It didn't solve it this time.

      Comment


      • #4
        It could be your web server is blocking the step from completing. Normally, you would simply have to refresh the page on a timeout like this. If that doesn't solve it then the server configuration is getting the way. Could be some "Security" enhancement that was blindly applied. Since server configurations are constantly changing, I don't know the specific cause.

        Run the upgrade script from the command line of your server: php /path/to/your/vbulletin/core/install/upgrade.php
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API - Full / Mobile
        Vote for your favorite feature requests and the bugs you want to see fixed.

        Comment


        • #5
          I have run the installscript from command line. That didn't work.

          Will try again when 5.5.6 is released.

          Comment


          • #6
            Originally posted by Christian Alfredsson View Post
            I have run the installscript from command line. That didn't work.

            Will try again when 5.5.6 is released.
            We would need more information - "it didn't work" doesn't give us anything to go on.

            5.5.6 isn't going to fix this, it's not a bug with the software.

            Download a fresh copy of the 5.5.5 files and upload this, then try the upgrade again.
            MARK.B | vBULLETIN SUPPORT

            TalkNewsUK - My vBulletin 5.5.6 Demo
            AdminAmmo - My Cloud Demo

            Comment


            • #7
              It does not work to write like this:

              Code:
              php /path/to/your/vbulletin/core/install/upgrade.php
              instead do this:
              Code:
              cd /path/to/your/vbulletin/core/install/
              php ./upgrade.php
              The error is PHP Warning: require_once(./install/includes/language.php): failed to open stream: No such file or directory in... if you are not in the right directory

              ----

              When I run upgrade it stands like this forever

              Code:
              Processing XML
              ----------------------------------
              Step 21 -

              I only got that warning in class_bootstrap.php several times. No other error
              Code:
              [Wed Jan 08 06:56:59.844956 2020] [php7:warn] [pid 18578] [client 46.229.168.140:22234] PHP Warning:  Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT' (this will throw an Error in a future version of PHP) in /home/zoopet/forum/core/includes/class_bootstrap.php on line 241

              Comment


              • #8
                Here is list of php7-modules installed on Ubuntu 18.04 server with Apache2 (fully patched)

                Maybe I am missing a module that parse XML?



                Code:
                [PHP Modules]
                calendar
                Core
                ctype
                date
                dom
                exif
                fileinfo
                filter
                ftp
                gettext
                hash
                iconv
                igbinary
                json
                libxml
                mbstring
                memcached
                msgpack
                mysqli
                mysqlnd
                openssl
                pcntl
                pcre
                PDO
                pdo_mysql
                Phar
                posix
                readline
                Reflection
                session
                shmop
                SimpleXML
                sockets
                sodium
                SPL
                standard
                sysvmsg
                sysvsem
                sysvshm
                tokenizer
                wddx
                xml
                xmlreader
                xmlwriter
                xsl
                Zend OPcache
                zlib
                
                [Zend Modules]
                Zend OPcache



                Comment


                • #9
                  I have waited 2 hours now.The mysqld-process is running on 100% and have been so for 2 hours.

                  I will abort the script 12.00 after 4 hours, because it makes the site unavailable.

                  Comment


                  • #10
                    Is it possibel to get some feedback from the upgrade.php-script so I can see that it is doing something? Progress?

                    Comment


                    • #11
                      It only took very long time. Thanks for the help!

                      Code:
                      Processing XML
                      ----------------------------------
                      Step 21 -
                      Check for updated phrases.
                      Updating vb5_adminmessage table
                      Step 22 - Merge template changes
                      Processed 0 records starting at 0
                      Template merges complete. Rebuilding style information. This could take a while...
                      Merge template changes
                      Processing Complete

                      Comment


                      • #12
                        When the MySQL Process was taking a long time, what was the query it was processing? This should be in MySQL's slow query log.

                        We've done quite a bit of work to try and fix this for sites. There are a couple of things you can do to try to alleviate this issue on future upgrades. To change how this works, you would need to edit the /core/install/upgrade_options.php file on every upgrade.

                        First delete unused Themes from the Style Manager in the AdminCP. You must put the site into Debug Mode to delete both copies of each theme.

                        Then look at upgrade_options.php and look at this code:

                        Code:
                        $upgrade_options['theme_import'] = array(
                            'overwrite' => true,
                        );
                        1. Change true to false.

                        Code:
                        $upgrade_options['template_merge'] = array(
                            'skip_themes' => true,
                            'time_limit' => 4,
                            'batch_size' => 100,
                        );
                        1. Change true to false.
                        2. Lower the time limit.
                        3. Lower the batch size.
                        Translations provided by Google.

                        Wayne Luke
                        The Rabid Badger - a vBulletin Cloud demonstration site.
                        vBulletin 5 API - Full / Mobile
                        Vote for your favorite feature requests and the bugs you want to see fixed.

                        Comment

                        Related Topics

                        Collapse

                        Working...
                        X