Body: <p>My live site seems to be falling offline most mornings, with a Fatal Error email from Wordpress received. The error that shows is</p>
  <p>An error of type E_ERROR was caused in line 234 of the file /homepages/21/d802502790/htdocs/clickandbuilds/u3aoliva/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php. Error message: Uncaught CRM_Core_Exception: [unauthorized: Authorization failed: CiviCRM APIv4 (MembershipType::get)</p>
  <p>I've checked the list of membership types (in Administer &gt; CiviMember &gt; Membership Types) and all ok. I've searched the membership list to check for any unrecognised types, and again all ok.</p>
  <p>This error doesn't appear in the downloaded CiviCRM log file. But perhaps unconnected, each entry starts with an authorisation error.</p>
  <p>2024-11-06 06:14:09+0000  [debug] $API Request Authorization failed = #0 /homepages/21/d802502790/htdocs/clickandbuilds/u3aoliva/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(148): CRM_Core_Error::backtrace(&quot;API Request Authorization failed&quot;, TRUE)</p>
  <p>Any tips for where to look?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-11-07T20:28:21.687Z
Comments.Text: If it's happening about the same time every day, I wonder if it might be related to a scheduled task running then? The task might be triggering the permission problem. Just a thought.
Comments.UserDisplayName: kapn
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-11-08T11:32:14.927Z
Comments.Text: No cron jobs set up (keep getting a message to tell me to do that). No background scheduled processes I can see. It’s around the same time - between 05:00 and 08:00. Very low usage site so unconnected to user or admin access.
Comments.UserDisplayName: u3a Oliva webmaster
Tags: <civimember><error>
Title: Fatal error - need some advice to identify what's happening
ThreadText: # Fatal error - need some advice to identify what's happening
  
  (Asked by: username_0 on 2024-11-06)
  
  My live site seems to be falling offline most mornings, with a Fatal Error email from Wordpress received. The error that shows is
  
  An error of type E\_ERROR was caused in line 234 of the file /homepages/21/d802502790/htdocs/clickandbuilds/u3aoliva/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php. Error message: Uncaught CRM\_Core\_Exception: [unauthorized: Authorization failed: CiviCRM APIv4 (MembershipType::get)
  
  I've checked the list of membership types (in Administer > CiviMember > Membership Types) and all ok. I've searched the membership list to check for any unrecognised types, and again all ok.
  
  This error doesn't appear in the downloaded CiviCRM log file. But perhaps unconnected, each entry starts with an authorisation error.
  
  2024-11-06 06:14:09+0000 [debug] $API Request Authorization failed = #0 /homepages/21/d802502790/htdocs/clickandbuilds/u3aoliva/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(148): CRM\_Core\_Error::backtrace("API Request Authorization failed", TRUE)
  
  Any tips for where to look?
  
  **Tags:** civimember, error
  
  > **Comments:**
  > **username_1**: If it's happening about the same time every day, I wonder if it might be related to a scheduled task running then? The task might be triggering the permission problem. Just a thought.  
  > **username_0**: No cron jobs set up (keep getting a message to tell me to do that). No background scheduled processes I can see. It’s around the same time - between 05:00 and 08:00. Very low usage site so unconnected to user or admin access.  
  
  ---
  
  ## 0 answers
  
  