[Installation]Error on completing step 6

Undefined index:  db_infos 
in 'C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\plugins\Installation\Controller.php' at the line 434

#0  Piwik_ErrorHandler(8, Undefined index:  db_infos, C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\plugins\Installation\Controller.php, 434, Array ()) called at [C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\plugins\Installation\Controller.php:434]
#1  Piwik_Installation_Controller->createDbFromSessionInformation() called at [C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\plugins\Installation\Controller.php:360]
#2  Piwik_Installation_Controller->initObjectsToCallAPI() called at [C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\plugins\Installation\Controller.php:284]
#3  Piwik_Installation_Controller->firstWebsiteSetup() called at [C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\plugins\Installation\Installation.php:61]
#4  Piwik_Installation->startInstallation(Event_Notification Object ([_notificationName] => FrontController.NoConfigurationFile,[_notificationObject] => Exception Object ([] => The configuration file config/config.ini.php has not been found.,[] => ,[] => 0,[] => C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\core\Config.php,[] => 85,[] => Array ([0] => Array ([file] => C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\core\Piwik.php,[line] => 1085,[function] => __construct,[class] => Piwik_Config,[type] => ->,[args] => Array ([0] => )),[1] => Array ([file] => C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\core\FrontController.php,[line] => 219,[function] => createConfigObject,[class] => Piwik,[type] => ::,[args] => Array ()),[2] => Array ([file] => C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\index.php,[line] => 51,[function] => init,[class] => Piwik_FrontController,[type] => ->,[args] => Array ()))),[_notificationInfo] => Array (),[_notificationState] => 0,[_notificationCount] => 0)) called at [(null):0]
#5  call_user_func_array(Array ([0] => Piwik_Installation Object ([] => Piwik_Installation_Controller),[1] => startInstallation), Array ([0] => Event_Notification Object ([_notificationName] => FrontController.NoConfigurationFile,[_notificationObject] => Exception Object ([] => The configuration file config/config.ini.php has not been found.,[] => ,[] => 0,[] => C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\core\Config.php,[] => 85,[] => Array ([0] => Array ([file] => C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\core\Piwik.php,[line] => 1085,[function] => __construct,[class] => Piwik_Config,[type] => ->,[args] => Array ([0] => )),[1] => Array ([file] => C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\core\FrontController.php,[line] => 219,[function] => createConfigObject,[class] => Piwik,[type] => ::,[args] => Array ()),[2] => Array ([file] => C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\index.php,[line] => 51,[function] => init,[class] => Piwik_FrontController,[type] => ->,[args] => Array ()))),[_notificationInfo] => Array (),[_notificationState] => 0,[_notificationCount] => 0))) called at [C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\libs\Event\Dispatcher.php:214]
#6  Event_Dispatcher->addObserver(Array ([0] => Piwik_Installation Object ([] => Piwik_Installation_Controller),[1] => startInstallation), FrontController.NoConfigurationFile) called at [C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\core\PluginsManager.php:339]
#7  Piwik_PluginsManager->addPluginObservers(Piwik_Installation Object ([] => Piwik_Installation_Controller)) called at [C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\core\PluginsManager.php:237]
#8  Piwik_PluginsManager->loadPlugins() called at [C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\core\PluginsManager.php:151]
#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:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\core\FrontController.php:227]
#10 Piwik_FrontController->init() called at [C:\xampp\htdocs\MVics\MVcms Zend Edition\public\Piwik\piwik\index.php:51]

I’m getting this error when I try to complete step 6 of the Piwik installation. How do I get rid of it?

Hi,

It looks like you may have a problem with the ‘db_infos’ table. Do you have this table in a database where you are trying to install Piwik? Please try to install Piwik in new database which does not contain any additional tables.

I am having the same problem on a windows machine. It seems to be the session management is losing the session when the redirect happens. I tried various tests of not redirecting and printing out the session which works. As soon as the header() statement is called, it seems to forget the session. This causes the installation module to forget the db_infos and error.

I could probably hack into the install function and create the db_infos manually, but am worried this is a bigger problem beyond install.

The php.net session comments is full of redirect problems, but none of the solutions I found worked.
Session Functions

Tried:
session_write_close();
removing exit;
session.auto_start = 0;

php 5.2.4
I noticed the above poster is running windows too, possibly a windows php session bug?

Can you verify that your piwik database user has INDEX privilege?

development machine so just used root to test it.

this indeed sounds like a php SESSION problem. I am using XAMPP 2.5 with 5.2.6 on windows without problem…
did you try updating to latest version of xampp?

Was on 5.2.4. Upgraded to 5.2.8. Works now. Must be they fixed a session bug for windows. Thanks.

[quote=matthieu @ Feb 9 2009, 02:46 AM]this indeed sounds like a php SESSION problem. I am using XAMPP 2.5 with 5.2.6 on windows without problem…
did you try updating to latest version of xampp?[/quote]

Hi,

I also got the error saying “db_infos is not initialized”. I’m running php 5.2.6 / Mysql 5.0.37 / Apache 2.2.8.

I ended up modifying Controller.php so it reads the database settings in a hardcoded way:

    protected function createDbFromSessionInformation()
    {
        $dbInfos = array('host' => "localhost",
                'username' => "piwik",
                'password' => "piwik",
                'dbname' => "piwik",
                'tables_prefix' => "",
                'adapter' => "PDO_MYSQL",
                'port' => "3306");

        //$dbInfos = $_SESSION['db_infos'];
        Zend_Registry::get('config')->disableSavingConfigurationFileUpdates();
        Zend_Registry::get('config')->database = $dbInfos;
        Piwik::createDatabaseObject($dbInfos);
    }

I also had to edit config/config.inc.php manually before I could log on to the Analytics pages.