wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

Yoast SEO WordPress plugin breaks Page edit.

Open lucasatace opened this issue 10 years ago • 15 comments

What did you expect to happen?

When I go into edit a page, I expect to see the 'Visual' and 'Text' available for edit.

What happened instead?

The 'Visual' tab is blank. When I click over to 'Text' and back to 'Visual', the page is now there, but when adding any information and updating, the page doesn't save.

How can we reproduce this behavior?

Activate Yoast SEO. Go to 'Pages', edit one.

Can you provide a link to a page which shows this issue?

Technical info

  • WordPress version: 4.5.2
  • Yoast SEO version: 3.2.5

lucasatace avatar May 17 '16 14:05 lucasatace

Are there any PHP errors (with WP_DEBUG enabled) or JavaScript errors in browser console?

Have you tried disabling other plugins / switching to a core theme to check for conflict?

Rarst avatar May 17 '16 14:05 Rarst

I also have this issue. I'm guessing here, but similar issues seem to center around the jQuery 1.12 attribute selector fix.

Yoast breaking visual editor Yoast SEO 3.2.3 and WP4.5 - visual editor problem

See attached screenshot for error with Yoast activated on post edit page

screen 2016-05-17 at 1 19 31 pm

blg002 avatar May 17 '16 17:05 blg002

@blg002 that doesn't seem directly related to our code.

Have you tried disabling other plugins / switching to a core theme to check for conflict?

Rarst avatar May 31 '16 12:05 Rarst

No, but disabling Yoast immediately fixed the issue.

blg002 avatar May 31 '16 12:05 blg002

If it's caused by a conflict with something else we need information what is that something else.

Rarst avatar May 31 '16 13:05 Rarst

The issue that I was having is that we are using a theme that is fairly old. When switching to a core theme this issue goes away, but we have to have old theme as it has our customized style.

lucasatace avatar May 31 '16 14:05 lucasatace

I disabled all other plugins… same problem, same error. If i then switch to Twenty Fifteen, it works, no error.

blg002 avatar Jun 07 '16 17:06 blg002

Any information on what exactly theme might be doing to cause this?

It might or might not be something we can handle better, depending on details.

Rarst avatar Jul 04 '16 17:07 Rarst

The theme I'm using is a custom one. It's not doing anything all that complex, i think. Sorry, thats probably not all that helpful but i'm not exactly sure what kinds of things you are asking about.

blg002 avatar Jul 04 '16 23:07 blg002

Page Editor (the entire page) is blank for me. Here's the PHP Error I get when trying to edit a page with Yoast SEO enabled: PHP Fatal error: Cannot instantiate abstract class WPSEO_Redirect_Manager in ../../public_html/wp-content/plugins/yoast-wordpress-seo-premium/premium/classes/redirect/class-redirect-ajax.php on line 27

Disabling Yoast fixes the issue.

Yoast Premium v.3.3.2 Visual Composer v.4.12

slistudios avatar Jul 15 '16 20:07 slistudios

@slistudios That doesn't seem related to this issue. Please contact Premium support via [email protected] for issues specific to it. This repository primarily handles Free plugin.

Rarst avatar Jul 18 '16 08:07 Rarst

Any new development on this ?. I had same issue with WordPress version: 4.5.3 and Yoast SEO version: 3.4

Disabling Yoast fixes the issue but it was not a solution for me. So I removed, tested, all Javascript from my theme, then from each of my plugins, until I found it!

My problem came from an 2 years old plugin, "Opening Hours". When both "Opening Hours" and Yoast were activated, my visual editor was all blank. Disable "Opening Hours" and Yoast was working as the visual editor back to normal.

Looking into the "Opening Hours" plugin, I found out it was using a quite old jQuery UI library (1.10.3). Changed to last jQuery UI 1.12.0 and my visual editor on Wordpress was back on track with Yoast running finally!

I hope it could help someone.

daffscat avatar Jul 31 '16 00:07 daffscat

Since OP didn't follow up this isn't clearly actionable. If you have similar issues please open a new thread with details.

For jQuery and jQuery UI we would normally assume versions provided by WP core are being used. Other extensions loading different versions, without properly encapsulating them, isn't something we can account for really.

Rarst avatar Aug 01 '16 11:08 Rarst

Just to add - daffscat is a hero - the Opening Hours plugin seems to be what causes this issue for me. I have WP 4.6.1 and Yoast SEO Free 3.7.0.

Rarst - I'm assuming from your closing response that this is not a compatibility issue that you can help with?

I am still getting some JS errors in Console but they don't seem to be the ones stopping the Visual Editor from working.

screen shot 2016-10-19 at 14 55 41

nikkeefe avatar Oct 19 '16 13:10 nikkeefe

Yes, as per my comment above if some code chooses to load old version of the library we can't really do anything about it on our side. We try to stick with native environment as much as possible, so jQuery verison shipped with WP core.

Rarst avatar Oct 20 '16 16:10 Rarst