[BUG]: Class Headers for Site Helper not compiled into site helper file #1159

Open
opened 2024-08-02 13:16:21 +00:00 by kommid · 2 comments
Member

What Happened?

In my Component's site helper file I need to add some use statements, so I added them in JCB -> Joomla Components -> my component -> Class Headers tab -> Site Helper Header
This worked fine in JCB3 but after migrating to JCB5 these class headers are not compiled into my sites' helper file anymore

Steps to reproduce the Bug

Add some code to JCB -> Joomla Components -> my component -> Class Headers tab -> Site Helper Header, save and compile the component. Download zipfile and check site/src/Helper/[Component]Helper.php to see, that the header class entries you made in JCB as stated above are missing

Which Joomla version are you compiling in?

5.1.2

Which PHP version are you compiling in?

8.3

Which Joomla versions are you targeting?

5.1.2

Which PHP version are you targeting?

8.3

Which Web server is JCB running on?

Apache 2.4

Which Relational Database is JCB running on?

10.5.23-MariaDB-0+deb11u1

Which OS is JCB running on?

Debian 11

Which JCB version are you using?

5.0.2-beta2

Where in JCB did this issue occur?

Compilation of a component

On which browsers did you encounter the issue?

Firefox

Additional Comments

No response

### What Happened? In my Component's site helper file I need to add some use statements, so I added them in JCB -> Joomla Components -> my component -> Class Headers tab -> Site Helper Header This worked fine in JCB3 but after migrating to JCB5 these class headers are not compiled into my sites' helper file anymore ### Steps to reproduce the Bug Add some code to JCB -> Joomla Components -> my component -> Class Headers tab -> Site Helper Header, save and compile the component. Download zipfile and check site/src/Helper/[[[Component]]]Helper.php to see, that the header class entries you made in JCB as stated above are missing ### Which Joomla version are you compiling in? 5.1.2 ### Which PHP version are you compiling in? 8.3 ### Which Joomla versions are you targeting? 5.1.2 ### Which PHP version are you targeting? 8.3 ### Which Web server is JCB running on? Apache 2.4 ### Which Relational Database is JCB running on? 10.5.23-MariaDB-0+deb11u1 ### Which OS is JCB running on? Debian 11 ### Which JCB version are you using? 5.0.2-beta2 ### Where in JCB did this issue occur? Compilation of a component ### On which browsers did you encounter the issue? Firefox ### Additional Comments _No response_
kommid added the
Bug
label 2024-08-02 13:16:21 +00:00
Owner

Seems like the legacy mode for plugins is not working for custom events, and so I have started with the refactoring of the plugins toward native Joomla 5+ plugin Architecture. This is a large task... and will delay the stable release of JCB.

Seems like the legacy mode for plugins is not working for custom events, and so I have started with the refactoring of the plugins toward native Joomla 5+ plugin Architecture. This is a large task... and will delay the stable release of JCB.
Owner

The latest stable release should have resolved this issue. Let us know!

The latest [stable release](https://git.vdm.dev/joomla/pkg-component-builder/releases) should have resolved this issue. Let us know!
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#1159
No description provided.