Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.77k stars 891 forks source link

Can not access to posts list in wordpress admin panel #21031

Closed rogersold closed 9 months ago

rogersold commented 9 months ago

After upgrade all plugins, YOAST and WP to latest versions, I have received this error when I try to access to “posts” lists in admin panel.

An error of type E_ERROR occurred on line 101 of the file /www/wp-content/plugins/wordpress-seo/admin/filters/class-abstract-post-filter.php. The error message: Uncaught TypeError: WPSEO_Abstract_Post_Filter::add_filter_link(): Argument #1 ($views) must be of type array, null given, called in /www/wp-includes/class-wp-hook.php on line 324 and defined in /www/wp-content/plugins/wordpress-seo/admin/filters/class-abstract-post-filter.php:101 Stack trace:

0 /www/wp-includes/class-wp-hook.php(324): WPSEO_Abstract_Post_Filter->add_filter_link(NULL)

1 /www/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array)

2 /www/wp-admin/includes/class-wp-list-table.php(515): apply_filters('views_edit-post', Array)

3 /www/wp-admin/edit.php(486): WP_List_Table->views()

4 {main}

thrown

Used versions

WP: 6.4.2 YOAST: 21.8 PHP: 8.2.12

josevarghese commented 9 months ago

Hi @rogersold

Thanks for using the Yoast SEO plugin and for creating an issue with details.

I tested the latest version of Yoast SEO (21.8) with the PHP version (8.2.10) and noticed that the post overview and post edit screen are loading without any issues.

So we suggest performing a conflict check to see if the error is due to some plugin conflict after clearing the browser cache and server cache.

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.

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 regular 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.

Can you please inform us of the results to help you figure out what the problem is?

We look forward to hearing from you and are happy to help you.

rogersold commented 9 months ago

Thx for your answer I Found it! It's some kind of incompatibility with the plugin:

WooCommerce Product Tabs Author: Barn2 Plugins Version: 2.1.0

josevarghese commented 9 months ago

Hi @rogersold

It is good to hear that it was due to incompatibility with other plugins. So, we recommend that you contact the respective plugin developers to look at why the error happens.

We use GitHub exclusively for well-documented bug reports or feature requests. If you need any further support in the future, we recommend you to use the following support channels:

Thank you for your understanding.