Invalid argument supplied for foreach() in Db.php


(schnappinator) #1

Hi,

i try to install piwik on a iis7 but i get some errors during installation:

Invalid argument supplied for foreach()
in ‘C:\inetpub\wwwroot\piwik\core\Db.php’ at the line 66

#0 Piwik_ErrorHandler(2, Invalid argument supplied for foreach(), C:\inetpub\wwwroot\piwik\core\Db.php, 66, Array ([path] => C:\inetpub\wwwroot\piwik/core/Db,[pathLength] => 33,[adapters] => ,[adapterNames] => Array ())) called at [C:\inetpub\wwwroot\piwik\core\Db.php:66]
#1 Piwik_Db::getAdapters() called at [C:\inetpub\wwwroot\piwik\plugins\Installation\Controller.php:522]
#2 Piwik_Installation_Controller::getSystemInformation() called at [C:\inetpub\wwwroot\piwik\plugins\Installation\Controller.php:81]
#3 Piwik_Installation_Controller->systemCheck() called at [C:\inetpub\wwwroot\piwik\plugins\Installation\Installation.php:62]
#4 Piwik_Installation->dispatch(Piwik_Event_Notification Object ([_notificationName] => FrontController.NoConfigurationFile,[_notificationObject] => Exception Object ([] => The configuration file C:\inetpub\wwwroot\piwik/config/config.ini.php has not been found.,[] => ,[] => 0,[] => C:\inetpub\wwwroot\piwik\core\Config.php,[] => 110,[] => Array ([0] => Array ([file] => C:\inetpub\wwwroot\piwik\core\Piwik.php,[line] => 1574,[function] => init,[class] => Piwik_Config,[type] => ->,[args] => Array ()),[1] => Array ([file] => C:\inetpub\wwwroot\piwik\core\FrontController.php,[line] => 202,[function] => createConfigObject,[class] => Piwik,[type] => ::,[args] => Array ()),[2] => Array ([file] => C:\inetpub\wwwroot\piwik\index.php,[line] => 90,[function] => init,[class] => Piwik_FrontController,[type] => ->,[args] => Array ()))),[_notificationInfo] => Array (),[_notificationState] => 0,[_notificationCount] => 0))
#5 call_user_func_array(Array ([0] => Piwik_Installation Object ([] => Piwik_Installation_Controller),[1] => dispatch), Array ([0] => Piwik_Event_Notification Object ([_notificationName] => FrontController.NoConfigurationFile,[_notificationObject] => Exception Object ([] => The configuration file C:\inetpub\wwwroot\piwik/config/config.ini.php has not been found.,[] => ,[] => 0,[] => C:\inetpub\wwwroot\piwik\core\Config.php,[] => 110,[] => Array ([0] => Array ([file] => C:\inetpub\wwwroot\piwik\core\Piwik.php,[line] => 1574,[function] => init,[class] => Piwik_Config,[type] => ->,[args] => Array ()),[1] => Array ([file] => C:\inetpub\wwwroot\piwik\core\FrontController.php,[line] => 202,[function] => createConfigObject,[class] => Piwik,[type] => ::,[args] => Array ()),[2] => Array ([file] => C:\inetpub\wwwroot\piwik\index.php,[line] => 90,[function] => init,[class] => Piwik_FrontController,[type] => ->,[args] => Array ()))),[_notificationInfo] => Array (),[_notificationState] => 0,[_notificationCount] => 0))) called at [C:\inetpub\wwwroot\piwik\libs\Event\Dispatcher.php:213]
#6 Event_Dispatcher->addObserver(Array ([0] => Piwik_Installation Object ([] => Piwik_Installation_Controller),[1] => dispatch), FrontController.NoConfigurationFile) called at [C:\inetpub\wwwroot\piwik\core\PluginsManager.php:363]
#7 Piwik_PluginsManager->addPluginObservers(Piwik_Installation Object ([] => Piwik_Installation_Controller)) called at [C:\inetpub\wwwroot\piwik\core\PluginsManager.php:250]
#8 Piwik_PluginsManager->loadPlugins() called at [C:\inetpub\wwwroot\piwik\core\PluginsManager.php:165]
#9 Piwik_PluginsManager->setPluginsToLoad(Array ([0] => CorePluginsAdmin,[1] => CoreAdminHome,[2] => CoreHome,[3] => API,[4] => Widgetize,[5] => LanguagesManager,[6] => Actions,[7] => Dashboard,[8] => Referers,[9] => UserSettings,[10] => UserCountry,[11] => VisitsSummary,[12] => VisitFrequency,[13] => VisitTime,[14] => VisitorInterest,[15] => ExampleAPI,[16] => ExamplePlugin,[17] => ExampleRssWidget,[18] => ExampleFeedburner,[19] => ExampleRssWidget,[20] => Provider,[21] => Feedback,[22] => Login,[23] => UsersManager,[24] => SitesManager,[25] => Installation)) called at [C:\inetpub\wwwroot\piwik\core\FrontController.php:209]
#10 Piwik_FrontController->init() called at [C:\inetpub\wwwroot\piwik\index.php:90]

I’m running a php blog (wordpress) on this server without any problems, the php.ini seems to be okay. In line 66 is a call to reference, i don’t know what to change?!

Anybody an idea? I don’t want to track longer with GA and PIWIK seems to be the only good alternative…

Greetings from germany
Manuel


(vipsoft) #2

Apply the escapeshellcmd patch described here: http://forum.piwik.org/index.php?showtopic=1324


(schnappinator) #3

Hi,
thanks, i will try it.

BTW: This forum doesn’t send mails if an reply is posted?