No Code Attached Yet bug
avatar joeforjoomla
joeforjoomla
13 Sep 2021

It happened to a client of mine that installing a namespaced extension, the file autoload_psr4.php did not update including the namespacing of the newly installed extension.

To update the autoload_psr4.php including namespaces of the installed extension, it was needed to delete it and allow Joomla to create it again from scratch.

Obviously an extension doesn't work if its namespaces in autoload_psr4.php are not added.

Has someone any idea about how this could happen?

avatar joeforjoomla joeforjoomla - open - 13 Sep 2021
avatar joomla-cms-bot joomla-cms-bot - change - 13 Sep 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Sep 2021
avatar Fedik
Fedik - comment - 13 Sep 2021

It may happen when plugin extension/namespacemap is disabled

avatar joeforjoomla
joeforjoomla - comment - 13 Sep 2021

@Fedik you got the spot!

I've logged in on my client's website and indeed i've found the plugin disabled.

Would not be a good idea to prevent this to happen? Warn the user when unpublishing the plugin or lock it?

image

avatar brianteeman
brianteeman - comment - 13 Sep 2021

iirc I raised it before that this is a plugin that should not be a plugin and that it should not be possible to disable it

avatar joeforjoomla
joeforjoomla - comment - 13 Sep 2021

@brianteeman you are totally right. Less than 1 month that J4 is out and problems with this issue are already started. I hope that this will be changed in 4.0.4

avatar brianteeman
brianteeman - comment - 13 Sep 2021

I hope that this will be changed in 4.0.4

If you know how to then a PR would be most welcome.

avatar joeforjoomla
joeforjoomla - comment - 13 Sep 2021

I'm available to submit a PR about this matter.
@brianteeman can you say me what do you prefer as a solution? Preventing that plugin to be disabled or inform the user with a message about potential problems if disabled?

avatar brianteeman
brianteeman - comment - 13 Sep 2021

Not sure I have a preference myself. Just one thing to be aware of is that if you are going down the message route (as done with the authentication plugins) then you dont see the message if you disable the plugin from the plugin manager list and you only see it if you open the plugin and disable it there.

Should it even be a plugin?

avatar joeforjoomla
joeforjoomla - comment - 13 Sep 2021

You right. Probably it was better if it wasn't designed as a plugin.

avatar joeforjoomla
joeforjoomla - comment - 13 Sep 2021

Perhaps something like the 'lock' icon for core extensions.
image

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 22 Feb 2023
avatar brianteeman
brianteeman - comment - 27 Feb 2023

Perhaps something like the 'lock' icon for core extensions.

That;s only in the extension manager to prevent it being uninstalled. It doesn't prevent it being disabled

Add a Comment

Login with GitHub to post a comment