Error message after WP 5.0 update

Hello,
after updating Wordpress to version 5.0 on my site a following error is showing on the top of the page:

Notice: Use of undefined constant REQUEST_URI - assumed ‘REQUEST_URI’ in /nfsmnt/hosting1_1/f/0/f044f693-8dea-4f0e-b753-0d26a1f9fed0/komunikujmespolu.sk/web/wp-content/themes/x/functions.php on line 73

Can you please advise what can I do to solve this?

thank you
regards

Hi AAK,

Thanks for writing in!

What you are seeing is a PHP notice. This could be coming from an undefined variable or a variable which is set to null at the moment. To get rid of this PHP notice, please disable the debug mode. You can do this by opening wp-config.php and adding


define('WP_DEBUG', php);

/* That's all, stop editing! Happy blogging. */

When you revisit the page, you should no longer be seeing the PHP notice. To know more about editing the config file, please check this:
https://codex.wordpress.org/Editing_wp-config.php

Please let us know if this works out for you.

Hi RueNel,
it didn`t not work but I changed it to define(‘WP_DEBUG’, false); and it works now. So thanks for giving me the idea :slight_smile:
have a good day

You’re most welcome!

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