Title: Error warning
Last modified: April 22, 2026

---

# Error warning

 *  Resolved [fjavier](https://wordpress.org/support/users/fjavier/)
 * (@fjavier)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/error-warning-24/)
 * I have this html snippet that displays only to logged in users; however, I’m 
   seeing the following warning on top of the generated content…
 *     ```wp-block-code
       [wbcr_html_snippet]: PHP snippets error (not passed the snippet ID)
       ```
   
    - WP: 6.9.4
    - PHP: 8.3.30 @ Apache
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-warning-24%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/error-warning-24/#post-18888824)
 * Hey [@fjavier](https://wordpress.org/support/users/fjavier/),
 * Can you share more details? What’s in that HTML snippet and how are you adding
   it to your site, using a shortcode or block?
 * Thank you!
 *  Thread Starter [fjavier](https://wordpress.org/support/users/fjavier/)
 * (@fjavier)
 * [1 month ago](https://wordpress.org/support/topic/error-warning-24/#post-18890277)
 * Is HTmL, using blocks.
 * Thanks!
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [1 month ago](https://wordpress.org/support/topic/error-warning-24/#post-18890380)
 * Hi [@fjavier](https://wordpress.org/support/users/fjavier/),
 * Can you please paste the content of the snippet or export it as send it to us
   here via a download link so we could try to reproduce the issue on our end? We
   tried to reproduce it with a simple HTML snippet using a block and weren’t able
   to reproduce the issue.
 * Thank you!
 *  Thread Starter [fjavier](https://wordpress.org/support/users/fjavier/)
 * (@fjavier)
 * [1 month ago](https://wordpress.org/support/topic/error-warning-24/#post-18894929)
 * I don’t have those contents anymore since at some point I had several items for
   different user levels being generated on that particular page. I did not realize
   until now that some of those items that I deleted were already removed for good
   from the trash. Therefore, removing the old shortcodes fixed the issue.
 * Thanks!
 *  Plugin Support [rodicaelena](https://wordpress.org/support/users/rodicaelena/)
 * (@rodicaelena)
 * [1 month ago](https://wordpress.org/support/topic/error-warning-24/#post-18895196)
 * Ok, thank you for the update!

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

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

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

## Tags

 * [snippet](https://wordpress.org/support/topic-tag/snippet/)

 * 5 replies
 * 3 participants
 * Last reply from: [rodicaelena](https://wordpress.org/support/users/rodicaelena/)
 * Last activity: [1 month ago](https://wordpress.org/support/topic/error-warning-24/#post-18895196)
 * Status: resolved