You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While creating new dev env I stumbled upon problem... while creating symlinks from my local repo dir to different directories inside joomla (components/plugins) I got this error for many plugins, i.e. show_attachments
if (!file_exists(JPATH_ADMINISTRATOR . '/components/com_attachments/attachments.xml')) {
// Exit quietly if the attachments component has been uninstalled or deleted
return;
}
With quick test I have found that this code should be moved to provider.php file with same result and no error like this above.
But this code is crude, rather than testing missing/existance of a file it should test if component is enabled, and give some response to user that something is wrong with component.
I lost few days to debug this issue - yes its silly to not found this - but I'm not in a mood to provide PR for this problem ATM, I just need some brake from this :/
@yild I don't think you can avoid such errors if the files are not well placed in the cms tree. I started removing those checks that where present before using namespaces for the plugins and adding friendlier messaes. The best place to look for things that have broken when such messages appear is at the files that appear in the backtrace that joomla presents.
Activity
JLTRY commentedon Jul 23, 2025
I am in vacation this week
I came into same issue
With development env you need also a link into admin folder pointing to xml
parapente commentedon Jul 25, 2025
@yild I don't think you can avoid such errors if the files are not well placed in the cms tree. I started removing those checks that where present before using namespaces for the plugins and adding friendlier messaes. The best place to look for things that have broken when such messages appear is at the files that appear in the backtrace that joomla presents.