don't use __FILE__ to load wp-config
-
On the proxy.php you shouldn’t use __FILE__ to find your way to wp-config.php because that variable resolves symlinks, and depending on your deployment setup that might be the wrong place to look.
Using
$path = $_SERVER["SCRIPT_FILENAME"];
instead worked in our case, as per
this answer
- The topic ‘don't use __FILE__ to load wp-config’ is closed to new replies.