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

"Notice: Array to string conversion" when downloading CSV or TSV files from Visitor Log in 1.12 #4063

Closed
anonymous-matomo-user opened this issue Jul 30, 2013 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

I looked at earlier tickets that looked like they addressed this, but did not find a solution (the fixes should be included in 1.12).

One notable detail is that the server is running PHP 5.4.13. This caused other issues on a related website (the website being tracked).

The error message is below:

Notice: Array to string conversion in /var/www/vhosts/new-example.com/httpdocs/core/DataTable/Renderer/Csv.php on line 283

Backtrace -->
#0 Piwik_ErrorHandler(...) called at [/var/www/vhosts/new-example.com/httpdocs/core/DataTable/Renderer/Csv.php:283]
#1 Piwik_DataTable_Renderer_Csv->renderDataTable(...) called at [/var/www/vhosts/new-example.com/httpdocs/core/DataTable/Renderer/Csv.php:132]
#2 Piwik_DataTable_Renderer_Csv->renderTable(...) called at [/var/www/vhosts/new-example.com/httpdocs/core/DataTable/Renderer/Csv.php:68]
#3 Piwik_DataTable_Renderer_Csv->render(...) called at [/var/www/vhosts/new-example.com/httpdocs/core/API/ResponseBuilder.php:193]
#4 Piwik_API_ResponseBuilder->getRenderedDataTable(...) called at [/var/www/vhosts/new-example.com/httpdocs/core/API/ResponseBuilder.php:300]
#5 Piwik_API_ResponseBuilder->handleDataTable(...) called at [/var/www/vhosts/new-example.com/httpdocs/core/API/ResponseBuilder.php:77]
#6 Piwik_API_ResponseBuilder->getResponse(...) called at [/var/www/vhosts/new-example.com/httpdocs/core/API/Request.php:147]
#7 Piwik_API_Request->process(...) called at [/var/www/vhosts/new-example.com/httpdocs/plugins/API/Controller.php:25]
#8 Piwik_API_Controller->index(...) called at [:]
#9 call_user_func_array(...) called at [/var/www/vhosts/new-example.com/httpdocs/core/FrontController.php:125]
#10 Piwik_FrontController->dispatch(...) called at [/var/www/vhosts/new-example.com/httpdocs/index.php:47]

Keywords: CSV, Visitor Log

@mattab
Copy link
Member

mattab commented Aug 9, 2013

#97

@anonymous-matomo-user
Copy link
Author

In 1510afc: Fixes #4063, allow csv renderer to handle arbitrarily nested data structures at least a little bit gracefully.

@anonymous-matomo-user
Copy link
Author

In f0f5edd: Refs #4063, test for this fix.

@anonymous-matomo-user anonymous-matomo-user added this to the 2.0 - Piwik 2.0 milestone Jul 8, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
…d data structures at least a little bit gracefully.
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
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