Project

General

Profile

Actions

Bug #22696

closed

1-2-3 Install Process breaks with PostgreSQL

Added by Francois Suter over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2010-05-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Scenario: the 1-2-3 install tool proces.

- on step 1, I choose PostgreSQL as my database system of choice
- the page reloads and displays an additional field for entering a database name
- when moving to step 2, I get a drop-down to select a database
- I stay with the same and move to step 3
- I get the following error message:

"ADONewConnection: Unable to load database driver '' "

This is because tx_dbal_installtool tries to retrieve the driver from GET/POST vars, line 94:

$driver = $instObj->INSTALL['localconf.php']['typo_db_driver'];

This seems unnecessary as - after step 1 - the driver has been saved successfully to the localconf.php in the DBAL configuration. I propose to get the driver from there instead of from a GET/POST variable.

It would also be good if there weren't 2 opportunities to enter a database name, because it is rather confusing IMO.

(issue imported from #M14457)


Files

14457.diff (561 Bytes) 14457.diff Administrator Admin, 2010-05-23 12:47
Actions #1

Updated by Xavier Perseguers over 14 years ago

14457.diff should fix the ADONewConnection error.

Regarding the two opportunities of configuring the database name, please report here, once the attached patch solves first bug that it is OK not to specify any database on the "connection screen" form and that the process allows you to choose on the next step, as with standard MySQL DBMS.

I'll then either remove the database field from first screen or leave it but skip next screen, as when configuring an Oracle DBMS where the database must be specified in order for the connection to succeed.

Actions #2

Updated by Xavier Perseguers over 14 years ago

Committed to:

- DBAL trunk (rev. 33582)
- DBAL_1-1 (rev. 33583)

Actions

Also available in: Atom PDF