@JasonMortonNZ opened this Issue on August 2nd 2022 Contributor

Cloud has been noticing an increasing count of the below error Illegal offset type for /plugins/Actions/Actions.php:85

Context

Error:

{"message":"Illegal offset type","file":"..\/plugins\/Actions\/Actions.php","line":85,"request_id":"6799c","backtrace":" on ..\/plugins\/Actions\/Actions.php(85)\n<a href='/0'>#0</a> [internal function]: Piwik\\Plugins\\Actions\\Actions->addReportToInsightsOverview(Array)\n<a href='/1'>#1</a> ..\/core\/EventDispatcher.php(141): call_user_func_array(Array, Array)\n<a href='/2'>#2</a> ..\/core\/Piwik.php(845): Piwik\\EventDispatcher->postEvent('Insights.addRep...', Array, false, Array)\n<a href='/3'>#3</a> ..\/plugins\/Insights\/API.php(67): Piwik\\Piwik::postEvent('Insights.addRep...', Array)\n<a href='/4'>#4</a> ..\/plugins\/Insights\/API.php(156): Piwik\\Plugins\\Insights\\API->getOverviewReports()\n<a href='/5'>#5</a> ..\/plugins\/Insights\/API.php(145): Piwik\\Plugins\\Insights\\API->generateOverviewReport('getMoversAndSha...', 3, 'range', '2022-07-25,2022...', false, Array)\n<a href='/6'>#6</a> ..\/plugins\/Insights\/Controller.php(75): Piwik\\Plugins\\Insights\\API->getMoversAndShakersOverview(3, 'range', '2022-07-25,2022...', false)\n<a href='/7'>#7</a> ..\/plugins\/Insights\/Controller.php(41): Piwik\\Plugins\\Insights\\Controller->requestApiReport('getMoversAndSha...')\n<a href='/8'>#8</a> [internal function]: Piwik\\Plugins\\Insights\\Controller->getOverallMoversAndShakers()\n<a href='/9'>#9</a> ..\/core\/FrontController.php(631): call_user_func_array(Array, Array)\n<a href='/10'>#10</a> ..\/core\/FrontController.php(169): Piwik\\FrontController->doDispatch('Insights', 'getOverallMover...', Array)\n<a href='/11'>#11</a> ..\/core\/dispatch.php(32): Piwik\\FrontController->dispatch()\n<a href='/12'>#12</a> ..\/index.php(25): require_once('..\/c...')\n<a href='/13'>#13</a> {main}","safemode_backtrace":"<a href='/0'>#0</a> [internal function]: Piwik\\Plugins\\Cloud\\Controller->safemode(Array)\n<a href='/1'>#1</a> \/core\/FrontController.php(631): call_user_func_array(Array, Array)\n<a href='/2'>#2</a> \/core\/FrontController.php(169): Piwik\\FrontController->doDispatch('Cloud', 'safemode', Array)\n<a href='/3'>#3</a> \/core\/FrontController.php(100): Piwik\\FrontController->dispatch('CorePluginsAdmi...', 'safemode', Array)\n<a href='/4'>#4</a> \/core\/FrontController.php(140): Piwik\\FrontController::(Array)\n<a href='/5'>#5</a> \/core\/FrontController.php(190): Piwik\\FrontController::(Object(TypeError))\n<a href='/6'>#6</a> \/core\/dispatch.php(32): Piwik\\FrontController->dispatch()\n<a href='/7'>#7</a> \/index.php(25): require_once('\/c...')\n<a href='/8'>#8</a> {main}"}

URL: [/index.php?date=2022-07-25,2022-07-31&module=Insights&action=getOverallMoversAndShakers&disableLink=0&widget=1&idSite=3&period=range]()

Referrer: [/index.php?module=CoreHome&action=index&date=previous7&period=range&idSite=3]()

GET: {"date":"2022-07-25,2022-07-31","module":"Insights","action":"getOverallMoversAndShakers","disableLink":"0","widget":"1","idSite":"3","period":"range"}

Your Environment

  • Matomo Version: 4.10.0
  • PHP Version: 8.0
  • Server Operating System: Linux
  • Additionally installed plugins:
@sgiehl commented on August 2nd 2022 Member

Looking at the code I can't see any reason why that could happen. The method is triggered by an event, that passes through an array reference. The method itself tries to add an element to that array. I don't have a clue why that could cause an illegal offset type 🤷

@justinvelluppillai commented on August 9th 2022 Member

@JasonMortonNZ let us know if this is resolved by the translations fix and we can close this.

@JasonMortonNZ commented on August 9th 2022 Contributor

@justinvelluppillai Yes, this is now resolved by the translations fix 👍

This Issue was closed on August 9th 2022
Powered by GitHub Issue Mirror