@phip1611 opened this Issue on February 5th 2017

When I try to create a segment with a filter for a specific operating system piwik throws a bunch of errors. This happens when creating a segment that is only filtering for a operating system as well as combining other filters with the operating system. Other filters like provider or site url work fine, also in AND/OR-combinations.

ERROR: Failed to get data from API: The segment 'deviceType%3D%3DDesktop%3BoperatingSystemCode%3D%3DWIN%2CoperatingSystemCode%3D%3DMAC' is not valid. <a href='/0'>#0</a> /piwik/core/Segment.php(155): Piwik\Segment\SegmentExpression-&gt;parseSubExpressions() <a href='/1'>#1</a> /piwik/core/Segment.php(106): Piwik\Segment-&gt;initializeSegment('deviceType%253D...', Array) <a href='/2'>#2</a> /piwik/core/Archive.php(225): Piwik\Segment-&gt;__construct('deviceType%253D...', Array) <a href='/3'>#3</a> /piwik/plugins/VisitsSummary/API.php(29): Piwik\Archive::build('1', 'day', '2017-01-07,2017...', 'deviceType%253D...') <a href='/4'>#4</a> [internal function]: Piwik\Plugins\VisitsSummary\API-&gt;get('1', 'day', '2017-01-07,2017...', 'deviceType%253D...', 'nb_uniq_visitor...') <a href='/5'>#5</a> /piwik/core/API/Proxy.php(219): call_user_func_array(Array, Array) <a href='/6'>#6</a> /piwik/plugins/API/API.php(388): Piwik\API\Proxy-&gt;call('\\Piwik\\Plugins\\...', 'get', Array) <a href='/7'>#7</a> [internal function]: Piwik\Plugins\API\API-&gt;get('1', 'day', '2017-01-07,2017...', 'deviceType%253D...', Array) <a href='/8'>#8</a> /piwik/core/API/Proxy.php(219): call_user_func_array(Array, Array) <a href='/9'>#9</a> /piwik/core/Plugin/Visualization.php(264): Piwik\API\Proxy-&gt;call('\\Piwik\\Plugins\\...', 'get', Array) <a href='/10'>#10</a> /piwik/core/Plugin/Visualization.php(181): Piwik\Plugin\Visualization-&gt;loadDataTableFromAPI() <a href='/11'>#11</a> /piwik/core/Plugin/Controller.php(249): Piwik\Plugin\Visualization-&gt;render() <a href='/12'>#12</a> /piwik/plugins/VisitsSummary/Controller.php(121): Piwik\Plugin\Controller-&gt;renderView(Object(Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Evolution)) <a href='/13'>#13</a> [internal function]: Piwik\Plugins\VisitsSummary\Controller-&gt;getEvolutionGraph() <a href='/14'>#14</a> /piwik/core/FrontController.php(542): call_user_func_array(Array, Array) <a href='/15'>#15</a> /piwik/core/FrontController.php(137): Piwik\FrontController-&gt;doDispatch('VisitsSummary', 'getEvolutionGra...', Array) <a href='/16'>#16</a> /piwik/core/dispatch.php(34): Piwik\FrontController-&gt;dispatch() <a href='/17'>#17</a> /piwik/index.php(27): require_once('/www/htdocs/w01...') <a href='/18'>#18</a> {main}

@phip1611 commented on February 5th 2017

Update
The problem occurs when filtering for Windows or Mac but not when filtering for Android

Update two
Mysteriously it worked for a brief moment for Android, but now no more.

@tsteur commented on February 10th 2017 Owner

Same problem here when using eg this segment:
image

It seems to first work but when then selecting the segment from the list of segments it does no longer work and fails like this:

image

This Issue was closed on February 20th 2017
Powered by GitHub Issue Mirror