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.phpnot work, as it assumes the file to sit in the root dir. Instead it just returned a 500 error. Fixing it by addingWP_SITEURLas well asABSPATHdid 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?
The topic ‘Proxy config require wp-load.php path’ is closed to new replies.