No Code Attached Yet
avatar BrainforgeUK
BrainforgeUK
27 Sep 2022

Steps to reproduce the issue

Install module and then uninstall it.

Expected result

Succesfull installation.

Actual result

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

System information (as much as possible)

PHP 8.1

Additional comments

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.

Votes

# of Users Experiencing Issue
0/1
Average Importance Score
3.00

avatar BrainforgeUK BrainforgeUK - open - 27 Sep 2022
avatar BrainforgeUK BrainforgeUK - change - 27 Sep 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 27 Sep 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Sep 2022
avatar brianteeman
brianteeman - comment - 27 Sep 2022

Still com_installer should detect and handle such errors more gracefully.

Suggestions welcome?

avatar AByakugans
AByakugans - comment - 1 Oct 2022

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?

avatar BrainforgeUK
BrainforgeUK - comment - 1 Oct 2022

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.

avatar AByakugans
AByakugans - comment - 2 Oct 2022

So how can we fix that in already installed modules for instance? Can you give us step-by-step workaround? Thx

avatar BrainforgeUK
BrainforgeUK - comment - 2 Oct 2022

I have made a change and submitted a pull request..

#38891

avatar richard67 richard67 - change - 2 Oct 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-10-02 17:17:27
Closed_By richard67
avatar richard67 richard67 - close - 2 Oct 2022
avatar richard67
richard67 - comment - 2 Oct 2022

I have made a change and submitted a pull request..

#38891

@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.

Add a Comment

Login with GitHub to post a comment