Error in General Settings


(Razvan) #1

Hello,

I make upgrade from Piwik 1.2.1 to Piwik 1.3, from my Dashboard.
In my user panel I get this error:

Undefined index: language in /home/director/public_html/Piwik/tmp/templates_c/%%BF^BF2^BF2081BA%%generalSettings.tpl.php on line 186
Backtrace -->
#0 Piwik_ErrorHandler(8, Undefined index: language, /home/director/public_html/Piwik/tmp/templates_c/%%BF^BF2^BF2081BA%%generalSettings.tpl.php, 186, Array ([this] => Piwik_Smarty Object ([template_dir] => Array ([0] => /home/director/public_html/Piwik/plugins,[1] => /home/director/public_html/Piwik/themes/default,[2] => /home/director/public_html/Piwik/themes),[compile_dir] => /home/director/public_html/Piwik/tmp/templates_c,[config_dir] => configs,[plugins_dir] => Array ([0] => /home/director/public_html/Piwik/core/SmartyPlugins,[1] => /home/director/public_html/Piwik/libs/Smarty/plugins),[debugging] => ,[error_reporting] => 6143,[debug_tpl] => ,[debugging_ctrl] => NONE,[compile_check] => 1,[force_compile] => ,[caching] => 0,[cache_dir] => /home/director/public_html/Piwik/tmp/cache,[cache_lifetime] => 3600,[cache_modified_check] => ,[php_handling] => 0,[security] => ,[secure_dir] => Array (),[security_settings] => Array ([PHP_HANDLING] => ,[IF_FUNCS] => Array ([0] => array,[1] => l…EnglishAbout Piwik translationsአማርኛالعربيةБеларускаяБългарскиCatalàČeskyDanskDeutschΕλληνικάEnglishEspañolEesti keelEuskaraSuomiFrançaisGalegoעבריתMagyarBahasa IndonesiaÍslenskaItaliano日本語ქართული한국어LietuviųNorsk (bokmål)NederlandsNynorskPolskiPortuguês brasileiroPortuguêsRomânăРусскийSlovenskySlovenščinaShqipSrpskiSvenskaతెలుగుภาษาไทยTürkçeУкраїнська简体中文繁體中文,[_order] => 30,[_hasSubmenu] => )),[debugTrackVisitsInsidePiwikUI] => 0,[isSuperUser] => ,[currentAdminMenuName] => CoreAdminHome_MenuGeneralSettings,[enableFrames] => 0,[menu] => Array ([UsersManager_MenuUserSettings] => Array ([_url] => Array ([module] => UsersManager,[action] => userSettings),[_order] => 1,[_name] => UsersManager_MenuUserSettings,[_hasSubmenu] => ),[UsersManager_MenuUsers] => Array ([_url] => Array ([module] => UsersManager,[action] => index),[_order] => 3,[_name] => UsersManager_MenuUsers,[_hasSubmenu] => ),[SitesManager_MenuSites] => Array ([_url] => Array ([module] => SitesManager,[action] => index),[_order] => 5,[_name] => SitesManager_MenuSites,[_hasSubmenu] => ),[CoreAdminHome_MenuGeneralSettings] => Array ([_url] => Array ([module] => CoreAdminHome,[action] => generalSettings),[_order] => 6,[_name] => CoreAdminHome_MenuGeneralSettings,[_hasSubmenu] => )),[currentModule] => CoreAdminHome,[userLogin] => itaitrg,[sites] => Array ([0] => Array ([idsite] =…#1 include(/home/director/public_html/Piwik/tmp/templates_c/%%BF^BF2^BF2081BA%%generalSettings.tpl.php) called at [/home/director/public_html/Piwik/libs/Smarty/Smarty.class.php:1263]#2 Smarty->fetch(/home/director/public_html/Piwik/plugins/CoreAdminHome/templates/generalSettings.tpl) called at [/home/director/public_html/Piwik/core/View.php:172]#3 Piwik_View->render() called at [/home/director/public_html/Piwik/plugins/CoreAdminHome/Controller.php:54]#4 Piwik_CoreAdminHome_Controller->generalSettings() called at [(null):0]#5 call_user_func_array(Array ([0] => Piwik_CoreAdminHome_Controller Object ([] => CoreAdminHome,[] => 2011-04-19,[] => Piwik_Date Object ([] => 1303256811,[] => UTC),[] => 14,[] => Piwik_Site Object ([] => 14)),[1] => generalSettings), Array ()) called at [/home/director/public_html/Piwik/core/FrontController.php:127]#6 Piwik_FrontController->dispatch() called at [/home/director/public_html/Piwik/index.php:58]

What can I do ?

Regards,
Razvan


(Matthieu Aubry) #2

Thanks for the report, please try this patch: http://dev.piwik.org/trac/changeset/4515


(Razvan) #3

[quote=matt]
Thanks for the report, please try this patch: http://dev.piwik.org/trac/changeset/4515[/quote]

Hello, Mat

This patch don’t work.
Now, In user settings I get error:
Parse error: syntax error, unexpected T_VARIABLE in /home/director/public_html/Piwik/plugins/CoreAdminHome/Controller.php on line 107

Regards,
Razvan


(Matthieu Aubry) #4

I think you haven’t applied the patch properly, please replace the whole file with http://dev.piwik.org/svn/trunk/plugins/CoreAdminHome/Controller.php


(Razvan) #5

[quote=matt]
I think you haven’t applied the patch properly, please replace the whole file with http://dev.piwik.org/svn/trunk/plugins/CoreAdminHome/Controller.php[/quote]

Hello, Mat

Done! It is work.
Thanks.

Regards,
Razvan