An error occurs, when the module metatag Open Graph is enable, on the node add form and the user who edit/add the node have the permission to modify the Open Graph parameters on the node.

This error is caused by var default_name = $(this).attr('name').replace(/\[value\]/, '[default]'); in metatag.vertical-tabs.js?mt26yf (ligne 9)

This error prevents ckeditor from initializing (CKEditor version 4.1 with WYSIWYG module last dev version : 7.x-2.2+17-dev)

Comments

imiksu’s picture

I have same issue, I haven't figured out when this happens.

I noticed at least when I updated chosen module to 2.0-alpha4, I started to experience this. But in the other hand, when I tried to reproduce this in plain panopoly installation profile with chosen and metatag module, I didn't experience this problem. So I have no idea what kind of combination it requires to reproduce this :/

For a starter, I attached this patch which checks whether the name attribute is available or not. At least it doesn't throw JS exception and interrupting other JS running...

Patch is made against 1.0-beta7 version.

damienmckenna’s picture

This is exactly the same as #2157689: JS undefined error on vertical.tabs.js line 9 only the patch takes the opposite approach.

damienmckenna’s picture

Version: 7.x-1.0-beta7 » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Needs review

Huge thanks for this patch.

Just a small note regarding d.o standard procedures. When you upload a patch you should change the issue status to "needs review", that tells people that there's a patch waiting for review, can help maintainers identify possible quick wins, and will trigger the automated testing that can (occasionally) help review & identify possible problems in the patch.

damienmckenna’s picture

Status: Needs review » Fixed

I'm going to go with #2157689: JS undefined error on vertical.tabs.js line 9 but will mention you in the changelog, thanks for helping to fix this!

Status: Fixed » Closed (fixed)

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