URGENT - Error after wordpress update!

I updated my wordpress to version 4.9.7, and then now my website has this message that won’t go away!
My webhost advised me that its because of the theme and im using X.

Notice: Use of undefined constant REQUEST_URI - assumed ‘REQUEST_URI’ in /home/colesman/public_html/workhardandwander.com/wp-content/themes/x/functions.php on line 48

This message appears even if I am not logged on in wordpress so readers can see it.

Someone please look into this ASAP.

Thanks

Hi @colesmanagement,

Thanks for writing in.

You could follow the link below on how to fix this issue.

Let us know how it goes.

Thanks.

Is there a way to avoid this type of error before running an update?

Hi There,

I’m guessing, most probably you’re running a PHP version below 5.6.x on your server which triggered this PHP notice. We recommend to use PHP v5.6.x or later to avoid any incompatibility issues. You can contact your hosting provider and update if necessary.

Since it’s just a notice, you can ignore it by disabling your WP_DEBUG mode as mentioned in the referenced post.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.