error logs, PHP Warning after WordPress update on themler theme

Sem
24 Posts
Sem posted this 26 March 2019

After WordPress update on several websites where I am using themler theme can be seen error logs with php warning.
Can this be fixed?

PHP Warning: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP) in /home/..../wp-content/themes/.../functions.php on line 73

After WordPress update on several websites where I am using themler theme can be seen error logs with php warning. Can this be fixed? PHP Warning: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP) in /home/..../wp-content/themes/.../functions.php on line 73
Vote to pay developers attention to this features or issue.
4 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 26 March 2019

Hello,

From which to which version have you updated Wordpress? Also - is there only this warning, or also some real issues with the theme or the website?

Sincerely,
Nettie

Hello, From which to which version have you updated Wordpress? Also - is there only this warning, or also some real issues with the theme or the website? Sincerely, Nettie
copywriter
82 Posts
copywriter posted this 22 June 2020

I have the same problem. After update PHP, I can't log in to wordpress and it's reporting an error

Warning: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP) in /data/web/virtuals/106652/virtual/www/wp-content/themes/Tvorbawebova_200122/functions.php on line 73

I have the same problem. After update PHP, I can't log in to wordpress and it's reporting an error Warning: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP) in /data/web/virtuals/106652/virtual/www/wp-content/themes/Tvorbawebova_200122/functions.php on line 73
copywriter
82 Posts
copywriter posted this 22 June 2020

I found that the error can be corrected by editing the funkctions.php in line 73 as follows:
$path = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

I found that the error can be corrected by editing the funkctions.php in line 73 as follows: $path = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
Support Team
Support Team posted this 22 June 2020

Hello,

Thanks for letting us know. Did you update only PHP or Wordpress itself as well before the issue appeared?

Sincerely,
Nettie

Hello, Thanks for letting us know. Did you update only PHP or Wordpress itself as well before the issue appeared? Sincerely, Nettie
You must log in or register to leave comments