?
avatar Sporedd
Sporedd
17 May 2017

Steps to reproduce the issue

Clean install of Joomla
Create a plugin to add extra fields with a subform
Add a new row to the subform

Expected result

An additional row without JavaScript errors

Actual result

The new row is added, but with a javascript error:
image

System information (as much as possible)

PHP Built On Windows NT BURO26-JESPER 6.2 build 9200 (Windows 8 Professional Edition) i586
Database Version 5.5.5-10.1.10-MariaDB
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 5.6.19
Web Server Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.19
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 3.7.0 Stable [ Amani ] 25-April-2017 15:36 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/58.0.3029.110 Safari/537.36
This occurs in all browsers

xml of plugin:
extravelden.xml
<field name="imgSelector" type="subform" multiple="true" formsource="plugins/content/extravelden/form/imgselector.xml" description="Selecteer afbeeldingen en info zoals titel, subtitel en omschrijving." label="Selecteer afbeeldingen en info" layout="joomla.form.field.subform.repeatable-table">

imgselector.xml
<field name="multiple_img_image" type="media" label="Afbeelding" /> <field name="multiple_img_title" type="text" label="Afbeelding titel" />

Additional comments

If needed i can create a plugin with a subform, but im thinking someone has that standing ready?

The javascirpt error is a problem because i want to fill the subform row with javascirpt.

avatar Sporedd Sporedd - open - 17 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 17 May 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 17 May 2017
Title
[com_fields] JS Error on Subform
[com_fields]
avatar joomla-cms-bot joomla-cms-bot - edited - 17 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 17 May 2017
Title
[com_fields]
[com_fields] JS Error on Subform
avatar franz-wohlkoenig franz-wohlkoenig - change - 17 May 2017
Category com_fields JavaScript
avatar franz-wohlkoenig franz-wohlkoenig - change - 17 May 2017
Title
[com_fields]
[com_fields] JS Error on Subform
avatar franz-wohlkoenig franz-wohlkoenig - change - 17 May 2017
Build staging 3.7.0
avatar Sporedd Sporedd - edited - 17 May 2017
avatar Sporedd Sporedd - edited - 17 May 2017
avatar Sporedd Sporedd - change - 17 May 2017
The description was changed
avatar Sporedd Sporedd - edited - 17 May 2017
avatar Sporedd Sporedd - change - 17 May 2017
The description was changed
avatar Sporedd Sporedd - edited - 17 May 2017
avatar Sporedd Sporedd - change - 17 May 2017
The description was changed
avatar Sporedd Sporedd - edited - 17 May 2017
avatar PhilETaylor
PhilETaylor - comment - 17 May 2017

is <f-orm> a typo?

Can you provide the whole installable plugin to save time for people trying to replicate the issue?

avatar Sporedd
Sporedd - comment - 17 May 2017

no, thats to prevent the browser from hiding the tag :)

installer for the plugin:
extravelden.zip

avatar PhilETaylor
PhilETaylor - comment - 17 May 2017

After installing and enabling that plugin, I get a 404 error on a missing JS file

http://joomla-cms/media/plg_extravelden/multipleFiles.js 404 (Not Found)

And then when going to edit an article I get

Unknown column 'isproject' in 'field list'

I cannot replicate the error you are reporting with the plugin provided in Joomla 3.7.1

avatar joomla-cms-bot joomla-cms-bot - change - 17 May 2017
Title
[com_fields] JS Error on Subform
[3.7.0] JS Error on Subform
avatar joomla-cms-bot joomla-cms-bot - edited - 17 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 17 May 2017
Status New Discussion
avatar joomla-cms-bot joomla-cms-bot - change - 17 May 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 17 May 2017
avatar Sporedd
Sporedd - comment - 17 May 2017

The missing JS is not relevant, Could u try it with a new article.
I'll cleanup the plugin in the meanwhile

avatar PhilETaylor
PhilETaylor - comment - 17 May 2017

When I try to create a new article I get nothing but an error on the page!

Unknown column 'isproject' in 'field list'

avatar Sporedd
Sporedd - comment - 17 May 2017

Ah oke, i tested it and it seemed to work, ill upload the new plugin in a sec

I gonna test it 3.71 to

avatar PhilETaylor
PhilETaylor - comment - 17 May 2017

Joomla! Version Joomla! 3.7.0 Stable [ Amani ] 25-April-2017 15:36 GMT

Please download and test Joomla 3.7.1 RC 2 (or wait a few hours and test Joomla 3.7.1)

avatar PhilETaylor
PhilETaylor - comment - 17 May 2017

Maybe even test #15848 which is merged already for Joomla 3.7.1

avatar Sporedd
Sporedd - comment - 17 May 2017

Just updated to 3.7.1 - RC2, the error doesn't seem te persist here.

I'll update the live in a few hours and get back here with the result

avatar zero-24
zero-24 - comment - 17 May 2017

I'll update the live in a few hours and get back here with the result

Please install on the live site the 3.7.1 package to be release on 14:00 UTC as this is a important sec release and not the RC as the RC does not include the sec paches!

avatar Bakual
Bakual - comment - 17 May 2017

The subform formfield type doesn't work with com_fields. That is true, That is why this field type doesn't exist in core.
So if you create a plugin to implement that field type, you need to solve this in your plugin.

avatar Sporedd
Sporedd - comment - 17 May 2017

I installed the just released 3.7.1 version of joomla. and i can confirm this problem is fixed.

Thanks for your time!

avatar Bakual Bakual - change - 17 May 2017
The description was changed
Title
[3.7.0] JS Error on Subform
[com_fields] JS Error on Subform
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-05-17 14:16:49
Closed_By Bakual
avatar Bakual Bakual - close - 17 May 2017

Add a Comment

Login with GitHub to post a comment