Since the update to Version 1.33 I got the following javascript error:

Uncaught ReferenceError: groupkey is not defined
for line 76 in clientside_validation.js

Due to this error all js stops working in the form.

I found out that the error only shows when javascript aggregation is activated.
So a quickfix is to turn it off temporarly.

Could someone pls look into this?

Comments

attiks’s picture

Can you try the latest dev version

akriel’s picture

thx for looking into it.

I tried the newest dev version and it fixed the error, but after that a similiar error was displayed for line 209 in clientside_validation.js:
"Uncaught ReferenceError: i is not defined"

I took a look at the line 209
i = 0;
and changed it to
var i = 0;
as was done with the former error in the new dev version.
This fixed the second error and all js is working again on my form.

I've noticed several other spots in clientside_validation.js (line 224, 229, 244, 249, 264, 269), which use the same variable assignments without var . Maybe they need the same treatment?

attiks’s picture

Assigned: Unassigned » jelle_s

They do

jelle_s’s picture

Status: Active » Fixed

Fixed in the latest dev version

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.