Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

API Request - Error: id 239 not found (no replies)

$
0
0
Hello,

I use a small script to show the nb_visits on a webpage. My Code worked perfectly till the Update to 2.1.0.
On my first search I found a hint, that the request calls changed. No matter, easy to adjust.
But now I always get this message back, instead of the visitors:

This report has been reprocessed since your last click. To see this error less often, please increase the timeout value in seconds in Settings > General Settings. (error: id 239 not found).

I changed the Timout Value to 60s, 180s and now it's on 1800s. it is too much, I have not that much visitors (~1k / month).
The result is still the same error message.

Not sure if you need the code, it is stupid api tutorial copy:

Piwik\FrontController::getInstance()->init();

$request = new Piwik\API\Request('
method=VisitsSummary.get
&idSite=2
&period=range
&date='.$start.','.$today.'
&format=PHP&serialize=0
&token_auth='.$token.'
');
$result = $request->process();
echo $result['nb_visits'];


Hope you can help. I found the bugfix for that on https://github.com/piwik/piwik/commit/23a1c9d680a2409c182977cc02ebf1c00d414cd0 but that is still fixed in the (latest) update.

Thank you very much,

sto

Viewing all articles
Browse latest Browse all 4243

Trending Articles