Bruno17 / MIGX

MIGX for revo 2.2 and above
83 stars 78 forks source link

clicking add item opens a blank page #288

Open sonicfive opened 7 years ago

sonicfive commented 7 years ago

If I click on "add item" I am getting a blank browser document. The modal window is no longer working. Already tested different browsers.

MODX Revolution 2.4.0-pl MIGX 2.9.0-pl

I am not sure if updating migx will break anything on live site. Already cleared cache, etc.

Bruno17 commented 7 years ago

what are your MIGX - configs?

sonicfive commented 7 years ago

Form tabs: [ {"caption":"Title and Link", "fields": [ {"field":"title","caption":"Title"}, {"field":"link","caption":"Link"}, {"field":"description","caption":"Description","inputTVtype":"textarea"} ]}, {"caption":"Image", "fields":[

Grid columns: [ {"header": "Title", "width": "160", "sortable": "true", "dataIndex": "title"}, {"header": "Image", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"}, {"header": "Link", "width": "100", "sortable": "true", "dataIndex": "link"}, {"header": "Description", "width": "300", "sortable": "true", "dataIndex": "description"} ]

Bruno17 commented 7 years ago

this looks not complete:

[ {"caption":"Title and Link", "fields": [ {"field":"title","caption":"Title"}, {"field":"link","caption":"Link"}, {"field":"description","caption":"Description","inputTVtype":"textarea"} ]}, {"caption":"Image", "fields":[
sonicfive commented 7 years ago

Bruno, It does not look complete, because I copied it wrong. The current form TABS validates well on json lint.

When I click on add item I get a new page with this: https://www.dropbox.com/s/7ymi83hlna7xeyb/Screenshot%202017-06-26%2016.53.41.png?dl=0

Bruno17 commented 7 years ago

would you like to show me your complete formtabs?

robliberty commented 7 years ago

Most likely you have an extra comma where one shouldn't be, or you're missing one. An additional trailing comma on the last item is usually my culprit.

deckchairlabs commented 6 years ago

Also having the same issue, the grid renders, but with blank values, the 'Add Item' interface is blank, but allows saving new records.

PHP 7.1 - 7.0 MODX 2.5.8 MIGX 2.11.0

screen shot 2017-09-25 at 3 51 24 pm

screen shot 2017-09-25 at 3 49 24 pm