New Segment using "Device Type"

Hey there.
Would like to create an new Segment for all users on all pages filtering Device-Type “tablet”, “smartphone” and “feature phone”.

While using “real time” the report is no Problem, but while switching to “pre-calculated through cron”, i got this output in some widgets:


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

Warning: array_merge(): Argument #1 is not an array in /var/www/de/lipperts-web/piwik/plugins/SegmentEditor/SegmentEditor.php on line 50

Backtrace -->

#0 Piwik_ErrorHandler(...) called at [:]
#1 array_merge(...) called at [/var/www/de/lipperts-web/piwik/plugins/SegmentEditor/SegmentEditor.php:50]
#2 Piwik_SegmentEditor->getKnownSegmentsToArchiveAllSites(...) called at [:]
#3 call_user_func_array(...) called at [/var/www/de/lipperts-web/piwik/libs/Event/Dispatcher.php:284]
#4 Event_Dispatcher->postNotification(...) called at [/var/www/de/lipperts-web/piwik/core/PluginsManager.php:674]
#5 Piwik_PostEvent(...) called at [/var/www/de/lipperts-web/piwik/core/Piwik.php:1544]
#6 Piwik::getKnownSegmentsToArchive(...) called at [/var/www/de/lipperts-web/piwik/core/ArchiveProcessing.php:1020]
#7 Piwik_ArchiveProcessing::shouldProcessReportsAllPluginsFor(...) called at [/var/www/de/lipperts-web/piwik/core/ArchiveProcessing.php:968]
#8 Piwik_ArchiveProcessing::isArchivingDisabledFor(...) called at [/var/www/de/lipperts-web/piwik/core/ArchiveProcessing.php:960]
#9 Piwik_ArchiveProcessing->isArchivingDisabled(...) called at [/var/www/de/lipperts-web/piwik/core/ArchiveProcessing.php:425]
#10 Piwik_ArchiveProcessing->getMinTimeArchivedProcessed(...) called at [/var/www/de/lipperts-web/piwik/core/ArchiveProcessing.php:325]
#11 Piwik_ArchiveProcessing->init(...) called at [/var/www/de/lipperts-web/piwik/core/Archive/Single.php:208]
#12 Piwik_Archive_Single->prepareArchive(...) called at [/var/www/de/lipperts-web/piwik/core/Archive/Single.php:251]
#13 Piwik_Archive_Single->get(...) called at [/var/www/de/lipperts-web/piwik/core/Archive/Single.php:499]
#14 Piwik_Archive_Single->getDataTable(...) called at [/var/www/de/lipperts-web/piwik/plugins/DevicesDetection/API.php:41]
#15 Piwik_DevicesDetection_API->getDataTable(...) called at [/var/www/de/lipperts-web/piwik/plugins/DevicesDetection/API.php:106]
#16 Piwik_DevicesDetection_API->getOsFamilies(...) called at [:]
#17 call_user_func_array(...) called at [/var/www/de/lipperts-web/piwik/core/API/Proxy.php:188]
#18 Piwik_API_Proxy->call(...) called at [/var/www/de/lipperts-web/piwik/core/API/Request.php:145]
#19 Piwik_API_Request->process(...) called at [/var/www/de/lipperts-web/piwik/core/ViewDataTable.php:423]
#20 Piwik_ViewDataTable->loadDataTableFromAPI(...) called at [/var/www/de/lipperts-web/piwik/core/ViewDataTable/HtmlTable.php:79]
#21 Piwik_ViewDataTable_HtmlTable->main(...) called at [/var/www/de/lipperts-web/piwik/core/Controller.php:147]
#22 Piwik_Controller->renderView(...) called at [/var/www/de/lipperts-web/piwik/plugins/DevicesDetection/Controller.php:83]
#23 Piwik_DevicesDetection_Controller->getOsFamilies(...) called at [:]
#24 call_user_func_array(...) called at [/var/www/de/lipperts-web/piwik/core/FrontController.php:125]
#25 Piwik_FrontController->dispatch(...) called at [/var/www/de/lipperts-web/piwik/index.php:47]

What could I do to get this running?

PS: also the segment-filtering doesn’t work, it whos all visits ^^

Hi., this bug was fixed in piwik 2 (in git). Please wait few weeks for a beta version (or you can use the alpha already which has few bugs)

Hey matt,
glad to hear about piwik 2 beta in just a view weeks :slight_smile: will it be released within this year as stable??

I can’t use alpha / beta states while tracking over thousand (growing) visits a day for me and some friends and some other hosting-customers.

(But may it will be within an test with the not documented enough “purge old logs”-thing)

Thanks for the info.