• Resolved ejw773

    (@ejw773)


    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)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined Constants & PHP 8’ is closed to new replies.