[BUG]: Install errors (JCB5.1.1-alpha 4 and 5.1.0) #1221

Closed
opened 2025-05-07 21:58:33 +00:00 by cpaschen · 2 comments

What Happened?

Create a new component with JCB5.1.1-alph 4 on J5.3.0.
Add several admin views and site views (with custom gets).
Manually copying from a working JCB 3.x version (manually create fields, copy paste details from the JCB3 version into the JCB5 version).
Compile the component in JCB5.1.1.
I get the notice:

Dynamic folder(s) were detected.
A method (moveFolders) was added to the install ComponentnameInstallerScript.php of this package to insure that the folder(s) are copied into the correct place when this component is installed!

even though I didn't add/configure any dynamic folders.

But the compile completes successfully.

However, upon the installing I get:

Warning
JInstaller: :Install: File does not exist [ROOT][TMP]/install_681bd1bd32791/site/layouts
Component Install: Failed to copy site files.
danger
Error installing component
Could not install component!

This is my first attempt to create a component with JCB 5.x, and I have no idea how to figure out why this error is happening.

I also tried to compile in JCB 5.1.0 with the same results.

After removing all the site views and further testing, it appears that the problem happens whenever I add any custom site views to the component. But not sure how to make those work properly in JCB5.x.

The Demo component compiles fine, so it's obviously something within the

Steps to reproduce the Bug

(See above)

Which Joomla version are you compiling in?

5.3.0

Which PHP version are you compiling in?

8.3.20

Which Joomla versions are you targeting?

5.3.0

Which PHP version are you targeting?

8.3.20

Which Web server is JCB running on?

Apache/2.4.52 (debian) (running on octojoom)

Which Relational Database is JCB running on?

11.7.2-MariaDB

Which OS is JCB running on?

Kubuntu running via docker (Joomla 5.3.0 docker image)

Which JCB version are you using?

5.1.1 - alpha 4 (and 5.1.0 tested same)

Where in JCB did this issue occur?

Installation of a component

On which browsers did you encounter the issue?

Firefox

Additional Comments

No response

### What Happened? Create a new component with JCB5.1.1-alph 4 on J5.3.0. Add several admin views and site views (with custom gets). Manually copying from a working JCB 3.x version (manually create fields, copy paste details from the JCB3 version into the JCB5 version). Compile the component in JCB5.1.1. I get the notice: Dynamic folder(s) were detected. A method (moveFolders) was added to the install ComponentnameInstallerScript.php of this package to insure that the folder(s) are copied into the correct place when this component is installed! even though I didn't add/configure any dynamic folders. But the compile completes successfully. However, upon the installing I get: Warning JInstaller: :Install: File does not exist [ROOT][TMP]/install_681bd1bd32791/site/layouts Component Install: Failed to copy site files. danger Error installing component Could not install component! This is my first attempt to create a component with JCB 5.x, and I have no idea how to figure out why this error is happening. I also tried to compile in JCB 5.1.0 with the same results. After removing all the site views and further testing, it appears that the problem happens whenever I add any custom site views to the component. But not sure how to make those work properly in JCB5.x. The Demo component compiles fine, so it's obviously something within the ### Steps to reproduce the Bug (See above) ### Which Joomla version are you compiling in? 5.3.0 ### Which PHP version are you compiling in? 8.3.20 ### Which Joomla versions are you targeting? 5.3.0 ### Which PHP version are you targeting? 8.3.20 ### Which Web server is JCB running on? Apache/2.4.52 (debian) (running on octojoom) ### Which Relational Database is JCB running on? 11.7.2-MariaDB ### Which OS is JCB running on? Kubuntu running via docker (Joomla 5.3.0 docker image) ### Which JCB version are you using? 5.1.1 - alpha 4 (and 5.1.0 tested same) ### Where in JCB did this issue occur? Installation of a component ### On which browsers did you encounter the issue? Firefox ### Additional Comments _No response_
cpaschen added the
Bug
label 2025-05-07 21:58:33 +00:00
Owner

This issue has already been reported several times, have you read over those issues?

This is still the best answer:
#1132 (comment)

Our focus has been on other areas in JCB, and so this is still not been resolved, PR's are welcome.

This issue has already been reported several times, have you read over those issues? - https://git.vdm.dev/joomla/Component-Builder/issues/1132 - https://git.vdm.dev/joomla/Component-Builder/issues/1099 - https://git.vdm.dev/joomla/Component-Builder/issues/1064 - https://git.vdm.dev/joomla/Component-Builder/issues/1063 This is still the best answer: https://git.vdm.dev/joomla/Component-Builder/issues/1132#issuecomment-32243 Our focus has been on other areas in JCB, and so this is still not been resolved, PR's are welcome.
Author

Thanks. I didn't get those when I tried to search (not really understanding exactly what this was caused by).
I'll read through those and follow-up in one of those if needed.

Thanks. I didn't get those when I tried to search (not really understanding exactly what this was caused by). I'll read through those and follow-up in one of those if needed.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1221
No description provided.