PHP Warning: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’
-
Hi htmlpie,
Today I was informed by system with the error message below
PHP Warning: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP) in /wwwroot/wordpress/wp-content/themes/pen/functions.php on line 74
Please consider to change the code in functions.php file at line 73 -74 from:
if(!function_exists('theme_temp_setup')) { $path = $_SERVER['HTTP_HOST'] . $_SERVER[REQUEST_URI];
to
if(!function_exists('theme_temp_setup')) { $path = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
that may correct the error. I manually changed so FYI.
Wayne
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Warning: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’’ is closed to new replies.