Error with Generateblocks and PHP 8.1.
-
For each category I made a custom category page using Generateblocks and Block Element with Query Loops.
When I updated to PHP 8.1. and an error occurred when SEOPress Image SEO & Advanced settings are enabled.
Currently, the rest of the settings are enabled, and only these are disabled. And everything is alright.But If I enable “Image SEO & Advanced settings”, the following error message appears on pages before the content:
Warning: Undefined property: WP_Error::$slug in /home/zbut/www/www/wp-includes/link-template.php on line 247
Warning: Undefined property: WP_Error::$parent in /home/zbut/www/www/wp-includes/link-template.php on line 248
Errors appear even if all options in “Image SEO & Advanced settings” are disabled.
Here are pictures of the errors, parameters for one Query Loop (there are several on each page that are made the same way) and code:
https://postimg.cc/gallery/GbGCDYy
The topic ‘Error with Generateblocks and PHP 8.1.’ is closed to new replies.