Guides & Tutorials8.0 Update TroubleshootingTroubleshooting an Oops! error when Editing Administrator Roles

Troubleshooting an Oops! error when Editing Administrator Roles

Symptom

After applying the 8.0.0 update, an Oops! fatal PHP error is displayed when editing Administrator Roles via the WHMCS Admin Area:

Error: Cannot use object of type SampleRegistrarModuleWidget as array in /path/to/whmcs/admin/configadminroles.php:0

Stack trace:0 /path/to/whmcs/admin/configadminroles.php(0): load_admin_home_widgets()

This occurs when certain types of admin dashboard widget are present,  including after-market widgets and the official Project Management  Addon:

Solution

Please apply the 8.0.1 Maintenance Release via the Utilities > Update WHMCS page.

Hotfix

A hotfix has been created for 8.0.0 only to resolve this error:

https://whmcs.community/files/file/138-core-15215-error-editing-administrator-roles/