Yoast failure in category pages in Woocommerce
- [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?
- 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.
Please inform the customer of conversation # 320980 when this conversation has been closed.
Please inform the customer of conversation # 320611 when this conversation has been closed.
Please inform the customer of conversation # 320203 when this conversation has been closed.
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.
Worked for me, thanks!
Please inform the customer of conversation # 320740 when this conversation has been closed.
Please inform the customer of conversation # 321148 when this conversation has been closed.
Please inform the customer of conversation # 21039 when this conversation has been closed.
Please inform the customer of conversation # 321131 when this conversation has been closed.
Please inform the customer of conversation # 320843 when this conversation has been closed.