Undefined array key "max_actions_new" in app/core/Plugin/Report.php:924 #19555
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
not-in-changelog
For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone
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\Report->getMetricTranslations()
wp-content/plugins/matomo/app/core/Plugin/Report.php:390
Piwik\P\Report->getMetrics()
wp-content/plugins/matomo/app/plugins/API/Reports/Get.php:100
Piwik\P\A\R\Get->getReportsToMerge()
wp-content/plugins/matomo/app/plugins/API/Reports/Get.php:28
Piwik\P\A\R\Get->init()
wp-content/plugins/matomo/app/core/Plugin/Report.php:216
Piwik\P\Report->__construct()
wp-content/plugins/matomo/app/core/Plugin/ReportsProvider.php:145
Piwik\P\ReportsProvider->getAllReports()
wp-content/plugins/matomo/app/plugins/API/ProcessedReport.php:190
Piwik\P\A\ProcessedReport->getReportMetadata()
wp-content/plugins/matomo/app/plugins/API/API.php:272
Piwik\P\A\API->getReportMetadata()
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/Metadata.php:39
WpMatomo\R\Metadata->get_all_reports()
wp-content/plugins/matomo/classes/WpMatomo/Report/Metadata.php:69
WpMatomo\R\Metadata->find_report_by_unique_id()
wp-content/plugins/matomo/classes/WpMatomo/Admin/Summary.php:153
WpMatomo\A\Summary->get_reports_to_show()
wp-content/plugins/matomo/classes/WpMatomo/Admin/Summary.php:65
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
The text was updated successfully, but these errors were encountered: