Admin Panel Errors


#1

I manually unset all the piwik cookies in my browser to start a new session for user side testing. The admin log-in cookie must have been removed as well. When I went back to the admin panel dashboard it coughed up a handfull of errors that I have posted in the attached file as requested. When I reloaded the admin again, it gave me the login page as expected. It wouldn’t let me upload a txt file so here it is:

Warning: uasort() [function.uasort]: The argument should be an array in /usr/www/pwik1.5/piwik/core/Menu/Abstract.php on line 174

Backtrace -->
#0 Piwik_ErrorHandler(…) called at [:]#1 uasort(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Abstract.php:174]#2 Piwik_Menu_Abstract->applyOrdering(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Abstract.php:40]#3 Piwik_Menu_Abstract->get(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Admin.php:42]#4 Piwik_Menu_Admin->get(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Admin.php:69]#5 Piwik_GetAdminMenu(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Admin.php:52]#6 Piwik_GetCurrentAdminMenuName(…) called at [/usr/www/pwik1.5/piwik/core/Controller.php:592]#7 Piwik_Controller_Admin->setBasicVariablesView(…) called at [/usr/www/pwik1.5/piwik/plugins/UsersManager/Controller.php:157]#8 Piwik_UsersManager_Controller->userSettings(…) called at [:]#9 call_user_func_array(…) called at [/usr/www/pwik1.5/piwik/core/FrontController.php:136]#10 Piwik_FrontController->dispatch(…) called at [/usr/www/pwik1.5/piwik/index.php:53]

Warning: Invalid argument supplied for foreach() in /usr/www/pwik1.5/piwik/core/Menu/Abstract.php on line 175

Backtrace -->
#0 Piwik_ErrorHandler(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Abstract.php:175]#1 Piwik_Menu_Abstract->applyOrdering(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Abstract.php:40]#2 Piwik_Menu_Abstract->get(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Admin.php:42]#3 Piwik_Menu_Admin->get(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Admin.php:69]#4 Piwik_GetAdminMenu(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Admin.php:52]#5 Piwik_GetCurrentAdminMenuName(…) called at [/usr/www/pwik1.5/piwik/core/Controller.php:592]#6 Piwik_Controller_Admin->setBasicVariablesView(…) called at [/usr/www/pwik1.5/piwik/plugins/UsersManager/Controller.php:157]#7 Piwik_UsersManager_Controller->userSettings(…) called at [:]#8 call_user_func_array(…) called at [/usr/www/pwik1.5/piwik/core/FrontController.php:136]#9 Piwik_FrontController->dispatch(…) called at [/usr/www/pwik1.5/piwik/index.php:53]

Warning: Invalid argument supplied for foreach() in /usr/www/pwik1.5/piwik/core/Menu/Admin.php on line 55

Backtrace -->
#0 Piwik_ErrorHandler(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Admin.php:55]#1 Piwik_GetCurrentAdminMenuName(…) called at [/usr/www/pwik1.5/piwik/core/Controller.php:592]#2 Piwik_Controller_Admin->setBasicVariablesView(…) called at [/usr/www/pwik1.5/piwik/plugins/UsersManager/Controller.php:157]#3 Piwik_UsersManager_Controller->userSettings(…) called at [:]#4 call_user_func_array(…) called at [/usr/www/pwik1.5/piwik/core/FrontController.php:136]#5 Piwik_FrontController->dispatch(…) called at [/usr/www/pwik1.5/piwik/index.php:53]

Warning: uasort() [function.uasort]: The argument should be an array in /usr/www/pwik1.5/piwik/core/Menu/Abstract.php on line 174

Backtrace -->
#0 Piwik_ErrorHandler(…) called at [:]#1 uasort(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Abstract.php:174]#2 Piwik_Menu_Abstract->applyOrdering(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Abstract.php:40]#3 Piwik_Menu_Abstract->get(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Admin.php:42]#4 Piwik_Menu_Admin->get(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Admin.php:69]#5 Piwik_GetAdminMenu(…) called at [/usr/www/pwik1.5/piwik/plugins/UsersManager/Controller.php:158]#6 Piwik_UsersManager_Controller->userSettings(…) called at [:]#7 call_user_func_array(…) called at [/usr/www/pwik1.5/piwik/core/FrontController.php:136]#8 Piwik_FrontController->dispatch(…) called at [/usr/www/pwik1.5/piwik/index.php:53]
Warning: Invalid argument supplied for foreach() in /usr/www/pwik1.5/piwik/core/Menu/Abstract.php on line 175

Backtrace -->
#0 Piwik_ErrorHandler(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Abstract.php:175]#1 Piwik_Menu_Abstract->applyOrdering(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Abstract.php:40]#2 Piwik_Menu_Abstract->get(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Admin.php:42]#3 Piwik_Menu_Admin->get(…) called at [/usr/www/pwik1.5/piwik/core/Menu/Admin.php:69]#4 Piwik_GetAdminMenu(…) called at [/usr/www/pwik1.5/piwik/plugins/UsersManager/Controller.php:158]#5 Piwik_UsersManager_Controller->userSettings(…) called at [:]#6 call_user_func_array(…) called at [/usr/www/pwik1.5/piwik/core/FrontController.php:136]#7 Piwik_FrontController->dispatch(…) called at [/usr/www/pwik1.5/piwik/index.php:53]


(Matthieu Aubry) #2

please updadte to 1.5.1 and if you still experience this issue, let us know with steps to reproduce?


#3

Version 1.51 is the installed version, it’s just located here locally in /usr/www/pwik1.5/. The error is not really critical. To reproduce, log into the dashboard. Then remove the log-in cookie from Firefox (I removed all cookies from the domain for user side testing). Then click on a link in the admin panel such as “dashboard”,


(Matthieu Aubry) #4

I cant reproduce this, after deleting cookies I get the login screen?

You can still try the following patch which should fix the issue? http://dev.piwik.org/trac/changeset/5018