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

Calling MultiSites.getAll results in "Invalid parameter number" (in Piwik 2.5.0-b1) #5887

Closed
tsteur opened this issue Jul 27, 2014 · 0 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@tsteur
Copy link
Member

tsteur commented Jul 27, 2014

Opening for instance http://demo2.piwik.org/index.php?enhanced=1&period=day&date=yesterday&pattern=test&filter_limit=50&sortOrderColumn=nb_visits&filter_sort_column=nb_visits&module=API&token_auth=XXXXXX&format=json&method=MultiSites.getAll&language=en&

Results in

SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens

Can reproduce it on my local instance if pattern contains a string that matches at least one site. Breaks Piwik Mobile 2

@tsteur tsteur added this to the Piwik 2.5.0 milestone Jul 27, 2014
tsteur added a commit that referenced this issue Jul 27, 2014
tsteur added a commit that referenced this issue Jul 27, 2014
…ld really introduce a model for sitesManager to not having directly to expose methods
tsteur added a commit that referenced this issue Jul 27, 2014
…API. I tried to write a test for this but was not able to since lots of IntegrationTest magic
@tsteur tsteur closed this as completed Jul 27, 2014
tsteur added a commit that referenced this issue Aug 1, 2014
tsteur added a commit that referenced this issue Aug 1, 2014
…ld really introduce a model for sitesManager to not having directly to expose methods
tsteur added a commit that referenced this issue Aug 1, 2014
…API. I tried to write a test for this but was not able to since lots of IntegrationTest magic
@tsteur tsteur self-assigned this Aug 12, 2014
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

1 participant