@anonymous-piwik-user opened this issue on March 2nd 2009

I completely removed piwik, and checked out the svn. The initial configuring of piwik went just fine, and reported success. On the screen where I was presented with a place to log in (the url reads index.php?action=&module=&deleteTables=1) there is an error message that repeats 13 times:

Notice: Object of class Zend_Config could not be converted to int in /var/www/vhosts/ammonow.com/httpdocs/stats/core/Config.php on line 186

Backtrace -->
#0 Piwik_ErrorHandler(8, Object of class Zend_Config could not be converted to int, /var/www/vhosts/ammonow.com/httpdocs/stats/core/Config.php, 186, Array ([name] => PluginsInstalled,[value] => Array ([0] => Login,[1] => CoreAdminHome,[2] => UsersManager,[3] => SitesManager,[4] => Installation,[5] => CoreUpdater,[6] => CorePluginsAdmin))) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/Config.php:186]
#1 Piwik_Config->__set(PluginsInstalled, Array ([0] => Login,[1] => CoreAdminHome,[2] => UsersManager,[3] => SitesManager,[4] => Installation,[5] => CoreUpdater,[6] => CorePluginsAdmin)) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/PluginsManager.php:444]
#2 Piwik_PluginsManager->installPluginIfNecessary(Piwik_CorePluginsAdmin Object ()) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/PluginsManager.php:110]
#3 Piwik_PluginsManager->installLoadedPlugins() called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/FrontController.php:245]
#4 Piwik_FrontController->init() called at [/var/www/vhosts/ammonow.com/httpdocs/stats/index.php:50]

Then there is the same error with a longer backtrace:

Notice: Object of class Zend_Config could not be converted to int in /var/www/vhosts/ammonow.com/httpdocs/stats/core/Config.php on line 186

Backtrace -->
#0 Piwik_ErrorHandler(8, Object of class Zend_Config could not be converted to int, /var/www/vhosts/ammonow.com/httpdocs/stats/core/Config.php, 186, Array ([name] => PluginsInstalled,[value] => Array ([0] => Login,[1] => CoreAdminHome,[2] => UsersManager,[3] => SitesManager,[4] => Installation,[5] => VisitorInterest))) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/Config.php:186]
#1 Piwik_Config->__set(PluginsInstalled, Array ([0] => Login,[1] => CoreAdminHome,[2] => UsersManager,[3] => SitesManager,[4] => Installation,[5] => VisitorInterest)) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/PluginsManager.php:444]
#2 Piwik_PluginsManager->installPluginIfNecessary(Piwik_VisitorInterest Object ([] => Array ([0] => Array ([0] => 0,[1] => 0.5),[1] => Array ([0] => 0.5,[1] => 1),[2] => Array ([0] => 1,[1] => 2),[3] => Array ([0] => 2,[1] => 4),[4] => Array ([0] => 4,[1] => 6),[5] => Array ([0] => 6,[1] => 8),[6] => Array ([0] => 8,[1] => 11),[7] => Array ([0] => 11,[1] => 15),[8] => Array ([0] => 15)),[] => Array ([0] => Array ([0] => 1,[1] => 1),[1] => Array ([0] => 2,[1] => 2),[2] => Array ([0] => 3,[1] => 3),[3] => Array ([0] => 4,[1] => 4),[4] => Array ([0] => 5,[1] => 5),[5] => Array ([0] => 6,[1] => 7),[6] => Array ([0] => 8,[1] => 10),[7] => Array ([0] => 11,[1] => 14),[8] => Array ([0] => 15,[1] => 20),[9] => Array ([0] => 20)))) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/PluginsManager.php:110]
#3 Piwik_PluginsManager->installLoadedPlugins() called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/FrontController.php:245]
#4 Piwik_FrontController->init() called at [/var/www/vhosts/ammonow.com/httpdocs/stats/index.php:50]

Then more of the first type, and then a few errors about headers already being sent:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/ammonow.com/httpdocs/stats/libs/Zend/Log/Writer/Stream.php:95) in /var/www/vhosts/ammonow.com/httpdocs/stats/core/View.php on line 109

