Parse error: syntax error, unexpected end of file in C:\Program Files\NetMake\v9\wwwroot\scriptcase\prod\lb\pihp[SIZE=12px]nm_api.php[/SIZE] on line 363 .
URGENT!!! The error can occur because it is possible that it is missing ?> Or some }. Please check it fast. It has been his last update 9.1.009 that has caused this, we can not work with any application. It is your program that causes this situation…
The error is corrected by closing a switch clause towards line 134:
[I]switch (strtolower ($ arr_settings [‘settings’] [‘gateway’]))
{
case ‘mandrill’:
include_once ($ prod_path. “/ third / mandrill / src / Mandrill.php”);
return new Mandrill ($ arr_settings [‘settings’] [‘api_key’]);
break;
case 'ses':
include_once ($ prod_path. "/ third / aws.phar");
return SesClient :: factory (array (
'version' => 'latest',
'region' => $ arr_settings ['settings'] ['region'],
'credentials' => array (
'key' => $ arr_settings ['settings'] ['api_key'],
'secret' => $ arr_settings ['settings'] ['api_secret'],
)
));
break;
case 'smtp':
include_once ($ prod_path. "/ third / swift / swift_required.php");
$ transport = (new Swift_SmtpTransport ($ arr_settings ['settings'] ['smtp_server'], $ arr_settings ['settings'] ['smtp_port']))
-> setUsername ($ arr_settings ['settings'] ['smtp_user'])
-> setPassword ($ arr_settings ['settings'] ['smtp_password'])
;
$ protocol = null;
if (isset ($ arr_settings ['settings'] ['smtp_protocol']))
{
$ protocol = $ arr_settings ['settings'] ['smtp_protocol'];
}
else
{
switch (strtolower ($ arr_settings ['settings'] ['smtp_port']))
{
default:
case 25:
$ protocol = null;
break;
case 465:
$ protocol = 'ssl';
break;
case 587:
$ protocol = 'tls';
break;
}
}
$ transport-> setEncryption (strtolower ($ protocol));
return new Swift_Mailer ($ transport);
break;[/I]
[SIZE=18px]} ------> Check this[/SIZE]
Yep. I had to fix that file manually as well.
It speaks volumes about SC quality control…
Hi guys,
I am on SC9.1.009 as well but haven’t had an error yet. Is there a specific type of app or other thing that triggers this? BTW I am running both the SC IDE and the deployed projects under PHP7.
Jamie
I think some users had this issue while other didn’t, because NetMake sometimes pushes a few updated files to an already released version and without increasing the SC version number.
[SIZE=14px]So two users with the same SC version could actually have a slightly different SC (for a few files), depending on when they performed the same version update.[/SIZE]
If you’re already on the latest SC version available, you can check if there are updated files by doing this:
(Off course the result of the check will depend on when you performed the update and if in the meantime NetMake has updated any file for the same SC version)
Help>Update Version
Click on “Check Scriptcase Update”
It will output: [INDENT][SIZE=12px]Checking ScriptCase Update version…[/SIZE]
[SIZE=12px]ScriptCase Update version is up to date…[/SIZE][/INDENT] But still under that output it will show a “Search for updates” button.
If you click on that button and if any file has been updated by NetMake since you performed the last update, it will output something like this: [INDENT][SIZE=12px]Searching for available updates…[/SIZE]
[SIZE=12px]Done.[/SIZE]
[SIZE=12px]Updates found:4[/SIZE][/INDENT] [SIZE=14px]If you click on the button to download and install those updates, it will update those four files, but you’ll still be on the same SC version you were before.[/SIZE]