Title: fatal error message
Last modified: June 22, 2022

---

# fatal error message

 *  [kylerake](https://wordpress.org/support/users/kylerake/)
 * (@kylerake)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-message-196/)
 * Fatal error: Uncaught Error: Call to undefined function WC() in /home2/rake12/
   public_html/skyiservices.com/wp-content/plugins/code-snippets/php/snippet-ops.
   php(484) : eval()’d code:11 Stack trace: #0 /home2/rake12/public_html/skyiservices.
   com/wp-includes/class-wp-hook.php(307): add_product_to_cart(”) #1 /home2/rake12/
   public_html/skyiservices.com/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(
   Array, Array) #2 /home2/rake12/public_html/skyiservices.com/wp-includes/plugin.
   php(476): WP_Hook->do_action(Array) #3 /home2/rake12/public_html/skyiservices.
   com/wp-includes/template-loader.php(13): do_action(‘template_redire…’) #4 /home2/
   rake12/public_html/skyiservices.com/wp-blog-header.php(19): require_once(‘/home2/
   rake12/p…’) #5 /home2/rake12/public_html/skyiservices.com/index.php(17): require(‘/
   home2/rake12/p…’) #6 {main} thrown in /home2/rake12/public_html/skyiservices.
   com/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()’d code
   on line 11
    There has been a critical error on this website.
 * Learn more about troubleshooting WordPress.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-message-196%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-message-196/#post-15762267)
 * The error is apparently caused by an entry you added in the Code Snippets plugin.
   This tries to execute a function that does not exist (anymore).
 * To solve this you have 2 possibilities:
    * Disable the Code Snippets plugin. *
   Or: Look in the Code Snippets settings for the entry causing the error.
 * Further questions should be answered by the manufacturer of the plugin. Their
   support can be found here: [https://wordpress.org/support/plugin/code-snippets/](https://wordpress.org/support/plugin/code-snippets/)

Viewing 1 replies (of 1 total)

The topic ‘fatal error message’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-message-196/#post-15762267)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
