Title: PHP Warning: eval()&#8217;d code
Last modified: February 19, 2022

---

# PHP Warning: eval()’d code

 *  Resolved [janon123](https://wordpress.org/support/users/janon123/)
 * (@janon123)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-warning-evald-code/)
 * Hi,
 * My Debug log is flooded with the following PHP Warning:
    **PHP Warning: A non-
   numeric value encountered in /public_html/wp-content/plugins/code-snippets/php/
   snippet-ops.php(469) : eval()’d code on line 3**
 * When I inspected that file and line, this is the code:
    **$result = eval( $code);**
 * This warning seems to kick in once a site visitor clicks on the WooCommerce Cart
   and/or Checkout pages.
 * Can you advise on how I can correct this?
 * Thanks in advance,
 * Jane

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-warning-evald-code/#post-15621057)
 * This is an error with one of your snippets. You have a variable or value that
   is being treated as a number when it isn’t one.
 * Unfortunately, without seeing the code, I can’t say more than that.

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning: eval()’d code’ 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, 1 month ago](https://wordpress.org/support/topic/php-warning-evald-code/#post-15621057)
 * Status: resolved