Answers.Body: <p>See <a href="https://github.com/civicrm/civicrm-core/pull/30872" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/30872</a>. It will be fixed in the next release.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-08-15T02:14:40.363Z
Answers.LastActivityDate: 2024-08-15T02:14:40.363Z
Answers.UserDisplayName: Demerit
Body: <p>I just upgraded from 5.74.4 to 5.76.1 (drupal 7) and got this error:</p>
  <pre><code>CRM_Extension_Exception: Invalid extension key: &quot;tellafriend&quot; in &lt;mysitepath&gt;/sites/all/modules/civicrm/CRM/Extension/Upgrades.php on line 125
  Exception trace
  #   Function    Location
  0   CRM_Extension_Upgrades::sortKeys()  &lt;mysitepath&gt;/sites/all/modules/civicrm/CRM/Extension/Upgrades.php:125
  1   CRM_Extension_Upgrades::getActiveKeys() &lt;mysitepath&gt;/sites/all/modules/civicrm/CRM/Extension/Upgrades.php:107
  2   CRM_Extension_Upgrades::getActiveUpgraders()    &lt;mysitepath&gt;/sites/all/modules/civicrm/CRM/Extension/Upgrades.php:42
  3   CRM_Extension_Upgrades::hasPending()    &lt;mysitepath&gt;/sites/all/modules/civicrm/CRM/Upgrade/Form.php:798
  4   CRM_Upgrade_Form::enqueueExtUpgrades()  &lt;mysitepath&gt;/sites/all/modules/civicrm/CRM/Queue/Task.php:101
  5   CRM_Queue_Task-&gt;run()   &lt;mysitepath&gt;/sites/all/modules/civicrm/CRM/Queue/Runner.php:255
  6   CRM_Queue_Runner-&gt;runNext() &lt;mysitepath&gt;/sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php:36
  7   CRM_Queue_Page_AJAX::{closure}()    &lt;mysitepath&gt;/sites/all/modules/civicrm/CRM/Queue/ErrorPolicy.php:93
  8   CRM_Queue_ErrorPolicy-&gt;call()   &lt;mysitepath&gt;/sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php:38
  9   CRM_Queue_Page_AJAX::runNext()  &lt;mysitepath&gt;/sites/all/modules/civicrm/CRM/Core/Invoke.php:292
  10  CRM_Core_Invoke::runItem()  &lt;mysitepath&gt;/sites/all/modules/civicrm/CRM/Core/Invoke.php:69
  11  CRM_Core_Invoke::_invoke()  &lt;mysitepath&gt;/sites/all/modules/civicrm/CRM/Core/Invoke.php:36
  12  CRM_Core_Invoke::invoke()   &lt;mysitepath&gt;/sites/all/modules/civicrm/drupal/civicrm.module:470
  13  civicrm_invoke()    &lt;mysitepath&gt;/includes/menu.inc:527
  14  menu_execute_active_handler()   &lt;mysitepath&gt;/index.php:21
  15  {main}  
  </code></pre>
  <p>I went to the extension page and disabled this extension and reran the upgrade.  So far OK.  I have 3 sites and double-checked before upgrading the next one that this extension was not there either on the extension page nor in the civicrm_extension table.  Then I did the upgrade.  Same error.  It looks like the upgrade added this extension to civicrm_extensions (the <code>id</code> column is the highest number) .  So it looks like the upgrade script adds this extension and then complains that the code is not present.</p>
  <p>Aside from the inconvenience, can I expect any issues?</p>
  
Tags: <upgrade><extension>
Title: CRM_Extension_Exception: Invalid extension key: "tellafriend" on upgrade to 5.76.1
ThreadText: # CRM_Extension_Exception: Invalid extension key: "tellafriend" on upgrade to 5.76.1
  
  (Asked by: username_0 on 2024-08-15)
  
  I just upgraded from 5.74.4 to 5.76.1 (drupal 7) and got this error:
  CRM_Extension_Exception: Invalid extension key: "tellafriend" in /sites/all/modules/civicrm/CRM/Extension/Upgrades.php on line 125
  Exception trace
  #   Function    Location
  0   CRM_Extension_Upgrades::sortKeys()  /sites/all/modules/civicrm/CRM/Extension/Upgrades.php:125
  1   CRM_Extension_Upgrades::getActiveKeys() /sites/all/modules/civicrm/CRM/Extension/Upgrades.php:107
  2   CRM_Extension_Upgrades::getActiveUpgraders()    /sites/all/modules/civicrm/CRM/Extension/Upgrades.php:42
  3   CRM_Extension_Upgrades::hasPending()    /sites/all/modules/civicrm/CRM/Upgrade/Form.php:798
  4   CRM_Upgrade_Form::enqueueExtUpgrades()  /sites/all/modules/civicrm/CRM/Queue/Task.php:101
  5   CRM_Queue_Task->run()   /sites/all/modules/civicrm/CRM/Queue/Runner.php:255
  6   CRM_Queue_Runner->runNext() /sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php:36
  7   CRM_Queue_Page_AJAX::{closure}()    /sites/all/modules/civicrm/CRM/Queue/ErrorPolicy.php:93
  8   CRM_Queue_ErrorPolicy->call()   /sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php:38
  9   CRM_Queue_Page_AJAX::runNext()  /sites/all/modules/civicrm/CRM/Core/Invoke.php:292
  10  CRM_Core_Invoke::runItem()  /sites/all/modules/civicrm/CRM/Core/Invoke.php:69
  11  CRM_Core_Invoke::_invoke()  /sites/all/modules/civicrm/CRM/Core/Invoke.php:36
  12  CRM_Core_Invoke::invoke()   /sites/all/modules/civicrm/drupal/civicrm.module:470
  13  civicrm_invoke()    /includes/menu.inc:527
  14  menu_execute_active_handler()   /index.php:21
  15  {main}  
  
  I went to the extension page and disabled this extension and reran the upgrade.  So far OK.  I have 3 sites and double-checked before upgrading the next one that this extension was not there either on the extension page nor in the civicrm_extension table.  Then I did the upgrade.  Same error.  It looks like the upgrade added this extension to civicrm_extensions (the id column is the highest number) .  So it looks like the upgrade script adds this extension and then complains that the code is not present.
  Aside from the inconvenience, can I expect any issues?
  
  **Tags:** upgrade, extension
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-08-15. Score: 0
  
  See <https://github.com/civicrm/civicrm-core/pull/30872>. It will be fixed in the next release.
  
  
  ---
  
  