CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#12587] can't uninstall modules running php 8.1

avatar
Created By: Ludger Merkens (lume)
Date Submitted: Mon Dec 12 09:11:55 -0500 2022

Assigned To: CMS Made Simple Foundation (cmsmsfoundation)
Version: 2.2.16
CMSMS Version: 2.2.16
Severity: Major
Resolution: Accepted
State: Open
Summary:
can't uninstall modules running php 8.1
Detailed Description:
when trying to uninstall a module the following error occurs:

[12-Dec-2022 14:40:48 Europe/Berlin] PHP Fatal error:  Uncaught TypeError:
count(): Argument #1 ($value) must be of type Countable|array, null given in
/var/www/www_cms-merkens_de/dev/lib/classes/class.moduleoperations.inc.php:933
Stack trace:
#0
/var/www/www_cms-merkens_de/dev/modules/ModuleManager/action.local_uninstall.php(30):
ModuleOperations->UninstallModule()
#1 /var/www/www_cms-merkens_de/dev/lib/classes/class.CMSModule.php(1403):
include('...')
#2
/var/www/www_cms-merkens_de/dev/modules/ModuleManager/ModuleManager.module.php(90):
CMSModule->DoAction()
#3 /var/www/www_cms-merkens_de/dev/lib/classes/class.CMSModule.php(1479):
ModuleManager->DoAction()
#4 /var/www/www_cms-merkens_de/dev/admin/moduleinterface.php(74):
CMSModule->DoActionBase()
#5 {main}
thrown in
/var/www/www_cms-merkens_de/dev/lib/classes/class.moduleoperations.inc.php on
line 933


Error occurs with menumanager, as well as with ECB2.
Uninstalling either module works fine running php 7.4

--- Ludger


History

Updates

Updated: 2023-05-31 20:00
resolution_id: 5 => 6

Updated: 2022-12-12 09:12
resolution_id: => 5
assigned_to_id: 100 => 20458