TypeError in wp-admin (and frontend)
-
Hi,
trying to fiddle around on my local installation (which is a clone of the live site) – only exception: Clone is running PHP 8 because why not while live is on 7.4.
When I go to wp-admin, list all posts, I get this wonderful error:
TypeError: Yoast\WP\SEO\Builders\Indexable_Hierarchy_Builder::build(): Argument #1 ($indexable) must be of type Yoast\WP\SEO\Models\Indexable, bool given, called in {path}/wp-content/plugins/wordpress-seo/src/integrations/watchers/indexable-ancestor-watcher.php on line 197 in {path}/wp-content/plugins/wordpress-seo/src/builders/indexable-hierarchy-builder.php on line 102
And sometimes this:
Fatal error: Uncaught TypeError: Yoast\WP\SEO\Builders\Indexable_Hierarchy_Builder::build(): Argument #1 ($indexable) must be of type Yoast\WP\SEO\Models\Indexable, bool given, called in {path}/wp-content/plugins/wordpress-seo/src/integrations/watchers/indexable-ancestor-watcher.php on line 197 and defined in {path}/wp-content/plugins/wordpress-seo/src/builders/indexable-hierarchy-builder.php on line 102
Or:
Warning: Attempt to read property "post_author" on null in {path}/wp-content/plugins/wordpress-seo/src/integrations/watchers/indexable-post-watcher.php on line 251
And when I try to access a post (not all, thought, not sure what the meta is here), I get this nice error:
Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '256' frames in {path}/wp-includes/plugin.php on line 949
Together with a very long, and I mean extremely long, Call Stack.
I could not yet narrow it down, but if I disable Yoast, all errors are gone.
It is almost like it is trying to do some housekeeping while trying to display a post (or list a post) because if I reload often enough, the error goes away too and only comes back when I try to see another page (like page 2 in wp-admin).
I’ve also tried a couple of things. Like I registered some CPT myself, but I undid all of my custom code – same result. ACF is also innocent. Please help?
Thanks!
- The topic ‘TypeError in wp-admin (and frontend)’ is closed to new replies.