Title: Remove data from mysql
Last modified: July 11, 2019

---

# Remove data from mysql

 *  [Paul](https://wordpress.org/support/users/pawelszroeder/)
 * (@pawelszroeder)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/remove-data-from-mysql/)
 * Hi! I’ve created own snippet, but it has the wrong code (with error). When I’ve
   clicked saved then my whole website has crushed.
 * I see the error:
 *     ```
       Fatal error: Uncaught Error: Call to a member function have_posts() on null in /home/users/www/public_html/wp-includes/query.php:895 Stack trace: #0 
       /home/users/www/public_html/wp-content/plugins/insert-
       php/includes/class.execute.snippet.php(454) : eval()'d code(1): have_posts() #1 
       /home/users/www/public_html/wp-content/plugins/insert-
       php/includes/class.execute.snippet.php(454): eval() #2 /home/users/www/public_html/wp-
       content/plugins/insert-php/includes/class.execute.snippet.php(343): WINP_Execute_Snippet-
       >executeSnippet(' if(have_posts(...', 997, false) #3 /home/users/www/public_html/wp-
       content/plugins/insert-php/includes/class.execute.snippet.php(52): WINP_Execute_Snippet-
       >executeActiveSnippets('evrywhere') #4 /home/users/www/public_html/wp-includes/class-wp-
       hook.php(286): WINP_Execute_Snippet->executeEverywhereSnippets('') #5 
       /home/users/www/public_html/wp-includes/class-wp-hook.php(310): WP_Hook-
       >apply_filters(NULL, Array) #6 /home/users/www/public_html/wp-includes/plugin.php(465): 
       WP_Hook->do in /home/users/www/public_html/wp-includes/query.php on line 895
   
       The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.
       ```
   
 * It disappears when I deactivate the plugin. I removed the plugin and install,
   but an error has appeared again. I would like to completely deactivate the plugin
   with all data (I see some data in MySQL).
 * How to achieve that?
    -  This topic was modified 6 years, 9 months ago by [Paul](https://wordpress.org/support/users/pawelszroeder/).

Viewing 1 replies (of 1 total)

 *  [Temyk](https://wordpress.org/support/users/webtemyk/)
 * (@webtemyk)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/remove-data-from-mysql/#post-11724473)
 * Hi,
 * In the Woody settings have the option “Complete remove”.
    OR 1. Go to the safe
   mode by this link: [http://your-site-name.dev/wp-admin/?wbcr-php-snippets-safe-mode](http://your-site-name.dev/wp-admin/?wbcr-php-snippets-safe-mode)
   2. Edit the snippet in which you made a mistake; 3. Leave safe mode by clicking
   the link: [http://your-site-name.dev/wp-admin/?wbcr-php-snippets-disable-safe-mode](http://your-site-name.dev/wp-admin/?wbcr-php-snippets-disable-safe-mode)

Viewing 1 replies (of 1 total)

The topic ‘Remove data from mysql’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3475630)
 * [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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Temyk](https://wordpress.org/support/users/webtemyk/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/remove-data-from-mysql/#post-11724473)
 * Status: not resolved