matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.91k stars 2.65k forks source link

Creation of directory /tmp/templates_c while using api #2001

Closed anonymous-matomo-user closed 13 years ago

anonymous-matomo-user commented 13 years ago

I have a Kohana backend application which uses Piwik API to show tracking statistics.

Calling the API with PHP creates a directory /tmp/templates_c in my application public folder. This directory should not be created in my application folder but in Piwik installation folder.

First, i have coded exactly what it is described on the wiki page : http://dev.piwik.org/trac/wiki/API/CallingTechniques

The only difference between the example and my work is that my application doesn't directly include Piwik : my application and piwik are separated apache subdomains. One thing : in the Piwik code, folders like tmp/templates_c are relatives, not absolutes. They should be prefixed with PIWIK_INCLUDE_PATH.

This a real bug and not a code mistake as i have exactly done the same thing than in the wiki example.

robocoder commented 13 years ago

(In [fixes #2001 - add comments and flesh out example; confirmed that tmp/templates_c is prefixed by PIWIK_USERPATH and that the PIWIK defines are documented (wiki:API/CallingTechniques) links to [wiki:API/IncludePiwikInYourProject])

robocoder commented 13 years ago

(In [3704]) refs #2001 - nope, not this one (called at install)