Error when compiling with module that has a custom get #1133

Open
opened 2024-05-16 22:30:42 +00:00 by kommid · 0 comments
Member

Steps to reproduce the issue

Compile a component with module, that has a cutom get (getCustom(s)). The compiler throws an error

Expected result

component and module are build

Actual result

compiler exits with error Call to a member function get() on null
libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Joomlamodule/Data.php:449
I tried it with dynamic gets of type getCustoms and getCustom both render the same result, but when I remove the dynamic get from my module, everything compiles fine.
I had set up my module as explained in the video here https://www.youtube.com/watch?v=lriWW3Uzyc8 and everything was fine, but after I updated JCB (skipped many versions) it stopped working. Did I miss any changes on how this must be done?
As a workaround I guess, I can just query the database somewhere in my module helper or somewhere elese, but I think, this wouldn't be the way it's intended

System information (as much as possible)

  • OS Name & Version: Debian 11
  • MySql Version: 10.5.23-MariaDB-0+deb11u1
  • Apache Version: 2.4
  • PHP Version: 8.0.30
  • Joomla Version: 3.10.12
  • JCB Version: 3.2.1
  • Browser: Firefox

Additional comments

### Steps to reproduce the issue Compile a component with module, that has a cutom get (getCustom(s)). The compiler throws an error ### Expected result component and module are build ### Actual result compiler exits with error Call to a member function get() on null libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Joomlamodule/Data.php:449 I tried it with dynamic gets of type getCustoms and getCustom both render the same result, but when I remove the dynamic get from my module, everything compiles fine. I had set up my module as explained in the video here https://www.youtube.com/watch?v=lriWW3Uzyc8 and everything was fine, but after I updated JCB (skipped many versions) it stopped working. Did I miss any changes on how this must be done? As a workaround I guess, I can just query the database somewhere in my module helper or somewhere elese, but I think, this wouldn't be the way it's intended ### System information (as much as possible) - OS Name & Version: Debian 11 - MySql Version: 10.5.23-MariaDB-0+deb11u1 - Apache Version: 2.4 - PHP Version: 8.0.30 - Joomla Version: 3.10.12 - JCB Version: 3.2.1 - Browser: Firefox ### Additional comments
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#1133
No description provided.