본문 바로가기
카테고리 없음

워드프레스 Warning: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ 에러 유형 수정

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

워드프레스 Warning: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ 에러 유형 수정

Warning: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ (this will throw an Error in a future version of PHP) in /var/www/web33/web/wp-content/themes/slanted-master/functions.php on line 73

테마내  functions.php 파일의 73번째 줄을 다음으로 변경해주시면 됩니다.

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

 

반응형