@knelus opened this issue on October 30th 2014

Happends when i open the complete visitors log.

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

Warning: strnatcasecmp() expects parameter 1 to be string, array given in /home/knelus/domains/..../public_html/statistieken/core/DataTable/Filter/Sort.php on line 142

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [:]
#1 strnatcasecmp(...) called at [/home/knelus/domains/..../public_html/statistieken/core/DataTable/Filter/Sort.php:142]
#2 Piwik\DataTable\Filter\Sort->naturalSort(...) called at [:]
#3 usort(...) called at [/home/knelus/domains/..../public_html/statistieken/core/DataTable.php:348]
#4 Piwik\DataTable->sort(...) called at [/home/knelus/domains/..../public_html/statistieken/core/DataTable/Filter/Sort.php:258]
#5 Piwik\DataTable\Filter\Sort->filter(...) called at [/home/knelus/domains/..../public_html/statistieken/core/DataTable.php:425]
#6 Piwik\DataTable->filter(...) called at [/home/knelus/domains/..../public_html/statistieken/core/DataTable.php:453]
#7 Piwik\DataTable->applyQueuedFilters(...) called at [/home/knelus/domains/..../public_html/statistieken/core/API/ResponseBuilder.php:211]
#8 Piwik\API\ResponseBuilder->handleDataTable(...) called at [/home/knelus/domains/..../public_html/statistieken/core/API/ResponseBuilder.php:97]
#9 Piwik\API\ResponseBuilder->getResponse(...) called at [/home/knelus/domains/..../public_html/statistieken/core/API/Request.php:218]
#10 Piwik\API\Request->process(...) called at [/home/knelus/domains/..../public_html/statistieken/core/ViewDataTable/Request.php:48]
#11 Piwik\ViewDataTable\Request->loadDataTableFromAPI(...) called at [/home/knelus/domains/..../public_html/statistieken/core/Plugin/ViewDataTable.php:327]
#12 Piwik\Plugin\ViewDataTable->loadDataTableFromAPI(...) called at [/home/knelus/domains/..../public_html/statistieken/core/Plugin/Visualization.php:166]
#13 Piwik\Plugin\Visualization->buildView(...) called at [/home/knelus/domains/..../public_html/statistieken/core/Plugin/ViewDataTable.php:414]
#14 Piwik\Plugin\ViewDataTable->render(...) called at [/home/knelus/domains/..../public_html/statistieken/core/Plugin/Report.php:304]
#15 Piwik\Plugin\Report->render(...) called at [/home/knelus/domains/..../public_html/statistieken/core/Plugin/Controller.php:327]
#16 Piwik\Plugin\Controller->renderReport(...) called at [/home/knelus/domains/..../public_html/statistieken/plugins/Live/Controller.php:70]
#17 Piwik\Plugins\Live\Controller->getVisitorLog(...) called at [:]
#18 call_user_func_array(...) called at [/home/knelus/domains/..../public_html/statistieken/core/FrontController.php:587]
#19 Piwik\FrontController->doDispatch(...) called at [/home/knelus/domains/..../public_html/statistieken/core/FrontController.php:95]
#20 Piwik\FrontController->dispatch(...) called at [/home/knelus/domains/..../public_html/statistieken/core/dispatch.php:34]
#21 require_once(...) called at [/home/knelus/domains/..../public_html/statistieken/index.php:46]
@mattab commented on October 31st 2014

Thanks for the report. At this line: https://github.com/piwik/piwik/blob/master/core/DataTable/Filter/Sort.php#L131

can you add the following code:

        if(is_array($valB)) {
            var_dump($valB);
        }
        if(is_array($valA)) {
            var_dump($valA);
        }

then reload the page -> can you paste here the displayed values?

@knelus commented on October 31st 2014

It's a long page with errors and dumps so here is the first

