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-2/)
 * 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…
    -  This topic was modified 6 years, 9 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
    -  This topic was modified 6 years, 9 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

The topic ‘Error while adding custom snippet’ is closed to new replies.

 * ![](https://ps.w.org/sprout-invoices/assets/icon-256x256.png?rev=1963899)
 * [Sprout Invoices - Client Invoicing & Estimates](https://wordpress.org/plugins/sprout-invoices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sprout-invoices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sprout-invoices/)
 * [Active Topics](https://wordpress.org/support/plugin/sprout-invoices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sprout-invoices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sprout-invoices/reviews/)

 * 0 replies
 * 1 participant
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/error-while-adding-custom-snippet-2/)
 * Status: resolved