contao/import — Issue #2711: Fatal Error on plain install of Contao 2.9.2
Author: kikmedia
Created: 2011-11-29 20:02:59+00:00
State: closed
Labels: backend, Feature

After calling the install-tool on a fresh download of Contao 2.92 from sourceforge.net for a clean install the following error occurs after entering the values for database connection:

```
Fatal error: Uncaught exception Exception with message Query error: Table '292.tl_calendar_events' doesn't exist (SHOW COLUMNS FROM `tl_calendar_events`) thrown in C:\xampp\htdocs\payloads\contao292\system\libraries\Database.php on line 642
#0 C:\xampp\htdocs\payloads\contao292\system\libraries\Database.php(589): Database_Statement->query()
#1 C:\xampp\htdocs\payloads\contao292\system\libraries\Database.php(164): Database_Statement->execute()
#2 C:\xampp\htdocs\payloads\contao292\system\drivers\DB_Mysql.php(130): Database->execute('SHOW COLUMNS FR...')
#3 C:\xampp\htdocs\payloads\contao292\system\libraries\Database.php(250): DB_Mysql->list_fields('tl_calendar_eve...')
#4 C:\xampp\htdocs\payloads\contao292\contao\install.php(606): Database->listFields('tl_calendar_eve...')
#5 C:\xampp\htdocs\payloads\contao292\contao\install.php(1208): InstallTool->run()
#6 {main}
```

Seems that the database is called before creating tables. In specific, on line 606 "$arrFields = $this->Database->listFields('tl_calendar_events');" is called whilst this table still doesn't exist.

Regards,
Carolina.

--- _Originally created on December 2nd, 2010, at 02:13pm (ID 2711)_