WordPress 5.2 errors

Posted in: Newspaper
Post count: 161

I Update in last hour to new update wordpress 5.2, and have erros now.

Example:

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

Warning: Cannot modify header information – headers already sent by (output started at /home/user/public_html/wp-content/themes/newspaper/functions.php:73) in /home/user/public_html/wp-includes/pluggable.php on line 1251

Warning: Cannot modify header information – headers already sent by (output started at /home/user/public_html/wp-content/themes/newspaper/functions.php:73) in /home/user/public_html/wp-includes/pluggable.php on line 1254

Thanks,

Post count: 20685

Hi,

Where are you seeing these warnings? Do you use the latest theme version? Also what PHP version is used? Is wp-debug set to false in the wp-config file? Let us know.

Thanks

Post count: 161

Hi Simion,

I use last version newspaper.

See this warnings after update WordPress 5.2 in wp-admin and website, wp-config have “define(‘WP_DEBUG’, false);”.

PHP Version 7.2.17

Thanks,

Post count: 161

Problem: https://i.imgur.com/K58heLE.jpg

I Fix the problem (https://wordpress.org/support/topic/warning-use-of-undefined-constant-request_uri-assumed-request_uri/)

functions.php

Line 73

$path = $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’];

  • This reply was modified 7 years by nitrofox.
Post count: 35449

Thank you for sharing the fix!

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.