WordPress Studio updated Login fails because of PHP error
-
I built the site with WordPress Studio and it worked well. Today I updated Studio. Unfortunately I can’t log anymore into the backend after updating because of several PHP errors:
Warning: Undefined array key “REQUEST_SCHEME” in /var/www/html/wp-content/advanced-cache.php on line 27
Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/advanced-cache.php:27) in /var/www/html/wp-includes/pluggable.php on line 1435
Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/wp-content/advanced-cache.php:27) in /var/www/html/wp-includes/pluggable.php on line 1438
I have no idea how to solve the problem. Could anyone please give me a hint?
Best,
AnnaThe blog I need help with is: (visible only to logged in users)
-
Hello Anna
Those are PHP warnings and they won’t affect how you login to the site. PHP warnings do not affect site’s functionality or performance. It could be some other issues.
Do you see any error while trying to login to backend? Please take a screenshot of the error and share here so we can take a look and assist with the issue. -
Hello staff-jeev,
Thanks for your reply. When I click on the WP admin link in Studio:
But I just found out that I can login into the WordPress Backend from Chrome by using the link
https://noisily-agricultural-ground.wp.build/wp-login.php
(of course only as long as the demo website exists).
Regards,
Anna -
Let us know if you need help with anything else. I would also recommend checking if refreshing your browser cache where you see that error fixed the issue.
-
Hello ezebecke,
thanks for your reply. I need to log into the WordPress backende via Studio because the demo website will expire and the live website will still take some time. Of course I tried several times refreshing my browser cache and also tried in Chrome and Firefox.
Unfortunately the website export doesn’t work so that I can’t “duplicate” the site with a new name.
-
-
Thanks for letting us know about this. Our developers say this is most likely related to a cache plugin. Given that’s a common type of plugin, they’re looking into ways we can prevent that error showing.
In the meantime, they suggest editing your wp-config.php , just above this line…
require_once ABSPATH . 'wp-settings.php';…to include this code snippet:
if ( ! isset( $_SERVER['REQUEST_SCHEME'] ) ) { $_SERVER['REQUEST_SCHEME'] = 'http'; }A little off-topic, but if you’re thinking of hosting the site on WordPress.com, a cache plugin won’t be needed because caching is automatically included for all WordPress.com sites.
-
Hello caimin,
Thanks for your answer and the code snippet. I added to my wp-config.php. Unfortunately it didn’t change anything.
Is there a possibility to remove the caching plugin? (See screenshot of wp-content folder)
- The topic ‘WordPress Studio updated Login fails because of PHP error’ is closed to new replies.