• Resolved diegocanal

    (@diegocanal)


    Hi,

    What the title says.

    On the console I am getting:

    analysis-1260.min.js?ver=12.6:21 Uncaught TypeError: URL is not a constructor
    at analysis-1260.min.js?ver=12.6:21
    at e.default (analysis-1260.min.js?ver=12.6:21)
    at t.createAnalysisWorker (wp-seo-post-scraper-1260.min.js?ver=12.6:5)
    at HTMLDocument.<anonymous> (wp-seo-post-scraper-1260.min.js?ver=12.6:5)
    at i (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-widget&ver=b5a7e85e50efe44c875fde1999269586:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-widget&ver=b5a7e85e50efe44c875fde1999269586:2)
    at Function.ready (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-widget&ver=b5a7e85e50efe44c875fde1999269586:2)
    at HTMLDocument.J (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-widget&ver=b5a7e85e50efe44c875fde1999269586:2)
    (anonymous) @ analysis-1260.min.js?ver=12.6:21
    e.default @ analysis-1260.min.js?ver=12.6:21
    t.createAnalysisWorker @ wp-seo-post-scraper-1260.min.js?ver=12.6:5
    (anonymous) @ wp-seo-post-scraper-1260.min.js?ver=12.6:5
    i @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-widget&ver=b5a7e85e50efe44c875fde1999269586:2
    fireWith @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-widget&ver=b5a7e85e50efe44c875fde1999269586:2
    ready @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-widget&ver=b5a7e85e50efe44c875fde1999269586:2
    J @ load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-widget&ver=b5a7e85e50efe44c875fde1999269586:2

    Thanks!

    • This topic was modified 5 years ago by diegocanal.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Jen

    (@brightestspark)

    I have the same error in console. I’m using SiteOrigin Page Builder. Deactivating Yoast SEO resolves this. Refer https://imgur.com/9KZTXMK

    • This reply was modified 4 years, 12 months ago by Jen. Reason: added screenshot
    Thread Starter diegocanal

    (@diegocanal)

    I’d like to point out that I am using the WP classic editor (using the official Classic Editor plugin), not the Block Editor (“Gutenberg”).

    I have the same error, our site using Classic Editor plugin as well.

    Looks related to what we’re seeing on all of our sites. My report was here:
    https://www.ads-software.com/support/topic/yoast-not-available-on-posts/

    Plugin Support Jerlyn

    (@jerparx)

    We are sorry to hear about your issues. Unfortunately, we are unable to reproduce the problem with the following:

    WordPress 5.3
    Yoast SEO 12.6.2
    Classic Editor 1.5

    If you update everything to the latest, does it resolve the issue?

    @brightestspark @superpan3000 If you have a similar issue, please open a new request. That way it’s easier to track issues and provide assistance.

    Thread Starter diegocanal

    (@diegocanal)

    Thanks @jerparx. 2 weeks ago I managed to fix the problem on my side. I found out that I had forgotten to update the files of my child theme with the code changes of the last version of the parent theme (Modernize by Goodlayers). The key was a line of code on my include/include-script.php file, I had to change this line:

    wp_localize_script( 'gdl-panel', 'URL', array('goodlayers' => GOODLAYERS_PATH, 'sample_text' => FONT_SAMPLE_TEXT ));

    into this:

    wp_localize_script( 'gdl-panel', 'MODERNIZE_URL', array('goodlayers' => GOODLAYERS_PATH, 'sample_text' => FONT_SAMPLE_TEXT ));

    Updating that single line of code was all I needed to fix it.

    I can see that today Yoast SEO version 12.7.1 has been released. In order to help other users with the same issue I checked this new version –hoping it was going to be more robust than the previous ones– reverting my include-script.php file to its previous state. I got the issue again, i.e., this new version of Yoast SEO is not able to deal with what it seems a deficiency on that line of code I used to have in my child theme.

    Hi,

    We understand there is an issue between Yoast and the Child Theme you have. Is the issue you are having that you are able to solve the issue with this code:

    wp_localize_script( 'gdl-panel', 'MODERNIZE_URL', array('goodlayers' => GOODLAYERS_PATH, 'sample_text' => FONT_SAMPLE_TEXT ));

    But each time you update Yoast, it strips that out and you have to re-add it?

    Thread Starter diegocanal

    (@diegocanal)

    Hi @pcosta88,

    Is the issue you are having that you are able to solve the issue with this code:

    wp_localize_script( 'gdl-panel', 'MODERNIZE_URL', array('goodlayers' => GOODLAYERS_PATH, 'sample_text' => FONT_SAMPLE_TEXT ));

    Yes, I am able to solve the issue with this code.

    But each time you update Yoast, it strips that out and you have to re-add it?

    No, Yoast does not strip that out. It was all my fault, I simply forgot to update that file on my child theme.

    Having said that, I must say that the only plugin that clashed with that piece of outdated code (on my child theme) was Yoast SEO… and take into account that this specific site runs with 56 active plugins.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    It looks like the theme is actually breaking the Yoast SEO functionalities. However, we are glad that you were able to fix the issue by yourself already.

    Hello @diegocanal

    I am having the same problem and I am also using a Goodlayers theme, World Wide 1.01

    I tried your fix, to change on my theme, but it broke my website completely.
    Is there some other place where I should change the ‘URL’ into ‘MODERNIZE_URL’ so I can fix this problem on my theme?

    @philipberovo It seems that you have installed too old theme. I just checked here:

    ==v1.01== 16/06/2013

    It’s most likely that your current version of the theme isn’t fully compatible with the latest versions of WP/Yoast SEO. You should try to update to the latest theme, but need to make full backup before it. If you still experience same issues after updating then please create new issue.

    Thread Starter diegocanal

    (@diegocanal)

    I tried your fix, to change on my theme, but it broke my website completely.
    Is there some other place where I should change the ‘URL’ into ‘MODERNIZE_URL’ so I can fix this problem on my theme?

    @philipberovo that piece of code won’t fix your issue. ‘MODERNIZE_URL’ is particular to the theme I use (Modernize by Goodlayers). It is very likely that your the is outdated and that it has lost compatibility, either with Yoast SEO, wordpress or even the PHP version you are running on the server.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Version 12.6 causes error that makes editor toolbar disappear’ is closed to new replies.