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
There should be no errors in the console.
* 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
Btw, I think this is related to this closed issue:
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:
If it still occurs:
If it doesn't occur anymore:
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.