[BUG]: Layouts added to metadata.xml even when no layouts are in use #1099

Open
opened 2024-03-27 15:55:24 +00:00 by AlexEdimensionz · 2 comments

What Happened?

After compiling the extension, installation fails with [ROOT][TMP]/install_6604243101b97/site/layouts

This happens when there are now "Layouts" in use in the component.

The compiler automatically adds <folder>layout</folder> to the XML even when it's not needed.

Removing the line from the XML fixes the issue and the component installs properly

Adding a dummy layout to the component also fixes the issue

Steps to reproduce the Bug

As described

Which Joomla version are you compiling in?

3

Which PHP version are you compiling in?

8.2

Which Joomla versions are you targeting?

v5.0.3

Which PHP version are you targeting?

8.2

Which Web server is JCB running on?

Apache 2.4

Which Relational Database is JCB running on?

MySQL 8.0

Which OS is JCB running on?

Ubuntu 23.10

Which JCB version are you using?

3.2.0

Which Joomla version is JCB installed on?

Joomla 3

Where in JCB did this issue occur?

Compilation of a component

On which browsers did you encounter the issue?

Firefox, Chrome, Microsoft Edge

Additional Comments

No response

### What Happened? After compiling the extension, installation fails with `[ROOT][TMP]/install_6604243101b97/site/layouts` This happens when there are now "Layouts" in use in the component. The compiler automatically adds `<folder>layout</folder>` to the XML even when it's not needed. Removing the line from the XML fixes the issue and the component installs properly Adding a dummy layout to the component also fixes the issue ### Steps to reproduce the Bug As described ### Which Joomla version are you compiling in? 3 ### Which PHP version are you compiling in? 8.2 ### Which Joomla versions are you targeting? v5.0.3 ### Which PHP version are you targeting? 8.2 ### Which Web server is JCB running on? Apache 2.4 ### Which Relational Database is JCB running on? MySQL 8.0 ### Which OS is JCB running on? Ubuntu 23.10 ### Which JCB version are you using? 3.2.0 ### Which Joomla version is JCB installed on? Joomla 3 ### Where in JCB did this issue occur? Compilation of a component ### On which browsers did you encounter the issue? Firefox, Chrome, Microsoft Edge ### Additional Comments _No response_
AlexEdimensionz added the
Bug
label 2024-03-27 15:55:24 +00:00
Owner

I am aware of this issue... not yet sure how to resolve it. But we will look at it...

I am aware of this issue... not yet sure how to resolve it. But we will look at it...
Owner

As you can see there has been several issues about this:

#1063
#1064

As you can see there has been several issues about this: https://git.vdm.dev/joomla/Component-Builder/issues/1063 https://git.vdm.dev/joomla/Component-Builder/issues/1064
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#1099
No description provided.