[BUG]: Linking a (any) plugin to a component makes the component uncompilable #1173
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#1173
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What Happened?
Linked a plugin to a component. Then Compile, results in the error:
An error has occurred.
An error has occurred.
0 VDM\Joomla\Utilities\String\PluginHelper::safeLangPrefix(): Argument #2 ($group) must be of type string, null given, called in /var/www/clients/client2/web37/web/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Joomlaplugin/JoomlaFive/Data.php on line 344
Call Stack
Function Location
1 () JROOT/libraries/vendor_jcb/VDM.Joomla/src/Utilities/String/PluginHelper.php:101
2 VDM\Joomla\Utilities\String\PluginHelper::safeLangPrefix() JROOT/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Joomlaplugin/JoomlaFive/Data.php:344
3 VDM\Joomla\Componentbuilder\Compiler\Joomlaplugin\JoomlaFive\Data->set() JROOT/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Model/Joomlaplugins.php:71
4 VDM\Joomla\Componentbuilder\Compiler\Model\Joomlaplugins->VDM\Joomla\Componentbuilder\Compiler\Model{closure}()
5 array_map() JROOT/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Model/Joomlaplugins.php:76
6 VDM\Joomla\Componentbuilder\Compiler\Model\Joomlaplugins->set() JROOT/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Component/Data.php:880
7 VDM\Joomla\Componentbuilder\Compiler\Component\Data->get() JROOT/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Component.php:38
Steps to reproduce the Bug
Link a plugin to a component
Which Joomla version are you compiling in?
5.1.14
Which PHP version are you compiling in?
8.1.27
Which Joomla versions are you targeting?
5
Which PHP version are you targeting?
8.1
Which Web server is JCB running on?
Apache
Which Relational Database is JCB running on?
10.6.18-MariaDB-0ubuntu0.22.04.1
Which OS is JCB running on?
ubuntu 22.04
Which JCB version are you using?
5.0.3-alpha3
Where in JCB did this issue occur?
Compilation of a component
On which browsers did you encounter the issue?
Chrome
Additional Comments
No response
Has been solved by assigning the correct plugin group to the plugin. Many thanks to Llewellyn