• Resolved Kybernetik Services

    (@kybernetikservices)


    Hi there.

    On a customers website I got an error message from the WordPress messaging system which is related to Yoast SEO (16.9), with PHP 7.4.22.

    This is the error message:

    Ein Fehler vom Typ E_ERROR wurde in der Zeile 101 der Datei /wp-content/plugins/wordpress-seo/admin/filters/class-abstract-post-filter.php verursacht. Fehlermeldung: Uncaught TypeError: Argument 1 passed to WPSEO_Abstract_Post_Filter::add_filter_link() must be of the type array, null given, called in /wp-includes/class-wp-hook.php on line 303 and defined in /wp-content/plugins/wordpress-seo/admin/filters/class-abstract-post-filter.php:101
    Stack trace:
    #0 /wp-includes/class-wp-hook.php(303): WPSEO_Abstract_Post_Filter->add_filter_link(NULL)
    #1 /wp-includes/plugin.php(189): WP_Hook->apply_filters(NULL, Array)
    #2 /wp-admin/includes/class-wp-list-table.php(405): apply_filters('views_edit-list...', Array)
    #3 /wp-admin/edit.php(459): WP_List_Table->views()
    #4 {main}
      thrown

    This happen when I do a search in the backend on a custom post type admin table.

    Any idea how to solve this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support devnihil

    (@devnihil)

    @kybernetikservices We’re sorry to hear you are experiencing this issue on your site.

    Can you please confirm you are using the most recent release of Yoast SEO version 17.0? You can learn more about updating here: https://yoast.com/help/how-can-i-update-my-free-plugin/

    Also, can you confirm you are using WordPress 5.8? You can check by clicking on the W in the top left and selecting About. If you need to update, please check with your host provider. Please know that if you are using an older version of WordPress Core you may experience unexpected behavior with Yoast. This guide explains more: https://yoast.com/why-we-dont-support-old-wordpress-versions/

    If you update to the most current version of WordPress and Yoast SEO, does this resolve the issue?

    If you have confirmed both WordPress, Yoast SEO, and all of your site’s other plugins and themes are up to date and the problem is still occurring, we would next recommend performing a conflict check. A plugin or theme conflict can sometimes cause functionality problems, errors, or unexpected behavior from the plugin. If you are unfamiliar with checking for conflicts, we have a step by step guide on how to check for conflicts available here: How to check for plugin conflicts.

    Test this on your development or staging site, if you have one. If not, we recommend using the?Health Check & Troubleshooting?plugin. This plugin allows you to run a conflict check?without affecting normal visitors to your site.

    Can you please confirm you have performed a complete conflict check by disabling other plugins, and resetting the theme to a default such as TwentyTwentyOne and let us know the results?

    If you do not feel comfortable to do this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.

    Thread Starter Kybernetik Services

    (@kybernetikservices)

    Thank you @devnihil for this typical templated support answer.
    You write a lot but nothing.
    I’m a developer as well and I know the provided error message is enought to fix the issue. It doesn’t matter what another plugin do in the backend.
    The error comes because wordpress-seo/admin/filters/class-abstract-post-filter.php expect in line 101 an array but null is given. Doesn’t matter why because it comes up in the backend, where Yoast shouldn’t have any effect.
    So, the error handling of your code is wrong not the code of others.
    It would be easy for your devlopers to fix this. But instead looking into it you offer a paid support to fix a bug that is your responsibility. Good business model :-/

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi,

    We hope you understand that we do request to ensure that whenever there is an issue or error, that it is reproducible on the latest version of Yoast SEO for WordPress (which is v17.0) as we don’t provide support for older versions. We also do ask if everything on the website is up-to-date and meets the plugin requirements, just to ensure and eliminate different factors such as outdated plugins and requirements.

    We also do ask for a conflict check to ensure that there isn’t any conflicting plugin or theme and we want to make sure we are able to reproduce the issue or error you’ve mentioned.

    Since you’ve mentioned that the error happens only “when I do a search in the backend on a custom post type admin table.”, if you are able to reproduce this with only a default WP theme, Yoast SEO v17.0, and the plugin that would generate that CPT, we recommend that you log a bug report by following the steps here – https://yoast.com/help/how-to-write-a-good-bug-report/

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘E_ERROR in class-abstract-post-filter.php’ is closed to new replies.