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

Fatal error: urldecode(): Argument #1 ($string) must be of type string, array given in Date.php #18795

Closed
tsteur opened this issue Feb 15, 2022 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone

Comments

@tsteur
Copy link
Member

tsteur commented Feb 15, 2022

Not sure if this was maybe fixed by #18639

Happens in PHP 8

Error: {"message":"urldecode(): Argument #1 ($string) must be of type string, array given","file":"/core/Date.php","line":138,"request_id":"9f07b","backtrace":" on /core/Date.php(138)\n#0 /core/Date.php(138): urldecode(Array)\n#1 /core/Period.php(121): Piwik\Date::factory(Array)\n#2 /core/Plugin/Controller.php(644): Piwik\Period::checkDateFormat(Array)\n#3 /core/Plugin/Controller.php(616): Piwik\Plugin\Controller->setGeneralVariablesViewAs(Object(Piwik\View), 'basic')\n#4 /plugins/CoreHome/Controller.php(180): Piwik\Plugin\Controller->setGeneralVariablesView(Object(Piwik\View))\n#5 /plugins/CoreHome/Controller.php(214): Piwik\Plugins\CoreHome\Controller->getDefaultIndexView()\n#6 [internal function]: Piwik\Plugins\CoreHome\Controller->index()\n#7 /core/FrontController.php(623):

URL: https://demo.matomo.cloud/index.php?action=index&date%5B0%5D=%3D2and+3+in+&date%5B1%5D=3%27%22%5C%28&idSite=1&module=CoreHome&period=day

GET: {"action":"index","date":["=2and 3 in ","3'"\("],"idSite":"1","module":"CoreHome","period":"day"}

@tsteur tsteur added Bug For errors / faults / flaws / inconsistencies etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement. labels Feb 15, 2022
@tsteur tsteur added this to the 4.9.0 milestone Feb 15, 2022
@sgiehl
Copy link
Member

sgiehl commented Feb 15, 2022

This one now throws as The parameter 'date' doesn't have a correct type, and a default value wasn't provided. exception. So should already be fixed with #18639

@sgiehl sgiehl closed this as completed Feb 15, 2022
@sgiehl sgiehl modified the milestones: 4.9.0, 4.8.0 Feb 15, 2022
@justinvelluppillai justinvelluppillai added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

No branches or pull requests

3 participants