AbanteCart Community

eCommerce construction => Installation and Configuration => Upgrade => Topic started by: bonus on May 16, 2020, 11:53:15 AM

Title: Upgrade from 1.2.15 to 1.2.16 error
Post by: bonus on May 16, 2020, 11:53:15 AM
I click on the upgrade link given in the admin notice and accepted the risk of the upgrade.
The page when blank
Then the error "Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/onlinesr/public_html/test3/core/lib/PaymentHandlerInterface.php on line 22" when I try to access my site.

What's wrong?
Luckily it was a plain vanilla test site which I've installed from cpanel just a day before.
Title: Re: Upgrade from 1.2.15 to 1.2.16 error
Post by: MrTim on May 17, 2020, 08:47:06 AM
I have this same problem, but unfortunately this is my eCommerce site. I hope there will be a fix for this shortly.
Title: Re: Upgrade from 1.2.15 to 1.2.16 error
Post by: MrTim on May 17, 2020, 10:16:42 AM
I checked PaymentHandlerInterface.php both current file and the backup file. They are the same.
Looked at the error log and it shows the same error.

2020-05-17 12:36:26 - parsing error:  AbanteCart core v.1.2.16 syntax error, unexpected ':', expecting ';' or '{' in <b>/home/ivystone/public_html/AbanteCart/core/lib/PaymentHandlerInterface.php</b> on line <b>22</b>

Line 22 ends with ";"

Any help would be greatly appreciated.
Title: Re: Upgrade from 1.2.15 to 1.2.16 error
Post by: Russell37uk on May 17, 2020, 02:03:32 PM
Same error here but with a completely fresh install of v 1.2.16

Fresh install, due to the other mentioned issue of a completely blank screen when using the upgrade link from 1.2.15
Title: Re: Upgrade from 1.2.15 to 1.2.16 error
Post by: Russell37uk on May 17, 2020, 03:24:27 PM
I have this same problem, but unfortunately this is my eCommerce site. I hope there will be a fix for this shortly.

Same here, I accepted the risk updating a 'live' site as business is very slow at the moment.

Thought i'd broke it so done a completely fresh install of 1.2.16 and had the exact same problem

AbanteCart core v.1.2.16 syntax error, unexpected ':', expecting ';' or '{' in <b>/home/ivystone/public_html/AbanteCart/core/lib/PaymentHandlerInterface.php</b> on line <b>22</b>

Line 22 ends with ";"

Title: Re: Upgrade from 1.2.15 to 1.2.16 error
Post by: Nuno Neff on May 17, 2020, 06:45:41 PM
I tried to upgrade from 1.1.15  to new version and it does not work
Title: Re: Upgrade from 1.2.15 to 1.2.16 error
Post by: rightonjoe on May 18, 2020, 12:32:17 AM
Same story here, I updated a live site and it went blank white.
I suspect is that the database prefix may have changed but it didn't update somewhere but I'm not exactly sure. Just a hunch for anyone with knowledge that can verify.
Title: Re: Upgrade from 1.2.15 to 1.2.16 error
Post by: abolabo on May 18, 2020, 04:17:55 AM
What php version do you use?

Please try to replace your file core/lib/PaymentHandlerInterface.php with attached
 
Title: Re: Upgrade from 1.2.15 to 1.2.16 error
Post by: Russell37uk on May 18, 2020, 04:32:03 AM
What php version do you use?

Please try to replace your file core/lib/PaymentHandlerInterface.php with attached

I am using PHP version 7.3 (i think),  indecently the replacement file provided worked for me and can now see my website, although i did have to reset password for admin access as i wasn't recognized as a user!
Title: Re: Upgrade from 1.2.15 to 1.2.16 error
Post by: MrTim on May 18, 2020, 06:59:13 AM
What php version do you use?

Please try to replace your file core/lib/PaymentHandlerInterface.php with attached

I checked the file against the one in use and they are the same. I did replace the file as suggested but it did not make any difference. I still get the same error message.
Title: Re: Upgrade from 1.2.15 to 1.2.16 error
Post by: rightonjoe on May 18, 2020, 11:26:01 PM
What php version do you use?

Please try to replace your file core/lib/PaymentHandlerInterface.php with attached

I am using PHP version 7.3 (i think),  indecently the replacement file provided worked for me and can now see my website, although i did have to reset password for admin access as i wasn't recognized as a user!

I changed my PHP to version 7.3 and replaced the file and now mine works too. Thanks!
Title: Re: Upgrade from 1.2.15 to 1.2.16 error
Post by: MrTim on May 19, 2020, 07:52:14 AM
I updated my PHP version to 7.2 and my site came back up. No need to replace any files.
Thanks everyone for the input.