Page MenuHomePhabricator

PHP Fatal error: Call to undefined function oci_error() with Oracle backend
Closed, InvalidPublic

Description

Following installation of Mediawiki (git master) with Oracle 11 backend, the MainPage displays:

Warning: oci_parse() expects parameter 1 to be resource, boolean given in /u1/MediaWiki/includes/db/DatabaseOracle.php on line 1266 Warning: oci_error() expects parameter 1 to be resource, null given in /u1/MediaWiki/includes/db/DatabaseOracle.php on line 1271
A database query error has occurred. This may indicate a bug in the software.

However, running ../maintenance/update.php --quick produces:

php update.php --quick
MediaWiki 1.24alpha Updater

PHP Fatal error: Call to undefined function oci_error() in /u1/MediaWiki/includes/db/DatabaseOracle.php on line 522

Fatal error: Call to undefined function oci_error() in /u1/MediaWiki/includes/db/DatabaseOracle.php on line 522

These appear to be the same error, however it's clearly Fatal, not a warning.


Version: 1.24rc
Severity: normal

Details

Reference
bz71068

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:58 AM
bzimport set Reference to bz71068.
bzimport added a subscriber: Unknown Object (MLST).

This was caused by PHP on SLES not calling the correct php.ini.