We're testing CiviCRM to determine if it's fit for our purpose. Tests were going well until we hit an unexplained snag for which we can't find a definitive fix. The error is as follows ..

Fatal error: Uncaught CRM_Core_Exception: [unauthorized: Authorization failed thrown in /home/account/site/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php on line 232

We're running version 5.64.1 in WordPress. The host is a cPanel host using PHP 8.0.

I can't seem to find a clear answer on how to fix this. Can anyone advise on what to do to overcome this, please?

  • Hi Kerry. Welcome. Can you confirm if either civicrm.stackexchange.com/questions/41835/… or civicrm.stackexchange.com/questions/45154/… are related to your issue
    – petednz - fuzion
    Commented Aug 22, 2023 at 4:34
  • Yes welcome. Can you please give more context? On which page does this error occur? When taking what action? When logged in as what type of user?
    – Coleman
    Commented Aug 22, 2023 at 12:23
  • Hi guys. Apologies. I had not received a notification of any replies to my question, so I'm glad I logged in to check if there had been. In answer to you both but especially @Coleman, the context is that this is a vanilla WordPress installation being used for testing to determine if CiviCRM is fit for our purpose as a charity. Commented Aug 24, 2023 at 0:47
  • @petednz .. we aren't doing any coding or custom development work, so neither of the links you pointed to appear to be relevant. As to which pages this is occurring on; the answer is .. every single one. Commented Aug 24, 2023 at 0:47
  • We have only two things of note plugged in to WordPress: BookingsPress and Civi (including many of its extensions and a number of Civi-related plugins available for the WordPress plugin GUI). Being a test site, there's no reason we couldn't blow it away and start again, but this behaviour raises a serious concern about the stability and reliability of Civi as a solution for our needs. We simply can't have a situation where a largely unanswered error could derail our operations for days, if not entirely. Commented Aug 24, 2023 at 0:47

1 Answer 1


Sorry this is your first experience with CiviCRM! Usually it works fine but yes it's good to know how to recover from a crash. They are usually caused by installing a buggy or incompatible plugin or extension.

The way to track down mysterious errors generally involves enabling the debug and backtrace settings in CiviCRM. You can do this in the UI by selecting Administer -> System Settings -> Debugging and Error Handling in the menubar.

Or if CiviCRM is so broken that you can't use the UI, you can do it on the command line:

cd path/to/your/wp-content/plugins/civicrm/civicrm/
cv setting:set debug=1
cv setting:set backtrace=1

Note: these settings should never be left on for a production site!

Then when you see the error again it will have much more detail, and the backtrace will generally lead back to a specific plugin or extension that's causing the problem.

Once you find the culprit you can disable it (or even if you don't, a good guess would be to disable the last extension you installed):

cd path/to/your/wp-content/plugins/civicrm/civicrm/
cv dis name_of_extension
cv ext:uninstall name_of_extension

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.