Upgrade error, 4.2.4 to 4.2.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mscottralston
    Member
    • Jan 2014
    • 41
    • 4.2.X

    Upgrade error, 4.2.4 to 4.2.5

    Hey guys,

    I have a monstrously large forums installation, so reckoned I'd use the command line to make this happen. I didn't get far:

    sudo -u forums php -f upgrade.php
    forums is not in the sudoers file. This incident will be reported.

    (Okay, I thought, we'll SSH in as the forums user and just do it directly...)

    php -f upgrade.php

    Parse error: syntax error, unexpected '*' in /home/forums/public_html/includes/functions.php on line 1576

    The instructions are pretty strict about how whenever something goes badly it's time to immediately full stop and contact support, so here I am!

    Thanks for your support!
  • mscottralston
    Member
    • Jan 2014
    • 41
    • 4.2.X

    #2
    For the record, the line in question in functions.php is:

    if (intval($profilefield_value) & (2**$key)

    Comment

    • mscottralston
      Member
      • Jan 2014
      • 41
      • 4.2.X

      #3
      Nevermind, I realized it was a PHP version issue. The command line script is proceeding well for now.

      Comment

      • mscottralston
        Member
        • Jan 2014
        • 41
        • 4.2.X

        #4
        However, it did fatal error out in the end, seems like a memory issue, as follows:

        Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /home/forums/public_html/includes/class_xml.php on line 236

        I can increase the allocation of memory to PHP but I'm not sure how to proceed after that. Do I just rerun the command? Or since it made it pretty far (into the Processing XML section), would that do more harm than good at this point?

        Comment

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

          #5
          Yes just run it again....it will pick up where it left off.
          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

          • mscottralston
            Member
            • Jan 2014
            • 41
            • 4.2.X

            #6
            Failed again! I had adjusted the PHP INI via cPanel but the 'allowed memory size' number didn't change, I got pretty much the same error. Should I consider doing what's suggested here:

            I'm a licensed vB 4.x owner who still uses 3.8.10 completely vanilla, no mods or addons. I'm receiving the following error on Step 4) Visitor Message IPv6 Updates when upgrading form 3.8.10 to 3.8.11.


            (bottom post)

            temporarily?

            Comment

            • mscottralston
              Member
              • Jan 2014
              • 41
              • 4.2.X

              #7
              I noticed that it really does pick up where it leaves off, so I simply ran the upgrade script two more times until it made it to the end. Mission successful! Still, I'm curious about the necessity of this.

              Comment

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

                #8
                It's quite common with large forums this. The upgrade is quite resource intensive in parts, and it can briefly overwhelm the server. Leaving it a few minutes to recover itself and then refreshing / rerunning will then make it carry on.

                As long as it completed properly it's nothing to worry about,
                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

                • mscottralston
                  Member
                  • Jan 2014
                  • 41
                  • 4.2.X

                  #9
                  Thanks Mark!

                  Comment

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

                    #10
                    A note for the future, the php.ini file in cPanel doesn't necessarily affect the command line version of PHP. Each can have their own php.ini file. You can even have different versions for web and command line.
                    Translations provided by Google.

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

                    Comment

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