Title: plugin insert-php-code-snippet error
Last modified: January 21, 2024

---

# plugin insert-php-code-snippet error

 *  [pejamide](https://wordpress.org/support/users/pejamide/)
 * (@pejamide)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/plugin-insert-php-code-snippet-error/)
 * The file ‘….\wp-content\plugins\insert-php-code-snippet’ gives a persistend warning‘
   _Warning: Attempt to read property “ID” on null in /customers/5/3/b/bijbelngt.
   nl/httpd.www/wordpress/wp-content/plugins/insert-php-code-snippet/xyz-functions.
   php on line 76′._ How can I suppress that warning? Or how can I correct that 
   problem?

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

 *  [anjalixyzscripts](https://wordpress.org/support/users/anjali94/)
 * (@anjali94)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/plugin-insert-php-code-snippet-error/#post-17361417)
 * Hello [@pejamide](https://wordpress.org/support/users/pejamide/),
   The warning
   you’re seeing is likely related to the preview page added by Insert PHP Code 
   Snippet plugin being deleted.To resolve this issue, please follow these steps:
 * -Check if the “Snippet Preview” page is in the trash. If it is, restore it as
   a draft.
 * -If the “Snippet Preview” page is not in the trash, deactivate and then reactivate
   the Insert PHP Code Snippet plugin. This action will regenerate the “Snippet 
   Preview” page as a draft.
   These steps should address the warning you’re experiencing.
   If you have any further questions or encounter any issues, please feel free to
   reach out.Best Regards,Anjali
 *  Thread Starter [pejamide](https://wordpress.org/support/users/pejamide/)
 * (@pejamide)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/plugin-insert-php-code-snippet-error/#post-17387449)
 * Where can I find ‘Trash’ in order to see if the “Snippet Preview” page is there?
 *  [anjalixyzscripts](https://wordpress.org/support/users/anjali94/)
 * (@anjali94)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/plugin-insert-php-code-snippet-error/#post-17389416)
 * You can locate the ‘Trash’ section within your WordPress admin panel by navigating
   to the URL: [https://YOUR_DOMAIN/wp-admin/edit.php?post_status=trash&post_type=post](https://YOUR_DOMAIN/wp-admin/edit.php?post_status=trash&post_type=post).
 * If the “Snippet Preview” page is not present in the ‘Trash’ section, the recommended
   course of action is to deactivate and then reactivate the Insert PHP Code Snippet
   plugin. This action triggers the regeneration of the “Snippet Preview” page as
   a draft.

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

The topic ‘plugin insert-php-code-snippet error’ is closed to new replies.

 * ![](https://ps.w.org/insert-php-code-snippet/assets/icon-128x128.png?rev=1800967)
 * [Insert PHP Code Snippet](https://wordpress.org/plugins/insert-php-code-snippet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php-code-snippet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php-code-snippet/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [anjalixyzscripts](https://wordpress.org/support/users/anjali94/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/plugin-insert-php-code-snippet-error/#post-17389416)
 * Status: not resolved