Title: PHP Warning: Undefined property: stdClass::$content
Last modified: July 18, 2024

---

# PHP Warning: Undefined property: stdClass::$content

 *  Resolved [nicko2u](https://wordpress.org/support/users/nicko2u/)
 * (@nicko2u)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-warning-undefined-property-stdclasscontent/)
 * 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)

 *  [Barsha Paudel](https://wordpress.org/support/users/barsha05/)
 * (@barsha05)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-warning-undefined-property-stdclasscontent/#post-17901539)
 * Hi [@nicko2u](https://wordpress.org/support/users/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!
 *  [ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-undefined-property-stdclasscontent/#post-17984674)
 * 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:
 *     ```wp-block-code
       3.59.4 Router.php:595 	&& is_string( $post->post_content )	&& ( strpos( $post->post_content, '<!--nextpage-->' ) === false )
       ```
   
 *     ```wp-block-code
       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.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-undefined-property-stdclasscontent/#post-17984674)
 * Status: resolved