Answers.Body: <p>These bugs occur when you forget to delete the CiviCRM directory before replacing it with the new one. The Joomla installer, unfortunately, does not do this for you, so an obsolete file such as <code>CRM/Core/Permission/Drupal6.php</code> which has been deleted in the new version of CiviCRM will stick around on your server, causing problems.</p>
  <p>You must <em>delete</em> the entire <code>civicrm</code> directory and replace it with the new one, to make sure old files are properly deleted.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-23T13:55:54.877Z
Answers.LastActivityDate: 2023-10-23T13:55:54.877Z
Answers.UserDisplayName: Coleman
Answers.Body: <p>Thank you Colman for your answer. But how to do to not loose :</p>
  <ul>
  <li>customizations ?</li>
  <li>extension ?</li>
  </ul>
  <p>Of course, we have to keep both settings files.</p>
  <p>And in Joomla!, you have to think do delete <code>civicrm</code> in component, in administrator/component and in media. Is there another location to delete <code>civicrm</code> ?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-23T16:31:49.553Z
Answers.Text: Hi not in media. as media folder has extensions. only delered admin component and it work
Answers.UserDisplayName: JoomPS
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-24T08:31:46.653Z
Answers.Text: Thank you JoomPS. If I delete admin component folder, I loose plugins and extensions ?!?
Answers.UserDisplayName: Alain Rihs
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-12-16T23:20:39.037Z
Answers.Text: That's it : in /administrator/components/com_civicrm/civicrm/ i find an ext subfolder and some plugins are missing after deleting components/com_civicrm folders. I don't know why I have /administrator/components/com_civicrm/civicrm/ext/ and /media/civicrm/ext/
  After moving ext subfolder, I delete both components/com_civicrm and then upgrade CiviCRM and reinstall l10n and everything is allright.
Answers.UserDisplayName: Alain Rihs
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-20T16:05:12.667Z
Answers.LastActivityDate: 2023-11-20T16:05:12.667Z
Answers.UserDisplayName: Alain Rihs
Answers.Body: <p>Only copy setting.php in Joomla admin civi folder.
  do not use older folder as it has the older file not removed in the udpates.
  the extensions are in the media folder so no change there.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-12-03T07:05:01.327Z
Answers.LastActivityDate: 2023-12-03T07:05:01.327Z
Answers.UserDisplayName: JoomPS
Body: <p>On update to civi 5.66.0 on Joomla 4
  installation fine on DB upgrade it display error CRM_Core_Permission_Drupal6
  Compile Error: Cannot make non static method CRM_Core_Permission_Base::getModulePermissions() static in class CRM_Core_Permission_Drupal6
  /administrator/components/com_civicrm/civicrm/CRM/Core/Permission/Drupal6.php:195
  <a href="https://i.sstatic.net/qHRvH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/qHRvH.png" alt="enter image description here" /></a></p>
  <p>any idea is it bug or any files need to be removed.
  Joomla 4.3
  error remain same on PHP 7.4 and PHP 8.1, 8.0</p>
  
Tags: <upgrade><joomla>
Title: DB upgrade Error on CIVI CRM 5.66.0 Joomla 4
ThreadText: # DB upgrade Error on CIVI CRM 5.66.0 Joomla 4
  
  (Asked by: username_0 on 2023-10-23)
  
  On update to civi 5.66.0 on Joomla 4
  installation fine on DB upgrade it display error CRM\_Core\_Permission\_Drupal6
  Compile Error: Cannot make non static method CRM\_Core\_Permission\_Base::getModulePermissions() static in class CRM\_Core\_Permission\_Drupal6
  /administrator/components/com\_civicrm/civicrm/CRM/Core/Permission/Drupal6.php:195
  [![enter image description here](https://i.sstatic.net/qHRvH.png)](https://i.sstatic.net/qHRvH.png)
  
  any idea is it bug or any files need to be removed.
  Joomla 4.3
  error remain same on PHP 7.4 and PHP 8.1, 8.0
  
  **Tags:** upgrade, joomla
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2023-10-23. Score: 1
  
  These bugs occur when you forget to delete the CiviCRM directory before replacing it with the new one. The Joomla installer, unfortunately, does not do this for you, so an obsolete file such as `CRM/Core/Permission/Drupal6.php` which has been deleted in the new version of CiviCRM will stick around on your server, causing problems.
  
  You must *delete* the entire `civicrm` directory and replace it with the new one, to make sure old files are properly deleted.
  
  
  ---
  
  ### Answer by username_2 on 2023-11-20. Score: 0
  
  Thank you Colman for your answer. But how to do to not loose :
  
  * customizations ?
  * extension ?
  
  Of course, we have to keep both settings files.
  
  And in Joomla!, you have to think do delete `civicrm` in component, in administrator/component and in media. Is there another location to delete `civicrm` ?
  
  > **Comments:**
  > **username_0**: Hi not in media. as media folder has extensions. only delered admin component and it work  
  > **username_2**: Thank you username_0. If I delete admin component folder, I loose plugins and extensions ?!?  
  > **username_2**: That's it : in /administrator/components/com_civicrm/civicrm/ i find an ext subfolder and some plugins are missing after deleting components/com_civicrm folders. I don't know why I have /administrator/components/com_civicrm/civicrm/ext/ and /media/civicrm/ext/ After moving ext subfolder, I delete both components/com_civicrm and then upgrade CiviCRM and reinstall l10n and everything is allright.  
  
  ---
  
  ### Answer by username_0 on 2023-12-03. Score: 0
  
  Only copy setting.php in Joomla admin civi folder.
  do not use older folder as it has the older file not removed in the udpates.
  the extensions are in the media folder so no change there.
  
  
  ---
  
  