Unable to open field properties #269

Closed
opened 2018-04-24 15:03:28 +00:00 by peterpetrov · 12 comments
peterpetrov commented 2018-04-24 15:03:28 +00:00 (Migrated from github.com)

Steps to reproduce the issue

Open JCB Admin -> Fields -> New field -> Select field form dropdown.

Expected result

Field properties to appear.

Actual result

Field properties does not appear, errors in the javascript console and web server log.

System information (as much as possible)

  • OS Name & Version: Centos 7.4
  • MySql Version: 10.0.34-MariaDB
  • Apache Version: It is NGINX 1.12.2
  • PHP Version: PHP 7.2.2
  • Joomla Version: 3.8.7.
  • JCB Version: 2.7.5
  • Browser: Chrome

Additional comments

I can provide admin account if that will make it easier.

from nginx access log:

91.139.200.106 - - [24/Apr/2018:10:58:20 -0400] "GET /administrator/index.php?option=com_componentbuilder&task=ajax.getButton&format=json&vdm=XVYhvPgZLnxGRnSXsRUKiDfuPgkfLHagMljRPbzmQwVYTDrPRO&callback=jQuery1124018293290067134138_1524581897878&token=c8ad9632c32e4d4a24efef25165584c8&type=validation_rule&size=2&_=1524581897879 HTTP/1.1" 200 459 "https://coder.taktix.eu/administrator/index.php?option=com_componentbuilder&view=field&layout=edit" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" "-"
91.139.200.106 - - [24/Apr/2018:10:58:33 -0400] "GET /administrator/index.php?option=com_componentbuilder&task=ajax.fieldOptions&format=json&vdm=XVYhvPgZLnxGRnSXsRUKiDfuPgkfLHagMljRPbzmQwVYTDrPRO&callback=jQuery1124018293290067134138_1524581897874&token=c8ad9632c32e4d4a24efef25165584c8&id=24&_=1524581897880 HTTP/1.1" 500 20192 "https://coder.taktix.eu/administrator/index.php?option=com_componentbuilder&view=field&layout=edit" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" "-"
### Steps to reproduce the issue Open JCB Admin -> Fields -> New field -> Select field form dropdown. ### Expected result Field properties to appear. ### Actual result Field properties does not appear, errors in the javascript console and web server log. ### System information (as much as possible) - OS Name & Version: Centos 7.4 - MySql Version: 10.0.34-MariaDB - Apache Version: It is NGINX 1.12.2 - PHP Version: PHP 7.2.2 - Joomla Version: 3.8.7. - JCB Version: 2.7.5 - Browser: Chrome ### Additional comments I can provide admin account if that will make it easier. from nginx access log: ``` 91.139.200.106 - - [24/Apr/2018:10:58:20 -0400] "GET /administrator/index.php?option=com_componentbuilder&task=ajax.getButton&format=json&vdm=XVYhvPgZLnxGRnSXsRUKiDfuPgkfLHagMljRPbzmQwVYTDrPRO&callback=jQuery1124018293290067134138_1524581897878&token=c8ad9632c32e4d4a24efef25165584c8&type=validation_rule&size=2&_=1524581897879 HTTP/1.1" 200 459 "https://coder.taktix.eu/administrator/index.php?option=com_componentbuilder&view=field&layout=edit" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" "-" 91.139.200.106 - - [24/Apr/2018:10:58:33 -0400] "GET /administrator/index.php?option=com_componentbuilder&task=ajax.fieldOptions&format=json&vdm=XVYhvPgZLnxGRnSXsRUKiDfuPgkfLHagMljRPbzmQwVYTDrPRO&callback=jQuery1124018293290067134138_1524581897874&token=c8ad9632c32e4d4a24efef25165584c8&id=24&_=1524581897880 HTTP/1.1" 500 20192 "https://coder.taktix.eu/administrator/index.php?option=com_componentbuilder&view=field&layout=edit" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" "-" ```
peterpetrov commented 2018-04-24 15:26:28 +00:00 (Migrated from github.com)

There is this id=24 at the end. If i remove it the query downloads a joomla.json file. If i don't it returns error 500.

