• Resolved Prashant

    (@prash18)


    Hi,

    I added this code 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

    (@bungeshea)

    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

    (@prash18)

    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

    (@bungeshea)

    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.