Closed EarthmanWeb closed 6 months ago
Oh how ridiculous!
All I needed to do was log out, clear my cookies, fix this line in my wp-config
define( 'COOKIE_DOMAIN', 'https://CORRECTDOMAIN.COM' );
to
define( 'COOKIE_DOMAIN', 'CORRECTDOMAIN.COM' );
and the problem is solved. talk about looking in the wrong direction!!!
Closing this now.
Describe your issue as much as you can
The frontend permalinks are working, so it's not a rewrite issue, but everytime I try to access the WP Editor in the backend, I get dozens of console errors for anything at
/wp-json/[*.]
This is an out of the box Bitnami Install using Lightsail's WPMS image. Apache server. I installed the 'Responsive' theme, and Elementor, and some other plugins, but then disabled them all and the errors still happen.
The errors I get from any wp-json url show:
Any request to:
/wp-admin/admin-ajax.php?action=rest-nonce
returns blank with no headers - just provisional headersI have addressed all of the following:
Verify SSL Configuration SSL configuration seems correct, certificates (server.crt and server.key) are up to date and not causing issues with client connections.
Consistent Use of HTTPS Site is configured to use HTTPS, all requests, including REST API calls, are made over HTTPS.
Check WordPress Site URLs WordPress site URLs (both Site Address (URL) and WordPress Address (URL)) are set to use https explicitly.
Temporary Plugin and Theme Check As a diagnostic step, I've disabled all plugins and switched to a default theme (like Twenty Twenty-Four). Errors persist
Server and WordPress Debug Logs Checked server logs (/opt/bitnami/apache/logs/error_log) - nothing is showing
Checked file permissions - ran the code:
Reviewed conf files - included below - tried some fixes found online with no success like
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
/opt/bitnami/apache/conf/vhosts/htaccess/wordpress-htaccess.conf
/opt/bitnami/apache2/conf/bitnami/bitnami.conf
/opt/bitnami/apache2/conf/bitnami/bitnami-ssl.conf
wp-config.php entries:
Can someone please help?! This is an absolute nightmare.
I have used a WPMS installation in Lightsail before and it never did this...
Is there a way to 'reset' it, or can someone please see something I am not? Any suggestions would be most appreciated please!
EDIT:
Also reinstalled permissions and core with no changes: