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

Closed
anonymous-piwik-user opened this Issue Jul 30, 2013 · 3 comments

2 participants

@anonymous-piwik-user

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
Piwik Open Source Analytics member

#97

@anonymous-piwik-user

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

@anonymous-piwik-user

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

@anonymous-piwik-user anonymous-piwik-user added this to the 2.0 - Piwik 2.0 milestone Jul 8, 2014
@sabl0r sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
Benaka Moorthi Fixes #4063, allow csv renderer to handle arbitrarily nested data str…
…uctures at least a little bit gracefully.
1510afc
@sabl0r sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
Benaka Moorthi Refs #4063, test for this fix. f0f5edd
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment