Fatal error: Call to undefined function OCILogon() in /var/www/html/ela/oci_conn
Environment
- Red Hat Enterprise Linux 5
Issue
- After applying security patches, I get the following error at my site:
Fatal error: Call to undefined function OCILogon() in /var/www/html/ela/oci_conn.php on line 19
Resolution
- Red Hat does not ship
php
with OCI functionality. Roll back the third party package updates that caused this issue and reach out to the application vendor for additional information.
Root Cause
- The issue reported is a code level issue in a script that Red Hat does not ship or provide support for. For that reason, it is recommended to contact your development team or vendor that provided the script to trace the error in code. The error states that somewhere in this site's functionality, a call is being made to a function called
OCILogon()
that is not defined in code or is outside of scope.
Diagnostic Steps
-
The undefined function
OCILogon()
is a call to initiate a connection to an Oracle database using Oracle Call Interface (OCI). Red Hatphp
does not include OCI functionality in any release ofphp
. To gain this functionality, Red Hat'sphp
would have to be recompiled rendering it unsupported. This particular call is been deprecated. Previously, it was aliased tooci_connect()
. This may be the issue. -
Looking at the
php
rpms that were recently updated shows that a third partyphp
has been installed:
$ grep -i php installed-rpms
php-5.4.24-1.el5.remi.i386 Fri 24 Jan 2014 12:52:54 PM EST
php-cli-5.4.24-1.el5.remi.i386 Fri 24 Jan 2014 12:52:52 PM EST
php-common-5.4.24-1.el5.remi.i386 Fri 24 Jan 2014 12:52:51 PM EST
php-devel-5.4.24-1.el5.remi.i386 Fri 24 Jan 2014 12:52:53 PM EST
php-mysql-5.4.24-1.el5.remi.i386 Fri 24 Jan 2014 12:53:26 PM EST
php-pdo-5.4.24-1.el5.remi.i386 Fri 24 Jan 2014 12:52:52 PM EST
php-pear-1.9.2-2.el5.remi.noarch Thu 10 Mar 2011 01:00:31 PM EST
- Red Hat does not ship
php
packages with "remi" in the package name and the highest version we ship in RHEL 5 isphp-5.3.3
.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments