No Code Attached Yet
avatar Denitz
Denitz
27 Aug 2021

Steps to reproduce the issue

Disable any component/module/plugin in extension manager

Expected result

The extension namespaces are removed from /administrator/cache/autoload_psr4.php

Actual result

Namespaces are kept

System information (as much as possible)

Joomla 4.0.2

Additional comments

Same if delete autoload file: it's re-created but includes the namespaces of disabled extensions.

avatar Denitz Denitz - open - 27 Aug 2021
avatar joomla-cms-bot joomla-cms-bot - change - 27 Aug 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Aug 2021
avatar Denitz Denitz - change - 10 Sep 2021
Title
[4] Namespaces of disabled extensions are still registered
[4.0] Namespaces of disabled extensions are still registered
avatar Denitz Denitz - edited - 10 Sep 2021
avatar Denitz
Denitz - comment - 10 Sep 2021

Actually it's a problem because /administrator/cache/autoload_psr4.php is auto-created before the app initialization , is it logical to use the Factory::getDbo() in JNamespacePsr4Map class?

We can query the database and load the list of enabled extensions.

avatar PhilETaylor
PhilETaylor - comment - 10 Sep 2021

You are only Disabling the extension, not uninstalling it right?

Just because something is "disabled" in extension manager, doesnt mean it will not contain code that can and will run...

I would say this is normal and expected behaviour.

avatar Denitz Denitz - close - 10 Sep 2021
avatar Denitz
Denitz - comment - 10 Sep 2021

Sounds good for me now.

avatar Denitz Denitz - change - 10 Sep 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-09-10 11:21:19
Closed_By Denitz

Add a Comment

Login with GitHub to post a comment