XF 1.5 Parse error after upgrade to latest

fritz

Member
So I probably did something without reading properly and now I'm stuck. I tried to upgrade from 1.5.14 to latest version without doing any other version inbetween. Probably the wrong way to do it but it's not a very important installation so I just thought "f it lets go". When going to domain.com/install or really any path I get this:

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/x/domain.xx/install/index.php on line 16

I tried different PHP version between 8.2 and 7 but no difference. Any ideas?

Thanks!
 
This error would only crop up on PHP <5.5, so it's worth ensuring your PHP version is running what you'd expect.

It's also likely best to update to XF 2.2 first and then to XF 2.3, as I believe you may run into an issue updating from XF 1 currently.
 
This error would only crop up on PHP <5.5, so it's worth ensuring your PHP version is running what you'd expect.

It's also likely best to update to XF 2.2 first and then to XF 2.3, as I believe you may run into an issue updating from XF 1 currently.
You my friend are the best. Apparently I had a specific PHP version set in the .htaccess file that I didn't remember so after setting it to 8 it passed. But tried to get the 2.0 upgrade package instead, deleted the existing install folder and uploaded it, now my site says The site is currently being upgraded. Please check back later. If I go to /install it says
An upgrade was found for a version of XenForo that is newer than the uploaded files. Please reupload all of the files for the new version and reload this page.

Can I reset this in any way?
 
You'll need to re-upload all the files from the package and not just the install folder. 2.2 should be fine, but you can proceed with 2.0 if you like. You may need to remove the src/XF/Install/ folder completely and re-upload it.
 
Back
Top Bottom