Upgrade from 7.8.17 to 7.8.21

Hello all, first let me say again great project and really appreciate all the hard work by the developers. Have a problem when upgrading from 7.8.17 to 7.8.21. Everything seems to go well, at the last step the browser reloads approximately 30 seconds into it displaying a blank browser screen that will not go away.

Running fairly stock Centos 7.4 , Apache 2.4.6-67, php 5.4.16 (yes I know its old)

In the suitecrm.log I get:

Sun Sep 16 18:00:43 2018 [1723][-none-][FATAL] ERROR: rmdir_recursive(): argument cache/themes/Suite7/modules is not a file or a dir.

In the suitecrm_upgrade.log I get:
Sun, 16 Sep 2018 18:00:42 -0700 [UpgradeWizard] - module tabs updated
Sun, 16 Sep 2018 18:00:42 -0700 [UpgradeWizard] - finished addNewSystemTabsFromUpgrade
Sun, 16 Sep 2018 18:00:42 -0700 [UpgradeWizard] - Registering upgrade with UpgradeHistory
Sun, 16 Sep 2018 18:00:43 -0700 [UpgradeWizard] - Rebuilding style js file: cache/themes/SuiteR/js/style-min.js
Sun, 16 Sep 2018 18:00:43 -0700 [UpgradeWizard] - Rebuilding language cache

And right at the time of the update I get these log entries in the ssl_error_log and the apache error_log

[Sun Sep 16 18:30:17.164309 2018] [:error] [pid 2890] [client 192.168.0.100:55364] PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /var/www/html/crm/modules/ACL/ACLController.php on line 60, referer: https://synergexx.com:90/crm/?action=ajaxui
[Sun Sep 16 18:30:21.618062 2018] [:error] [pid 1949] [client 192.168.0.100:55368] PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /var/www/html/crm/modules/ACL/ACLController.php on line 60, referer: https://synergexx.com:90/crm/?action=ajaxu

Not certain what is causing this. Any help would be appreciated.

Sorry about this, it is a known issue (since a couple of days ago).

Can you try this simple fix and tell us if it works?

https://github.com/salesagility/SuiteCRM/pull/6311/files

Hello Thank you for the suggestion. Tried upgrading again utilizing 7.8.22. has the same issue. Have posted the contents of my SugarTheme.php after the failed update. The file seems to show the corrected values as per your recommendation already present:

{
// include style.css file
$html = ’

';
$html .= ‘’;
$html .= ‘’;
$html .= ‘’;
$html .= ‘’;

Again would really like to get this resolved.

Thanks…

You need to upgrade PHP to a supported version…

I was receiving this same error. It happened without making any changes at all to the code. We are using version 7.10.29. I started checking around and I saw another post that mentioned that the version of PHP needed to be 5.4 or higher. I checked our version and it was PHP v7.4 . We have another instance of SuiteCRM running and I noticed it was running under PHP v7.3 . I changed the version for this instance back to PHP v7.3 and everything started working.

It’s all here: