-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Adding segment to VisitorInterest.getNumberOfVisitsPerVisitDuration causes SQL constraint violation #2758
Comments
Full backtrace: #0 /var/www/html/piwik/libs/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array) |
Thanks for the report, we will fix it in the next days. |
(In [5564]) Fixes #2758 |
In 1.6, adding the "segment" query parameter like this:
<div id="widgetIframe"><iframe width="100%" height="350" src="http://example.com/piwik/index.php?module=Widgetize&action=iframe&moduleToWidgetize=VisitorInterest&actionToWidgetize=getNumberOfVisitsPerVisitDuration&idSite=9&period=day&date=yesterday&disableLink=1&widget=1&segment=pageTitle!=nexus" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>
produces this error message:
SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'server_time' in field list is ambiguous
And this backtrace:
#0 /var/www/html/piwik/libs/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/html/piwik/libs/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /var/www/html/piwik/libs/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('????SELECT?????...', Array)
#3 /var/www/html/piwik/core/Db/Adapter/Pdo/Mysql.php(211): Zend_Db_Adapter_Pdo_Abstract->query('????SELECT?????...', Array)
#4 /var/www/html/piwik/core/ArchiveProcessing/Day.php(349): Piwik_Db_Adapter_Pdo_Mysql->query('????SELECT?????...', Array)
#5 /var/www/html/piwik/plugins/VisitTime/VisitTime.php(163): Piwik_ArchiveProcessing_Day->queryConversionsByDimension('HOUR(server_tim...')
#6 /var/www/html/piwik/plugins/VisitTime/VisitTime.php(133): Piwik_VisitTime->archiveDayAggregateGoals(Object(Piwik_ArchiveProcessing_Day))
#7 function: Piwik_VisitTime->archiveDay(Object(Piwik_Event_Notification))
#8 /var/www/html/piwik/libs/Event/Dispatcher.php(284): call_user_func_array(Array, Array)
#9 /var/www/html/piwik/core/PluginsManager.php(609): Event_Dispatcher->postNotification(Object(Piwik_Event_Notification), false, false)
#10 /var/www/html/piwik/core/ArchiveProcessing/Day.php(42): Piwik_PostEvent('ArchiveProcessi...', Object(Piwik_ArchiveProcessing_Day))
#11 /var/www/html/piwik/cor
The text was updated successfully, but these errors were encountered: