Project

General

Profile

Actions

Bug #56257

closed

Call to a member function qstr() on a non-object

Added by Andreas Fernandez about 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2014-02-25
Due date:
% Done:

100%

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

Description

Hello TYPO3 team,

installing TYPO3 with an Oracle database (oci8) fails on certain points. After passing the credentials, the installation crashes with a fatal error:

PHP Fatal error: Call to a member function qstr() on a non-object in typo3/sysext/dbal/Classes/Database/DatabaseConnection.php on line 1882

At this point, $this->handlerInstance is an empty array. The property is filled in the method handler_init($handlerKey). As far as I understood the code, $cfgArray is a merged array from ['DB'] and ['EXTCONF']['dbal']['handlerCfg']['_DEFAULT'] as defined in LocalConfiguration.php. But under certain circumstances, the merge is not complete and the following condition matches, resulting an empty array:

if (!$cfgArray['config']['database']) {
    // Configuration is incomplete
    return;
}

When putting the DB configuration into the dbal configuration, the bug does not occur:

'EXTCONF' => array(
    'dbal' => array(
        'handlerCfg' => array(
            '_DEFAULT' => array(
                'config' => array(
                    'driver' => 'oci8',
                    'driverOptions' => array(
                        'connectSID' => '',
                    ),
                    'database' => 'typo3',
                    'host' => 'localhost:1521',
                    'password' => '*****',
                    'username' => 'johndoe',
                ),
                'type' => 'adodb',
            ),
        ),
    ),
),

Actions #1

Updated by Andreas Fernandez about 10 years ago

  • Project changed from 1865 to TYPO3 Core
Actions #2

Updated by Steffen Müller about 10 years ago

  • Category set to 999
  • Is Regression set to No
Actions #3

Updated by Steffen Müller about 10 years ago

  • Category changed from 999 to Install Tool
Actions #4

Updated by Gerrit Code Review about 10 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28045

Actions #5

Updated by Gerrit Code Review about 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28045

Actions #6

Updated by Gerrit Code Review about 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28045

Actions #7

Updated by Gerrit Code Review about 10 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28045

Actions #8

Updated by Gerrit Code Review about 10 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28045

Actions #9

Updated by Xavier Perseguers about 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF