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

Yoast failure in category pages in Woocommerce

Open jennyhwd opened this issue 8 years ago • 10 comments

  • [x] I've read and understood the contribution guidelines.
  • [x] I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

I cannot edit a category when Yoast is active. The update button is missing. There are errors at the bottom of the page.

Please describe what you expected to happen and why.

This error (slightly edited) appears. I just expect this error not to be there.

Fatal error: Uncaught TypeError: Argument 1 passed to WPSEO_Metabox_Tab_Section::add_tab() must implement interface WPSEO_Metabox_Tab, boolean given, called in /var/www/vhosts/xxx.com/httpdocs/wp-content/plugins/wordpress-seo/admin/metabox/class-metabox-tab-section.php on line 60 and defined in /var/www/vhosts/xxxx.com/httpdocs/wp-content/plugins/wordpress-seo/admin/metabox/class-metabox-tab-section.php:109 Stack trace: #0 /var/www/vhosts/xxx.com/httpdocs/wp-content/plugins/wordpress-seo/admin/metabox/class-metabox-tab-section.php(60): WPSEO_Metabox_Tab_Section->add_tab(false) #1 /var/www/vhosts/xxx.com/httpdocs/wp-content/plugins/wordpress-seo/admin/taxonomy/class-taxonomy-metabox.php(197): WPSEO_Metabox_Tab_Section->__construct('social', '<span class="sc...', Array, Array) #2 /var/www/vhosts/xxx.com/httpdocs/wp-content/plugins/wordpress-seo/admin/taxonomy/class-taxonomy-metabox.php(109): WPSEO_Taxonomy_Metabox->get_social_meta_section() #3 /var/ww in /var/www/vhosts/xxxx.com/httpdocs/wp-content/plugins/wordpress-seo/admin/metabox/class-metabox-tab-section.php on line 109

How can we reproduce this behavior?

  1. You need to be logged in. 2.

Technical info

  • WordPress version: WordPress 4.9.4 with child Storefront
  • Yoast SEO version: 7.0.1
  • Relevant plugins in case of a bug:
  • Tested with theme: If using an out of date Storefront (test site) it works, but on the up-to-date one it doesn't.

jennyhwd avatar Mar 07 '18 13:03 jennyhwd

Please inform the customer of conversation # 320980 when this conversation has been closed.

rmarcano avatar Mar 07 '18 15:03 rmarcano

Please inform the customer of conversation # 320611 when this conversation has been closed.

rmarcano avatar Mar 07 '18 15:03 rmarcano

Please inform the customer of conversation # 320203 when this conversation has been closed.

rmarcano avatar Mar 07 '18 15:03 rmarcano

Was able to find where this is going wrong.

Under Social either Facebook or Twitter is disabled. This causes the error. A temporary fix would be to enable both social platforms until we release a new patch.

jcomack avatar Mar 07 '18 15:03 jcomack

Worked for me, thanks!

FernandoSumun avatar Mar 07 '18 17:03 FernandoSumun

Please inform the customer of conversation # 320740 when this conversation has been closed.

rmarcano avatar Mar 07 '18 18:03 rmarcano

Please inform the customer of conversation # 321148 when this conversation has been closed.

rmarcano avatar Mar 07 '18 18:03 rmarcano

Please inform the customer of conversation # 21039 when this conversation has been closed.

devnihil avatar Mar 07 '18 19:03 devnihil

Please inform the customer of conversation # 321131 when this conversation has been closed.

mariusghitulescu avatar Mar 07 '18 19:03 mariusghitulescu

Please inform the customer of conversation # 320843 when this conversation has been closed.

rmarcano avatar Mar 07 '18 21:03 rmarcano