Backtrace -->
#0 Piwik_ErrorHandler(2, Cannot modify header information - headers already sent by (output started at /var/www/vhosts/ammonow.com/httpdocs/stats/libs/Zend/Log/Writer/Stream.php:95), /var/www/vhosts/ammonow.com/httpdocs/stats/core/View.php, 109, Array ([e] => Exception Object ([] => The plugin '' has not been loaded.,[] => ,[] => 0,[] => /var/www/vhosts/ammonow.com/httpdocs/stats/core/PluginsManager.php,[] => 209,[] => Array ([0] => Array ([file] => /var/www/vhosts/ammonow.com/httpdocs/stats/core/Piwik.php,[line] => 722,[function] => getLoadedPlugin,[class] => Piwik_PluginsManager,[type] => ->,[args] => Array ([0] => )),[1] => Array ([file] => /var/www/vhosts/ammonow.com/httpdocs/stats/core/View.php,[line] => 79,[function] => getCurrentPlugin,[class] => Piwik,[type] => ::,[args] => Array ()),[2] => Array ([file] => /var/www/vhosts/ammonow.com/httpdocs/stats/plugins/Login/Controller.php,[line] => 53,[function] => render,[class] => Piwik_View,[type] => ->,[args] => Array ()),[3] => Array ([function] => login,[class] => Piwik_Login_Controller,[type] => ->,[args] => Array ()),[4] => Array ([file] => /var/www/vhosts/ammonow.com/httpdocs/stats/core/FrontController.php,[line] => 147,[function] => call_user_func_array,[args] => Array ([0] => Array ([0] => Piwik_Login_Controller Object ([] => Login,[] => 2009-03-01,[] => Piwik_Date Object ([] => 1235883600)),[1] => login),[1] => Array ())),[5] => Array ([file] => /var/www/vhosts/ammonow.com/httpdocs/stats/core/Controller.php,[line] => 285,[function] => dispatch,[class] => Piwik_FrontController,[type] => ->,[args] => Array ([0] => Login,[1] => )),[6] => Array ([file] => /var/www/vhosts/ammonow.com/httpdocs/stats/plugins/CoreHome/Controller.php,[line] => 34,[function] => redirectToIndex,[class] => Piwik_Controller,[type] => ->,[args] => Array ([0] => CoreHome,[1] => index)),[7] => Array ([function] => redirectToIndex,[class] => Piwik_CoreHome_Controller,[type] => ->,[args] => Array ()),[8] => Array ([file] => /var/www/vhosts/ammonow.com/httpdocs/stats/core/FrontController.php,[line] => 147,[function] => call_user_func_array,[args] => Array ([0] => Array ([0] => Piwik_CoreHome_Controller Object ([] => CoreHome,[] => 2009-03-01,[] => Piwik_Date Object ([] => 1235883600)),[1] => redirectToIndex),[1] => Array ())),[9] => Array ([file] => /var/www/vhosts/ammonow.com/httpdocs/stats/index.php,[line] => 51,[function] => dispatch,[class] => Piwik_FrontController,[type] => ->,[args] => Array ())))))
#1 header(Content-Type: text/html; charset=utf-8) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/View.php:109]
#2 Piwik_View->render() called at [/var/www/vhosts/ammonow.com/httpdocs/stats/plugins/Login/Controller.php:53]
#3 Piwik_Login_Controller->login()
#4 call_user_func_array(Array ([0] => Piwik_Login_Controller Object ([] => Login,[] => 2009-03-01,[] => Piwik_Date Object ([] => 1235883600)),[1] => login), Array ()) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/FrontController.php:147]
#5 Piwik_FrontController->dispatch(Login, ) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/Controller.php:285]
#6 Piwik_Controller->redirectToIndex(CoreHome, index) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/plugins/CoreHome/Controller.php:34]
#7 Piwik_CoreHome_Controller->redirectToIndex()
#8 call_user_func_array(Array ([0] => Piwik_CoreHome_Controller Object ([] => CoreHome,[] => 2009-03-01,[] => Piwik_Date Object ([] => 1235883600)),[1] => redirectToIndex), Array ()) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/FrontController.php:147]
#9 Piwik_FrontController->dispatch() called at [/var/www/vhosts/ammonow.com/httpdocs/stats/index.php:51]

I do get the login box at the bottom of those error messages. When I try to log in, I get only those same error messages.

-sh-3.2$ php --version PHP 5.1.6 (cli) (built: Jul 16 2008 19:53:00) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Php is reasonably up to date, but I've never had any experience with this Zend engine, and I notice "Zend" in the error. I'm hesitant to try to upgrade this Zend, since this is on a managed server, but will try if you think it could help. I run piwik 2.28 on another project, but on the same server, with no issues.

Commenting out the offending if statement in Config.php makes everything happy: # if($this->userConfig->$name != $value) # { # $this->configFileUpdated = true; # }

I hope this information helps, and I am more than happy to try out fixes or give more information. Thanks!

@mattab commented on March 2nd 2009

xtor, it's not a problem with your server but a problem with Piwik.

can you please svn update to the latest revision, delete your piwik database, delete your config/config.ini.php and try again? i've fixed a bug related to config a few hours ago. if it still fails I will investigate

@mattab commented on March 2nd 2009

I had a quick look and spotted potential problem. please svn up > revision 956 and it may be fixed?

@mattab commented on March 3rd 2009

fixed in [957] please test with this svn revision and let us know. thanks

This issue was closed on July 30th 2009
Powered by GitHub Issue Mirror