[imp] Log errors with memcached sessions
liam hoekenga
liamr at umich.edu
Wed Nov 30 11:01:57 PST 2005
I've found if I use this patch, and my logging level is set to
PEAR_LOG_DEBUG, that the browsers spins a lot, and I eventually get
sent to the horde portal screen (where the browser continues to spin),
rather than imp.
If I've got my logging set to PEAR_LOG_EMERG, I'm fine.
Liam
> Try this patch and see if the error goes away for you.
>
> --- memcached.php 17 Oct 2005 20:56:51 -0000 1.11
> +++ memcached.php 12 Nov 2005 00:08:57 -0000
> @@ -186,7 +186,7 @@
> {
> $hashCode = abs((crc32($id) >> 16) & 0x7fff);
> if (($ns = count($this->_db)) > 0) {
> - Horde::logMessage('Using connection ' . ($hashCode % $ns)
> . ' for id = ' . $id, __FILE__, __LINE__, PEAR_LOG_DEBUG);
> +// Horde::logMessage('Using connection ' . ($hashCode %
> $ns) . ' for id = ' . $id, __FILE__, __LINE__, PEAR_LOG_DEBUG);
> return $this->_db[$hashCode % $ns];
> } else {
> Horde::fatal(PEAR::raiseError('No connections available
> for memcached SessionHandler.'), __FILE__, __LINE__);
More information about the imp
mailing list