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

Illegal offset type Actions.php #19589

Closed
JasonMortonNZ opened this issue Aug 2, 2022 · 3 comments
Closed

Illegal offset type Actions.php #19589

JasonMortonNZ opened this issue Aug 2, 2022 · 3 comments
Labels
invalid Indicates that an issue or pull request is no longer relevant. Potential Bug Something that might be a bug, but can't be reproduced (yet).

Comments

@JasonMortonNZ
Copy link
Contributor

JasonMortonNZ commented Aug 2, 2022

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#0 [internal function]: Piwik\\Plugins\\Actions\\Actions->addReportToInsightsOverview(Array)\n#1 ..\/core\/EventDispatcher.php(141): call_user_func_array(Array, Array)\n#2 ..\/core\/Piwik.php(845): Piwik\\EventDispatcher->postEvent('Insights.addRep...', Array, false, Array)\n#3 ..\/plugins\/Insights\/API.php(67): Piwik\\Piwik::postEvent('Insights.addRep...', Array)\n#4 ..\/plugins\/Insights\/API.php(156): Piwik\\Plugins\\Insights\\API->getOverviewReports()\n#5 ..\/plugins\/Insights\/API.php(145): Piwik\\Plugins\\Insights\\API->generateOverviewReport('getMoversAndSha...', 3, 'range', '2022-07-25,2022...', false, Array)\n#6 ..\/plugins\/Insights\/Controller.php(75): Piwik\\Plugins\\Insights\\API->getMoversAndShakersOverview(3, 'range', '2022-07-25,2022...', false)\n#7 ..\/plugins\/Insights\/Controller.php(41): Piwik\\Plugins\\Insights\\Controller->requestApiReport('getMoversAndSha...')\n#8 [internal function]: Piwik\\Plugins\\Insights\\Controller->getOverallMoversAndShakers()\n#9 ..\/core\/FrontController.php(631): call_user_func_array(Array, Array)\n#10 ..\/core\/FrontController.php(169): Piwik\\FrontController->doDispatch('Insights', 'getOverallMover...', Array)\n#11 ..\/core\/dispatch.php(32): Piwik\\FrontController->dispatch()\n#12 ..\/index.php(25): require_once('..\/c...')\n#13 {main}","safemode_backtrace":"#0 [internal function]: Piwik\\Plugins\\Cloud\\Controller->safemode(Array)\n#1 \/core\/FrontController.php(631): call_user_func_array(Array, Array)\n#2 \/core\/FrontController.php(169): Piwik\\FrontController->doDispatch('Cloud', 'safemode', Array)\n#3 \/core\/FrontController.php(100): Piwik\\FrontController->dispatch('CorePluginsAdmi...', 'safemode', Array)\n#4 \/core\/FrontController.php(140): Piwik\\FrontController::(Array)\n#5 \/core\/FrontController.php(190): Piwik\\FrontController::(Object(TypeError))\n#6 \/core\/dispatch.php(32): Piwik\\FrontController->dispatch()\n#7 \/index.php(25): require_once('\/c...')\n#8 {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:
@JasonMortonNZ JasonMortonNZ added the Potential Bug Something that might be a bug, but can't be reproduced (yet). label Aug 2, 2022
@sgiehl
Copy link
Member

sgiehl commented Aug 2, 2022

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
Copy link
Contributor

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

@JasonMortonNZ
Copy link
Contributor Author

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

@justinvelluppillai justinvelluppillai added the invalid Indicates that an issue or pull request is no longer relevant. label Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Indicates that an issue or pull request is no longer relevant. Potential Bug Something that might be a bug, but can't be reproduced (yet).
Projects
None yet
Development

No branches or pull requests

3 participants