v2.1.0+: fatal error with Yoast
-
Hey! I’m a developer for Yoast SEO.
We recently got a number of reports (1 – 2 – 3) about a fatal error in conjunction with your plugin.
After a short investigation, it seems that the root cause is this line:add_filter( 'views_edit-post', '__return_null' );
Looking at the docs, the WP filter requires a non-nullable string array. Unfortunately, we assume that it’s an array here:
public function add_filter_link( array $views ) {
This of course causes a fatal error:
Error message: Uncaught TypeError: WPSEO_Abstract_Post_Filter::add_filter_link(): Argument #1 ($views) must be of type array, null given
Do you think you can look into it?
Thanks in advance!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘v2.1.0+: fatal error with Yoast’ is closed to new replies.