-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Context
Got below error:
Error: {"message":"Call to undefined method Piwik\DataTable\Map::getMetadata()","file":"/plugins/API/DataTable/MergeDataTables.php","line":51,"request_id":"51562","backtrace":" on /plugins/API/DataTable/MergeDataTables.php(51)\n#0 /plugins/API/API.php(381): Piwik\Plugins\API\DataTable\MergeDataTables->mergeDataTables(Object(Piwik\DataTable\Map), Object(Piwik\DataTable\Simple))\n#1 [internal function]: Piwik\Plugins\API\API->get('1,3', 'range', '2023-04-17,2023...', false, Array)\n#2 /core/API/Proxy.php(244): call_user_func_array(Array, Array)\n#3 /core/Context.php(28): Piwik\API\Proxy->Piwik\API\{closure}()\n#4 /core/API/Proxy.php(335): Piwik\Context::executeWithQueryParameters(Array, Object(Closure))\n#5 /core/API/Request.php(267): Piwik\API\Proxy->call('\\Piwik\\Plugins\\...', 'get', Array)\n#6 /plugins/API/Controller.php(45): Piwik\API\Request->process()\n#7 [internal function]: Piwik\Plugins\API\Controller->index()\n#8 /core/FrontController.php(637): call_user_func_array(Array, Array)\n#9 /core/FrontController.php(169): Piwik\FrontController->doDispatch('API', false, Array)\n#10 /core/dispatch.php(32): Piwik\FrontController->dispatch()\n
URL: /?module=API&method=API.get&idSite=1,3&token_auth=XYZANONYMIZED&period=range&date=2023-04-17,2023-05-19&expanded=0&flat=1&segment=&format=JSON&format_metrics=0&filter_limit=-1&filter_pattern_recursive=
Referrer: None (meaning it's not coming from the UI)
GET: {"module":"API","method":"API.get","idSite":"1,3","token_auth":"XYZANONYMIZED","period":"range","date":"2023-04-17,2023-05-19","expanded":"0","flat":"1","segment":"","format":"JSON","format_metrics":"0","filter_limit":"-1","filter_pattern_recursive":""}
USER AGENT: Mozilla/5.0 (compatible; Google-Apps-Script; beanserver; https://script.google.com/; id: ....)
Expected Behavior
No fatal error.
Current Behavior
Fatal error
Your Environment
Latest Matomo 4.X