Announcement

Collapse
No announcement yet.

Upgrade PHP Parse Error

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

  • Upgrade PHP Parse Error

    Hi,

    I tried to upgrade my forum from 5.2.5 to 5.5.4 Patch Level 2, but I am now unable to access the website or go through the install process (I get a HTTP ERROR 500 on the webpage and the install url).

    In the error logs I get this:
    PHP Parse error: syntax error, unexpected '?' in /home2/paperbr1/public_html/mysite/core/vb/request.php on line 68

    The hosting server is using php version 7.2.7

    Any ideas where I can start to fix this, cheers
    Last edited by andyleighton; Tue 15th Oct '19, 2:03am.

  • #2
    What version of SQL is your server using?

    Comment


    • #3
      MySQL Version 5.6.41-84.1

      Comment


      • #4
        Your vBulletin directory isn't running PHP 7.2 with that error. It is an error that occurs when the directory is running PHP 5.6.

        Make sure you don't have any AddHandler directives in any of your .htaccess files. Your hosting provider should be able to provide further assistance to make sure you're using the correct version of PHP in the vBulletin directory.
        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
          Thanks Wayne, I have passed that on to hosting support .... but so far not having much luck with them, will see how they go

          Comment


          • #6
            I heard back from my hosting support and this is their response:

            "Thanks for your patience, I have checked the details with the specialist and you will have to resolve this with the application provider itself.

            Yes,There is no other PHP AddHandler code in the .htaccess file.I have made sure that the .htaccess have only the 7.2 version code.
            The php version code will be added to the .htaccess and they have mentioned about that.

            We do not have the option to resolve the issue and I can see that the PHP version is already set to the 7.2 as they have mentioned,Please check this link: https://tokyo2020forum.com/test.php"


            Where to from here, can we try something else?

            This is the last error log:
            [16-Oct-2019 09:51:23 UTC] PHP Fatal error: Class 'vB_Request_WebApi' not found in /home2/paperbr1/public_html/tokyo2020forum/includes/api/interface/collapsed.php on line 38
            Last edited by andyleighton; Wed 16th Oct '19, 5:46am.

            Comment


            • #7
              Are you using DirectAdmin with symlinks to the HTTPS (private_html) directory? If so, you'll have to turn them off and upload the files directly to the private_html directory.
              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


              • #8
                I had to google what you wrote there, my hosting Bluehost is using cPanel and not DirectAdmin, if I have misunderstood please let me know.

                Could I have the same problem with cPanel?

                Comment


                • #9
                  cPanel doesn't normally use symlinks or a private_html directory. However, I don't know how Bluehost has things configured on their server. If you're using Symlinks (you have to ask Bluehost about this), then you can have the same problem. It is a known issue in the software but there is no date for resolution at this time. The workaround is to not use symlinks from one directory to another in the vBulletin setup.
                  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


                  • #10
                    I've been waiting for two days and given up waiting for Bluehost to answer the question about symlinks ... the frontline staff are great and helpfull, but the tech guys behind them are next to useless for getting back with a response

                    I guess I will have to bite the bullet and pay $300aud for vBulletin annual support who can hopefully get my website working again, thanks for your help over the last week!

                    Comment


                    • #11
                      I did a backup of my site from a month ago to get it working again and everything looks fine, except on the home page the Activity Stream Module is not showing anything ... is this an easy fix or shall I open a new thread elsewhere?

                      Comment


                      • #12
                        I redid the backup and all works good now ... so now will retry the upgrade using the paid support, cheers

                        Comment

                        Related Topics

                        Collapse

                        Working...
                        X