Project

General

Profile

Actions

Feature #24283

closed

DBAL error in INSTALL TOOL > ADONewConnection: Unable to load database driver ''

Added by Daniel Huf over 13 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-12-03
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Got this error while reinstalling from etch to lenny... an trying to install TYPO3 4.5-beta2

after setting the user+password and server =>

ADONewConnection: Unable to load database driver ''

Fatal error: Call to a member function PConnect() on a non-object in /usr/src/typo3_src-4.5.0beta2/typo3/sysext/dbal/class.ux_t3lib_db.php on line 3090

(issue imported from #M16659)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #27195: 1-2-3 Wizard fails with AdoDB/DBAL errorsRejected2011-06-02

Actions
Actions #1

Updated by Xavier Perseguers over 13 years ago

Cannot reproduce the bug. However I can see that DBAL does not deactivate itself automatically anymore.

See bug #16678

Actions #2

Updated by Xavier Perseguers over 13 years ago

Hi Daniel,

Please wait until tomorrow night when I've committed #16444 and #16679. Make sure you use TYPO3 Core trunk, then:

1) Go to typo3/sysext/
2) rename dbal into dbal.ORIG
3) check out DBAL trunk into typo3/sysext:

svn co https://svn.typo3.org/TYPO3v4/Extensions/dbal/trunk dbal

Test again and report here if bug is stil there.

