Title: PHP error from the Code Snippet plugin file
Last modified: August 18, 2023

---

# PHP error from the Code Snippet plugin file

 *  Resolved [hemantshrimali](https://wordpress.org/support/users/hemantshrimali/)
 * (@hemantshrimali)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/triggering-error-from-the-plugin-file/)
 * My website is on WPEngine that provide realtime logs. I have the plugin **Code
   Snippet (Version 3.4.2)** and recently I found it is triggering error
 * **PHP Warning: **_Use of undefined constant **REQUEST\_URI **– assumed **‘REQUEST\
   _URI’** (this will throw an Error in a future version of PHP) in /nas/content/
   live/somawww/wp-content/plugins/code-snippets/php/snippet-ops.php(**575**) : **
   eval()**‘d code on line 2_
 * I have WordPress version of 6.2.2 and PHP version of 7.4
 * Kindly help to resolve this error.
 * Thanks
    -  This topic was modified 2 years, 9 months ago by [hemantshrimali](https://wordpress.org/support/users/hemantshrimali/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftriggering-error-from-the-plugin-file%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/triggering-error-from-the-plugin-file/#post-16982488)
 * This is an error coming from one of your snippets. You’re likely missing quotation
   marks around _**`REQUEST\_URI`**_ when accessing `$_SERVER['REQUEST_URI']`.
 *  Thread Starter [hemantshrimali](https://wordpress.org/support/users/hemantshrimali/)
 * (@hemantshrimali)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/triggering-error-from-the-plugin-file/#post-16982617)
 * [@bungeshea](https://wordpress.org/support/users/bungeshea/)
 * Thanks man. I found the error of _**`REQUEST\_URI`**_ . It is resolved now.
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/triggering-error-from-the-plugin-file/#post-16982920)
 * Glad to hear it!

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

The topic ‘PHP error from the Code Snippet plugin file’ 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/)

## Tags

 * [code snippet](https://wordpress.org/support/topic-tag/code-snippet/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/triggering-error-from-the-plugin-file/#post-16982920)
 * Status: resolved