#3669 closed Bug (fixed)

Problem with "Visits by Day of Week" + "segment API"

Reported by: alejaaandro Owned by:
Priority: normal Milestone:
Component: Core Keywords: weekday segment segmentation
Cc: Sensitive: no

Description

  • Using "segment" API in the url displays the desired output (data "filtered" by that segment)
  • While using the segment API, if try to produce the "Visits by Day of Week" graph I get the following error :

(this is not specific to "pageUrl", also tried it with other parameters)

Segment parameter 'pageUrl' does not appear to have a valid format.

Go to Piwik
Login

Backtrace:
#0 /var/www/vhosts//httpdocs/applications/piwik_analytics/core/Segment.php(47): Piwik_SegmentExpression->parseSubExpressions()
#1 /var/www/vhosts/
/httpdocs/applications/piwik_analytics/core/Archive.php(198): Piwik_Segment->construct('pageUrl', '1')
#2 /var/www/vhosts/
/applications/piwik_analytics/plugins/VisitTime/API.php(88): Piwik_Archive::build('1', 'day', '2012-01-01,2012...', 'pageUrl')
#3 /var/www/vhosts//httpdocs/applications/piwik_analytics/core/API/Proxy.php(190): Piwik_VisitTime_API->getByDayOfWeek('1', 'year', '2012-01-20', 'pageUrl')
#4 /var/www/vhosts/
/httpdocs/applications/piwik_analytics/core/API/Request.php(128): Piwik_API_Proxy->call(Array, Array)
#5 /var/www/vhosts//httpdocs/applications/piwik_analytics/core/ViewDataTable.php(425): Piwik_API_Request->process('Piwik_VisitTime...', 'getByDayOfWeek', Array)
#6 /var/www/vhosts/
/httpdocs/applications/piwik_analytics/core/ViewDataTable/GenerateGraphData.php(181): Piwik_ViewDataTable->loadDataTableFromAPI()
#7 /var/www/vhosts//httpdocs/applications/piwik_analytics/core/Controller.php(152): Piwik_ViewDataTable_GenerateGraphData->main()
#8 /var/www/vhosts/
/httpdocs/applications/piwik_analytics/plugins/VisitTime/Controller.php(88): Piwik_Controller->renderView()
#9 /var/www/vhosts//httpdocs/applications/piwik_analytics/core/FrontController.php(138): Piwik_VisitTime_Controller->getByDayOfWeek(Object(Piwik_ViewDataTable_GenerateGraphData_ChartVerticalBar), false)
#10 /var/www/vhosts/
/httpdocs/applications/piwik_analytics/core/FrontController.php(160): Piwik_FrontController->dispatch()
#11 /var/www/vhosts//httpdocs/applications/piwik_analytics/core/ViewDataTable/GenerateGraphHTML.php(187): Piwik_FrontController->fetchDispatch(Array, Array)
#12 /var/www/vhosts/
/httpdocs/applications/piwik_analytics/core/ViewDataTable/GenerateGraphHTML.php(141): Piwik_ViewDataTable_GenerateGraphHTML->getGraphData('VisitTime', 'getByDayOfWeek', Array)
#13 /var/www/vhosts//httpdocs/applications/piwik_analytics/core/ViewDataTable/GenerateGraphHTML.php(125): Piwik_ViewDataTable_GenerateGraphHTML->buildView('VisitTime', 'getByDayOfWeek', Array)
#14 /var/www/vhosts/
/httpdocs/applications/piwik_analytics/core/Controller.php(152): Piwik_ViewDataTable_GenerateGraphHTML->main()
#15 /var/www/vhosts//httpdocs/applications/piwik_analytics/plugins/VisitTime/Controller.php(88): Piwik_Controller->renderView()
#16 /var/www/vhosts/
/httpdocs/applications/piwik_analytics/core/FrontController.php(138): Piwik_VisitTime_Controller->getByDayOfWeek()
#17 /var/www/vhosts//httpdocs/applications/piwik_analytics/index.php(53): Piwik_FrontController->dispatch(Object(Piwik_ViewDataTable_GenerateGraphHTML_ChartVerticalBar), false)

Change History (1)

comment:1 Changed 15 months ago by capedfuzz (diosmosis)

  • Resolution set to fixed
  • Status changed from new to closed

(In [7781]) Fixes #3669, when parsing URL in JS split param parts on first '=' only.

Note: See TracTickets for help on using tickets.