Title: PHP Warning: Undefined property: stdClass::$post_type
Last modified: June 30, 2025

---

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

 *  Resolved [Rede Piabanha](https://wordpress.org/support/users/redepiabanha/)
 * (@redepiabanha)
 * [11 months ago](https://wordpress.org/support/topic/php-warning-undefined-property-stdclasspost_type/)
 * This issue is quickly bloating the error log repeating the following lines multiple
   times in a row.
 * `PHP Warning: Undefined property: stdClass::$post_type in /public_html/wp-content/
   plugins/wp-rss-aggregator/src/Handlers/FeedTemplates/HidePublicTemplateContentHandler.
   php on line 52`

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

 *  Plugin Support [Hendra Setiawan](https://wordpress.org/support/users/hendcorp/)
 * (@hendcorp)
 * [11 months ago](https://wordpress.org/support/topic/php-warning-undefined-property-stdclasspost_type/#post-18535395)
 * Hi [@redepiabanha](https://wordpress.org/support/users/redepiabanha/)
 * Thank you for bringing this to our attention and for sharing the error log details.
 * We understand how frustrating it can be to see your logs fill up with repeated
   warnings. The specific warning you’ve reported occurs when the code tries to 
   access a property that doesn’t exist for certain objects. The good news is that
   this type of warning is harmless in terms of site functionality, your website
   and Aggregator should continue to operate normally. However, we agree it’s important
   to keep error logs clean and avoid unnecessary entries.
 * We will be releasing Aggregator 5.0 soon, and this update will resolve the issue
   permanently.
 * As a temporary and quick workaround, you can modify the file mentioned in the
   warning. You can replace the following code:
 *     ```wp-block-code
       if (!is_object($post) || $post->post_type !== $this->cpt) {    return;}
       ```
   
 * with
 *     ```wp-block-code
       if (!is_object($post) || !property_exists($post, 'post_type') || $post->post_type !== $this->cpt) {    return;}
       ```
   
 * This change ensures the warning no longer appears in your logs.
 * If you need any help applying this change or have any other questions, please
   let us know, we’re always happy to help further.
 * Thank you for your patience and for helping us improve Aggregator!
 *  Thread Starter [Rede Piabanha](https://wordpress.org/support/users/redepiabanha/)
 * (@redepiabanha)
 * [11 months ago](https://wordpress.org/support/topic/php-warning-undefined-property-stdclasspost_type/#post-18536842)
 * Thank you very much for the quick support. I’m testing it and report back here.
 *  Plugin Support [Hendra Setiawan](https://wordpress.org/support/users/hendcorp/)
 * (@hendcorp)
 * [10 months, 4 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-property-stdclasspost_type/#post-18539294)
 * You’re very welcome [@redepiabanha](https://wordpress.org/support/users/redepiabanha/)!
   🙂
 * Please go ahead and test it whenever you’re ready, and just let us know how it
   goes. If you run into anything else or have further questions along the way, 
   we’re here and happy to assist.
 * Looking forward to hearing back from you!

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

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

 * ![](https://ps.w.org/wp-rss-aggregator/assets/icon-256x256.gif?rev=3157090)
 * [RSS Aggregator - RSS Import, News Feeds, Feed to Post, and Autoblogging](https://wordpress.org/plugins/wp-rss-aggregator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rss-aggregator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rss-aggregator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rss-aggregator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rss-aggregator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rss-aggregator/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)
 * [Undefined property](https://wordpress.org/support/topic-tag/undefined-property/)

 * 3 replies
 * 2 participants
 * Last reply from: [Hendra Setiawan](https://wordpress.org/support/users/hendcorp/)
 * Last activity: [10 months, 4 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-property-stdclasspost_type/#post-18539294)
 * Status: resolved