Thanks for reaching out and sharing the PHP Warning message with us.
?
We’d be happy to explain the behavior of the plugin code related to this warning message flagged by the Dreamhost IT team.
Included in our code in a function, we check if the current page is the Admin Dashboard. As part of the function, using the php function parse_url
we parse the URL and components of the URL. Based upon the results, we load code to operate and manage the functionality of Store Hours Manager. If the current page is not the Admin Dashboard, the code related to our functionality Store Hours Manager is not loaded.?
What this warning message you shared indicated, when the function code check occurred on the page in question, the result was the error to validate the URL to verify the URL is the Admin Dashboard. The page in question, the function couldn’t validate the URL, this could be due to an error on the page or a complex URL structure.??The typical result, you will see this type of warning message in the debug log for PHP, which is what the Dreamhost IT shared. The worst result, if you are on an admin dashboard, the Store Hours Manager plugin failed to recognize that as true, so the plugin would not function correctly.
Now, if the Store Hours Manager plugin while on the Admin Dashboard is not operating or working correctly, we’d like to better understand the URL structure you are using to understand why the check would be failing. But if the plugin is working correctly, the page in question was not an admin page. As a result, the warning can be disregarded as an indication of that check and this warning shouldn’t affect the overall performance of your website or cause any 504 timeout errors.
?
We hope that clarifies the PHP warning message and reference to our code shared by Dreamhost IT.