GuardedForUpdate Errors


After applying the 8.3.0 update, you see the following GuardedForUpdate error:

WHMCS\Exception\Model\GuardedForUpdate: The "WHMCS\Config\Setting" record "setting" property is guarded against updates in /path/to/whmcs/vendor/whmcs/whmcs-foundation/lib/Model/Observer.php:0


This is caused by the presence of files from an earlier version of WHMCS in the /admin directory.


Execute the following query against your WHMCS MySQL® database, using a tool like phpmyadmin:

SELECT value FROM tblconfiguration WHERE BINARY setting = 'ShowNotesFieldonCheckout';

  • If this command does not return any results, upload a new copy of the /admin directory contents to your server, ensuring that all files are overwritten successfully. If the /admin directory has been renamed, make certain to upload the files to that custom location.

  • If the MySQL query returns 1 row, run the following MySQL query to correct the database value:

    UPDATE tblconfiguration SET setting = 'ShowNotesFieldOnCheckout' where setting = 'ShowNotesFieldonCheckout';

Last modified: June 24, 2024