Forums

error after upgrade to joomla 3.6.5

datformatie 14 Dec, 2016
Following errror after upgrade to joomla 3.6.5
config:
Joomla! 3.6.5 Stable [ Noether ] 1-December-2016 22:46 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

ChronoForms Site Module V4.0.3 08.Nov.2013
ChronoForms Administrator Component 4.0.5
chronoforms Site Plugin V4.0.3 08.Nov.2013

error:
0 - Input_0:689: ERROR - Object literal contains illegal duplicate key "getSelected", disallowed in ES5 strict mode },getSelected:function(){return this.selectedRows;},serialize:function(){var a=this.previous.apply(this,arguments)||{};if(this.options.selectable){a.selectedRows=this.selectedRows.map(function(b){return Array.indexOf(this.body.rows,b); ^^^^^^^^^^^ Input_0:696: ERROR - Object literal contains illegal duplicate key "getSelected", disallowed in ES5 strict mode c++){if(this.options.selectHiddenRows||e[c].isDisplayed()){this[g](e[c],true);}}return this;},deselectRange:function(b,a){this.selectRange(b,a,true);},getSelected:function(){return this.selectedRows; ^^^^^^^^^^^


Any clues / directions?
GreyHead 14 Dec, 2016
Hi datformatie,

I haven't seen this before, Googling around it looks as though it is a consequence of using JavaScript in Strict mode. I did a quick search of the CF files and can only see getSelected in the TinyMCE library files. It might be that update is needed for those - but I didn't see the exact code that you quoted. If you could pin down exactly where that is from it might help some more

Bob
datformatie 14 Dec, 2016
Hi Bob,

thanks for swift reply!

www.rietbergen.nl ==> contact

We just did an upgrade to Joomla 3.6.5 today and error is occuring after pressing contact menu item.

We do not have any additional info I am afraid...
GreyHead 14 Dec, 2016
Hi Edwin,

No errors visible from here checking in Chrome.

Bob
datformatie 14 Dec, 2016
Hi Bob,

pls hit main contact on menubar (not the Mega Menu dropdown) That's a workaround to allow customers to leave msg until CF is fixed...

rgds
Edwin
GreyHead 14 Dec, 2016
Hi Edwin,

Ah, That wasn't clear to me at all.

I've just updated my test site to 3.6.5 and not seeing any immediate problems. Please take a form backup and post it here so that I can check that on my site - that should help us see if the problem is with CF or with some site setting.

Bob
datformatie 14 Dec, 2016
HI Bob,

must give it a miss I'am afraid as the backup attempts of the form also throws errors now... "Call to undefined function ereg()"
GreyHead 14 Dec, 2016
Hi Edwin,

There is a fix for that in this FAQ - Max may also have fixed it in the most recent release of CFv4.

Checked a few more CFv4 forms here on 3.6.5 with no evident errors.

Bob
datformatie 14 Dec, 2016
Hi Bob,

thnks Fix applied here is the backup of the form I use here. I am also tracing the template I use. It might be that its related to the error we experiencing.
rgd

Edwin
GreyHead 14 Dec, 2016
Hi Edwin,

The form appears to be OK - see here on Joomla! 3.6.5 (I've disabled the Email action).

So I suspect that you may have something setting JavaScript into Strict Mode?

Bob
dfirsching 27 Dec, 2016
Not sure about the details in my case, but I confirmed that uninstalling CF 4.0.5 got rid of the error on a clone of the site. (appeared with the upgrade to J! 3.6.5.) It's not a critical fix for me as the live site is no longer using CF, but I thought I would add it to the mix if it helps solve the issue. Found this through searching for the error that was cited above. No idea what would set JS into Strict mode.

Dorothy
datformatie 27 Dec, 2016
Thanks,

I've decided to upgrade to CF5 which did not prompt any errors.. Migration form CF4 backup to CF5 using import did not go as per my expectations... It migrated only part of the backup and it seems I need to re-config parts of the forms...

Anyways, we've dediced to start from scratch with CF5, in the meantime a very basic (but sufficient) alternative works....

So no hurry at all...

@ Dorothy: just for the sake of it: what are you using now?
GreyHead 27 Dec, 2016
Hi,

The current release of CFv4 is 4.0.7 if you update to that then the error should be resolved.

There is no complete automatic upgrade from CFv4 to CFv5 - as you found the restore function only loads the HTML and that is not in CFv5 layout. You can run both CFv4 and CFv5 side by side on Joomla! 3 and then re-create your forms in CFv5 as they need to be modified or as time allows.

Bob
This topic is locked and no more replies can be posted.