Site logo

Archived topic

Warning appear on the top my website

1 reply · Started by Musa Ahmad on November 15, 2019

Viewing posts 1–2 of 2

Hi,

Today I open my website and I see the following warning appear on the top of my website:

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

I have open another page, but the same warning appears on top of each page.

I need help..

Hi there,

REQUEST_URI isn't something in the core functions.php file. This can mean two things:

1. You've added custom code to the functions.php file that needs to be removed.
2. Your server has been compromised and malicious code has been added.

If #2 is the case, you should contact your hosting to help you remove/disable the nasty files, and secure your server (changing passwords etc..).

This archived topic is closed to new replies.