Title: Plugin Crashed due to die function
Last modified: August 21, 2024

---

# Plugin Crashed due to die function

 *  Resolved [eswarnaiduv](https://wordpress.org/support/users/eswarnaiduv/)
 * (@eswarnaiduv)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/plugin-crashed-due-to-die-function/)
 * Hi Everyone,
 * I have installed WPcode and created a snippet and unfortunately I have added 
   die() function in the first line of the snippet and because of this site got 
   broke.
 * I have tried enabling safemode. But, still couldnt able to load the admin console
   to deactivate the snippet, I went to filemanage in my hosting panel and deleted
   plugin files and site started working. whenever I reinstall wpcode and activate
   it. My site is crashing. I have tried deleting some rows in my database from 
   the posts table where this die() function is found.
 * After deleting the rows, I was able to access wpcode in safemode and while i 
   check the snippets, there are zero snippets. But, still site is crashing, if 
   i remove safemode.
 * How can I resolve this issue. because of this we were forced to use codesnippets
   plugin. But, wpcode is much more flexible compared to any other snippet plugins.
 * Can someone help me fix this issue.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/plugin-crashed-due-to-die-function/#post-17965926)
 * Hi [@eswarnaiduv](https://wordpress.org/support/users/eswarnaiduv/),
 * To get around the issue at this point you will have to activate any snippet when
   in Safe Mode to reset the plugin snippet preload.
 * WPCode preloads snippets for execution separately from the tables where the snippets
   info is stored.
 * Activating any snippet in safe mode will reset the snippet preload option, you
   can create a new empty snippet and activate it.
 * If you run into this issue in the future please use WPCode Safe Mode to quickly
   update the faulty snippet as described here: [https://wpcode.com/docs/php-error-handling-safe-mode/](https://wpcode.com/docs/php-error-handling-safe-mode/)

Viewing 1 replies (of 1 total)

The topic ‘Plugin Crashed due to die function’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/plugin-crashed-due-to-die-function/#post-17965926)
 * Status: resolved