Skip to content

Error array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements in PivotByDimension #19806

@tsteur

Description

@tsteur

URL: /index.php?module=API&format=CSV&idSite=1&period=week&date=2022-10-02&method=MarketingCampaignsReporting.getName&filter_update_columns_when_show_all_goals=-1&filter_show_goal_columns_process_goals=ecommerceOrder,2,3&expanded=1&format_metrics=1&pivotBy=MarketingCampaignsReporting.CombinedKeywordContent&pivotByColumnLimit=20&translateColumnNames=1&language=en&token_auth=XYZANONYMIZED&force_api_session=1&filter_limit=5

Referrer: /index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday

GET: {"module":"API","format":"CSV","idSite":"1","period":"week","date":"2022-10-02","method":"MarketingCampaignsReporting.getName","filter_update_columns_when_show_all_goals":"-1","filter_show_goal_columns_process_goals":"ecommerceOrder,2,3","expanded":"1","format_metrics":"1","pivotBy":"MarketingCampaignsReporting.CombinedKeywordContent","pivotByColumnLimit":"20","translateColumnNames":"1","language":"en","token_auth":"XYZANONYMIZED","force_api_session":"1","filter_limit":"5"}

stack trace:

Error: {"message":"array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements","file":"core/DataTable/Filter/PivotByDimension.php","line":254,"request_id":"ec5c3","backtrace":" on core/DataTable/Filter/PivotByDimension.php(254)\n#0 core/DataTable/Filter/PivotByDimension.php(254): array_combine(Array, Array)\n#1 [internal function]: Piwik\DataTable\Filter\PivotByDimension->Piwik\DataTable\Filter\{closure}(Object(Piwik\DataTable))\n#2 core/DataTable.php(511): call_user_func_array(Object(Closure), Array)\n#3 core/DataTable.php(617): Piwik\DataTable->filter(Object(Closure), Array)\n#4 core/API/DataTablePostProcessor.php(304): Piwik\DataTable->applyQueuedFilters()\n#5 core/API/DataTablePostProcessor.php(134): Piwik\API\DataTablePostProcessor->applyQueuedFilters(Object(Piwik\DataTable))\n#6 core/API/ResponseBuilder.php(190): Piwik\API\DataTablePostProcessor->process(Object(Piwik\DataTable))\n#7 core/API/ResponseBuilder.php(104): Piwik\API\ResponseBuilder->handleDataTable(Object(Piwik\DataTable))\n#8 core/API/Request.php(272): Piwik\API\ResponseBuilder->getResponse(Object(Piwik\DataTable), 'MarketingCampai...', 'getName')\n#9 core/Context.php(28): Piwik\API\Request->Piwik\API\{closure}()\n#10 core/API/Request.php(273): Piwik\Context::executeWithQueryParameters(Array, Object(Closure))\n#11 plugins/API/Controller.php(45): Piwik\API\Request->process()\n#12 [internal function]: Piwik\Plugins\API\Controller->index()\n#13 core/FrontController.php(631): call_user_func_array(Array, Array)\n#14 core/FrontController.php(169): Piwik\FrontController->doDispatch('API', false, Array)\n#15 core/dispatch.php(32): Piwik\FrontController->dispatch()\n#16 index.php(25): require_once('c...')\n#17 {main}","safemode_backtrace":"#0 [internal function]: Piwik\Plugins\Cloud\Controller->safemode(Array)\n#1 /core/FrontController.php(631): call_user_func_array(Array, Array)\n#2 /core/FrontController.php(169): Piwik\FrontController->doDispatch('Cloud', 'safemode', Array)\n#3 /core/FrontController.php(100): Piwik\FrontController->dispatch('CorePluginsAdmi...', 'safemode', Array)\n#4 /core/FrontController.php(140): Piwik\FrontController::(Array)\n#5 /core/FrontController.php(190): Piwik\FrontController::(Object(ValueError))\n#6 /core/dispatch.php(32): Piwik\FrontController->dispatch()\n#7 /index.php(25): require_once('/c...')\n#8 {main}"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFor errors / faults / flaws / inconsistencies etc.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions