Title: Code Snippets Not working
Last modified: October 2, 2021

---

# Code Snippets Not working

 *  Resolved [Terry](https://wordpress.org/support/users/tbilton/)
 * (@tbilton)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/code-snippets-not-working-2/)
 * I installed and enabled Code Snippets, and added a PHP file successfully.
    I 
   added a 2nd file, and that worked successfully. I added a 3rd file and i got 
   the white screen of death:
 *     ```
       Warning: require_once(/home/customer/www/englishcocker.org/public_html/wp-content/plugins/code-snippets/php/templates/directory.php): failed to open stream: No such file or directory in /home/customer/www/englishcocker.org/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code on line 23
   
       Fatal error: require_once(): Failed opening required '/home/customer/www/englishcocker.org/public_html/wp-content/plugins/code-snippets/php/templates/directory.php' (include_path='.:/usr/local/php74/pear') in /home/customer/www/englishcocker.org/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(469) : eval()'d code on line 23
       There has been a critical error on this website.
   
       I got some help, and a developer modified the code as follows:
       ```
   
 * $result = eval($code);
    line 469 in target file originally this was $result =
   true;
 * The site returned to normal, so i tried using the 2 original snippets that i 
   knew worked, but they don’t.
 * I tried deactivating the plugin and re-installing it, and i got another white
   screen (same message). so i went in and modified that fix back to its original:
   
   $result = true;
 * I would love to be able to use Code Snippets, but i have no idea how i can delete
   all of the files/folders/data from my WordPress dashboard so i could start from
   scratch.
 * Any help would be highly appreciated.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/code-snippets-not-working-2/#post-15083475)
 * You can resolve this sort of problem using the safe mode feature. See here for
   more details: [https://help.codesnippets.pro/article/12-safe-mode](https://help.codesnippets.pro/article/12-safe-mode)

Viewing 1 replies (of 1 total)

The topic ‘Code Snippets Not working’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/code-snippets-not-working-2/#post-15083475)
 * Status: resolved