If i have enabled Advanced CSS/JS Aggregation and i visit a node creation form then i get the error:
TypeError: Drupal.myClientsideValidation is undefined

This will to my custom omega 4 theme and the default omega 4 subtheme called ohm. The theme rubik do not have this error.

Can you give me an advice where i can look into this?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

attiks’s picture

Assigned: Unassigned » Jelle_S
Jelle_S’s picture

Do you have the error when you disable the aggregation as well?
I can't seem to reproduce it (with Ohm and Advanced CSS/JS Aggregation both enabled)

Jelle_S’s picture

Status: Active » Postponed (maintainer needs more info)
fox_01’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Thanks for your try to reproduce it.

For now i can't reproduce it by myself. I'm sorry but i will close the issue until i get the error again.

aruuska’s picture

Status: Closed (cannot reproduce) » Active

I have this issue with client side validation and AdvAgg module. If I disable AdvAgg aggregation error will disappear and client side validation works fine.

I have tried many different combinations with AdvAgg configuration as well.

Is this advagg issue or client side validation issue?

klokie’s picture

I saw the same issue, using Bootstrap theme along with Clientside Validation, AdvAgg, Boost, and others.

loze’s picture

I too am experiencing this. with advagg and Clientside Validation. It works when advagg is disabled.

loze’s picture

I was running an older version of CV. I upgraded to latest version and it works now. I'm an ass.

Cogax’s picture

I'm also getting this error. As klokie said, i have Clientside Validation, AdvAgg, Boost and Bootstrap Theme enabled.

Anonymous’s picture

I have the same problem when AdvAgg is enabled.

loze’s picture

This is back with the latest version of advagg 7x-2.13 rolling back to 2.11 fixed this for me.

geophysicist’s picture

Solved by adding js setting on #after_build form rendering stage.

geophysicist’s picture

Sorry, forget about my previous comment and patch. Here is correct one.

geophysicist’s picture

And the last one

geophysicist’s picture

FileSize
2.44 KB

And last modification. If you have a lot of external scripts on your site you should be sure when clientside_validation.js runs it already knows about jquery.validate.js. If advagg is enabled would be great to have jquery.validate.js (or jquery.validate.min.js) and clientside_validation.js in 1 aggregated file. You can try to use hook_advagg_build_aggregate_plans_alter to manage file groups but easiest way just add these 2 files in 1 group directly in clientside_validation_add_js_settings().

kyoder’s picture

This patch worked for me to get CV working with Advagg and anonymous user on the user registration form.