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
Parse Error after update
-
- Posts: 8
- Joined: 29 Jan 2018, 11:26
- Name: Jojo dela Paz
- Location: Pasig City, Philippines
- Company Name: Profiles Asia Pacific Inc
- Contact:
Re: Parse Error after update
Hi Sergey,
Attached is the error log.
Thank you,
Jojo dela Paz
Attached is the error log.
Thank you,
Jojo dela Paz
- Attachments
-
- db_log.txt
- (17.93 KiB) Downloaded 334 times
-
- Posts: 8
- Joined: 29 Jan 2018, 11:26
- Name: Jojo dela Paz
- Location: Pasig City, Philippines
- Company Name: Profiles Asia Pacific Inc
- Contact:
Re: Parse Error after update
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
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
- support
- Site Admin
- Posts: 6222
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Parse Error after update
I don't have this issue. This file is ok as I can see for me.