import_logs.py triggering "Warning: urldecode() expects parameter 1 to be string, array given in core/Tracker/Action.php on line 974" #3523
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
And import_logs fails because of this PHP warning (as it makes sure the response is a GIF file).
Using Piwik 1.9.1. To reproduce:
curl http://localhost/piwik.php --data '{"requests": ["1", "cdt": "2012-10-10 15:15:52", "urlref": "", "dp": "1", "url": "http://example.org/?s=foo", "cip": "127.0.0.1", "idsite": 42, "rec": "1", "bots": "1", "ua": ""}], "token_auth": "foo"}'
See the URL? The '[]' is triggering the bug. Removing it makes the bug go away.
Sure, I can hide PHP warnings, but it would be nice to handle this properly as we cannot expect our users to hide warnings.
The text was updated successfully, but these errors were encountered: