Bug #56291

Fatal error: Call to a member function query() on a non-object

Added by Steffen Müller over 1 year ago. Updated 7 months ago.

Status:Closed Start date:2014-02-25
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:DBAL Spent time: -
Target version:6.2.0
TYPO3 Version:6.2 Is Regression:No
PHP Version: Sprint Focus:
Complexity:

Description

When activating EXT:dbal in EM, I run into:

Fatal error: Call to a member function query() on a non-object in /var/www/typo3/typo3_src-master/typo3/sysext/core/Classes/Database/DatabaseConnection.php on line 457

It breaks the whole installation, until I manually remove dbal from LocalConfiguration and PackageStates.

master @4da4dba52009760005095a5013245d5d169ce9a5


Related issues

duplicates Core - Bug #51458: Fatal error: function query() DatabaseConnection.php on l... Closed 2013-08-28

History

#1 Updated by Stefan Froemken over 1 year ago

Hello Steffen,

I know this problem, too. Here is a workaround:

Edit LocalConfiguration.php and change following line:

'dbal' => 'a:2:{s:10:"sql_query.";a:1:{s:11:"passthrough";s:1:"1";}s:13:"Compatibility";s:0:"";}',

to

'dbal' => 'a:2:{s:10:"sql_query.";a:1:{s:11:"passthrough";s:1:"0";}s:13:"Compatibility";s:0:"";}',

Clear cached LocalConfiguration in typo3temp/Cache/Code/ and you're done.

Stefan

#2 Updated by Mathias Schreiber 7 months ago

  • Status changed from New to Closed

will continue in #51458

Also available in: Atom PDF