[Resolved] 302 ajax including wp-settings.php
I’m using ajax to run a script in a server with the purpose of retrieving some post information.
I’m including WordPress in the regular way:
define('WP_USE_THEMES', false); require_once($_SERVER['DOCUMENT_ROOT'].'/wp-blog-header.php');
However, this gives a 302 moved temporarily as I can see in my console!
If I prevent wp-settings.php from being included in wp-config.php it does get a regular response however I don’t have functionality without it… Does anyone know what this could be? Are there files in wp-settings.php that are included that could give such an error?
- The topic ‘[Resolved] 302 ajax including wp-settings.php’ is closed to new replies.