2.8.0/2.8.1 Email Report: Trying to add two strings in DataTable\Row::sumRowArray (reintroduced error)


#1

Scheduled task produce following error:


Got invalid response from API request: http://[redacted]/index.php?module=API&method=CoreAdminHome.runScheduledTasks&format=csv&convertToUnicode=0&token_auth=[redacted]&trigger=archivephp. Response was 'task,output Piwik\Plugins\CoreAdminHome\Tasks.purgeOutdatedArchives,Time elapsed: 940.864s Piwik\Plugins\ScheduledReports\API.sendReport_26,"ERROR: API returned an error: Trying to add two strings in DataTable\Row::sumRowArray: '35.98%' + '32%' for row # ['label' => 'Unknown', 'nb_uniq_visitors' => 674, 'nb_visits' => 742, 'nb_actions' => 4709, 'nb_users' => 0, 'max_actions' => 134, 'sum_visit_length' => 204076, 'bounce_count' => 266, 'nb_visits_converted' => 9, 'conversion_rate' => 0, 'nb_actions_per_visit' => 15.1, 'avg_time_on_site' => 705, 'bounce_rate' => '35.98%'] ['url' => ] [idsubtable = ]<br />  at Row.php:644 " Piwik\Plugins\ScheduledReports\API.sendReport_135,"ERROR: API returned an error: Trying to add two strings in DataTable\Row::sumRowArray: '1.63%' + '5.88%' for row # ['label' => 'Unknown', 'nb_uniq_visitors' => 742, 'nb_visits' => 815, 'nb_actions' => 3541, 'nb_users' => 0, 'max_actions' => 108, 'sum_visit_length' => 188529, 'bounce_count' => 370, 'nb_visits_converted' => 14, 'conversion_rate' => '1.63%', 'nb_actions_per_visit' => 4.35, 'avg_time_on_site' => 231, 'bounce_rate' => '45.36%'] ['url' => ] [idsubtable = ]<br />  at Row.php:644 " Piwik\Plugins\CoreAdminHome\Tasks.purgeInvalidatedArchives,Time elapsed: 812.997s Piwik\Plugins\PrivacyManager\Tasks.deleteReportData,Time elapsed: 0.038s Piwik\Plugins\PrivacyManager\Tasks.deleteLogData,Time elapsed: 0.004s Piwik\Plugins\CorePluginsAdmin\Tasks.clearAllCacheEntries,Time elapsed: 0.001s Piwik\Plugins\CorePluginsAdmin\Tasks.sendNotificationIfUpdatesAvailable,Time elapsed: 0.295s Piwik\Plugins\CoreAdminHome\Tasks.optimizeArchiveTable,Time elapsed: 1.485s Piwi	k\Plugins\CoreUpdater\Tasks.sendNotificationIfUpdateAvailable,Time elapsed: 0.003s

When trying to do “send report now” in interface it gives same error


API returned an error: Trying to add two strings in DataTable\Row::sumRowArray: '36.59%' + '0%' for row # ['label' => 'Unknown', 'nb_uniq_visitors' => 158, 'nb_visits' => 167, 'nb_actions' => 1202, 'nb_users' => 0, 'max_actions' => 84, 'sum_visit_length' => 57201, 'bounce_count' => 60, 'nb_visits_converted' => 4, 'conversion_rate' => 0, 'nb_actions_per_visit' => 14.2, 'avg_time_on_site' => 883, 'bounce_rate' => '36.59%'] ['url' => ] [idsubtable = ]<br /> at Row.php:644

Occurs in Piwik 2.8.0 and Piwik 2.8.1

According to old forum entries this error was fixed in 2.3.0-rc (see Forum-11750[/url] and [url=http://forum.piwik.org/read.php?2,115543,115543#msg-115543]Forum-115543)