• Resolved nicko2u

    (@nicko2u)


    I’m seeing many PHP warning logs related to this plugin. Using PHP 8.2.

    This should be fixed? as it seems in later versions of PHP this warning may become a fatal error?

    [18-Jul-2024 03:29:09 UTC] PHP Warning: Undefined property: stdClass::$content in /home/testsite/public_html/wp-content/plugins/nextgen-gallery/src/Util/Router.php on line 595

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @nicko2u,

    Thanks for reaching out!

    While checking on our setup we couldn’t replicate the issue while using the PHP 8.2 and NextGEN Gallery. I suggest you download a fresh copy of the latest NextGen Gallery and, then replace the one from your site’s Dashboard > Plugins > Add new plugin > Upload plugin > Choose File (with the files’ override when being asked) to see if that’ll fix the issue?

    Re-installing NextGen Gallery wouldn’t affect your existing galleries.

    Thanks!

    Found the same warnings in log of a client, it has been fixed with 3.59.4 released on same day as this thread started:

    3.59.4 Router.php:595
    && is_string( $post->post_content )
    && ( strpos( $post->post_content, '<!--nextpage-->' ) === false )
    3.59.3 Router.php:595
    && is_string( $post->content )
    && ( strpos( $post->content, '<!--nextpage-->' ) === false )
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Warning: Undefined property: stdClass::$content’ is closed to new replies.