You may of course patch Core yourself with aforementioned bug ids (do not miss the DBAL part with #16679) and thus not wait until tomorrow :-)

Actions #3

Updated by Xavier Perseguers over 13 years ago

Patches were committed, manual patching is not needed anymore

Actions #4

Updated by Xavier Perseguers over 13 years ago

This bug will be closed around Christmas if there is no confirmation that this bug still occurs.

Actions #5

Updated by Daniel Huf over 13 years ago

Hi Xavier,

Just checked out the full trunk, cleared the cached files without any success.
Even replaced the DBAL with the one from the trunk to be sure...

Still the same error, tell me if I did anything wrong.
Thanks by the way.

Actions #6

Updated by Xavier Perseguers over 13 years ago

Hi Daniel,

Please mail me screenshots of the whole install process up to the error and the output of

phpinfo();

you may consider attaching them here too, it's up to you.

Thanks. I do not understand how to reproduce but hopefully your additional info will help be tracking down the problem.

Actions #7

Updated by Xavier Perseguers over 13 years ago

After doing a few quick tests on your environment, this sounds like you entered invalid credentials with your DB connection setup and this crashes the install tool.

I wonder why you have DBAL active as you don't see to support it (I mean you seem only to support MySQL anyway). Did you activate it manually?

Actions #8

Updated by Xavier Perseguers over 13 years ago

I changed this bug to make it a feature request for Install Tool that should not crash as dramatically as it does currently when invalid DB parameters are provided.

Actions #9

Updated by Xavier Perseguers about 13 years ago

Just tested current trunk (~ 4.5 RC1) with Oracle and I cannot reproduce this anymore. A nice message is shown meaning invalid credentials do not crash install tool anymore.

Could you confirm please?

Actions #10

Updated by Andy Pattynama about 13 years ago

Just got the final version of TYPO3 4.5.0. After I gave the correct database parameters, it ended up with the same error message. After I changed following line in the typo3conf/localconf.php from:

$TYPO3_CONF_VARS['EXTCONF']['dbal']['handlerCfg'] = array('_DEFAULT' => array('type' => 'adodb','config' => array('driver' => '',)));;

to (notice the type => native)

$TYPO3_CONF_VARS['EXTCONF']['dbal']['handlerCfg'] = array('_DEFAULT' => array('type' => 'native','config' => array('driver' => '',)));;

it all worked out.

Actions #11

Updated by Sebastian Lorenz about 13 years ago

This error occured also in an fresh installation in the TYPO3 4.5.0 final.

I have tried to intall from dummy and source package, downloaded from typo3.org on 29.01.2011.

Actions #12

Updated by Sebastian Lorenz about 13 years ago

The dbal bug is an dependency on the adodb extension for php5. Without the extension installed the error occured. When I install the adodb php extension the installation worked perfectly.

But I think that is not a good solution. Because many hosters do not install all the php extensions.

Actions #13

Updated by Sascha no-lastname-given about 13 years ago

I could be wrong, but it would be interesting to see the database driver "string" while doing install. Maybe its empty in these cases?

If i see the topic and i check the source it has to be this kind of message

ADONewConnection: Unable to load database driver '$db'

$db is missing here, or ?

@Andy - This should also work for mysql i think:

$TYPO3_CONF_VARS['EXTCONF']['dbal']['handlerCfg'] = array (
'_DEFAULT' => array (
'type' => 'adodb',
'config' => array(
'driver' => 'mysql',
)
)
);

Actions #14

Updated by Christian Hernmarck about 13 years ago

I got the same:
- new TYPO3 4.5, install tool, entered correct DB credentials -> always said: incorrect credentials...

when I inserted the missing db-name in the localconf manually, everything worked...

Actions #15

Updated by Xavier Perseguers about 13 years ago

You all seem to use MySQL as database, is it true? Could you confirm that you actually don't want/need to use DBAL? Or are you planning to use DBAL with a MySQL DB?

Actions #16

Updated by Christian Hernmarck about 13 years ago

Hi Xavier
I do use MySQL - since years...
Since I did not notice a note that MySQL is not ok, I should use DBAL... etc - I thought this should works as it did since years...
So, maybe there's a note in the Changelog but as long as the install tool does not say: "hey - MySQL is deprecated use something different" - I do not think about using something different.

And as written above: when entering the db name manually in the localconf everything is working as I am used to it...

Actions #17

Updated by Xavier Perseguers about 13 years ago

OK, thus the problem seems to be that DBAL remained activated at the end of the Install process although you chose a MySQL database and that DBAL is not needed and should in 99% of cases be deactivated when using MySQL.

Actions #18

Updated by Christian Hernmarck about 13 years ago

Just wanted to add:
in the 1-2-3 mode, the install tool works good: you put in the db-username, the password and the host, then it works.
Normally I skip the 1-2-3 mode...

Actions #19

Updated by Xavier Perseguers about 13 years ago

Good to know! Thanks. I won't manage to deal with that for upcoming 4.5.1 but it's on my list!

Actions #20

Updated by Vladimir Podkovanov about 13 years ago

A similar problem with fresh 4.4.7 installation - if I skip 1-2-3 steps I can't connect to MySQL until I manually remove dbal from extensions in typo3conf/localconf.php

Actions #21

Updated by Kestutis no-lastname-given over 12 years ago

Same problem with updating 4.3 to 4.4.10.

ADONewConnection: Unable to load database driver ''
Fatal error: Call to a member function PConnect() on a non-object in /home/mysite/public_html/typo3/sysext/dbal/class.ux_t3lib_db.php on line 2574

Actions #22

Updated by Steffen Gebert over 12 years ago

  • Target version deleted (0)
  • TYPO3 Version set to 4.6

Kestutis, are you using Google Chrome? Please see also #27195

Actions #23

Updated by Vladimir Podkovanov almost 12 years ago

Not sure why the issue marked as duplicated to rejected issue #27195
But the bug still exists in 4.7.1 - if I skip 1-2-3 steps on fresh install and go directly to Install Tool I can't connent to the MySQL DB because of unneeded extensions installed - dbal and adodb, if I remove them from localconf.php manually then all works fine.

Actions #24

Updated by Alexander Opitz over 10 years ago

As 4.7 will only get security updates and this issue was tested for TYPO3 CMS 6.1 and the installer process was rewritten for TYPO3 CMS 6.2, I'd like to close this issue.

But before, my question, does this issue occur in latest TYPO3 CMS 6.1 release?

Actions #25

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this ticket.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF