[Kolab-devel] php failure undefined method Horde_Kolab_Server_ldap::uidForIdOrMail (openSUSE native)
Richard Bos
ml at radoeka.nl
Wed Feb 18 23:09:07 CET 2009
Op dinsdag 17 februari 2009 22:59:58 schreef Richard Bos:
> Any idea why the uidForIdOrMail is not found? Is the include path perhaps
> incorrect, where one uidForIdOrMail overwrites the other?
My continues struggle with Incoming.php This time I added debug lines to
the file, with the following result:
193 require_once 'Horde/Kolab/Server.php';
194
195 Horde::logMessage(sprintf('DEBUG: Going to Horde/Kolab/Server:singleton'), __FILE__, __LINE__, PEAR_LOG_DEBUG);
196 $server = &Horde_Kolab_Server::singleton();
197 if (is_a($server, 'PEAR_Error')) {
198 $server->code = OUT_LOG | EX_SOFTWARE;
199 return $server;
200 }
201 Horde::logMessage(sprintf('DEBUG: Left the Horde/Kolab/Server:singleton'), __FILE__, __LINE__, PEAR_LOG_DEBUG);
202 Horde::logMessage(sprintf('DEBUG: server = %s', $server), __FILE__, __LINE__, PEAR_LOG_DEBUG);
203
204 $hosts = array();
205 foreach ($this->_recipients as $recipient) {
206 Horde::logMessage(sprintf('DEBUG: Looking up %s', $recipient), __FILE__, __LINE__, PEAR_LOG_DEBUG);
Feb 18 22:45:41 kolab kolabfilter[8316]: [horde] DEBUG: Going to Horde/Kolab/Server:singleton [pid 8316 on line 195 of
"/usr/share/php5/PEAR/Horde/Kolab/Filter/Incoming.php"]
Feb 18 22:45:41 kolab kolabfilter[8316]: [horde] DEBUG: Left the Horde/Kolab/Server:singleton [pid 8316 on line 201 of
"/usr/share/php5/PEAR/Horde/Kolab/Filter/Incoming.php"]
Feb 18 22:45:41 kolab kolabfilter[8316]: [horde] PHP Error: Object of class Horde_Kolab_Server_ldap could not be converted to string; Code: 0 [pid
8316 on line 176 of "/usr/share/php5/PEAR/Horde/Kolab/Filter/Response.php"]
How can I check that the code actually enters the &Horde_Kolab_Server::singleton();
I added an Horde::logMessage in to the singleton function in:
Horde/Kolab/Server.php: function &singleton($params = null)
but nothing was printed. Is it the wrong singleton, or is it not entered?
If the later, why isn't it entered?
Any idea?
--
Richard
More information about the devel
mailing list