Install module and then uninstall it.
Succesfull installation.
Get error Undefined constant "JPATH_"
1 () JROOT\libraries\src\Installer\Adapter\ModuleAdapter.php:370
2 constant() JROOT\libraries\src\Installer\Adapter\ModuleAdapter.php:370
3 Joomla\CMS\Installer\Adapter\ModuleAdapter->loadLanguage() JROOT\libraries\src\Installer\Adapter\ModuleAdapter.php:525
4 Joomla\CMS\Installer\Adapter\ModuleAdapter->setupUninstall() JROOT\libraries\src\Installer\InstallerAdapter.php:1150
5 Joomla\CMS\Installer\InstallerAdapter->uninstall() JROOT\libraries\src\Installer\Installer.php:875
6 Joomla\CMS\Installer\Installer->uninstall() JROOT\administrator\components\com_installer\src\Model\ManageModel.php:262
PHP 8.1
Happens with a number of modules from the same developer, guess its likely to be a problem with their manifest but not investigated further.
Still com_installer should detect and handle such errors more gracefully.
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
I have the same problem with uninstallation of several modules like AcyMailing or VirtueMart 4+ I am on Joomla 4.2.3 what happened in the latest updates in the core?
Tracked it down to needing client="site" in the manifest file.
Some older modules from 3rd parties don't include that
<extension type="module" client="site" method="upgrade" version="2.5">
Still com_installer should handle such issues more gracefully.
No time at the moment to make such changes.
So how can we fix that in already installed modules for instance? Can you give us step-by-step workaround? Thx
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-10-02 17:17:27 |
Closed_By | ⇒ | richard67 |
I have made a change and submitted a pull request..
@BrainforgeUK You could have closed your issue because we close zutuest as soon as there is a PR to solve it. Please remember next time. Closing now.
Suggestions welcome?