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

fixed API response for php format with multidimensional arrays #227

Closed
wants to merge 1 commit into from

Conversation

voda
Copy link

@voda voda commented Feb 14, 2014

This should fix invalid response from API, where are multidimensional arrays in the result. ScheduledReports.getReports is the one i tested it with. The current response is Array and produces a warning:

Notice: Array to string conversion in core/dispatch.php on line 33
Backtrace -->

 #0 Piwik\Error::errorHandler(...) called at [core/dispatch.php:33]
 #1 require_once(...) called at [index.php:47]

I tested this only with this one api call, so not sure if this is even a proper fix.

@mattab
Copy link
Member

mattab commented Feb 14, 2014

Thanks for the report. please create a bug report at: dev.piwik.org as I'm not sure about this fix and would like to reproduce the bug and add a test for it. Cheers

@mattab mattab closed this Feb 14, 2014
@voda voda deleted the php-format branch February 17, 2014 10:12
@voda
Copy link
Author

voda commented Feb 17, 2014

Ok, created http://dev.piwik.org/trac/ticket/4694.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants