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 rafflepress-giveaway.php file has an occurrence, and I’ve seen $_SERVER[HTTP_HOST] in other files as well.
Are you planning on changing these to $_SERVER[‘REQUEST_URI’] and $_SERVER[‘HTTP_HOST’] at some point?
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Undefined Constants & PHP 8’ is closed to new replies.