[BUG]: Linking a (any) plugin to a component makes the component uncompilable #1173

Closed
opened 2024-09-16 18:52:45 +00:00 by Martin Kopp · 1 comment
Member

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

### 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_
Martin Kopp added the
Bug
label 2024-09-16 18:52:45 +00:00
Author
Member

Has been solved by assigning the correct plugin group to the plugin. Many thanks to Llewellyn

Has been solved by assigning the correct plugin group to the plugin. Many thanks to Llewellyn
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1173
No description provided.