Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2001 closed Bug (fixed)

Creation of directory /tmp/templates_c while using api

Reported by: alxdabrazil Owned by:
Priority: normal Milestone: Piwik 1.2
Component: Core Keywords:
Cc: Sensitive: no


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 :

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.

Change History (2)

comment:1 Changed 3 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 Changed 3 years ago by vipsoft (robocoder)

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

Note: See TracTickets for help on using tickets.