[BUG]: cannot compile and can compile in the different versions #1124

Open
opened 2024-05-03 20:58:03 +00:00 by jjs · 3 comments

What Happened?

In Joomla 3.10.12 I :

  • can compile for joomla 3 and install in Joomla 3
  • can compile for joomla 4 but cannot install in Joomla 4 --> JInstaller: :Install: File does not exist [ROOT][TMP]/nstall_66354bb4249de/ site/layouts. Component Install: Failed to copy site files.
  • can compile for joomla 5 but cannot install in Joomla 5 --> JInstaller: :Install: File does not exist [ROOT][TMP]/install_66354bf930a46/site/layouts. Component Install: Failed to copy site files.

In Joomla 4 I :

  • can compile for Joomla 3 --> can install in Joomla 3
  • cannot compile for Joomla 4--> Error 1364: Field 'modules' doesn't have a default value
  • cannot compile for Joomla 5--> Error 1364: Field 'modules' doesn't have a default value

In Joomla 5 I:

  • can compile for Joomla 3 --> can install in Joomla 3
  • cannot compile for Joomla 4--> Error 1364: Field 'modules' doesn't have a default value
  • cannot compile for Joomla 5--> Error 1364: Field 'modules' doesn't have a default value

This is in the updated websites. Permissions to temp and log folders are ok. Configuration files are ok.

I do not have a field 'modules' and cannot find any reference to that, so I do not know where that is coming from.
Note that nothing has changed to the created component.

I cannot test the demo or hello world components as these give their own errors while compiling on each version of JCB

Steps to reproduce the Bug

compile component

Which Joomla version are you compiling in?

3,4 and 5

Which PHP version are you compiling in?

8.0, 8.2 and 8.3

Which Joomla versions are you targeting?

3, 4 and 5

Which PHP version are you targeting?

8.0, 8.2 and 8.3

Which Web server is JCB running on?

Apache

Which Relational Database is JCB running on?

Mariadb

Which OS is JCB running on?

Linux ubuntu 22.04

Which JCB version are you using?

3.2.1-rc5, 4.0.0-rc5 and 5.0.0-rc5

Where in JCB did this issue occur?

Compilation of a component, Installation of a component

On which browsers did you encounter the issue?

Firefox

Additional Comments

No response

### What Happened? In Joomla 3.10.12 I : - can compile for joomla 3 and install in Joomla 3 - can compile for joomla 4 but cannot install in Joomla 4 --> JInstaller: :Install: File does not exist [ROOT][TMP]/nstall_66354bb4249de/ site/layouts. Component Install: Failed to copy site files. - can compile for joomla 5 but cannot install in Joomla 5 --> JInstaller: :Install: File does not exist [ROOT][TMP]/install_66354bf930a46/site/layouts. Component Install: Failed to copy site files. In Joomla 4 I : - can compile for Joomla 3 --> can install in Joomla 3 - cannot compile for Joomla 4--> Error 1364: Field 'modules' doesn't have a default value - cannot compile for Joomla 5--> Error 1364: Field 'modules' doesn't have a default value In Joomla 5 I: - can compile for Joomla 3 --> can install in Joomla 3 - cannot compile for Joomla 4--> Error 1364: Field 'modules' doesn't have a default value - cannot compile for Joomla 5--> Error 1364: Field 'modules' doesn't have a default value This is in the updated websites. Permissions to temp and log folders are ok. Configuration files are ok. I do not have a field 'modules' and cannot find any reference to that, so I do not know where that is coming from. Note that nothing has changed to the created component. I cannot test the demo or hello world components as these give their own errors while compiling on each version of JCB ### Steps to reproduce the Bug compile component ### Which Joomla version are you compiling in? 3,4 and 5 ### Which PHP version are you compiling in? 8.0, 8.2 and 8.3 ### Which Joomla versions are you targeting? 3, 4 and 5 ### Which PHP version are you targeting? 8.0, 8.2 and 8.3 ### Which Web server is JCB running on? Apache ### Which Relational Database is JCB running on? Mariadb ### Which OS is JCB running on? Linux ubuntu 22.04 ### Which JCB version are you using? 3.2.1-rc5, 4.0.0-rc5 and 5.0.0-rc5 ### Where in JCB did this issue occur? Compilation of a component, Installation of a component ### On which browsers did you encounter the issue? Firefox ### Additional Comments _No response_
jjs added the
Bug
label 2024-05-03 20:58:03 +00:00
Owner

This issue might be related to your own setup of your fields. Please review these issues:

What should help, is opening all your admin views of your component, and saving them again. Since we added a field type-rule to catch missing fields in you SQL.

Further more, we are running JCB on many systems, and compiling for production ready Joomla 4 and 5 and we do not see these issues. This means you will need to debug this yourself, and once you have more details, share it. There is nothing we can do to help you. The issue is not repeatable on our side, and so we can't fix it.

This issue might be related to your own setup of your fields. Please review these issues: - https://git.vdm.dev/joomla/Component-Builder/issues/1038 What should help, is opening all your admin views of your component, and saving them again. Since we added a field type-rule to catch missing fields in you SQL. Further more, we are running JCB on many systems, and compiling for production ready Joomla 4 and 5 and we do not see these issues. This means you will need to debug this yourself, and once you have more details, share it. There is nothing we can do to help you. The issue is not repeatable on our side, and so we can't fix it.
Author

Thanks.
Tried it, doesn't help.
I understand that it is you cannot reproduce or look into.
Funny thing is, field 'modules' is non existent. Never created or used by me, and not findable in my component, not even the original which was created in Joomla 3.

But I won't give up I will search further., it must come from somewhere.

Thanks. Tried it, doesn't help. I understand that it is you cannot reproduce or look into. Funny thing is, field 'modules' is non existent. Never created or used by me, and not findable in my component, not even the original which was created in Joomla 3. But I won't give up I will search further., it must come from somewhere.
Author

I got rid of this : Error 1364: Field 'modules' doesn't have a default value. It popped up after cloning the site.

  1. I created a fresh new joomla 5 site.
  2. Then installed Last JCB.
  3. Then I exported all JCB component creation related DB tables from joomla 3.10.
  4. I removed those tables from the new joomla 5 DB
  5. Imported the exported JCB tables from Joomla 3.10 into the new joomla 5 DB
  6. now I got my component from joomla 3.10 in JCB in joomla 5 again and it compiled OK!

So, the error did not pop-up now. Which was very weird anyway because there was never a field 'modules' created. Where did it come from I don't know.

Tried installing the compiled into Joomla 5 and now the layouts error pops up which we had before. Like in #1099 #1064.
Note that all the php.ini tweaks are still in place.

Will try some more digging into this.

I got rid of this : Error 1364: Field 'modules' doesn't have a default value. It popped up after cloning the site. 1. I created a fresh new joomla 5 site. 2. Then installed Last JCB. 3. Then I exported all JCB component creation related DB tables from joomla 3.10. 4. I removed those tables from the new joomla 5 DB 5. Imported the exported JCB tables from Joomla 3.10 into the new joomla 5 DB 6. now I got my component from joomla 3.10 in JCB in joomla 5 again and it compiled OK! So, the error did not pop-up now. Which was very weird anyway because there was never a field 'modules' created. Where did it come from I don't know. Tried installing the compiled into Joomla 5 and now the layouts error pops up which we had before. Like in #1099 #1064. Note that all the php.ini tweaks are still in place. Will try some more digging into this.
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#1124
No description provided.