Closed nikolailehbrink closed 2 years ago
That's interesting. REQUEST_SCHEME
is a native variable of Apache web server since its version 2.4
. Naturally, if a variable is not set by the server, PHP will not include it in its global array $_SERVER
.
Looking more deeply into the subject, keep you updated.
The following will be deployed in 1.0.7
. View the changelog.
@nikolailehbrink I've published an update that should handle your case. Awaiting your feedback.
HI, wow! That was fast! Thank you very much! It works fine and thanks for the lightweight plugin :)
Hi there, first off, thanks for the lightweight Plugin. I would really love to use it, but on my local site it only displays a php error when inserting the following code in singular.php:
The error:
Warning: Undefined array key "REQUEST_SCHEME" in /Users/example/Local Sites/site/app/public/wp-content/plugins/Where-Is-My-Bread-main/where-is-my-bread.php on line 124
What do I do wrong?