Error after adding custom variables


#1

Hey, i added custom variables to rank blogs by visits on our site.

Errors started coming in regularly.

After a search, i found http://forum.piwik.org/read.php?2,109735,111617#msg-111617

But that was a few releases ago, and looking at DataArray.php, it looks like that if statement, updated, has been added.

We are running 2.8.0

Much thanks for any help offered!

Error:

ERROR CoreConsole[2014-10-17 20:01:21] [87b7e] Got invalid response from API request: https://analytics.freepress.net/index.php?module=API&method=API.get&idSite=1&period=month&date=last2&format=php&token_auth=5a2c2a69dd85191d79b641dd6bf7761b&trigger=archivephp. Response was '

There is an error. Please report the message (Piwik 2.8.0) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Notice:
Undefined offset: 39 in /home/vhosts/analytics.freepress.net/core/DataArray.php on line 121

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [/home/vhosts/analytics.free
press.net/core/DataArray.php:121]
#1 Piwik\DataArray->doSumVisitsMetrics(...) called at [/home/vhosts/analytics.freepress.net/core/DataArray.php:52]
#2 Piwik\DataArray->sumMetricsVisits(...) called at [/home/vhosts/analytics.freepress.net/plugins/CustomVariables/Archiver.php:114]
#3 Piwik\Plugins\CustomVariables\Archiver->aggregateFromVisits(...) called at [/home/vhosts/analytics.freepress.net/plugins/CustomVariables/Archiver.php:86]
#4 Piwik\Plugins\CustomVariables\Archiver->aggregateCustomVariable(...) called at [/home/vhosts/analytics.freepress.net/plugins/CustomVariables/Archiver.php:64]
#5 Piwik\Plugins\CustomVariables\Archiver->aggregateDayReport(...) called at [/home/vhosts/analytics.freepress.net/core/ArchiveProcessor/PluginsArchiver.php:100]
#6 Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins(...) called at [/home/vhosts/analytics.freepress.net/core/ArchiveProcessor/Loader.php:122]
#7 Piwik\ArchiveProce
ssor\Loader->prepareAllPluginsArchive(...) called at [/home/vhosts/analytics.freepress.net/core/ArchiveProcessor/Loader.php:72]
#8 Piwik\ArchiveProcessor\Loader->prepareArchive(...) called at [/home/vhosts/analytics.freepress.net/core/Archive.php:801]
#9 Piwik\Archive->prepareArchive(...) called at [/home/vhosts/analytics.freepress.net/core/Archive.php:614]
#10 Piwik\Archive->cacheArchiveIdsAfterLaunching(...) called at [/home/vhosts/analytics.freepress.net/core/Archive.php:568]
#11 Piwik\Archive->getArchiveIds(...) called at [/home/vhosts/analytics.freepress.net/core/Archive.php:508]
#12 Piwik\Archive->get(...) called at [/home/vhosts/analytics.freepress.net/core/Archive.php:348]
#13 Piwik\Archive->getDataTableFromNumeric(...) called at [/home/vhosts/analytics.freepress.net/core/ArchiveProcessor.php:499]
#14 Piwik\ArchiveProcessor->getAggregatedNumericMetrics(...) called at [/home/vhosts/analytics.freepress.net/core/ArchivePr
ocessor.php:260]
#15 Piwik\ArchiveProcessor->aggregateNumericMetrics(...) called at [/home/vhosts/analytics.freepress.net/core/ArchiveProcessor/PluginsArchiver.php:192]
#16 Piwik\ArchiveProcessor\PluginsArchiver->aggregateMultipleVisitsMetrics(...) called at [/home/vhosts/analytics.freepress.net/core/ArchiveProcessor/PluginsArchiver.php:62]
#17 Piwik\ArchiveProcessor\PluginsArchiver->callAggregateCoreMetrics(...) called at [/home/vhosts/analytics.freepress.net/core/ArchiveProcessor/Loader.php:116]
#18 Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive(...) called at [/home/vhosts/analytics.freepress.net/core/ArchiveProcessor/Loader.php:72]
#19 Piwik\ArchiveProcessor\Loader->prepareArchive(...) called at [/home/vhosts/analytics.freepress.net/core/Archive.php:801]
#20 Piwik\Archive->prepareArchive(...) called at [/home/vhosts/analytics.freepress.net/core/Archive.php:614]
#21 Piwik\Archive->cacheArchiveIdsAfterLaunching(...)
called at [/home/vhosts/analytics.freepress.net/core/Archive.php:568]
#22 Piwik\Archive->getArchiveIds(...) called at [/home/vhosts/analytics.freepress.net/core/Archive.php:508]
#23 Piwik\Archive->get(...) called at [/home/vhosts/analytics.freepress.net/core/Archive.php:348]
#24 Piwik\Archive->getDataTableFromNumeric(...) called at [/home/vhosts/analytics.freepress.net/plugins/VisitsSummary/API.php:59]
#25 Piwik\Plugins\VisitsSummary\API->get(...) called at [:]
#26 call_user_func_array(...) called at [/home/vhosts/analytics.freepress.net/core/API/Proxy.php:209]
#27 Piwik\API\Proxy->call(...) called at [/home/vhosts/analytics.freepress.net/plugins/API/API.php:403]
#28 Piwik\Plugins\API\API->get(...) called at [:]
#29 call_user_func_array(...) called at [/home/vhosts/analytics.freepress.net/core/API/Proxy.php:209]
#30 Piwik\API\Proxy->call(...) called at [/home/vhosts/analytics.freepress.net/core/API/Request.php:2
16]
#31 Piwik\API\Request->process(...) called at [/home/vhosts/analytics.freepress.net/plugins/API/Controller.php:33]
#32 Piwik\Plugins\API\Controller->index(...) called at [:]
#33 call_user_func_array(...) called at [/home/vhosts/analytics.freepress.net/core/FrontController.php:579]
#34 Piwik\FrontController->doDispatch(...) called at [/home/vhosts/analytics.freepress.net/core/FrontController.php:87]
#35 Piwik\FrontController->dispatch(...) called at [/home/vhosts/analytics.freepress.net/core/dispatch.php:34]
#36 require_once(...) called at [/home/vhosts/analytics.freepress.net/index.php:46]


There is an error. Please report the message (Piwik 2.8.0) and full backtrace in the Piwik
forums
(please do a Search first as it might have been reported already!).

Notice:ERROR CoreConsole[2014-10-17 20:02:22] [87b7e] 1 total errors during this script execution, please investigate and try and fix these errors.

(Matthieu Aubry) #2

Thanks for the report, I’ve fixed the bug in: fixes #6474 · matomo-org/matomo@56d1d10 · GitHub

it will be in next version published in next couple days


#3

Thanks so much! Glad i could help :wink:

Hailu Dyami
Webdeveloper