[WONTFIX] PIWIK_USER_PATH undefined in 'core/Piwik.php'


(Newbish) #1

While loading the GeoIP plugin I ran across this error indicating that PIWIK_USER_PATH was undefined in the file ‘core/Piwik.php’ to resolve the issue I made the following change to ‘core/Piwik.php.’

This:

defined('PIWIK_INCLUDE_PATH') or die;

Became this:

defined('PIWIK_INCLUDE_PATH') or die;
if(!defined('PIWIK_USER_PATH'))
{
        define('PIWIK_USER_PATH', PIWIK_INCLUDE_PATH);
}

Once this change was made I was able to run the file ‘geoipUpdateRows.php’ and got the following results.

4520 rows to process in piwik_log_visit...
0% done...
22% done...
44% done...
66% done...
88% done...
done!

(vipsoft) #2

It’s defined in index.php or piwik.php.

Defining it in core/Piwik.php is a wontfix.