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

2.5.0 Upgrade - Breaks Visitor Log #6049

Closed
iwizardpro opened this issue Aug 22, 2014 · 7 comments
Closed

2.5.0 Upgrade - Breaks Visitor Log #6049

iwizardpro opened this issue Aug 22, 2014 · 7 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@iwizardpro
Copy link

There is an existing forum post of this issue located: http://forum.piwik.org/read.php?2,118765 The suggested temporary workaround causes the Referrer data to not work properly. Included below is the error that is returned by Piwik:

WARN Live[2014-08-22 22:36:27] [a09ee] Failed to get data from API: Referrer type '' is not valid.
#0 /srv/www/redacted.example.com/private_html/plugins/Live/Visitor.php(359): Piwik\Plugins\Referrers\getReferrerTypeFromShortName(NULL)
#1 /srv/www/redacted.example.com/private_html/plugins/Live/Visitor.php(109): Piwik\Plugins\Live\Visitor->getReferrerType()
#2 /srv/www/redacted.example.com/private_html/plugins/Live/API.php(582): Piwik\Plugins\Live\Visitor->getAllVisitorDetails()
#3 [internal function]: Piwik\Plugins\Live\API->Piwik\Plugins\Live\{closure}(Object(Piwik\DataTable))
#4 /srv/www/redacted.example.com/private_html/core/DataTable.php(408): call_user_func_array(Object(Closure), Array)
#5 /srv/www/redacted.example.com/private_html/core/DataTable.php(453): Piwik\DataTable->filter(Object(Closure), Array)
#6 /srv/www/redacted.example.com/private_html/core/API/ResponseBuilder.php(193): Piwik\DataTable->applyQueuedFilters()
#7 /srv/www/redacted.example.com/private_html/core/API/ResponseBuilder.php(91): Piwik\API\ResponseBuilder->handleDataTable(Object(Piwik\DataTable))
#8 /srv/www/redacted.example.com/private_html/core/API/Request.php(217): Piwik\API\ResponseBuilder->getResponse(Object(Piwik\DataTable), 'Live', 'getLastVisitsDe...')
#9 /srv/www/redacted.example.com/private_html/core/ViewDataTable/Request.php(48): Piwik\API\Request->process()
#10 /srv/www/redacted.example.com/private_html/core/Plugin/ViewDataTable.php(322): Piwik\ViewDataTable\Request->loadDataTableFromAPI(Array)
#11 /srv/www/redacted.example.com/private_html/core/Plugin/Visualization.php(166): Piwik\Plugin\ViewDataTable->loadDataTableFromAPI(Array)
#12 /srv/www/redacted.example.com/private_html/core/Plugin/ViewDataTable.php(409): Piwik\Plugin\Visualization->buildView()
#13 /srv/www/redacted.example.com/private_html/core/Plugin/Report.php(290): Piwik\Plugin\ViewDataTable->render()
#14 /srv/www/redacted.example.com/private_html/core/Plugin/Controller.php(317): Piwik\Plugin\Report->render()
#15 /srv/www/redacted.example.com/private_html/plugins/Live/Controller.php(61): Piwik\Plugin\Controller->renderReport(Object(Piwik\Plugins\Live\Reports\GetLastVisitsDetails))
#16 [internal function]: Piwik\Plugins\Live\Controller->indexVisitorLog()
#17 /srv/www/redacted.example.com/private_html/core/FrontController.php(576): call_user_func_array(Array, Array)
#18 /srv/www/redacted.example.com/private_html/core/FrontController.php(86): Piwik\FrontController->doDispatch(NULL, NULL, NULL)
#19 /srv/www/redacted.example.com/private_html/core/dispatch.php(34): Piwik\FrontController->dispatch()
#20 /srv/www/redacted.example.com/private_html/index.php(47): require_once('/srv/www/analyt...')
#21 {main}
@tsteur
Copy link
Member

tsteur commented Aug 23, 2014

I created an issue to fix this problem in case the Referrer plugin is for instance disabled: #6045 . So far users were reporting either there was a problem with the update and manually uploading the files fixed it or the Referrers plugin was deactivated

@mattab mattab added this to the Piwik 2.6.0 milestone Aug 23, 2014
@iwizardpro
Copy link
Author

I have attempted to do both (renable the referrer plugin and manually reupload all piwik related files). Neither has resolved the issue.

@tsteur
Copy link
Member

tsteur commented Aug 24, 2014

What's your PHP version, MySQL version and operating system?

Can you still reproduce this issue when looking at the visitors of the current day?

@tomee
Copy link

tomee commented Aug 25, 2014

I have the same issue - Visitor log is broken.
I tried disabling and re-enabling the Referrers plugin as well as re-installing the plugin source files (they were indentical anyway).
Debian Squeeze, Apache: 2.2.16-6+squeeze11, MySQL: 5.5.35+dfsg-0+wheezy1 (on another server).

EDIT: Visitor log seems to be fixed by re-enabling the plugin, but Visits over time reports 0 visits, and so do other widgets (Map, Browser, By Server Time, etc.). Visits get logged in visitor log, though.

@tsteur
Copy link
Member

tsteur commented Aug 25, 2014

@tomee the 0 visits is most likely a problem with the archiver, see #6021 and #6012. In case you are archiving via archive.php on the command line please try to use ./console core:archive instead

@tomee
Copy link

tomee commented Aug 25, 2014

@tsteur You are right, it was the auto-archiving, my bad. As a side note, I think it would be useful if such changes were stated more clearly during the auto upgrade process...

@tsteur
Copy link
Member

tsteur commented Aug 25, 2014

true!

tsteur added a commit that referenced this issue Aug 26, 2014
… the Piwik UI kinda works when most tracker plugins are disabled
tsteur added a commit that referenced this issue Aug 26, 2014
@tsteur tsteur closed this as completed Aug 26, 2014
@tsteur tsteur added the Bug label Aug 26, 2014
@tsteur tsteur self-assigned this Aug 26, 2014
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

4 participants