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

Warning: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ (this will throw an Error in a future version of PHP) in …/oceanwp/functions.php on line 73

Albert He: Not sure when it start to happen on the site : https://yanfang.211cn.ca/

It give me warning message: Warning: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ (this will throw an Error in a future version of PHP) in /home/hostlike/pubweb211/211yanfang/wp-content/themes/oceanwp/functions.php on line 73

I’ve restored to the oldest date, but it still not fix. Something related to AUTO UPDATE DISASTER. Please help!


Albert He: This question is related to website: hostlike.com

Victoria G.: Hello Albert!

Albert He: hi

Victoria G.: Thanks for coming to the live chat support

Victoria G.: I see your initial message, thanks for the details, and I will do my best to assist you. I will open the site to see the warning

Albert He: thanks

Victoria G.: I will add first a rule to try to put the warnings on a text log as usual and not here on the front end and we will test it after I clear cache one second please

Victoria G.: I am finding difficulties on only changing the php version of the pubweb211/211yanfang since on the php manager it is not showing one second please I will try something different

Victoria G.: I am sorry I cannot see the same folders could you confirm if you changed now something on this site?

Victoria G.: are wer connected?

Albert He: i did not change anything

Albert He: for a fewmnoths

Victoria G.: thank you for confirming this, I will pass it to advanced tech support since the folders don´t seem to appear as they should on the php variables and I don´t want to touch but this website, not the rest, I will prepare now the advanced request for you thank you

Albert He: ok

Victoria G.: thank you for waiting for me

Victoria G.: 3609156 is the ticket and you will be updated per email and also on the support area in around 15 minutes so you don’t need to wait here on the chat with me.

Albert He: done?

Victoria G.: You will find your ticket here: url:https://my.siteground.com/support/history

Victoria G.: I will also keep an eye on your case since I am personally involved

Albert He: thanks

Albert He: auto update have been disable but it still happening, why?

Victoria G.: Do you mean update for WordPRess?

Victoria G.: did you disable it from the cPanel?

Albert He: yes, and plugin as well

Albert He: cpanel donesnt help

Albert He: no option

Victoria G.: we discourage doing it and indeed theres no way to stop the autoupdates with the hosting´s tool so would you like to do this for all the websites, disabling all auto updates anyways?

Albert He: auto update is disaster!!!

Albert He: i like to control myself

Albert He: this is not the first time, it is killing my business. please state this in the ticket

Victoria G.: you can indeed reply to the same ticket requesting this and the colleagues will add a rule on your wp config file

Victoria G.: to stop this ¨forever¨ till you decide to remove the restriction of course

Albert He: ok

Victoria G.: If anything else comes to mind, you know where we are, always here for you.

Victoria G.: it was entirely my pleasure, thanks for your amazing collaboration. bye bye for now!

Albert He: thx

Albert He: bye

Victoria G.: take care!

Chat Duration: 

Technical Issues

  • Ticket 3609156

    May 7, 2020 12:01 PM

On behalf of client

Hello, on https://yanfang.211cn.ca/ there´s a warning about php versions however we are having difficulties changing the php of only this installation without touching others on the cPanel, thanks.


Albert He

May 7, 2020 12:15 PM

And also please disable all AUTO UPDATES for wordpress and plugins. It is killing my business, I hate this DISASTER!

Stela Chunova

May 7, 2020 12:23 PM

Hello Albert,

Thank you for contacting our Help Desk.

I managed to resolve the issue by switching the PHP version of your website to PHP 7.1 as explained in the following article:


Regarding the auto-updates, as an exception, I disabled them for your website yanfang.211cn.ca and you can easily verify it via cPanel > WP Auto Updates.

If you need any further assistance, do not hesitate to contact us back at any moment by opening a new ticket for every new query via My Account -> Question Mark (?) in the upper right corner -> View Help Center -> Contact Us –> Advanced Assistance.

Best Regards,
Stela Chunova
SiteGround Technical Support


Albert He

May 7, 2020 04:10 PM

Thank you Stela!

It works now.

133 total views, 1 views today

Author: Albert

Leave a Reply