2.4.0.beta1 - GetGALSearchResults picture & ownership of policies.ini ???
-
Hi guys,
I updated to 2.4.0beta1 today and immediately started to experience issues. I quickly tracked them down to errors in the HTTPD error log file.
[Thu Jan 04 14:36:40.620521 2018] [:error] [pid 27643] [client 85.255.234.1:25065] PHP Fatal error: Declaration of BackendSearchZimbra::GetGALSearchResults() must be compatible with ISearchProvider::GetGALSearchResults($searchquery, $searchrange, $searchpicture) in /usr/share/z-push/backend/zimbra/zimbra.php on line 12846
If I am not in a position to pass back a picture at this time, can I assume that it is OK to just add a third parameter to the function definition in the zimbra backend and to set it with a default of “= false”?
[Thu Jan 04 14:38:22.124245 2018] [:error] [pid 27365] [client 213.233.132.179:34186] PHP Warning: parse_ini_file(/etc/z-push/policies.ini): failed to open stream: Permission denied in /usr/share/z-push/lib/core/zpush.php on line 283
For some reason this file’s ownership went to root/z-push instead of root/apache - so apache was unable to open it.
Thanks
-
Hi @liverpoolfcfan ,
z-push as a group has recently been introduced for the rpm packaging to streamline the configuration of apache and nginx (which both use different users on groups on the different platforms using rpm). The ticket for this is https://jira.z-hub.io/browse/ZP-1331
The question here is the more: why was you apache not added to the z-push group?
-
Hi liverpoolfcfan,
I updated to 2.4.0beta1 today and immediately started to experience issues. I quickly tracked them down to errors in the HTTPD error log file.
[Thu Jan 04 14:36:40.620521 2018] [:error] [pid 27643] [client 85.255.234.1:25065] PHP Fatal error: Declaration of BackendSearchZimbra::GetGALSearchResults() must be compatible with ISearchProvider::GetGALSearchResults($searchquery, $searchrange, $searchpicture) in /usr/share/z-push/backend/zimbra/zimbra.php on line 12846
If I am not in a position to pass back a picture at this time, can I assume that it is OK to just add a third parameter to the function definition in the zimbra backend and to set it with a default of “= false”?
Yes, adding a third parameter to the function definition will resolve it. You don’t have to do anything with $searchpicture in GetGALSearchResults.
Manfred