Bug 542633 - ZABBIX 1.6.6 is incompatible with php 5.3 but trunk works fine as developers said.
Summary: ZABBIX 1.6.6 is incompatible with php 5.3 but trunk works fine as developers ...
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: zabbix
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Dan Horák
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-30 12:24 UTC by RJ
Modified: 2010-03-26 08:56 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-03-26 08:56:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description RJ 2009-11-30 12:24:44 UTC
Description of problem:
here the errors when I try to install front-end at http://localhost/zabbix/

    * get_class() expects parameter 1 to be object, array given[/usr/share/zabbix/include/classes/ctable.inc.php:163]
    * get_class() expects parameter 1 to be object, array given[/usr/share/zabbix/include/classes/ctable.inc.php:62]
    * get_class() expects parameter 1 to be object, string given[/usr/share/zabbix/include/classes/ctable.inc.php:67]
    * get_class() expects parameter 1 to be object, array given[/usr/share/zabbix/include/classes/ctable.inc.php:138]
    * get_class() expects parameter 1 to be object, array given[/usr/share/zabbix/include/classes/ctable.inc.php:144]
    * get_class() expects parameter 1 to be object, array given[/usr/share/zabbix/include/classes/ctable.inc.php:62]
    * get_class() expects parameter 1 to be object, string given[/usr/share/zabbix/include/classes/ctable.inc.php:67]
    * get_class() expects parameter 1 to be object, array given[/usr/share/zabbix/include/classes/ctable.inc.php:138]
    * get_class() expects parameter 1 to be object, array given[/usr/share/zabbix/include/classes/ctable.inc.php:144]
    * get_class() expects parameter 1 to be object, array given[/usr/share/zabbix/include/classes/ctable.inc.php:62]
    * get_class() expects parameter 1 to be object, array given[/usr/share/zabbix/include/classes/ctable.inc.php:138]
    * get_class() expects parameter 1 to be object, array given[/usr/share/zabbix/include/classes/ctable.inc.php:144]
    * get_class() expects parameter 1 to be object, array given[/usr/share/zabbix/include/classes/ctable.inc.php:62]


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Ville Skyttä 2009-11-30 15:43:05 UTC
FWIW, looks like 1.6.7 is out, did the developers say anything about it?  Any pointers to public posts or something where the developers discussed this issue?

Comment 2 Dan Horák 2009-11-30 15:49:27 UTC
I was able to find http://www.zabbix.com/forum/showthread.php?t=13275

Comment 3 RJ 2009-12-08 20:15:30 UTC
Zabbix 1.8 has bee released. Could it be available as update for Fedora 12 because 1.6.6 is incompatible with php 5.3?

Comment 4 Ville Skyttä 2009-12-08 20:33:20 UTC
FWIW it doesn't look like a drop-in upgrade:

http://www.zabbix.com/documentation/1.8/manual/about/installation_and_upgrade
https://fedoraproject.org/wiki/Package_update_guidelines

But then again if 1.6.x doesn't work at all and there's no 1.6.x release or easily portable patchset that would fix it, ...

Comment 5 Jeffrey C. Ollie 2009-12-08 20:39:14 UTC
I don't think that we would want to issue 1.8 as an update to F-12, however issuing an update to 1.6.8 would be good.

Comment 6 RJ 2009-12-08 21:03:48 UTC
>however issuing an update to 1.6.8 would be good.  

It's good if it resolves this problem if not, this package is unusable.

Comment 7 Dan Horák 2009-12-09 09:43:22 UTC
Hm, possible workaround is at http://forum.cmsmadesimple.org/index.php?action=printpage;topic=36805.0 - replace get_class() function with a wrapper.

Comment 8 Dan Horák 2009-12-09 09:47:16 UTC
(In reply to comment #7)
> Hm, possible workaround is at
> http://forum.cmsmadesimple.org/index.php?action=printpage;topic=36805.0 -
> replace get_class() function with a wrapper.  

or better just wrap the buggy calls with is_object()

Comment 9 Dan Horák 2009-12-09 09:50:38 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Hm, possible workaround is at
> > http://forum.cmsmadesimple.org/index.php?action=printpage;topic=36805.0 -
> > replace get_class() function with a wrapper.  
> 
> or better just wrap the buggy calls with is_object()  

and this is what 1.8 does. If the warnings above are the only issue with php 5.3 then we can easily prepare a patch and do an update.

Sorry for the spam.

Comment 10 Dan Horák 2009-12-09 10:43:36 UTC
Packages with the patch applied on top of 1.6.8 are available at http://koji.fedoraproject.org/koji/taskinfo?taskID=1864023

Please test it and report the results here, thanks.

Comment 11 Dan Horák 2009-12-14 14:10:43 UTC
Hm, the frontend code contains multiple depreciated PHP functions, I have now a patch that should fix the get_class() warnings (sent upstream as http://www.zabbix.com/forum/showpost.php?p=55465&postcount=13). Second known category is handling of regular expressions with ereg*() functions, that's still waiting for fix. And maybe there are other issues.

Comment 12 Dan Horák 2010-03-26 08:56:55 UTC
If you need zabbix 1.8 packages for Fedora 11 or 12, you can get it at http://fedora.danny.cz/danny/ 

Updating the official Fedora package to 1.8 isn't possible because there is a manual step required for updating the database and trying to update the frontend only in Fedora to be compatible with PHP 5.3 is too much work for a little benefit.


Note You need to log in before you can comment on or make changes to this bug.