Hello @fakowp,
I’m sorry about your experience. Can you provide more information on what you mean by This happened after a global update of all the site components.
Also, please share your site info via Pastebin – WordPress > Tools > Site Health > Info > Copy site info to clipboard.
Thread Starter
fakowp
(@fakowp)
My website had been running for several years, and recently I decided to update all components to the latest versions, such as WordPress, the site theme, and all plugins that required it. After that, I started encountering an error when working with product categories and attributes.
https://pastebin.com/AfsXWS0V
Often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty-Two.
Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.
If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts
If you feel uncomfortable doing this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.
Thread Starter
fakowp
(@fakowp)
I found two possible solutions to my problem.
The first, temporary one, is to replace line 241 in the /wp-content/plugins/wordpress-seo/inc/options/class-wpseo-taxonomy-meta.php file
from $sanitized = array_map( [ ‘WPSEO_Utils’, ‘sanitize_text_field’ ], $input );
to $sanitized = is_array( $input )
? array_map( [ ‘WPSEO_Utils’, ‘sanitize_text_field’ ], $input )
: [];
And the second option is to edit the site’s database through phpMyAdmin and create a new row in wp_options:
option_name: wpseo_taxonomy_meta
option_value: a:0:{}
autoload: yes