Bad snippet error persists after deletion?
-
Hi, I installed Code Snippets and added a PHP snippet (to edit the columns on a ‘Manage CPT’ page in the dashboard), and set the location to ‘Admin Area’.
The snippet was working great. I then made a change to the snippet, which has caused an error, which now appears on any page in the admin area.
WPCode has detected an error in one of the snippets which has now been automatically deactivated.
Error message:
Cannont redeclare my_contacts_columns() (previously declared in /home/courageo/public_html/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-snippet-execute.php(292) : eval()'d code:2)Here are my steps so far:
- I found the bad snippet in the wp_posts and edited the snippet. Error persisted.
- I deleted the bad snippet from the wp_posts table. Error persisted.
- I edited the name of the plugin, so WP would de-activate. Then I changed the name back and uninstalled the plugin. I then re-installed and activated the Code Snippets plugin, and the error immediately returned (without re-adding the snippet).
How do I get rid of the bad snippet fully? It would seem that the snippet is cached somewhere? Please help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.