Field sets won't open, and in the debug console there is this Javascript error:

TypeError: 'null' is not an object (evaluating 'matches[1]')

(Copied from #1890178: Cannot Recreate Features)

Comments

bbinkovitz’s picture

I tried updating Ctools, using jQuery update, and updating/recreating all the features. No dice.

It occurs after upgrading from Features 1 to Features 2. It doesn't present if all the features are disabled.

The really weird thing is that, if I update a feature, and enable only that feature, then when I go to recreate that specific feature, the fieldsets expand ok. But it seems to break every other feature.

This is true even of features created after the move to Features 2.

bbinkovitz’s picture

StatusFileSize
new1.41 KB

I worked around this for the time being by doing the attached patch. Please let me know if there's a better way to handle this.

bbinkovitz’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: features-js-2200635-2.patch, failed testing.

hefox’s picture

Version: 7.x-2.0 » 7.x-2.x-dev

Patch needs to be against -dev and be from root of features directory, not site.

Haven't seen that error though and no one else has... something with some other js you're using?

jproctor’s picture

StatusFileSize
new964 bytes

Haven't chased a cause of this, but it's still true in Features 7.x-2.2. Updating the patch to be against -dev.

jproctor’s picture

Status: Needs work » Needs review

Still true in Features 7.x-2.5, and now I've noticed I didn't set this back to "Needs review" last year. Patch in #6 still applies.

leendertdb’s picture

Status: Needs review » Reviewed & tested by the community

I had the exact same problem with a site I'm currently working on. I have applied the patch from #6 against v7.x-2.5 and verified that this fixes it. Ran some more tests and everything seems to be working fine now. Thanks @jproctor!

Updated status to RTBC.

mpotter’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 5ce40da.

  • mpotter committed 5ce40da on 7.x-2.x authored by jproctor
    Issue #2200635 by bbinkovitz, jproctor: Javascript error preventing...

Status: Fixed » Closed (fixed)

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