I can see the Yoast meta box at the bottom of pages and posts in WordPress, but the box won't expand or is blank.
When I try to expand the box nothing happens under the SEO & Readability tabs, under the Social tab I can see Facebook and Twitter, but when I try to expand either of those nothing happens. I've tried in Safari, Chrome & Firefox on the Mac. All the plug-ins, themes and WordPress are the latest versions.
* If relevant, which editor is affected (or editors):
- [ ] Classic Editor
- [ ] Gutenberg
- [ ] Classic Editor plugin
* Which browser is affected (or browsers):
- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Other
Hi @wpdv2019 and thank you for your report. Can you please confirm that this is not a plugin/theme conflict? And please provide detailed steps to reproduce the issue.
Two customers reported the same error to premium support and it seems that the problem was due to using a relative URL for the /wp-content/ folder:
define('WP_CONTENT_URL', '/wp-content') to the wp-config.php file@monbauza I can't say anything about the configuration of the relative URL plugin (although it seems outdated and not tested with the latest WordPress releases). The second one you mention is passing a directory to a value that should be an URL, so I don't think it's odd that that one fails 馃槂
I have found the issue.
We use a web worker to run the SEO- and readability analysis. To correctly create this web worker, we check if the worker script and the website are on the same origin (e.g. https://example.com and https://example.com/worker-script.js).
This fails when using relative URLs (e.g. /worker-script.js), since it has no origin, and is thus no valid URL.
I propose checking whether the worker-script URL is a relative URL (e.g. by checking if it starts with a /?) and if so: say that it is indeed the same origin (since it is a relative URL).
When I turned off the Classic Editor plugin it sort of worked, but I still couldn't upload images in the social part of Yoast on the post page. Which we need the open graph images to be able share the stories to social.
The site needs the Classic Editor, so I had to remove Yoast and find another plug-in.
I am going to write an issue that can be picked up for development 馃檪 .
Development issue: https://github.com/Yoast/javascript/issues/418
Most helpful comment
I have found the issue.
We use a web worker to run the SEO- and readability analysis. To correctly create this web worker, we check if the worker script and the website are on the same origin (e.g.
https://example.comandhttps://example.com/worker-script.js).This fails when using relative URLs (e.g.
/worker-script.js), since it has no origin, and is thus no valid URL.I propose checking whether the worker-script URL is a relative URL (e.g. by checking if it starts with a
/?) and if so: say that it is indeed the same origin (since it is a relative URL).