This is reminiscent of 1434136, but is, I suspect a separate issue.

If I use node export to copy a webform with webform validation and clientside validation I get the following notice when viewing the copied webform: Notice: Undefined index: element_name in clientside_validation_webform_add_webform_validation() (line 192 of . . .

If I create an identical webform from scratch, the error does not occur.

I'm using:

  • clientside validation 7.x-1.38
  • webform validation 7.x-1.1 (I've tried 7.x-1.3 with the same result)
  • webform 7.x-3.19
  • node export 7.x-3.0

Any suggestions on what might be causing this would be appreciated. I'd be happy to attempt a patch.

Comments

Mirabuck’s picture

Title: Node exported webform run into unidentified index error » Node exported webforms run into unidentified index error
Jelle_S’s picture

Can you provide me with the exported webform code?

As far as I can tell, when I export a webform, the validation rules aren't exported with it.
I added the same validation rules to my exported (and re-imported) webform and everything worked as expected.

Mirabuck’s picture

Jelle_S: thanks for looking into this.

I agree that validation rules aren't part of the export.

I can't think of anything beyond the node export that would be a contributing factor here. I'll do some more testing using a minimal install and just the 4 contrib modules mentioned above to ensure that something else in my setup isn't causing this.

Jelle_S’s picture

@Mirabuck: Any news on this?

Mirabuck’s picture

Just tried on a new site from minimal install and can't reproduce the issue. It must be something else in the mix on my end, but I can't figure out what. Will close this as 'can't reproduce'.

If I manage to get a clearer picture of what's going on I'll come back with more info.

Thanks for your time on this. Sorry for the wild goose chase.

Mirabuck’s picture

Status: Active » Closed (cannot reproduce)