Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined variable: sites error #1526

Closed
anonymous-matomo-user opened this issue Jul 29, 2010 · 2 comments
Closed

Undefined variable: sites error #1526

anonymous-matomo-user opened this issue Jul 29, 2010 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.

Comments

@anonymous-matomo-user
Copy link

(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]

@mattab
Copy link
Member

mattab commented Jul 29, 2010

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

@anonymous-matomo-user
Copy link
Author

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
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants