Parse error: syntax error, unexpected '*' trying to upgrade 4.2.4 to 4.2.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • woodmj
    Senior Member
    • Mar 2013
    • 205
    • 5.7.5

    Parse error: syntax error, unexpected '*' trying to upgrade 4.2.4 to 4.2.5

    As requested...


    Tried to upgrade from 4.2.4 to 4.2.5.

    Upgrade immediately failed with 'Parse error: syntax error, unexpected '*' in /home/xxxxx/domains/xxxxx.be/public_html/includes/functions.php on line......'

    Read that the version of PHP currently on Ubuntu Server 14.04.5 LTS, 5.5.9-1ubuntu4.21, wasn't a high enough version of PHP to support 4.2.5 so installed PHP 5.6. Forum just white paged. Other PHP using sites on server still worked ok.

    Rolled everything back from backup to restore forum.


    Just wonder what I could try to resolve the issue?
  • Paul M
    Former Lead Developer
    vB.Com & vB.Org
    • Sep 2004
    • 9886

    #2
    You removed part of the error message (the line number) which makes it difficult to know.

    You do need to make sure you are running php 5.6 (check it in the acp home page).
    Baby, I was born this way

    Comment

    • woodmj
      Senior Member
      • Mar 2013
      • 205
      • 5.7.5

      #3
      Ah, actually I just found it in my Apache log -
      [Thu May 11 11:52:51.694056 2017] [:error] [pid xxx] [client x.x.x.x:x] PHP Parse error: syntax error, unexpected '*' in /xxx/xxx/xxx/includes/functions.php on line 1576. Lots and lots and lots of them...

      Comment

      • Paul M
        Former Lead Developer
        vB.Com & vB.Org
        • Sep 2004
        • 9886

        #4
        As I said, you need to be running at least php 5.6, those errors mean you are not.
        Baby, I was born this way

        Comment

        • woodmj
          Senior Member
          • Mar 2013
          • 205
          • 5.7.5

          #5
          Got it. Have got PHP 5.6 in now properly and the upgrade's going through.

          I had to disable Memcached in config.php though....
          "Fatal error: The Memcached class is no longer supported, please update your config to use Memcache in /xxx/xxx/xxx/includes/class_datastore.php on line 23"
          Is that not supported in 4.2.5 ?
          Last edited by woodmj; Fri 12 May '17, 2:01am.

          Comment

          • Paul M
            Former Lead Developer
            vB.Com & vB.Org
            • Sep 2004
            • 9886

            #6
            As it says Memcached is no longer supported, use Memcache instead.

            You can also use Redis in 4.2.5 (or if you only have one web server, just use APCu).
            Baby, I was born this way

            Comment

            • woodmj
              Senior Member
              • Mar 2013
              • 205
              • 5.7.5

              #7
              Can't get 'Memcache' or 'APCu' to work. My forum just white pages unless I disable all caching options in config.php.

              Comment

              • Paul M
                Former Lead Developer
                vB.Com & vB.Org
                • Sep 2004
                • 9886

                #8
                Well you have to actually install them for them to work.
                Baby, I was born this way

                Comment

                • woodmj
                  Senior Member
                  • Mar 2013
                  • 205
                  • 5.7.5

                  #9
                  Originally posted by Paul M
                  Well you have to actually install them for them to work.
                  Well obviously I installed them. Never mind.

                  Comment

                  • Paul M
                    Former Lead Developer
                    vB.Com & vB.Org
                    • Sep 2004
                    • 9886

                    #10
                    There is nothing obvious about it at all, you did not say they were installed.
                    I have multiple test sites happily running 425 & 3811 with opcache and APCu.
                    Baby, I was born this way

                    Comment

                    Related Topics

                    Collapse

                    Working...