Unable to view ecommerce report for month/week/custom range returns an error


#1

While trying to view an ecommerce report for month, week, or custom range I get the following error.
(viewing a report for single day works without issue)

Tested with Piwik 2.0.2 and Piwik 2.0.3-b3, below is the backtrace from Piwik 2.0.3-b3

Notice: Undefined variable: numericTable in /piwik/core/DataAccess/ArchiveWriter.php on line 155

Backtrace -->

#0 Piwik\Error::errorHandler(…) called at [/piwik/core/DataAccess/ArchiveWriter.php:155]
#1 Piwik\DataAccess\ArchiveWriter->acquireArchiveTableLock(…) called at [/piwik/core/DataAccess/ArchiveWriter.php:176]
#2 Piwik\DataAccess\ArchiveWriter->insertNewArchiveId(…) called at [/piwik/core/DataAccess/ArchiveWriter.php:167]
#3 Piwik\DataAccess\ArchiveWriter->allocateNewArchiveId(…) called at [/piwik/core/DataAccess/ArchiveWriter.php:116]
#4 Piwik\DataAccess\ArchiveWriter->initNewArchive(…) called at [/piwik/core/ArchiveProcessor/PluginsArchiver.php:47]
#5 Piwik\ArchiveProcessor\PluginsArchiver->__construct(…) called at [/piwik/core/ArchiveProcessor/Loader.php:97]
#6 Piwik\ArchiveProcessor\Loader->prepareCoreMetricsArchive(…) called at [/piwik/core/ArchiveProcessor/Loader.php:73]
#7 Piwik\ArchiveProcessor\Loader->prepareArchive(…) called at [/piwik/core/Archive.php:793]
#8 Piwik\Archive->prepareArchive(…) called at [/piwik/core/Archive.php:612]
#9 Piwik\Archive->cacheArchiveIdsAfterLaunching(…) called at [/piwik/core/Archive.php:554]
#10 Piwik\Archive->getArchiveIds(…) called at [/piwik/core/Archive.php:494]
#11 Piwik\Archive->get(…) called at [/piwik/core/Archive.php:343]
#12 Piwik\Archive->getDataTableFromNumeric(…) called at [/piwik/plugins/Goals/API.php:397]
#13 Piwik\Plugins\Goals\API->getNumeric(…) called at [/piwik/plugins/Goals/API.php:422]
#14 Piwik\Plugins\Goals\API->getConversionRate(…) called at [/piwik/plugins/Goals/Controller.php:143]
#15 Piwik\Plugins\Goals\Controller->getGoalReportView(…) called at [/piwik/plugins/Goals/Controller.php:93]
#16 Piwik\Plugins\Goals\Controller->ecommerceReport(…) called at [:]
#17 call_user_func_array(…) called at [/piwik/core/FrontController.php:117]
#18 Piwik\FrontController->dispatch(…) called at [/piwik/index.php:62]


(Matthieu Aubry) #2

Thanks for the report, fixed the notice in: Fix notice reported in http://forum.piwik.org/read.php?2,109114 · matomo-org/matomo@179f8a5 · GitHub