Page 1 of 1

Parse Error after update

Posted: 31 Jan 2018, 05:22
by jdelapaz
Hi Sergey,

I upgraded to version 2.0 yesterday and then apply the extension 1.6. Now I'm facing a problem. Saving a new entry or saving an existing entry after editing results to a parse error. After clicking the back button on the browser the new entry that I created is saved, same thing to the entry that I edit was also saved. Below is the error.

Parse error: syntax error, unexpected 'SmsaeroApi' (T_STRING) in /home/profil67/public_html/PMSv2/plugins/ext/sms_modules/smsaero/lib/SmsaeroApi.php on line 1

I already changed the PHP version from 5.6.33 to 7.0.77

Thank you,
Jojo dela Paz

Re: Parse Error after update

Posted: 31 Jan 2018, 05:48
by jdelapaz
Hi Sergey,

Attached is the error log.

Thank you,
Jojo dela Paz

Re: Parse Error after update

Posted: 31 Jan 2018, 06:38
by jdelapaz
Hi Sergey,

I also forwarded the error to our developers and they were able to fix it. The error was caused by missing curly bracket and missing space on the php opening tag of SmsaeroApi.php. Below are the fix performed:

default:
<?phpclass SmsaeroApi{ const URL_SMSAERO_API = 'gate.smsaero.ru'; private $login = '';

changed to:
<?php class SmsaeroApi{ const URL_SMSAERO_API = 'gate.smsaero.ru'; private $login = ''; }

Thank you,
Jojo dela Paz

Re: Parse Error after update

Posted: 31 Jan 2018, 07:25
by support
I don't have this issue. This file is ok as I can see for me.