Too few arguments to function PlgExtensionComponentbuilderHeadersCompiler::jcb_ce_onBeforeGetComponentData(), 0 passed in[...]/event/event.php on line 70 and exactly 2 expected [...]componentbuilderheaderscompiler.php:486 #1129
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#1129
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?
I need to update an older component, that was built with JCB 3.1.19 for J!4/5, So I updated JCB to 3.2.1 and compiled my component.
Compilation failed with error: Too few arguments to function PlgExtensionComponentbuilderHeadersCompiler::jcb_ce_onBeforeGetComponentData(), 0 passed in /var/www/clients/client2/web56/web/libraries/joomla/event/event.php on line 70 and exactly 2 expected
/var/www/clients/client2/web56/web/plugins/extension/componentbuilderheaderscompiler/componentbuilderheaderscompiler.php:486
see screenshot...
Since I skipped quite some JCB versions, I rolled back to 3.1.19 and updated JCB one by one, compiling after every update. The error starts to occur after the update from 3..1.28 to 3.2.0, maybe this helps pinning down the problem.
Updating JCB further to 3.2.1 doesn't change anything
Steps to reproduce the issue
update a site with jcb < 3.1.20 and a component developed with this version to jcb 3.2.0 and compile
Expected result
component compiles normally, as it did prior to the update to 3.2.0
Actual result
Error: Too few arguments to function PlgExtensionComponentbuilderHeadersCompiler::jcb_ce_onBeforeGetComponentData(), 0 passed in /var/www/clients/client2/web56/web/libraries/joomla/event/event.php on line 70 and exactly 2 expected
/var/www/clients/client2/web56/web/plugins/extension/componentbuilderheaderscompiler/componentbuilderheaderscompiler.php:486
System information (as much as possible)
Additional comments
I'm quite at a loss here, since I don't even have a clue, what JCB is supposed to do, where the error occurs. Any help resolving this is highly appreciated
Sounds to me that your plugins are not up to date. I’d try and install the package from this link again and try compiling again; https://git.vdm.dev/joomla/pkg-component-builder/archive/v3.2.1.tar.gz
Thank you so much Tom, this did the trick!