Skip to content
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

Call to undefined method Piwik\\DataTable\\Map::getRowFromLabel() in plugins/UserCountry/API.php #17776

Closed
tsteur opened this issue Jul 15, 2021 · 1 comment · Fixed by #17779
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@tsteur
Copy link
Member

tsteur commented Jul 15, 2021

refs #13507

Error: {"message":"Call to undefined method Piwik\DataTable\Map::getRowFromLabel()","file":"plugins/UserCountry/API.php","line":46,"request_id":"41b0e","backtrace":" on plugins/UserCountry/API.php(46)\n#0 [internal function]: Piwik\Plugins\UserCountry\API->getCountry('all', 'day', 'last14', false)\n#1 core/API/Proxy.php(244): call_user_func_array(Array, Array)\n#2 core/Context.php(28): Piwik\API\Proxy->Piwik\API\{closure}()\n#3 core/API/Proxy.php(335): Piwik\Context::executeWithQueryParameters(Array, Object(Closure))\n#4 core/API/Request.php(266): Piwik\API\Proxy->call('\\Piwik\\Plugins\\...', 'getCountry', Array)\n#5 plugins/API/Controller.php(46): Piwik\API\Request->process()\n#6 [internal function]: Piwik\Plugins\API\Controller->index()\n#7 core/FrontController.php(615): call_user_func_array(Array, Array)\n#8 core/FrontController.php(167): Piwik\FrontController->doDispatch('API', false, Array)\n#9 core/dispatch.php(32): Piwik\FrontController->dispatch()\n#10 index.php(25): require_once('c...')\n#11 {main}","safemode_backtrace":"#0 [internal function]: Piwik\Plugins\Cloud\Controller->safemode(Array)\n#1 /core/FrontController.php(615): call_user_func_array(Array, Array)\n#2 /core/FrontController.php(167): Piwik\FrontController->doDispatch('Cloud', 'safemode', Array)\n#3 /core/FrontController.php(98): Piwik\FrontController->dispatch('CorePluginsAdmi...', 'safemode', Array)\n#4 /core/FrontController.php(138): Piwik\FrontController::(Array)\n#5 /core/FrontController.php(188): Piwik\FrontController::(Object(Error))\n#6 /core/dispatch.php(32): Piwik\FrontController->dispatch()\n#7 /index.php(25): require_once('/c...')\n#8 {main}"}

?token_auth=XYZANONYMIZED&module=API&method=Referrers.getReferrerType&method=UserCountry.getCountry&idSite=all&period=day&date=last14&segment=&format=json&filter_limit=-1

No referrer

will comment then this happens again.

@tsteur tsteur added the Bug For errors / faults / flaws / inconsistencies etc. label Jul 15, 2021
@tsteur tsteur added this to the Backlog (Help wanted) milestone Jul 15, 2021
@sgiehl
Copy link
Member

sgiehl commented Jul 16, 2021

Easy as well. The filter in the method currently can't handle a Map of Datatable Maps. Will provide a quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants