[ZBX-6343] Unable to proceed past installation screen due to PHP error with Oracle Created: 2013 Mar 05  Updated: 2017 Sep 16  Resolved: 2017 Sep 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.0.5
Fix Version/s: None

Type: Incident report Priority: Critical
Reporter: Mikhail Dobrinin Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 1
Labels: oracle, php
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Centos 6.3, PHP 5.4.12 Apache httpd 2.4.4 OCI libraries 11.2 Oracle 11g2


Issue Links:
Duplicate
is duplicated by ZBX-6848 Frontend. Setup. Testing db connectio... Closed

 Description   

On new install of 2.0.5, during installation screen, on database connection testing form, upon filling everything out correctly, and clicking "Test Connection" I receive a blank page. There is no source for the page as well.

Looking at apache log:

[Mon Mar 04 14:47:57.923532 2013] [:error] [pid 20475:tid 140129251268352] [client 127.0.0.1:33287] PHP Fatal error:  Call to undefined function zbx_dbstr() in /usr/local/apache2/htdocs/zabbix/include/db.inc.php on line 126, referer: http://localhost/setup.php


 Comments   
Comment by richlv [ 2013 Mar 05 ]

for more clarity, could you please specify how php was compiled for oracle support ? (configure flags)

Comment by Mikhail Dobrinin [ 2013 Mar 05 ]
sudo ./configure --with-gd --with-apxs2=/usr/local/apache2/bin/apxs --enable-bcmath --enable-mbstring --enable-sockets --with-gettext --with-jpeg-dir=/usr/lib64 --with-freetype-dir=/usr/lib64/ --with-oci8

Note that I seem to not get this issue on 2.0.3.

Comment by Ryan Rupp [ 2013 Mar 05 ]

Looks to be related to the changes in ZBX-5691 which added the use of zbx_dbstr() when connecting to an Oracle instance. I think this may be because on the 2.0 branch in db.inc.php the function zbx_dbstr is conditionally defined based on the DBTYPE where as on trunk zbx_dbstr is defined as a top level function with the conditionals nested inside it. That or for whatever reason possibly the DBTYPE wasn't set at the time the conditional function is determined and therefore the function was never defined (it's all if/else if so if DBTYPE weren't set it wouldn't work).

Comment by Mikhail Dobrinin [ 2013 Mar 06 ]

Looks like you can get around this issue by placing zabbix.conf.php file manually. Installation screen will be skipped however.

Comment by Alexander Vladishev [ 2017 Sep 15 ]

Cannot reproduce on latest versions of Zabbix.

Closing as "Cannot reproduce".

Generated at Thu Apr 25 16:22:02 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.