Title: Error while adding custom snippet
Last modified: August 28, 2019

---

# Error while adding custom snippet

 *  Resolved [Prashant](https://wordpress.org/support/users/prash18/)
 * (@prash18)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/error-while-adding-custom-snippet/)
 * Hi,
 *  I added [this code](https://docs.sproutinvoices.com/article/75-creating-a-sprout-invoice-manually)
   in code snippet next moment it started showing this
    ” Fatal error: Uncaught 
   Error: Class ‘SI_Invoice’ not found in /home/h7cc1beh25ov/public_html/wp-content/
   plugins/code-snippets/php/snippet-ops.php(361) : eval()’d code:5 Stack trace:#
   0 /home/h7cc1beh25ov/public_html/wp-content/plugins/code-snippets/php/snippet-
   ops.php(361): eval() #1 /home/h7cc1beh25ov/public_html/wp-content/plugins/code-
   snippets/php/snippet-ops.php(450): execute_snippet(‘// create the p…’, 13) #2/
   home/h7cc1beh25ov/public_html/wp-includes/class-wp-hook.php(286): execute_active_snippets(”)#
   3 /home/h7cc1beh25ov/public_html/wp-includes/class-wp-hook.php(310): WP_Hook-
   >apply_filters(NULL, Array) #4 /home/h7cc1beh25ov/public_html/wp-includes/plugin.
   php(465): WP_Hook->do_action(Array) #5 /home/h7cc1beh25ov/public_html/wp-settings.
   php(394): do_action(‘plugins_loaded’) #6 /home/h7cc1beh25ov/public_html/wp-config.
   php(104): require_once(‘/home/h7cc1beh2…’) #7 /home/h7cc1beh25ov/public_html/
   wp-load.php(37): require_once(‘/home/h7cc1beh2…’) #8 /home/h7cc1beh25ov/public_html/
   wp-admin/admin.php(34): require_onc in /home/h7cc1beh25ov/public_html/wp-content/
   plugins/code-snippets/php/snippet-ops.php(361) : eval()’d code on line 5 The 
   site is experiencing technical difficulties. Please check your site admin email
   inbox for instructions.”
 * How to solve this?
 * Regards
 * Prashant…

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/error-while-adding-custom-snippet/#post-11875088)
 * This is an error in the code of one of your snippets. You are trying to use a
   class named `SI_Invoice` which does not exist.
 *  Thread Starter [Prashant](https://wordpress.org/support/users/prash18/)
 * (@prash18)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/error-while-adding-custom-snippet/#post-11875315)
 * hi Shea,
 *  thanks for the wonderful plugin, I am enjoying it.
 * Followed instructions provided by u to login with safe mode and deleted the snippet
   which was causing the issue. Now, I don’t want to use that particular snippet.
 * All is well again!
    Thanks!
 * Prashant… 🙂
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/error-while-adding-custom-snippet/#post-11875681)
 * Glad to hear you could get it working!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error while adding custom snippet’ 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/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [down](https://wordpress.org/support/topic-tag/down/)
 * [site](https://wordpress.org/support/topic-tag/site/)
 * [snippet](https://wordpress.org/support/topic-tag/snippet/)
 * [sprout](https://wordpress.org/support/topic-tag/sprout/)

 * 3 replies
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/error-while-adding-custom-snippet/#post-11875681)
 * Status: resolved