Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Undefined variable: sites error #1526

Closed
anonymous-piwik-user opened this Issue · 2 comments

2 participants

Anonymous Piwik user Matthieu Aubry
Anonymous Piwik user

(I'm having around 6k sites and from looking at the error message it seems to be related to the new site selector).

On upgrade (to 0.7) and now dashboard access I'm getting error messages (or better warnings) like the following. It makes the dashboard kind of unusable.

Errors:
Notice: Undefined variable: sites in /home/username/tracking-host/www/core/View.php on line 134

Backtrace -->
#0 Piwik_ErrorHandler(8, Undefined variable: sites, /home/username/tracking-host/www/core/View.php, 134, Array ([=> 0)) called at /home/username/tracking-host/www/core/View.php:134
#1 Piwik_View->render() called at [/home/username/tracking-host/www/plugins/LanguagesManager/LanguagesManager.php:59]
#2 Piwik_LanguagesManager->showLanguagesSelector(Piwik_Event_Notification Object ([=> TopMenu.add,_notificationObject => ,[=> Array (),_notificationState => 0,[_notificationCount] => 2))
#3 call_user_func_array(Array ([=> Piwik_LanguagesManager Object (),1 => showLanguagesSelector), Array ([=> Piwik_Event_Notification Object (_notificationName => TopMenu.add,[=> ,_notificationInfo => Array (),[=> 0,_notificationCount => 2))) called at [/home/username/tracking-host/www/libs/Event/Dispatcher.php:284]
#4 Event_Dispatcher->postNotification(Piwik_Event_Notification Object ([=> TopMenu.add,_notificationObject => ,[=> Array (),_notificationState => 0,[=> 2), 1, ) called at /home/username/tracking-host/www/core/PluginsManager.php:532
#5 Piwik_PostEvent(TopMenu.add) called at [/home/username/tracking-host/www/core/Menu/Top.php:58]
#6 Piwik_Menu_Top->get() called at [/home/username/tracking-host/www/core/Menu/Top.php:71]
#7 Piwik_GetTopMenu() called at [/home/username/tracking-host/www/core/Controller.php:335]
#8 Piwik_Controller->setBasicVariablesView(Piwik_View Object ([=> /home/username/tracking-host/www/plugins/CoreHome/templates/index.tpl, => Piwik_Smarty Object ([=> Array (0 => /home/username/tracking-host/www/plugins,[=> /home/username/tracking-host/www/themes/default,2 => /home/username/tracking-host/www/themes),[=> /home/username/tracking-host/www/tmp/templates_c,config_dir => configs,[=> Array (0 => /home/username/tracking-host/www/core/SmartyPlugins,[=> /home/username/tracking-host/www/libs/Smarty/plugins),debugging => ,[=> 6143,debug_tpl => ,[=> NONE,compile_check => 1,[=> ,caching => 0,[=> /home/username/tracking-host/www/tmp/cache,cache_lifetime => 3600,[=> ,php_handling => 0,[=> ,secure_dir => Array (),[=> Array (PHP_HANDLING => ,[=> Array (0 => array,[=> list,2 => isset,[3] => ...
#9 Piwik_Controller->setGeneralVariablesView(Piwik_View Object ([=> /home/username/tracking-host/www/plugins/CoreHome/templates/index.tpl, => Piwik_Smarty Object ([=> Array (0 => /home/username/tracking-host/www/plugins,[=> /home/username/tracking-host/www/themes/default,2 => /home/username/tracking-host/www/themes),[=> /home/username/tracking-host/www/tmp/templates_c,config_dir => configs,[=> Array (0 => /home/username/tracking-host/www/core/SmartyPlugins,[=> /home/username/tracking-host/www/libs/Smarty/plugins),debugging => ,[=> 6143,debug_tpl => ,[=> NONE,compile_check => 1,[=> ,caching => 0,[=> /home/username/tracking-host/www/tmp/cache,cache_lifetime => 3600,[=> ,php_handling => 0,[=> ,secure_dir => Array (),[=> Array (PHP_HANDLING => ,[=> Array (0 => array,[=> list,2 => isset,[3] =...
#10 Piwik_CoreHome_Controller->getDefaultIndexView() called at [/home/username/tracking-host/www/plugins/CoreHome/Controller.php:89]
#11 Piwik_CoreHome_Controller->index()
#12 call_user_func_array(Array ([=> Piwik_CoreHome_Controller Object ( => CoreHome,[=> 2010-07-28, => Piwik_Date Object ([=> 1280322534, => UTC),[=> 1, => Piwik_Site Object ([=> 1)),1 => index), Array ()) called at [/home/username/tracking-host/www/core/FrontController.php:126]
#13 Piwik_FrontController->dispatch() called at [/home/username/tracking-host/www/index.php:60]

Notice: Undefined variable: sites in /home/username/tracking-host/www/core/View.php on line 134

Backtrace -->
#0 Piwik_ErrorHandler(8, Undefined variable: sites, /home/username/tracking-host/www/core/View.php, 134, Array ([=> 0)) called at /home/username/tracking-host/www/core/View.php:134
#1 Piwik_View->render() called at [/home/username/tracking-host/www/plugins/CoreHome/Controller.php:90]
#2 Piwik_CoreHome_Controller->index()
#3 call_user_func_array(Array ([=> Piwik_CoreHome_Controller Object ( => CoreHome,[=> 2010-07-28, => Piwik_Date Object ([=> 1280322534, => UTC),[=> 1, => Piwik_Site Object ([=> 1)),1 => index), Array ()) called at [/home/username/tracking-host/www/core/FrontController.php:126]
#4 Piwik_FrontController->dispatch() called at [/home/username/tracking-host/www/index.php:60]

Matthieu Aubry
Owner

(In [2786]) Fixes #1526
removing feature to disable website selector, as website selector now works in all cases

Anonymous Piwik user

Thanks, that worked!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.