• Resolved mcnesium

    (@mcnesium)


    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 makes require ('../../../../wp-load.php'); in wp-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 adding WP_SITEURL as well as ABSPATH 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 to require ('../../../../wordpress/wp-load.php'); but there must be a solution that works in general. Can you fix this?

    https://www.ads-software.com/plugins/wp-piwik/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author braekling

    (@braekling)

    I will have a look at this!

    Plugin Author braekling

    (@braekling)

    It’s not that easy, because the proxy script has to know about your SITEURL config before this config is loaded (as you assume).

    After updating to 1.0.7 (release in some minutes) you can place a config.local.php inside WP-Piwik’s proxy folder.

    Add following lines to this file:

    <?php
    $wpRootDir = '../../../../wordpress/';

    This will overwrite WP-Piwik’s configuration (../../../../), but is never overwritten by WP-Piwik updates. Not a “nice solution”, but working. ??

    Thread Starter mcnesium

    (@mcnesium)

    Ok thank you. Maybe there will be more elegant solutions for this in the future.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Proxy config require wp-load.php path’ is closed to new replies.