Upgrade to version 4.2.3 Suite PL2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rustybucket
    New Member
    • Oct 2013
    • 28
    • 4.2.X

    Upgrade to version 4.2.3 Suite PL2

    I am trying to upgrade from 4.2.2 suite to 4.2.3 Suite PL2.

    I am getting the infamous 5313 error. I have change php to 5.4 and 5.6 in cpanel and it makes no difference. I have checked with both vb_test.php and a phpinfo.php script and it shows php 5.6.29 running, but still no looks.

    The site is down, so any help would be appreciated.

    Thanks, Allen
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24287
    • 6.0.X

    #2
    I've never heard of a 5313 error...please provide more details on exactly what's happening and when.
    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

    • rustybucket
      New Member
      • Oct 2013
      • 28
      • 4.2.X

      #3
      When I try to run /install/upgrade.php, I get Parse error: syntax error, unexpected T_FUNCTION in /home/public_html/vbbs/includes/functions.php on line 5313

      Comment

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

        #4
        Originally posted by rustybucket
        When I try to run /install/upgrade.php, I get Parse error: syntax error, unexpected T_FUNCTION in /home/public_html/vbbs/includes/functions.php on line 5313
        First, check your php version really is 5.6 (just because it says so in phpinfo doesn't mean it actually is - rename the install folder to install2 for a moment and check the admincp - it will tell you what version the forum is seeing),

        If it is, rename the install folder back to /install, and then download a fresh copy of the files from the members area. Upload these to the server, taking care to overwrite what's already there. Then run the upgrade script again.
        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

        • rustybucket
          New Member
          • Oct 2013
          • 28
          • 4.2.X

          #5
          I did that, and it did say 5.6.29. I just redownloaded the files and uploaded them right before I posted. It has me stumped.

          Comment

          • rustybucket
            New Member
            • Oct 2013
            • 28
            • 4.2.X

            #6
            Anyone with any further ideas?

            Comment

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

              #7
              What is line 5313 in /includes/functions.php? What are the ten lines above and below it?
              Translations provided by Google.

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

              Comment

              • rustybucket
                New Member
                • Oct 2013
                • 28
                • 4.2.X

                #8
                function ($matches) in the following snipit is 5313.

                function urlencode_uni($str)
                {
                //not sure that this function is ever called.
                return preg_replace_callback(
                '`([\s/\\\?:@=+$,<>\%"\'\.\r\n\t\x00-\x1f\x7f]|(?(?<!&)#|#(?![0-9]+)|&(?!#[0-9]+|(?<!&#\d|&#\d{2}|&#\d{3}|&#\d{4}|&#\d{5})`',
                function ($matches)
                {
                return urlencode($matches[1]);
                },
                $str
                );
                }

                Comment

                • rustybucket
                  New Member
                  • Oct 2013
                  • 28
                  • 4.2.X

                  #9
                  BTW, for now I reverted back to 5.2.2

                  Comment

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

                    #10
                    That is the correct code. I can't replicate the issue with PHP 5.6.25. Sounds like a PHP compatibility issue, though. You can try vBulletin 4.2.4 in a test folder on your site to see if you get the same problem.
                    Translations provided by Google.

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

                    Comment

                    • rustybucket
                      New Member
                      • Oct 2013
                      • 28
                      • 4.2.X

                      #11
                      OK, the next day after uploading the 4.2.2 files for vbulletin, I uploaded the 4.2.3 PL2 files changed PHP to 5.6 and the upgrade went fine. Not sure what was going on that it thought I had an older version of php on it.

                      However I still have the original problem that caused me to attempt the upgrade. For some reason about a month ago when some one makes a new post it doesn't show in the new posts or forum index until you refresh the browser once or twice.

                      Comment

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