Error saving CSV/TSV files from Visitor Log

Hi,

we are working on piwik 1.11.
when we try to export the visitor log we are facing the below error.
Please let us know how to resolve it.

There is an error. Please report the message (Piwik 1.11.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Notice: Array to string conversion in /var/www/html/piwik/core/DataTable/Renderer/Csv.php on line 317

Backtrace -->

#0 Piwik_ErrorHandler(…) called at [/var/www/html/piwik/core/DataTable/Renderer/Csv.php:317]
#1 Piwik_DataTable_Renderer_Csv->renderDataTable(…) called at [/var/www/html/piwik/core/DataTable/Renderer/Csv.php:136]
#2 Piwik_DataTable_Renderer_Csv->renderTable(…) called at [/var/www/html/piwik/core/DataTable/Renderer/Csv.php:68]
#3 Piwik_DataTable_Renderer_Csv->render(…) called at [/var/www/html/piwik/core/API/ResponseBuilder.php:205]
#4 Piwik_API_ResponseBuilder->getRenderedDataTable(…) called at [/var/www/html/piwik/core/API/ResponseBuilder.php:320]
#5 Piwik_API_ResponseBuilder->handleDataTable(…) called at [/var/www/html/piwik/core/API/ResponseBuilder.php:78]
#6 Piwik_API_ResponseBuilder->getResponse(…) called at [/var/www/html/piwik/core/API/Request.php:129]
#7 Piwik_API_Request->process(…) called at [/var/www/html/piwik/plugins/API/Controller.php:26]
#8 Piwik_API_Controller->index(…) called at [:]
#9 call_user_func_array(…) called at [/var/www/html/piwik/core/FrontController.php:136]
#10 Piwik_FrontController->dispatch(…) called at [/var/www/html/piwik/index.php:52]

There is an error. Please report the message (Piwik 1.11.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Notice: Array to string conversion in /var/www/html/piwik/core/DataTable/Renderer/Csv.php on line 317

Backtrace -->

#0 Piwik_ErrorHandler(…) called at [/var/www/html/piwik/core/DataTable/Renderer/Csv.php:317]
#1 Piwik_DataTable_Renderer_Csv->renderDataTable(…) called at [/var/www/html/piwik/core/DataTable/Renderer/Csv.php:136]
#2 Piwik_DataTable_Renderer_Csv->renderTable(…) called at [/var/www/html/piwik/core/DataTable/Renderer/Csv.php:68]
#3 Piwik_DataTable_Renderer_Csv->render(…) called at [/var/www/html/piwik/core/API/ResponseBuilder.php:205]
#4 Piwik_API_ResponseBuilder->getRenderedDataTable(…) called at [/var/www/html/piwik/core/API/ResponseBuilder.php:320]
#5 Piwik_API_ResponseBuilder->handleDataTable(…) called at [/var/www/html/piwik/core/API/ResponseBuilder.php:78]
#6 Piwik_API_ResponseBuilder->getResponse(…) called at [/var/www/html/piwik/core/API/Request.php:129]
#7 Piwik_API_Request->process(…) called at [/var/www/html/piwik/plugins/API/Controller.php:26]
#8 Piwik_API_Controller->index(…) called at [:]
#9 call_user_func_array(…) called at [/var/www/html/piwik/core/FrontController.php:136]
#10 Piwik_FrontController->dispatch(…) called at [/var/www/html/piwik/index.php:52]

Thanks & Regards,
Bhagya

This is fixed in master. If you are still on 1.11 I recommend to upgrade to at least 1.12.