Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

archive.php outputs messages when pre-processing segments #4005

Closed
gaumondp opened this issue Jun 12, 2013 · 3 comments
Closed

archive.php outputs messages when pre-processing segments #4005

gaumondp opened this issue Jun 12, 2013 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@gaumondp
Copy link

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 #1 is not an array in /piwik/plugins/SegmentEditor/SegmentEditor.php on line 50 

Backtrace -->

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

mattab commented Jun 13, 2013

Thanks for the report, this was fixed in GIT try this patch: c5de357

@mattab
Copy link
Member

mattab commented Sep 16, 2013

Moving 1.x closed tickets to 2.0

@mattab
Copy link
Member

mattab commented May 8, 2014

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

@gaumondp gaumondp added this to the 2.0 - Piwik 2.0 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants