Navigation Menu

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

Object of class Zend_Config could not be converted to int in core/Config.php on line 186 #574

Closed
anonymous-matomo-user opened this issue Mar 2, 2009 · 3 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.
Milestone

Comments

@anonymous-matomo-user
Copy link

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 —>

  1. 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]
  2. 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]
  3. Piwik_PluginsManager→installPluginIfNecessary(Piwik_CorePluginsAdmin Object ()) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/PluginsManager.php:110]
  4. Piwik_PluginsManager→installLoadedPlugins() called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/FrontController.php:245]
  5. 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 —>

  1. 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]
  2. 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]
  3. 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]
  4. Piwik_PluginsManager→installLoadedPlugins() called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/FrontController.php:245]
  5. 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 —>

  1. 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 ())))))
  2. header(Content-Type: text/html; charset=utf-8) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/View.php:109]
  3. Piwik_View→render() called at [/var/www/vhosts/ammonow.com/httpdocs/stats/plugins/Login/Controller.php:53]
  4. Piwik_Login_Controller→login()
  5. 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]
  6. Piwik_FrontController→dispatch(Login, ) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/core/Controller.php:285]
  7. Piwik_Controller→redirectToIndex(CoreHome, index) called at [/var/www/vhosts/ammonow.com/httpdocs/stats/plugins/CoreHome/Controller.php:34]
  8. Piwik_CoreHome_Controller→redirectToIndex()
  9. 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]
  10. 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 © 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright © 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:

  1. if($this→userConfig→$name != $value)
  2. {
  3. $this→configFileUpdated = true;
  4. }

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

@mattab
Copy link
Member

mattab commented Mar 2, 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
Copy link
Member

mattab commented Mar 2, 2009

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

@mattab
Copy link
Member

mattab commented Mar 3, 2009

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

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