Title: Undefined Constants &amp; PHP 8
Last modified: June 30, 2022

---

# Undefined Constants & PHP 8

 *  Resolved [ejw773](https://wordpress.org/support/users/ejw773/)
 * (@ejw773)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/undefined-constants-php-8/)
 * I have not had a problem with your plugin yet, but I’ve been tracking down PHP
   8 upgrade troubles with some other plugins due to “undefined constants” causing
   fatal errors. Example: $_SERVER[REQUEST_URI] throws a fatal error, as PHP 7 would
   implicitly convert REQUEST_URI to a constant, but PHP 8 won’t.
 * I noticed your Class_rf.php file had a few of these (as well as a couple occurrences
   of $_SERVER[HTTP_HOST]).
 * Are you planning on changing these to $_SERVER[‘REQUEST_URI’] at some point?
 * Thanks!

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

 *  Plugin Author [Rewards Fuel](https://wordpress.org/support/users/rewardsfuel/)
 * (@rewardsfuel)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/undefined-constants-php-8/#post-15789251)
 * Hello,
 * Thanks for bringing this to our attention. We’ll publish an update today.
 *  Thread Starter [ejw773](https://wordpress.org/support/users/ejw773/)
 * (@ejw773)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/undefined-constants-php-8/#post-15789580)
 * Wow, that was fast! Got it installed. Thanks!

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

The topic ‘Undefined Constants & PHP 8’ is closed to new replies.

 * ![](https://ps.w.org/contests-from-rewards-fuel/assets/icon-256x256.png?rev=1232742)
 * [Contests by Rewards Fuel](https://wordpress.org/plugins/contests-from-rewards-fuel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contests-from-rewards-fuel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contests-from-rewards-fuel/)
 * [Active Topics](https://wordpress.org/support/plugin/contests-from-rewards-fuel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contests-from-rewards-fuel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contests-from-rewards-fuel/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ejw773](https://wordpress.org/support/users/ejw773/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/undefined-constants-php-8/#post-15789580)
 * Status: resolved