There is this id=24 at the end. If i remove it the query downloads a joomla.json file. If i don't it returns error 500.

@peterpetrov I have no idea why it does this, other then that it is related to NGINX.

I do not get these errors, ever... but I am on Apache. The JavaScript is simply making an ajax call to get content for the page.

You can see the code for those calls in a few places:

You tell me what am I doing wrong and I will fix it.

@peterpetrov I have no idea why it does this, other then that it is related to NGINX. I do not get these errors, ever... but I am on Apache. The JavaScript is simply making an ajax call to get content for the page. You can see the code for those calls in a few places: - controller ([getButton](https://github.com/vdm-io/Joomla-Component-Builder/blob/master/admin/controllers/ajax.json.php#L352)) ([fieldOptions](https://github.com/vdm-io/Joomla-Component-Builder/blob/master/admin/controllers/ajax.json.php#L933)) - model ([getButton](https://github.com/vdm-io/Joomla-Component-Builder/blob/master/admin/models/ajax.php#L231)) ([fieldOptions](https://github.com/vdm-io/Joomla-Component-Builder/blob/master/admin/models/ajax.php#L2226)) - javascript ([getButton](https://github.com/vdm-io/Joomla-Component-Builder/blob/master/admin/models/forms/field.js#L548)) ([fieldOptions](https://github.com/vdm-io/Joomla-Component-Builder/blob/master/admin/models/forms/field.js#L578)) You tell me what am I doing wrong and I will fix it.
peterpetrov commented 2018-04-24 16:02:18 +00:00 (Migrated from github.com)

It doesn't happen on 2.7.2. Since 2.7.3 i am getting it.

It doesn't happen on 2.7.2. Since 2.7.3 i am getting it.
peterpetrov commented 2018-04-24 16:04:19 +00:00 (Migrated from github.com)

will install apache later to confirm your theory.

will install apache later to confirm your theory.

Okay let me look at what changed in those areas from 2.7.2 to 2.7.5

Okay let me look at what changed in those areas from 2.7.2 to 2.7.5

Okay you will see that version 2.7.2 was completely removed from the history since it had to many bugs. So you get version 2.7.1 and then 2.7.4 and the whole fields area changes in that jump, from an xml field to a subform field that gets build with ajax. So major change in the hope of making JCB easier to use.

Okay you will see that version 2.7.2 was completely removed from the history since it had to many bugs. So you get version 2.7.1 and then 2.7.4 and the whole fields area changes in that jump, from an xml field to a subform field that gets build with ajax. So major change in the hope of making JCB easier to use.

If you run Joomla in Docker and then install JCB v2.7.5 all works as expected.

If you run [Joomla in Docker ](https://hub.docker.com/_/joomla/)and then install JCB v2.7.5 all works as expected.

In fact v2.7.5 was the first release to actually run out of the box in the Docker Image 😄

In fact v2.7.5 was the first release to actually run out of the box in the Docker Image :smile:

Previous versions had a bc function missing, so we added a wrapper. Just another question, have you tested the staging branch as it is almost ready for the release of v2.7.6

Previous versions had a bc function missing, so we added a wrapper. Just another question, have you tested the staging branch as it is almost ready for the release of v2.7.6
peterpetrov commented 2018-04-24 20:19:10 +00:00 (Migrated from github.com)

I fixed it finally. I am not in love with apache and i was close to go back to it but no :).

The problem was that i was missing php-xml (php72w-xml in my case) extension. Right after installation it worked. Apologies for the bells and whistles.

I fixed it finally. I am not in love with apache and i was close to go back to it but no :). The problem was that i was missing php-xml (php72w-xml in my case) extension. Right after installation it worked. Apologies for the bells and whistles.

That is create news... so at least we know JCB runs on NGINX 👍

That is create news... so at least we know JCB runs on NGINX :+1:
peterpetrov commented 2018-04-24 20:27:50 +00:00 (Migrated from github.com)

I know it runs. It is also faster compared to apache. I just needed to find what was wrong with it. Thanks for the patience :)

I know it runs. It is also faster compared to apache. I just needed to find what was wrong with it. Thanks for the patience :)
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 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#269
No description provided.