@mattmary opened this Issue on July 22nd 2022 Contributor

Hi I get a warning on an undefined array key when rendering a report in the wordpress plugin.
I create this issue in the matomo tracker because we don't access this key in the plugin: we process only the generated reports.

Expected Behavior

No Notice

Current Behavior

Error call stack:

Piwik\P\A\D\F\Actions->Piwik\P\A\D\F{closure}()
wp-content/plugins/matomo/app/plugins/Actions/DataTable/Filter/Actions.php:49
Piwik\DataTable->filter()
wp-content/plugins/matomo/app/plugins/Actions/DataTable/Filter/Actions.php:120
Piwik\P\A\D\F\Actions->filter()
wp-content/plugins/matomo/app/core/DataTable.php:532
Piwik\DataTable->filter()
wp-content/plugins/matomo/app/plugins/Actions/API.php:506
Piwik\P\A\API->filterActionsDataTable()
wp-content/plugins/matomo/app/plugins/Actions/API.php:217
Piwik\P\A\API->getPageTitles()
Unknown location
Piwik\API\Proxy->Piwik\API{closure}()
wp-content/plugins/matomo/app/core/Context.php:28
Piwik\Context::executeWithQueryParameters()
wp-content/plugins/matomo/app/core/API/Proxy.php:335
Piwik\API\Proxy->call()
wp-content/plugins/matomo/app/core/API/Request.php:266
Piwik\API\Request->process()
wp-content/plugins/matomo/app/plugins/API/ProcessedReport.php:377
Piwik\P\A\ProcessedReport->getProcessedReport()
wp-content/plugins/matomo/app/plugins/API/API.php:283
Piwik\P\A\API->getProcessedReport()
Unknown location
Piwik\API\Proxy->Piwik\API{closure}()
wp-content/plugins/matomo/app/core/Context.php:28
Piwik\Context::executeWithQueryParameters()
wp-content/plugins/matomo/app/core/API/Proxy.php:335
Piwik\API\Proxy->call()
wp-content/plugins/matomo/app/core/API/Request.php:266
Piwik\API\Request->process()
wp-content/plugins/matomo/app/core/API/Request.php:559
Piwik\API\Request::processRequest()
wp-content/plugins/matomo/classes/WpMatomo/Report/Data.php:54
WpMatomo\R\Data->fetch_report()
wp-content/plugins/matomo/classes/WpMatomo/Report/Renderer.php:100
WpMatomo\R\Renderer->show_report()
wp-includes/shortcodes.php:356
do_shortcode_tag()
Unknown location
preg_replace_callback()
wp-includes/shortcodes.php:228
do_shortcode()
wp-content/plugins/matomo/classes/WpMatomo/Admin/views/summary.php:154
WpMatomo\A\Summary->show()
wp-includes/class-wp-hook.php:307
do_action('matomo-analytics_page_matomo-summary')
wp-admin/admin.php:259

Possible Solution

Steps to Reproduce (for Bugs)

1.Install wordpress
2.Install the wordpress plugin
3.Install the plugin query monitor
4.Log in the wordpress back-office
5.Open the URL wp-admin/admin.php?page=matomo-summary
6.See in the php error tab of the query monitor plugin the warning

Context

Your Environment

  • Matomo Version: 4.10.0
  • PHP Version: 8.0.21
  • Server Operating System: Ubuntu
This Issue was closed on July 25th 2022
Powered by GitHub Issue Mirror