Title: Generating huge debug
Last modified: March 3, 2022

---

# Generating huge debug

 *  Resolved [2Flow2](https://wordpress.org/support/users/emite/)
 * (@emite)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/generating-huge-debug/)
 * This plugin is generating a **lot** of PHP Notices due to one line in the code…
   is there any way to fix this? I am getting dozens of PHP Notices logged into 
   my debug.log from this plugin, and all of the Notices say:
 * `PHP Notice: Undefined index: hiddenblock in /path/to/install/wp-content/plugins/
   hide-block/hide-block.php on line 73`
 * Which looks like it’s referring to the part in your plugin’s code which reads:
 *     ```
       // Dynamic Return Contents
       function hideblock_plugin_frontend( $block_content, $block ) {
       	if( $block['attrs']['hiddenblock'] ) {
       		return null;
       	} else {
       		return $block_content;
       	}
       }
       add_filter( 'render_block', 'hideblock_plugin_frontend', 10, 3);
       ```
   
 * What can be modified about the code to resolve this and stop the Notices?
    Thanks!

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

 *  Plugin Author [Benjamin Zekavica](https://wordpress.org/support/users/benjamin_zekavica/)
 * (@benjamin_zekavica)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/generating-huge-debug/#post-15454227)
 * It’s now fixed 🙂 Please update your plugin version.
 *  Thread Starter [2Flow2](https://wordpress.org/support/users/emite/)
 * (@emite)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/generating-huge-debug/#post-15458756)
 * Great, this seems to have fixed it! Thanks!

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

The topic ‘Generating huge debug’ is closed to new replies.

 * ![](https://ps.w.org/hide-block/assets/icon-256×256.png?rev=2536711)
 * [Hide Block](https://wordpress.org/plugins/hide-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hide-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hide-block/)
 * [Active Topics](https://wordpress.org/support/plugin/hide-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hide-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hide-block/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [2Flow2](https://wordpress.org/support/users/emite/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/generating-huge-debug/#post-15458756)
 * Status: resolved