Opened 4 years ago

Closed 4 years ago

#1487 closed Bug (fixed)

Using PHP classes to call API seems broken

Reported by: matt Owned by:
Priority: major Milestone: Piwik 0.6.4
Component: Core Keywords:
Cc: Sensitive: no

Description

See in the page: http://dev.piwik.org/trac/wiki/API/CallingTechniques

The error: <b>Fatal error</b>: Class 'Piwik_Session' not found in <b>/home/www/piwik.org/demo/index.php</b> on line <b>44</b><br />

Maybe autoloader doesn't search in the proper paths? any idea?

Change History (2)

comment:1 Changed 4 years ago by matt (mattab)

after setting: define('PIWIK_ENABLE_SESSION_START', false);

error is <b>Fatal error</b>: Class 'Piwik_FrontController' not found in <b>/home/www/piwik.org/demo/misc/api_internal_call.php</b> on line <b>9</b><br />

similar to previous report in http://forum.piwik.org/index.php?showtopic=1130

comment:2 Changed 4 years ago by matt (mattab)

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

seems fixed in trunk....

Note: See TracTickets for help on using tickets.