Skip to content

Fatal error: Unsupported operand types: null + array in API/RowEvolution.php #20399

@tsteur

Description

@tsteur

On PHP 8 + latest Matomo.

Error: {"message":"Unsupported operand types: null + array","file":"/plugins/API/RowEvolution.php","line":440,"request_id":"801ef","backtrace":" on /plugins/API/RowEvolution.php(440)\n#0 /plugins/API/RowEvolution.php(61): Piwik\Plugins\API\RowEvolution->getRowEvolutionMetaData(2, 'day', '2023-01-03,2023...', 'FormAnalytics', 'getFieldSize', false, Array)\n#1 /plugins/API/API.php(443): Piwik\Plugins\API\RowEvolution->getRowEvolution(2, 'day', '2023-01-03,2023...', 'FormAnalytics', 'getFieldSize', '@scq_descriptio...', false, false, false, Array, true, true, false, false)\n#2 [internal function]: Piwik\Plugins\API\API->getRowEvolution(2, 'range', '2023-01-03,2023...', 'FormAnalytics', 'getFieldSize', '@scq_descriptio...', false, false, false, false, true, true, false, false, false)\n#3 /core/API/Proxy.php(244): call_user_func_array(Array, Array)\n#4 /core/Context.php(28): Piwik\API\Proxy->Piwik\API\{closure}()\n#5 /core/API/Proxy.php(335): Piwik\Context::executeWithQueryParameters(Array, Object(Closure))\n#6 /core/API/Request.php(267): Piwik\API\Proxy->call('\\Piwik\\Plugins\\...', 'getRowEvolution', Array)\n#7 /plugins/CoreHome/DataTableRowAction/RowEvolution.php(216): Piwik\API\Request->process()\n#8 /plugins/CoreHome/DataTableRowAction/RowEvolution.php(124): Piwik\Plugins\CoreHome\DataTableRowAction\RowEvolution->loadEvolutionReport()\n#9 /plugins/CoreHome/Controller.php(260): Piwik\Plugins\CoreHome\DataTableRowAction\RowEvolution->__construct(2, NULL, NULL)\n#10 /plugins/CoreHome/Controller.php(226): Piwik\Plugins\CoreHome\Controller->makeRowEvolution(false)\n#11 [internal function]: Piwik\Plugins\CoreHome\Controller->getRowEvolutionPopover()\n#12 /core/FrontController.php(637): call_user_func_array(Array, Array)\n#13 /core/FrontController.php(169): Piwik\FrontController->doDispatch('CoreHome', 'getRowEvolution...', Array)\n#14 /core/dispatch.php(32): Piwik\FrontController->dispatch()\n#15 /index.php(25): require_once('/c...')\n#16 {main}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFor errors / faults / flaws / inconsistencies etc.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions