@gaumondp opened this Issue on June 12th 2013

Using the segment editor with Piwik 1.12 in real-time works without problem but turning it into "Pre-processed" ( segmented reports are pre-processed (faster, requires archive.php cron))AND set it to set "and displayed for all websites" gives an error:

Warning: array_merge(): Argument <a href='/1'>#1</a> is not an array in /piwik/plugins/SegmentEditor/SegmentEditor.php on line 50 

Backtrace -->

<a href='/0'>#0</a> Piwik_ErrorHandler(...) called at [:]
<a href='/1'>#1</a> array_merge(...) called at [/piwik/plugins/SegmentEditor/SegmentEditor.php:50]
<a href='/2'>#2</a> Piwik_SegmentEditor->getKnownSegmentsToArchiveAllSites(...) called at [:]
<a href='/3'>#3</a> call_user_func_array(...) called at [/piwik/libs/Event/Dispatcher.php:284]
<a href='/4'>#4</a> Event_Dispatcher->postNotification(...) called at [/piwik/core/PluginsManager.php:674]
<a href='/5'>#5</a> Piwik_PostEvent(...) called at [/piwik/core/Piwik.php:1544]
<a href='/6'>#6</a> Piwik::getKnownSegmentsToArchive(...) called at [/piwik/core/ArchiveProcessing.php:1020]
<a href='/7'>#7</a> Piwik_ArchiveProcessing::shouldProcessReportsAllPluginsFor(...) called at [/piwik/core/ArchiveProcessing.php:1006]
<a href='/8'>#8</a> Piwik_ArchiveProcessing->shouldProcessReportsAllPlugins(...) called at [/piwik/core/ArchiveProcessing/Period.php:287]
<a href='/9'>#9</a> Piwik_ArchiveProcessing_Period->isThereSomeVisits(...) called at [/piwik/core/Archive/Single.php:233]
<a href='/10'>#10</a> Piwik_Archive_Single->prepareArchive(...) called at [/piwik/core/Archive/Single.php:251]
<a href='/11'>#11</a> Piwik_Archive_Single->get(...) called at [/piwik/core/Archive/Single.php:499]
<a href='/12'>#12</a> Piwik_Archive_Single->getDataTable(...) called at [/piwik/plugins/UserCountry/API.php:197]
<a href='/13'>#13</a> Piwik_UserCountry_API->getDataTable(...) called at [/piwik/plugins/UserCountry/API.php:36]
<a href='/14'>#14</a> Piwik_UserCountry_API->getCountry(...) called at [:]
<a href='/15'>#15</a> call_user_func_array(...) called at [/piwik/core/API/Proxy.php:188]
<a href='/16'>#16</a> Piwik_API_Proxy->call(...) called at [/piwik/core/API/Request.php:145]
<a href='/17'>#17</a> Piwik_API_Request->process(...) called at [/piwik/core/ViewDataTable.php:423]
<a href='/18'>#18</a> Piwik_ViewDataTable->loadDataTableFromAPI(...) called at [/piwik/core/ViewDataTable/HtmlTable.php:79]
<a href='/19'>#19</a> Piwik_ViewDataTable_HtmlTable->main(...) called at [/piwik/core/Controller.php:147]
<a href='/20'>#20</a> Piwik_Controller->renderView(...) called at [/piwik/plugins/UserCountry/Controller.php:317]
<a href='/21'>#21</a> Piwik_UserCountry_Controller->getCountry(...) called at [/piwik/plugins/UserCountry/Controller.php:25]
<a href='/22'>#22</a> Piwik_UserCountry_Controller->index(...) called at [:]
<a href='/23'>#23</a> call_user_func_array(...) called at [/piwik/core/FrontController.php:125]
<a href='/24'>#24</a> Piwik_FrontController->dispatch(...) called at [/piwik/index.php:47]

It looks the we also need to have more than one condition. The segment I was trying to setup had 4 "or" conditions in it all about "Visitor IP is not".

Another user had the same problem. See http://forum.piwik.org/read.php?2,104431,page=1#msg-104439

@mattab commented on June 13th 2013 Owner

Thanks for the report, this was fixed in GIT try this patch: https://github.com/piwik/piwik/commit/c5de357de8588f4dda5268b3e8c181126276478d

@mattab commented on September 16th 2013 Owner

Moving 1.x closed tickets to 2.0

@mattab commented on May 8th 2014 Owner

See also: #5111 Improve error logging of core:archive cron script

This Issue was closed on May 8th 2014
Powered by GitHub Issue Mirror