Title: PHP warning in posts/index.php
Last modified: April 24, 2024

---

# PHP warning in posts/index.php

 *  Resolved [ewd910](https://wordpress.org/support/users/ewd910/)
 * (@ewd910)
 * [2 years ago](https://wordpress.org/support/topic/php-warning-in-posts-index-php/)
 * Hi, I was checking the logs on my site and I noticed a bunch of logs coming from
   this plugin I’m not sure what causes the php warning but it seems to be happening
   every few minutes. The log is here –
 *     ```wp-block-code
        PHP Warning:  Attempt to read property "ID" on null in /wp-content/plugins/coblocks/src/blocks/posts/index.php on line 25
       ```
   
 * maybe this happens on archive pages where there is no `post` global variable?

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

 *  Plugin Author [Olivier Lafleur](https://wordpress.org/support/users/olivierlafleur/)
 * (@olivierlafleur)
 * [2 years ago](https://wordpress.org/support/topic/php-warning-in-posts-index-php/#post-17713447)
 * Working on a fix here : [https://github.com/godaddy-wordpress/coblocks/pull/2606](https://github.com/godaddy-wordpress/coblocks/pull/2606)
 *  Plugin Author [Olivier Lafleur](https://wordpress.org/support/users/olivierlafleur/)
 * (@olivierlafleur)
 * [2 years ago](https://wordpress.org/support/topic/php-warning-in-posts-index-php/#post-17713647)
 * The fix has been merged, will be released in the next version.

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

The topic ‘PHP warning in posts/index.php’ is closed to new replies.

 * ![](https://ps.w.org/coblocks/assets/icon-256x256.jpg?rev=2243972)
 * [Page Builder Gutenberg Blocks – CoBlocks](https://wordpress.org/plugins/coblocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/coblocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/coblocks/)
 * [Active Topics](https://wordpress.org/support/plugin/coblocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/coblocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/coblocks/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Olivier Lafleur](https://wordpress.org/support/users/olivierlafleur/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/php-warning-in-posts-index-php/#post-17713647)
 * Status: resolved