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

import_logs.py triggering "Warning: urldecode() expects parameter 1 to be string, array given in core/Tracker/Action.php on line 974" #3523

Closed
cbay opened this issue Nov 6, 2012 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@cbay
Copy link
Contributor

cbay commented Nov 6, 2012

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.

@mattab
Copy link
Member

mattab commented Nov 7, 2012

Can you please try with latest beta (which is morestable than 1.9.1): http://builds.piwik.org/piwik-1.9.2-b3.zip

I cant reproduce this bug with latest beta but if you still can let me know or re-open the ticket.

@cbay
Copy link
Contributor Author

cbay commented Nov 7, 2012

Yes, I can reproduce it with 1.9.3-b3:

<b>Warning</b>: urldecode() expects parameter 1 to be string, array given in <b>/data/www/piwik2/core/Tracker/Action.php</b> on line <b>977</b>

@mattab
Copy link
Member

mattab commented Nov 9, 2012

(In [7411]) Fixes #3523 Please confirm the fix works for you! I couldnt reproduce the warning for some reasons

@cbay
Copy link
Contributor Author

cbay commented Nov 9, 2012

It is indeed fixed.

This issue was closed.
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.
Projects
None yet
Development

No branches or pull requests

2 participants