array(25) { [0]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(22) "http://www.DOMAIN.net/" ["pageTitle"]=> string(13) "DOMAIN - Home" ["pageIdAction"]=> string(4) "6109" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:06:28" ["pageId"]=> string(6) "288474" ["generationTime"]=> string(5) "0.55s" ["timeSpent"]=> string(1) "9" ["timeSpentPretty"]=> string(2) "9s" ["icon"]=> NULL } [1]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(32) "http://www.DOMAIN.net/uitverkoop" ["pageTitle"]=> string(19) "DOMAIN - Uitverkoop" ["pageIdAction"]=> string(4) "6134" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:06:37" ["pageId"]=> string(6) "288475" ["generationTime"]=> string(5) "0.76s" ["timeSpent"]=> string(2) "34" ["timeSpentPretty"]=> string(3) "34s" ["icon"]=> NULL } [2]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(55) "http://www.DOMAIN.net/gereedschap/hand-gereedschap.html" ["pageTitle"]=> string(39) "DOMAIN - Hand gereedschap - Gereedschap" ["pageIdAction"]=> string(4) "6188" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:07:11" ["pageId"]=> string(6) "288476" ["generationTime"]=> string(5) "0.73s" ["timeSpent"]=> string(1) "2" ["timeSpentPretty"]=> string(2) "2s" ["icon"]=> NULL } [3]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(38) "http://www.DOMAIN.net/gereedschap.html" ["pageTitle"]=> string(20) "DOMAIN - Gereedschap" ["pageIdAction"]=> string(4) "6161" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:07:13" ["pageId"]=> string(6) "288477" ["generationTime"]=> string(5) "0.47s" ["timeSpent"]=> string(1) "1" ["timeSpentPretty"]=> string(2) "1s" ["icon"]=> NULL } [4]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(38) "http://www.DOMAIN.net/gereedschap.html" ["pageTitle"]=> string(20) "DOMAIN - Gereedschap" ["pageIdAction"]=> string(4) "6161" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:07:14" ["pageId"]=> string(6) "288478" ["generationTime"]=> string(5) "0.45s" ["timeSpent"]=> string(1) "9" ["timeSpentPretty"]=> string(2) "9s" ["icon"]=> NULL } [5]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(70) "http://www.DOMAIN.net/gereedschap/elektrisch-gereedschap/220-volt.html" ["pageTitle"]=> string(56) "DOMAIN - 220 volt - Elektrisch gereedschap - Gereedschap" ["pageIdAction"]=> string(4) "6892" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:07:23" ["pageId"]=> string(6) "288479" ["generationTime"]=> string(5) "0.79s" ["timeSpent"]=> string(1) "8" ["timeSpentPretty"]=> string(2) "8s" ["icon"]=> NULL } [6]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(74) "http://www.DOMAIN.net/gereedschap/elektrisch-gereedschap/220-volt.html?p=2" ["pageTitle"]=> string(56) "DOMAIN - 220 volt - Elektrisch gereedschap - Gereedschap" ["pageIdAction"]=> string(4) "6893" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:07:31" ["pageId"]=> string(6) "288480" ["generationTime"]=> string(5) "0.71s" ["timeSpent"]=> string(2) "13" ["timeSpentPretty"]=> string(3) "13s" ["icon"]=> NULL } [7]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(74) "http://www.DOMAIN.net/gereedschap/elektrisch-gereedschap/220-volt.html?p=3" ["pageTitle"]=> string(56) "DOMAIN - 220 volt - Elektrisch gereedschap - Gereedschap" ["pageIdAction"]=> string(4) "6894" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:07:44" ["pageId"]=> string(6) "288481" ["generationTime"]=> string(5) "0.57s" ["timeSpent"]=> string(2) "14" ["timeSpentPretty"]=> string(3) "14s" ["icon"]=> NULL } [8]=> array(9) { ["type"]=> string(6) "action" ["url"]=> string(26) "http://www.DOMAIN.net/home" ["pageTitle"]=> string(13) "DOMAIN - Home" ["pageIdAction"]=> string(4) "6112" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:07:58" ["pageId"]=> string(6) "288482" ["timeSpent"]=> string(1) "8" ["timeSpentPretty"]=> string(2) "8s" ["icon"]=> NULL } [9]=> array(9) { ["type"]=> string(7) "outlink" ["url"]=> string(69) "https://www.vuurwerkplanet.nl/DOMAINhandelsondernemingvof/d_184_93328" ["pageTitle"]=> NULL ["pageIdAction"]=> string(4) "7255" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:08:06" ["pageId"]=> string(6) "288483" ["timeSpent"]=> string(2) "59" ["timeSpentPretty"]=> string(3) "59s" ["icon"]=> string(32) "plugins/Morpheus/images/link.gif" } [10]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(74) "http://www.DOMAIN.net/gereedschap/elektrisch-gereedschap/220-volt.html?p=3" ["pageTitle"]=> string(56) "DOMAIN - 220 volt - Elektrisch gereedschap - Gereedschap" ["pageIdAction"]=> string(4) "6894" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:09:05" ["pageId"]=> string(6) "288484" ["generationTime"]=> string(5) "0.55s" ["timeSpent"]=> string(1) "2" ["timeSpentPretty"]=> string(2) "2s" ["icon"]=> NULL } [11]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(74) "http://www.DOMAIN.net/gereedschap/elektrisch-gereedschap/220-volt.html?p=2" ["pageTitle"]=> string(56) "DOMAIN - 220 volt - Elektrisch gereedschap - Gereedschap" ["pageIdAction"]=> string(4) "6893" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:09:07" ["pageId"]=> string(6) "288485" ["generationTime"]=> string(5) "0.63s" ["timeSpent"]=> string(1) "2" ["timeSpentPretty"]=> string(2) "2s" ["icon"]=> NULL } [12]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(70) "http://www.DOMAIN.net/gereedschap/elektrisch-gereedschap/220-volt.html" ["pageTitle"]=> string(56) "DOMAIN - 220 volt - Elektrisch gereedschap - Gereedschap" ["pageIdAction"]=> string(4) "6892" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:09:09" ["pageId"]=> string(6) "288486" ["generationTime"]=> string(5) "0.58s" ["timeSpent"]=> string(1) "1" ["timeSpentPretty"]=> string(2) "1s" ["icon"]=> NULL } [13]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(38) "http://www.DOMAIN.net/gereedschap.html" ["pageTitle"]=> string(20) "DOMAIN - Gereedschap" ["pageIdAction"]=> string(4) "6161" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:09:10" ["pageId"]=> string(6) "288487" ["generationTime"]=> string(5) "0.44s" ["timeSpent"]=> string(1) "1" ["timeSpentPretty"]=> string(2) "1s" ["icon"]=> NULL } [14]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(55) "http://www.DOMAIN.net/gereedschap/hand-gereedschap.html" ["pageTitle"]=> string(39) "DOMAIN - Hand gereedschap - Gereedschap" ["pageIdAction"]=> string(4) "6188" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:09:11" ["pageId"]=> string(6) "288488" ["generationTime"]=> string(5) "0.48s" ["timeSpent"]=> string(1) "1" ["timeSpentPretty"]=> string(2) "1s" ["icon"]=> NULL } [15]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(32) "http://www.DOMAIN.net/uitverkoop" ["pageTitle"]=> string(19) "DOMAIN - Uitverkoop" ["pageIdAction"]=> string(4) "6134" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:09:12" ["pageId"]=> string(6) "288489" ["generationTime"]=> string(5) "0.65s" ["timeSpent"]=> string(1) "2" ["timeSpentPretty"]=> string(2) "2s" ["icon"]=> NULL } [16]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(22) "http://www.DOMAIN.net/" ["pageTitle"]=> string(13) "DOMAIN - Home" ["pageIdAction"]=> string(4) "6109" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:09:14" ["pageId"]=> string(6) "288490" ["generationTime"]=> string(4) "0.5s" ["timeSpent"]=> string(1) "3" ["timeSpentPretty"]=> string(2) "3s" ["icon"]=> NULL } [17]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(22) "http://www.DOMAIN.net/" ["pageTitle"]=> string(13) "DOMAIN - Home" ["pageIdAction"]=> string(4) "6109" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:09:17" ["pageId"]=> string(6) "288491" ["generationTime"]=> string(5) "0.52s" ["timeSpent"]=> string(2) "17" ["timeSpentPretty"]=> string(3) "17s" ["icon"]=> NULL } [18]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(22) "http://www.DOMAIN.net/" ["pageTitle"]=> string(13) "DOMAIN - Home" ["pageIdAction"]=> string(4) "6109" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:09:34" ["pageId"]=> string(6) "288492" ["generationTime"]=> string(5) "0.58s" ["timeSpent"]=> string(2) "11" ["timeSpentPretty"]=> string(3) "11s" ["icon"]=> NULL } [19]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(36) "http://www.DOMAIN.net/openingstijden" ["pageTitle"]=> string(23) "DOMAIN - Openingstijden" ["pageIdAction"]=> string(4) "6111" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:09:45" ["pageId"]=> string(6) "288493" ["generationTime"]=> string(5) "0.33s" ["timeSpent"]=> string(2) "27" ["timeSpentPretty"]=> string(3) "27s" ["icon"]=> NULL } [20]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(43) "http://www.DOMAIN.net/tuin/houtklovers.html" ["pageTitle"]=> string(27) "DOMAIN - Houtklovers - Tuin" ["pageIdAction"]=> string(4) "6429" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:10:12" ["pageId"]=> string(6) "288494" ["generationTime"]=> string(5) "0.61s" ["timeSpent"]=> string(2) "16" ["timeSpentPretty"]=> string(3) "16s" ["icon"]=> NULL } [21]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(55) "http://www.DOMAIN.net/tuin/houtklovers/gtm-gtl7000.html" ["pageTitle"]=> string(41) "DOMAIN - GTM GTL7000 - Houtklovers - Tuin" ["pageIdAction"]=> string(4) "8924" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:10:28" ["pageId"]=> string(6) "288495" ["generationTime"]=> string(5) "0.67s" ["timeSpent"]=> string(2) "31" ["timeSpentPretty"]=> string(3) "31s" ["icon"]=> NULL } [22]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(43) "http://www.DOMAIN.net/tuin/houtklovers.html" ["pageTitle"]=> string(27) "DOMAIN - Houtklovers - Tuin" ["pageIdAction"]=> string(4) "6429" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:10:59" ["pageId"]=> string(6) "288496" ["generationTime"]=> string(5) "0.48s" ["timeSpent"]=> string(1) "2" ["timeSpentPretty"]=> string(2) "2s" ["icon"]=> NULL } [23]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(87) "http://www.DOMAIN.net/tuin/houtklovers/texas-power-split-600v-verticale-houtklover.html" ["pageTitle"]=> string(73) "DOMAIN - Texas Power Split 600V verticale houtklover - Houtklovers - Tuin" ["pageIdAction"]=> string(4) "8787" ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:11:01" ["pageId"]=> string(6) "288497" ["generationTime"]=> string(5) "0.58s" ["timeSpent"]=> string(2) "28" ["timeSpentPretty"]=> string(3) "28s" ["icon"]=> NULL } [24]=> array(9) { ["type"]=> string(6) "search" ["url"]=> NULL ["pageIdAction"]=> NULL ["serverTimePretty"]=> string(19) "Fri 31 Oct 08:11:29" ["pageId"]=> string(6) "288498" ["customVariables"]=> array(1) { [5]=> array(2) { ["customVariablePageName5"]=> string(20) "Search Results Count" ["customVariablePageValue5"]=> string(1) "0" } } ["siteSearchKeyword"]=> string(9) "hakselaar" ["generationTime"]=> string(5) "0.48s" ["icon"]=> string(38) "plugins/Morpheus/images/search_ico.png" } } array(4) { [0]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(32) "http://www.DOMAIN.net/uitverkoop" ["pageTitle"]=> string(19) "DOMAIN - Uitverkoop" ["pageIdAction"]=> string(4) "6134" ["serverTimePretty"]=> string(19) "Thu 30 Oct 16:27:22" ["pageId"]=> string(6) "287958" ["generationTime"]=> string(5) "0.97s" ["timeSpent"]=> string(2) "30" ["timeSpentPretty"]=> string(3) "30s" ["icon"]=> NULL } [1]=> array(9) { ["type"]=> string(6) "action" ["url"]=> string(36) "http://www.DOMAIN.net/openingstijden" ["pageTitle"]=> string(23) "DOMAIN - Openingstijden" ["pageIdAction"]=> string(4) "6111" ["serverTimePretty"]=> string(19) "Thu 30 Oct 16:27:52" ["pageId"]=> string(6) "287960" ["timeSpent"]=> string(2) "25" ["timeSpentPretty"]=> string(3) "25s" ["icon"]=> NULL } [2]=> array(10) { ["type"]=> string(6) "action" ["url"]=> string(44) "http://www.DOMAIN.net/maaiers/zitmaaier.html" ["pageTitle"]=> string(28) "DOMAIN - Zitmaaier - Maaiers" ["pageIdAction"]=> string(4) "6366" ["serverTimePretty"]=> string(19) "Thu 30 Oct 16:28:17" ["pageId"]=> string(6) "287963" ["generationTime"]=> string(5) "1.01s" ["timeSpent"]=> string(3) "100" ["timeSpentPretty"]=> string(19) "1 min 40s" ["icon"]=> NULL } [3]=> array(7) { ["type"]=> string(6) "action" ["url"]=> string(36) "http://www.DOMAIN.net/openingstijden" ["pageTitle"]=> string(23) "DOMAIN - Openingstijden" ["pageIdAction"]=> string(4) "6111" ["serverTimePretty"]=> string(19) "Thu 30 Oct 16:29:57" ["pageId"]=> string(6) "287966" ["icon"]=> NULL } }
There is an error. Please report the message (Piwik 2.8.3) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).
Warning: strnatcasecmp() expects parameter 1 to be string, array given in /home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/DataTable/Filter/Sort.php on line 147 

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [:]
#1 strnatcasecmp(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/DataTable/Filter/Sort.php:147]
#2 Piwik\DataTable\Filter\Sort->naturalSort(...) called at [:]
#3 usort(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/DataTable.php:348]
#4 Piwik\DataTable->sort(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/DataTable/Filter/Sort.php:263]
#5 Piwik\DataTable\Filter\Sort->filter(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/DataTable.php:425]
#6 Piwik\DataTable->filter(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/DataTable.php:453]
#7 Piwik\DataTable->applyQueuedFilters(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/API/ResponseBuilder.php:211]
#8 Piwik\API\ResponseBuilder->handleDataTable(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/API/ResponseBuilder.php:97]
#9 Piwik\API\ResponseBuilder->getResponse(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/API/Request.php:218]
#10 Piwik\API\Request->process(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/ViewDataTable/Request.php:48]
#11 Piwik\ViewDataTable\Request->loadDataTableFromAPI(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/Plugin/ViewDataTable.php:327]
#12 Piwik\Plugin\ViewDataTable->loadDataTableFromAPI(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/Plugin/Visualization.php:166]
#13 Piwik\Plugin\Visualization->buildView(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/Plugin/ViewDataTable.php:414]
#14 Piwik\Plugin\ViewDataTable->render(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/Plugin/Report.php:304]
#15 Piwik\Plugin\Report->render(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/Plugin/Controller.php:327]
#16 Piwik\Plugin\Controller->renderReport(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/plugins/Live/Controller.php:61]
#17 Piwik\Plugins\Live\Controller->indexVisitorLog(...) called at [:]
#18 call_user_func_array(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/FrontController.php:587]
#19 Piwik\FrontController->doDispatch(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/FrontController.php:95]
#20 Piwik\FrontController->dispatch(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/core/dispatch.php:34]
#21 require_once(...) called at [/home/knelus/domains/PWIK_DOMAIN.eu/public_html/statistieken/index.php:46]
@knelus commented on December 4th 2014

Any news ?

This issue was closed on December 5th 2014
Powered by GitHub Issue Mirror