Hello,

When I activate Yaost module, I have a problem with page manager.
I create a variant:
- In the item "context" > I choose "node edit form"
- In the item "content" > I can't choose a content. The option in the region (exemple "center") is desactivate.

Can you help me please ?

Thank you.

CommentFileSizeAuthor
#7 yoast_seo-js_error-2625862-7-7.patch557 bytesjorgegc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mimousse37 created an issue. See original summary.

thomas.leperou’s picture

Title: Problem width panel manager » Problem with panel manager
thomas.leperou’s picture

Title: Problem with panel manager » Javascript error
Component: User interface » Code
Category: Support request » Bug report
Priority: Normal » Major
Issue tags: +Page Manager, +JavaScript

Indeed there is some issues with javascript (from Drupal 7.41, on simplytest.me with a pure fresh install).

Actually, on the front end Yoast give an issue :

ReferenceError: detectCKEditorInstances is not defined : yoast_seo.js:89:13

// Check for CKEditor instances, with a max of 2500ms(= 25ms * 100).
var maxDetectTries = 100;
detectCKEditorInstances();

TypeError: a is null : yoast-seo.min.js:1:29967

This seems to be a minor issue for working with CKedtor.

On the backend, when we use Yoast in Page Manager with node_add or node_edit context, there is another bug :

TypeError: document.getElementById(...) is null : yoast_seo.js:231:10

YoastSEO_DrupalSource.prototype.getDataFromInput = function( field ) {
  return document.getElementById(this.config.fields[field]).value;
}

This break the "add content" functionality of page manager (when working with a Panel variant).

Need fix and review, any volunteers ?

Niels de Ruijter’s picture

The first error is probably related to 2574277.

The second one I will be looking into, don't know what is causing that.

robertragas’s picture

Do you still have this issue?

robertragas’s picture

Status: Active » Closed (outdated)

No activity in 2 months so closing the issue. If you still have this issue you can reopen the ticket.

jorgegc’s picture

Status: Closed (outdated) » Needs review
FileSize
557 bytes

Hi guys, I am getting the same error (second one as described in #3) on node edit pages. Re-opening the issue and submitting a patch for review.

james.williams’s picture

I have found that ensuring I'm on the latest metatag module (7.x-1.14 at the time of writing) resolves the issue for me. I haven't tested, but given the discussion on #2653498-7: PHP notice when upgrading Metatag module, 7.x-1.8 may be sufficient.

robertragas’s picture

Status: Needs review » Fixed

Still cannot reproduce the error but Jorge his patch looks good and doesn't break anything while I was testing , so if it should fix the issue for alot people i'm willing to let this one through.

Status: Fixed » Closed (fixed)

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