Title: Getting PHP Deprecated warning
Last modified: September 29, 2024

---

# Getting PHP Deprecated warning

 *  Resolved [lucein](https://wordpress.org/support/users/lucein/)
 * (@lucein)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/getting-php-deprecated-warning/)
 * Hello we are running the lates version of code snippets: 3.6.5.1
 * But in the error log we are seeing constant PHP warnings about code in your plugin
   having PHP Deprecated warnings. Below is the error message we are seeing.
 * PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /
   wp-content/plugins/code-snippets/php/snippet-ops.php(582) : eval()’d code on 
   line 248
 * Please help as these are filling my error log.

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

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/getting-php-deprecated-warning/#post-18045535)
 * Hi [@lucein](https://wordpress.org/support/users/lucein/),
 * This error is coming from one of your snippets, not from the plugin itself. Doing
   a search for `${ @line:248` should uncover the problematic snippet – feel free
   to post here for some help with fixing.
 *  Thread Starter [lucein](https://wordpress.org/support/users/lucein/)
 * (@lucein)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/getting-php-deprecated-warning/#post-18048454)
 * thank you, I was not sure.

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

The topic ‘Getting PHP Deprecated warning’ 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: [lucein](https://wordpress.org/support/users/lucein/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/getting-php-deprecated-warning/#post-18048454)
 * Status: resolved