• 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)
  • Hello @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

    (@pejamide)

    Where can I find ‘Trash’ in order to see if the “Snippet Preview” page is there?

    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.

    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.