Title: PHP Error with Plugin
Last modified: October 21, 2019

---

# PHP Error with Plugin

 *  Resolved [kieranolsson](https://wordpress.org/support/users/kieranolsson/)
 * (@kieranolsson)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-error-with-plugin/)
 * Receiving this error on the back-end:
    Undefined variable: return_string in /
   wp-content/plugins/code-snippets/php/snippet-ops.php(361) : eval()’d code on 
   line 15
 * Currently nothing is wrong with the site that i can see. But this error shows
   up in my logs.
 * When looking into the code this is the variable:
    ” $result = eval( $code ); “

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

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-error-with-plugin/#post-12057034)
 * This error comes from the code in one of your snippets. It’s not something coming
   from the plugin as downloaded or that I can fix; you need to look through your
   snippets (the search feature could be useful here) and find one where you have
   a misplaced `$` sign in front of `return_string`
 *  Thread Starter [kieranolsson](https://wordpress.org/support/users/kieranolsson/)
 * (@kieranolsson)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-error-with-plugin/#post-12059555)
 * Thanks for the help, i had a quick look and you were right!!! i had a snippet
   with $retun_string….
 * Thanks!

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

The topic ‘PHP Error with Plugin’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [kieranolsson](https://wordpress.org/support/users/kieranolsson/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/php-error-with-plugin/#post-12059555)
 * Status: resolved