[horde] Class definition of Horde_Cache_emcache not found - Revisted

d.hill at yournetplus.com d.hill at yournetplus.com
Mon Aug 3 13:08:14 UTC 2009


Quoting d.hill at yournetplus.com:

> Quoting Michael Rubinsky <mrubinsk at horde.org>:
>
>> Quoting d.hill at yournetplus.com:
>>
>>>
>>> As I stated, I was looking in the Horde log file and do not know  
>>> what I should be looking for.
>>
>> Do you have the log level turned up enough to see debug messages?
>
> I apologize for my ignorance. Now that I have Horde logging  
> everything, what am I looking for? I'm sorry I'm not fluent with PHP.

Never mind. I found the log lines:

Aug 03 12:21:08 HORDE [debug] [horde] emcache [pid 85246 on line 174  
of "/usr/local/www/apache22/data/horde/lib/Horde/Cache.php"]
Aug 03 12:21:08 HORDE [debug] [horde] emcache [pid 85246 on line 184  
of "/usr/local/www/apache22/data/horde/lib/Horde/Cache.php"]
Aug 03 12:21:08 HORDE [debug] [horde] emcache [pid 85246 on line 193  
of "/usr/local/www/apache22/data/horde/lib/Horde/Cache.php"]

The three log lines I've found to be repeated three times all within  
the same hour.

There should be four lines being logged. I'm not sure why the first  
one is not being logged. It should be the first thing executed within  
the fuction:

function factory($driver, $params = array())
{

     Horde::logMessage(print_r($driver, true), __FILE__, __LINE__,  
PEAR_LOG_DEBUG);

     if (is_array($driver)) {
         $app = $driver[0];
         $driver = $driver[1];
     }

     Horde::logMessage(print_r($driver, true), __FILE__, __LINE__,  
PEAR_LOG_DEBUG);

     $driver = basename($driver);
     if (empty($driver) || $driver == 'none') {
         return new Horde_Cache($params);
     }

     Horde::logMessage(print_r($driver, true), __FILE__, __LINE__,  
PEAR_LOG_DEBUG);

     if (!empty($app)) {
         include_once $app . '/lib/Cache/' . $driver . '.php';
     } elseif (file_exists(dirname(__FILE__) . '/Cache/' . $driver . '.php')) {
         include_once dirname(__FILE__) . '/Cache/' . $driver . '.php';
     } else {
         include_once 'Horde/Cache/' . $driver . '.php';
     }

     Horde::logMessage(print_r($driver, true), __FILE__, __LINE__,  
PEAR_LOG_DEBUG);

     $class = 'Horde_Cache_' . $driver;
     if (class_exists($class)) {
         $cache = new $class($params);
     } else {
         $cache = PEAR::raiseError('Class definition of ' . $class . '  
not found.');
     }

     Horde::logMessage(print_r($driver, true), __FILE__, __LINE__,  
PEAR_LOG_DEBUG);

     return $cache;
}




More information about the horde mailing list