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:
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?
I was able to find http://www.zabbix.com/forum/showthread.php?t=13275
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?
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, ...
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.
>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.
Hm, possible workaround is at http://forum.cmsmadesimple.org/index.php?action=printpage;topic=36805.0 - replace get_class() function with a wrapper.
(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()
(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.
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.
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.
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.