• Resolved deyanailieva

    (@deyanailieva)


    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    we have not been able to reproduce the issue on our side.

    Which version of WP, SEOPress, PHP, GenerateBlocks do you have please?

    Which theme do you use?

    Thx

    Thread Starter deyanailieva

    (@deyanailieva)

    Thanks for the quick response. I have:

    WordPress 6.4.2
    SEOPress 7.3.2
    PHP 8.1
    GenerateBlocks (Free Version) 1.8.2
    Theme is Generatepress 3.3.1 with Child Theme

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    If you use the GeneratePress without your child theme, is this better?

    Is you enabled WP_DEBUG, do you have more details in the debug.log file?

    https://www.seopress.org/support/guides/wp_debug-enable-error-logging-in-wordpress/

    Thread Starter deyanailieva

    (@deyanailieva)

    Without child theme is the same.

    In the debug.log is the same.

    I noticed that the problem is only with some categories.

    When I edit the page I see another message for a second:

    Warning: cannot modify header information – headers already sent by (output started at /home/zbut/www/www/wp-includes/link-template.php:247) in /home/zbut/www/www/wp-admin/admin-header.php on line 9

    Line 9 is

    header( ‘Content-Type: ‘ . get_option( ‘html_type’ ) . ‘; charset=’ . get_option( ‘blog_charset’ ) );

    • This reply was modified 2 years, 4 months ago by deyanailieva.
    Plugin Author Benjamin Denis

    (@rainbowgeek)

    Do you have the remove /category/ option enabled from SEO, Advanced, Advanced tab?

    Try to disable it.

    Do you still see the error?

    If yes, try to flush your permalinks.

    Make sure to update to version 7.4 of SEOPress.

    Thread Starter deyanailieva

    (@deyanailieva)

    “Remove /category/ in your permalinks” is not enabled.

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    Can you contact us by sending us an email to contact[at]seopress[dot]org please?

    Thx

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Error with Generateblocks and PHP 8.1.’ is closed to new replies.