Answers.Body: <p>For these type of errors that don't make lots of sense, i would check the following.</p>
  <p>-Memory exhaustion (increase it via php.ini and restart your webserver then try).</p>
  <p>-Also, you can try the CV commandline utility and run it with verbose to see more errors (cv -vv ext:enable extention-name)</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-24T17:34:18.440Z
Answers.LastActivityDate: 2022-05-24T17:34:18.440Z
Answers.UserDisplayName: salah-1
Body: <p>Whenever Im doing anything with extensions Im getting this error</p>
  <pre><code>CiviCRM_API3_Exception: &quot;API error: on OptionValue.getsingle&quot;
  
  #0 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Admin/Form/Extensions.php(189): civicrm_api3(&quot;Extension&quot;, &quot;enable&quot;, (Array:2))
  #1 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/Form.php(527): CRM_Admin_Form_Extensions-&gt;postProcess()
  #2 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/StateMachine.php(144): CRM_Core_Form-&gt;mainProcess()
  #3 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php(43): CRM_Core_StateMachine-&gt;perform(Object(CRM_Admin_Form_Extensions), &quot;next&quot;, &quot;Next&quot;)
  #4 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Next-&gt;perform(Object(CRM_Admin_Form_Extensions), &quot;next&quot;)
  #5 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller-&gt;handle(Object(CRM_Admin_Form_Extensions), &quot;next&quot;)
  #6 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/Controller.php(352): HTML_QuickForm_Page-&gt;handle(&quot;next&quot;)
  #7 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/Page/Basic.php(395): CRM_Core_Controller-&gt;run()
  #8 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/Page/Basic.php(140): CRM_Core_Page_Basic-&gt;edit(32, NULL)
  #9 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Admin/Page/Extensions.php(105): CRM_Core_Page_Basic-&gt;run()
  #10 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/Invoke.php(313): CRM_Admin_Page_Extensions-&gt;run((Array:3), NULL)
  #11 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem((Array:15))
  #12 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke((Array:3))
  #13 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/drupal/civicrm.module(458): CRM_Core_Invoke::invoke((Array:3))
  #14 /home/lgsecrmo/hub.littlegate.org.uk/includes/menu.inc(527): civicrm_invoke(&quot;admin&quot;, &quot;extensions&quot;)
  #15 /home/lgsecrmo/hub.littlegate.org.uk/index.php(21): menu_execute_active_handler()
  #16 {main}
  
  </code></pre>
  <p>I'm using latest Drupal and CiviCRM 5.41</p>
  <p>Can anyone throw some light on this?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-23T15:02:15.930Z
Comments.Text: How are you enabling ext via UI or commandline?.
Comments.UserDisplayName: salah-1
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-24T16:20:27.503Z
Comments.Text: Im adding via the UI...hadn't though about the command line. I'll give it a go
Comments.UserDisplayName: Tony Horrocks
Tags: <api><extension><error>
Title: Getting fatal error when doing things with extension
ThreadText: # Getting fatal error when doing things with extension
  
  (Asked by: username_0 on 2022-05-23)
  
  Whenever Im doing anything with extensions Im getting this error
  
  ```
  CiviCRM_API3_Exception: "API error: on OptionValue.getsingle"
  
  #0 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Admin/Form/Extensions.php(189): civicrm_api3("Extension", "enable", (Array:2))
  #1 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/Form.php(527): CRM_Admin_Form_Extensions->postProcess()
  #2 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/StateMachine.php(144): CRM_Core_Form->mainProcess()
  #3 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php(43): CRM_Core_StateMachine->perform(Object(CRM_Admin_Form_Extensions), "next", "Next")
  #4 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Next->perform(Object(CRM_Admin_Form_Extensions), "next")
  #5 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Admin_Form_Extensions), "next")
  #6 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/Controller.php(352): HTML_QuickForm_Page->handle("next")
  #7 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/Page/Basic.php(395): CRM_Core_Controller->run()
  #8 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/Page/Basic.php(140): CRM_Core_Page_Basic->edit(32, NULL)
  #9 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Admin/Page/Extensions.php(105): CRM_Core_Page_Basic->run()
  #10 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/Invoke.php(313): CRM_Admin_Page_Extensions->run((Array:3), NULL)
  #11 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem((Array:15))
  #12 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke((Array:3))
  #13 /home/lgsecrmo/hub.littlegate.org.uk/sites/all/modules/civicrm/drupal/civicrm.module(458): CRM_Core_Invoke::invoke((Array:3))
  #14 /home/lgsecrmo/hub.littlegate.org.uk/includes/menu.inc(527): civicrm_invoke("admin", "extensions")
  #15 /home/lgsecrmo/hub.littlegate.org.uk/index.php(21): menu_execute_active_handler()
  #16 {main}
  
  ```
  
  I'm using latest Drupal and CiviCRM 5.41
  
  Can anyone throw some light on this?
  
  **Tags:** api, extension, error
  
  > **Comments:**
  > **username_1**: How are you enabling ext via UI or commandline?.  
  > **username_0**: Im adding via the UI...hadn't though about the command line. I'll give it a go  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-05-24. Score: 0
  
  For these type of errors that don't make lots of sense, i would check the following.
  
  -Memory exhaustion (increase it via php.ini and restart your webserver then try).
  
  -Also, you can try the CV commandline utility and run it with verbose to see more errors (cv -vv ext:enable extention-name)
  
  
  ---
  
  