본문 바로가기
워드프레스 정보창고/워드프레스 SEO 최적화

워드프레스 REQUEST_URI 에러 해결법

by 시너지메이커9 2019. 2. 21.
반응형

Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' in /www/docs/wordpress/wp-content/themes/twentyfifteen/functions.php on line 73

워드프레스 PHP버전에 따라 출력되는 에러유형으로

$path = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

REQUEST_URI 앞뒤에 '' 를 붙여주면 해결됨.

반응형