7.10.9 Account fails to load with error

SuiteCRM 7.10.9

Upgrade from 7.10.7 to 7.10.8 and then to 7.10.9
A few accounts, not all, fail to load and error is displayed.

“There was an error processing your request, please try again at a later time. If this error persists, please have your administrator disable Ajax for this module”

Disabling AJAX for accounts alows the account to load without sub-panels.

On PHP Apache error log I find:
[24-Sep-2018 18:21:59 Europe/Lisbon] PHP Parse error: syntax error, unexpected ‘return’ (T_RETURN), expecting function (T_FUNCTION) in /var/www/suitecrm/include/generic/SugarWidgets/SugarWidgetSubPanelRemoveButtonAccount.php on line 61

Hhmm that looks like a bug to me, please fix it in your file here:


Change this

if (!$layout_def['EditView'])

to this, adding a {

if (!$layout_def['EditView']) {

I’ll see this gets fixed in the main code. Thanks for reporting.

1 Like

It seems it’s already fixed for the upcoming version. But please do test and report back here to let us know if it works well.

1 Like

Tested … works perfectly!
Thank you

7.10.10 will have the fix for this?