Proxy config require wp-load.php path
-
In my wp-config.php I did
define('WP_SITEURL', WP_HOME . '/wordpress');
so that the root directory is cleaned up a bit. This of course makesrequire ('../../../../wp-load.php');
inwp-piwik/proxy/config.php
not work, as it assumes the file to sit in the root dir. Instead it just returned a 500 error. Fixing it by addingWP_SITEURL
as well asABSPATH
did not work, propably because of the order in which files are loaded and constants are defined. I managed to workaround tis issue by editing it torequire ('../../../../wordpress/wp-load.php');
but there must be a solution that works in general. Can you fix this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Proxy config require wp-load.php path’ is closed to new replies.