Support » Plugin: Koko Analytics » Pageviews.php created in wrong directory

  • Resolved amypink


    Hi guys,

    the pageviews.php is created in wp-content/uploads/ although our uploads directory is set to cdn/uploads/.

    The custom directory is set in our WordPress settings as well as in our wp-config.php but nothing seems to work:

    define('UPLOADS', 'cdn/uploads' );


    if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/');
    require_once(ABSPATH . 'wp-settings.php');
    update_option('upload_url_path', '');

    Do you have any solution? Thanks!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Lap


    Could you try


    in your wp-config.php and see if that solves this issue for you?

    Thanks for letting me know.

    I added the line to my wp-config.php and now it seems to work correctly.

    Thanks for the answer and also thanks for the plugin!

    Plugin Support Lap


    Great! I’ve still reported this issue to Danny, I guess it would be nice if he can detect this and make it work by default.

    Thanks for letting me know.

    Plugin Author Danny van Kooten


    This ‘ll be fixed in the next plugin update. Great find!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.