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

Closed
opened 2024-05-14 15:31:27 +00:00 by kommid · 2 comments
Member

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)

  • OS Name & Version: Debian 5.10.209-2 (2024-01-31) x86_64
  • MySql Version: 10.5.23-MariaDB-0+deb11u1
  • Apache Version: Apache 2.4
  • PHP Version: 8.0.30
  • Joomla Version: 3.10.11
  • JCB Version: 3.2.0
  • Browser: Firefox

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

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) - OS Name & Version: Debian 5.10.209-2 (2024-01-31) x86_64 - MySql Version: 10.5.23-MariaDB-0+deb11u1 - Apache Version: Apache 2.4 - PHP Version: 8.0.30 - Joomla Version: 3.10.11 - JCB Version: 3.2.0 - Browser: Firefox ### 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

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
Author
Member

Thank you so much Tom, this did the trick!

Thank you so much Tom, this did the trick!
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#1129
No description provided.