Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 13117

Error in Pages Widget (PIWIK 1.1.11)

$
0
0
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!).

Warning: htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/www/piwik/core/DataTable/Filter/SafeDecodeLabel.php on line 53 

Backtrace -->

#0 Piwik_ErrorHandler(...) called at [:]
#1 htmlspecialchars(...) called at [/home/www/piwik/core/DataTable/Filter/SafeDecodeLabel.php:53]
#2 Piwik_DataTable_Filter_SafeDecodeLabel::safeDecodeLabel(...) called at [/home/www/piwik/core/DataTable/Filter/SafeDecodeLabel.php:70]
#3 Piwik_DataTable_Filter_SafeDecodeLabel->filter(...) called at [/home/www/piwik/core/DataTable.php:387]
#4 Piwik_DataTable->filter(...) called at [/home/www/piwik/core/DataTable.php:414]
#5 Piwik_DataTable->applyQueuedFilters(...) called at [/home/www/piwik/core/API/ResponseBuilder.php:300]
#6 Piwik_API_ResponseBuilder->handleDataTable(...) called at [/home/www/piwik/core/API/ResponseBuilder.php:78]
#7 Piwik_API_ResponseBuilder->getResponse(...) called at [/home/www/piwik/core/API/Request.php:129]
#8 Piwik_API_Request->process(...) called at [/home/www/piwik/core/ViewDataTable.php:431]
#9 Piwik_ViewDataTable->loadDataTableFromAPI(...) called at [/home/www/piwik/core/ViewDataTable/HtmlTable.php:80]
#10 Piwik_ViewDataTable_HtmlTable->main(...) called at [/home/www/piwik/plugins/Actions/Controller.php:464]
#11 Piwik_Actions_Controller->configureGenericViewActions(...) called at [/home/www/piwik/plugins/Actions/Controller.php:406]
#12 Piwik_Actions_Controller->configureViewActions(...) called at [/home/www/piwik/plugins/Actions/Controller.php:46]
#13 Piwik_Actions_Controller->getPageUrls(...) called at [:]
#14 call_user_func_array(...) called at [/home/www/piwik/core/FrontController.php:136]
#15 Piwik_FrontController->dispatch(...) called at [/home/www/piwik/index.php:52]

To fix the problem edit SafeDecodeLabel.php and replace line 53 :

$value = htmlspecialchars($value, $style, 'UTF-8');
by
$value = htmlspecialchars($value, $style);

UTF-8 charset wasn't forced in last release ;)
Don't forget to report the fix on 1.1.12

Best regards

Viewing all articles
Browse latest Browse all 13117

Trending Articles