Trying to get property ‘object_id’ of non-object
-
Hi,
When I go inside (/wp/wp-admin/edit.php?post_type=acf-field-group), I got the following error :
Trying to get property ‘object_id’ of non-object
# wordpress-seo/src/integrations/admin/admin-columns-cache-integration.php:112 foreach ( $indexables as $indexable ) { $this->indexable_cache[ $indexable->object_id ] = $indexable; }
$indexables returns an array of two empty items.
A temporary fix :
foreach ( $indexables as $indexable ) { if (empty($indexable)) continue; $this->indexable_cache[ $indexable->object_id ] = $indexable; }
Another fix I found is to rollback to 19.10 or less, then go back to 20.0.
However, I don’t know if these “hotfixs” has other repercussions…
Website infos :
- WordPress 6.1.1
- Yoast SEO 20.0 / 20.1-RC-7
- PHP 7.4
Thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Trying to get property ‘object_id’ of non-object’ is closed to new replies.