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

API response for format=php with multidimensional arrays doesn't work #4694

Closed
anonymous-matomo-user opened this issue Feb 17, 2014 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.

Comments

@anonymous-matomo-user
Copy link

requesting ScheduledReports.getReports with format=php returns '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]

Bug #4115 is i think related. I haven't tested any other API method, but I thunk it is any method, that returns multidimensional arrays.

@diosmosis
Copy link
Member

The PHP renderer is for internal use and outputs an in-memory PHP array, not serialized PHP. To output serialized data, append &serialize=1 to your query string.

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. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

3 participants