Title: PHP Warning
Last modified: June 22, 2026

---

# PHP Warning

 *  Resolved [BABOO 2026](https://wordpress.org/support/users/baboo2013/)
 * (@baboo2013)
 * [2 weeks, 1 day ago](https://wordpress.org/support/topic/php-warning-573/)
 * How can I fix this message in log?
   PHP Warning: Attempt to read property “post_content”
   on null in ***\wp-content\plugins\alert-box-block\plugin.php

Viewing 1 replies (of 1 total)

 *  Plugin Author [Md. Merajul Islam Sojib](https://wordpress.org/support/users/sojibislam9878/)
 * (@sojibislam9878)
 * [2 weeks ago](https://wordpress.org/support/topic/php-warning-573/#post-18945711)
 * Hi [BABOO](https://wordpress.org/support/users/baboo2013/),
 * Thank you so much for reporting this and including the log message that detail
   made it easy to pinpoint.
 * You’re right, the warning was coming from our plugin. The notice (`Attempt to
   read property "post_content" on null`) happened because one of our functions 
   tried to read the current page’s content in situations where WordPress doesn’t
   have a “current post” available such as archive pages, search results, 404 pages,
   and a few editor/REST contexts. It was a harmless warning (nothing on your site
   was broken), but it shouldn’t have been logged, and we’ve now fixed it.
 * The fix adds a safety check so the function simply skips those contexts where
   no post is present. It’s included in **version 2.0.2**, which is now available.
 * Could you please update to 2.0.2 (Dashboard → Plugins → Update), then reload 
   the pages where you saw the warning? It should no longer appear in your log. 
   The existing entries you saw were recorded before the update and won’t be added
   to again.
 * If you happen to still see anything after updating, just let us know and we’ll
   look into it right away.
 * Thanks again for helping us improve the plugin!
 * Best regards, [Md. Merajul Islam Sojib](https://wordpress.org/support/users/sojibislam9878/),
   Team bPlugins

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-573%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/alert-box-block/assets/icon-128x128.png?rev=2613387)
 * [Alert Box Block](https://wordpress.org/plugins/alert-box-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/alert-box-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/alert-box-block/)
 * [Active Topics](https://wordpress.org/support/plugin/alert-box-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/alert-box-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/alert-box-block/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Md. Merajul Islam Sojib](https://wordpress.org/support/users/sojibislam9878/)
 * Last activity: [2 weeks ago](https://wordpress.org/support/topic/php-warning-573/#post-18945711)
 * Status: resolved