Missing site files when installing build component in jml.5.0.3 #1063

Closed
opened 2024-02-27 20:12:01 +00:00 by jjs · 6 comments

Steps to reproduce the issue

Compile for joomla4/5 (on Linux Ubuntu, Joomla 3.10.12)

Expected result

Installing ok in fresh Joomla 5.0.3 (on Windows10, Apache/2.4.48 (Win64) OpenSSL/1.1.1l PHP/8.2.11 )

Actual result

JInstaller: :Install: File does not exist [ROOT]\tmp\install_65de3ea106377\site\layouts
Component Install: Failed to copy site files.

Checked on a live site too (which of course is not very wise but ok) to see if it was a rights issue or not. Same behaviour.

System information (as much as possible)

see above

  • JCB Version: 3.1.39
  • Browser: Firefox

Additional comments

Compiles ok, installs OK on joomla 3 (dev) running in Linux when compiled for joomla 3.
Have not checked yet a Joomla 3 build in another Joomla 3 setup. Will try that too.

update build for jml3 on Linux Ubuntu ---> Installed in fresh jml3.10.12 on win10 with Xampp and php 8.0.28-->Installs correct.

Note: the xampp on win10 is the same which I use for jml3 and for jml5. I only change the name of the php folder and restart apache.
Switching 2 php versions on windows is easier than on Linux.

### Steps to reproduce the issue Compile for joomla4/5 (on Linux Ubuntu, Joomla 3.10.12) ### Expected result Installing ok in fresh Joomla 5.0.3 (on Windows10, Apache/2.4.48 (Win64) OpenSSL/1.1.1l PHP/8.2.11 ) ### Actual result JInstaller: :Install: File does not exist [ROOT]\tmp\install_65de3ea106377\site\layouts Component Install: Failed to copy site files. Checked on a live site too (which of course is not very wise but ok) to see if it was a rights issue or not. Same behaviour. ### System information (as much as possible) see above - JCB Version: 3.1.39 - Browser: Firefox ### Additional comments Compiles ok, installs OK on joomla 3 (dev) running in Linux when compiled for joomla 3. Have not checked yet a Joomla 3 build in another Joomla 3 setup. Will try that too. ***update*** build for jml3 on Linux Ubuntu ---> Installed in fresh jml3.10.12 on win10 with Xampp and php 8.0.28-->Installs correct. Note: the xampp on win10 is the same which I use for jml3 and for jml5. I only change the name of the php folder and restart apache. Switching 2 php versions on windows is easier than on Linux.
Owner

I am not sure what really is the cause of your issue.

I have to state that the behavior seems related to the environment, and that mostly because I can't in the Docker environment duplicate the issue.

All the JCB development and deployment is done with OctoJoom in side the official Joomla docker environment.

When working with JCB outside of this environment please check the install script of the docker image to ensure you have all the needed PHP things in-place. Basically this docker file shows you all the PHP and other dependencies we install for Joomla to work as expected. I have been developing JCB in the environment as the standard all should follow.

In short that means that only if your in the same environment will I be able to duplicate the issue. Also note that the docker environment has different PHP setups.

I am not sure what really is the cause of your issue. I have to state that the behavior seems related to the environment, and that mostly because I can't in the **Docker** environment duplicate the issue. All the JCB *development* and *deployment* is done with [OctoJoom](https://git.vdm.dev/octoleo/octojoom) in side the official Joomla docker environment. When working with JCB outside of this environment please check the [install script of the docker image](https://git.vdm.dev/joomla/docker/src/branch/master/5.0/php8.2/apache/Dockerfile) to ensure you have all the needed PHP things in-place. Basically this [docker file](https://git.vdm.dev/joomla/docker/src/branch/master/5.0/php8.2/apache/Dockerfile) shows you all the PHP and other dependencies we install for Joomla to work as expected. I have been developing JCB in the environment as the standard all should follow. In short that means that only if your in the same environment will I be able to duplicate the issue. Also note that the docker environment has [different PHP setups](https://git.vdm.dev/joomla/docker/src/branch/master/versions-helper.json).
Author

Ok, it seems the build zips contain all admin and site files.
So I'm not sure what's the cullprit, but must be something in the dev environment as it also does not install on the Joomla website hosted by a pro webhost.
I'm looking into that docker, never worked with that before so.
Installed octoom and made a Joomla container, pulled the image from https://hub.docker.com/_/joomla/ and no idea what to do next. Have to seek more info how that should work.

Ok, it seems the build zips contain all admin and site files. So I'm not sure what's the cullprit, but must be something in the dev environment as it also does not install on the Joomla website hosted by a pro webhost. I'm looking into that docker, never worked with that before so. Installed octoom and made a Joomla container, pulled the image from https://hub.docker.com/_/joomla/ and no idea what to do next. Have to seek more info how that should work.
Owner
Try this https://www.youtube.com/watch?v=owpxKie0I7s
Author

Thanks I will check it.

Thanks I will check it.
Owner

@znorm87 opened as similar issue, with the following fix: #1064 (comment)

So can you confirm that your layout folder is empty? and that it might be that which is causing the issue?

@znorm87 opened as similar issue, with the following fix: https://git.vdm.dev/joomla/Component-Builder/issues/1064#issuecomment-27423 So can you confirm that your layout folder is empty? and that it might be that which is causing the issue?
Author

As stated on that thread. I confirm in the J4 zip the layouts folder for the site part is missing.

I'm closing this thread so we can continue on that thread instead.

As stated on that thread. I confirm in the J4 zip the layouts folder for the site part is missing. I'm closing this thread so we can continue on that thread instead.
jjs closed this issue 2024-03-02 18:16:26 +00:00
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#1063
No description provided.