Wordpress-seo: t.declareReloaded is not a function

Created on 23 Jan 2019  路  8Comments  路  Source: Yoast/wordpress-seo

Please give us a description of what happened.

When editing a child page in Gutenberg with latest version of Yoast SEO, I see this error in the console: t.declareReloaded is not a function

Please describe what you expected to happen and why.

There should be no errors in the console.

How can we reproduce this behavior?

  1. Clean install of Wordpress 5.0.3 and latest version of Yoast SEO
  2. Create a parent page and a child page.
  3. Edit the child page and chech the browser console

Technical info


* If relevant, which editor is affected (or editors):
- [ ] Classic Editor
- [x] Gutenberg
- [ ] Classic Editor plugin


* Which browser is affected (or browsers):
- [x] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Other

Used versions

  • WordPress version: 5.0.3
  • Yoast SEO version: 9.5
Content Preview gutenberg minor

All 8 comments

Btw, I think this is related to this closed issue:

https://github.com/Yoast/wordpress-seo/issues/11767

Thanks for reporting this issue.

We'll need to know if this behaviour is caused by a conflict with a plugin or theme. Therefore we want to ask you to do the following:

  • Log in to your WordPress website.
  • Deactivate all non-Yoast plugins.
  • Switch your theme to a standard theme like Twenty Seventeen.
  • Test if the issue still occurs.

If it still occurs:

  • Add a summary of the above steps to your bug report.

If it doesn't occur anymore:

  • Reactivate all non-Yoast plugins one-by-one.
  • Test for the issue again after every plugin you reactivate.

If the problem reoccurred after reactivating one of your plugins, please add that information to your bug report.

Thanks!

Hi,

I think I already explained that in the issue description: it happens with a clean install, using no other plugins and the default theme.

To reproduce it, simply edit a child page and have a look at the browser console.

I'm having this issue as well. The error only occurs on editing a wordpress page that is a child page. Parent pages don't trigger the error. Doesn't seem to trigger any visible errors functionality wise, so I'm not sure what the error is breaking.

Apologies, I misread the OP. I am able to reproduce the issue on a child page as well using Yoast 9.5 and WP 5.0.3 and a default theme. I am also unable to find any obvious breaking functionalities. We'll investigate this further.

I'm also getting this error. I can reproduce it on an install with Yoast SEO being the only pugin active and using the 2019 theme. I have Wordpress 5.1.1 and Yoast SEO 10.0.1 installed. When creating a new page the error does not appear. As soon as I change the parent page dropdown to select the parent page the error is generated in my console in Chrome.

DevNotes:

Breaking functionality: replacevars do not get reloaded when this error is present. Upon switching parent pages from the dropdown, the snippet editor would normally get updated if the Page Parent replacevar is used. This does not happen now.

The function that "does not exist" lives on:
https://github.com/Yoast/wordpress-seo/blob/020b0bbff7609f371de263b32820a0d279597a4d/js/src/wp-seo-replacevar-plugin.js#L185

This issue does not seem reproducible / relevant anymore. Closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shanejones picture shanejones  路  5Comments

stayallive picture stayallive  路  4Comments

schurig picture schurig  路  5Comments

Pcosta88 picture Pcosta88  路  6Comments

theRealRizeo picture theRealRizeo  路  5Comments