[horde] undefined index in weatherdotcom.php & undefined class name problem with passwd

Stephen Crosby stevecrozz at sbcglobal.net
Sat Aug 13 18:55:51 PDT 2005


I have a working horde installation running imp, kronolith, and turba. I
wanted to install passwd to allow my users to change their passwords stored
in a mysql database. I also want to fix a dumb little bug in my home page 
weather forecast.

The forecast works except for an error "undefined index: temperatureHigh in 
/var/www/horde-3.0.4/lib/Block/weatherdotcom.php."

Sure enough, it displays the low temperature just fine, but the high 
temperatures say 0 for all three days.

Here's my other problem with passwd I encountered one problem early on, the 
error was " Undefined class name
'horde' " and it mentioned a line in the horde configuration. I found an
entry for Horde::gettempdir() or something like that. That was in the cache
system section. So I simply changed it to an explicit directory and tried
again. Now I get the same error in another file. Here's the error:

Fatal error: Undefined class name 'horde' in
/var/www/horde-3.0.4/lib/Horde/Registry.php on line 128

line 128 in Registry.php references a function named
Horde::setupSessionHandler()

It comes up pretty much any time a script references a class beginning 
Horde::"whatever"
I know so little about php, I would appreciate someone helping me identify 
the problem.

Thanks in advance for any help.

I am including the section of code below:

        /* Import and global Horde's configuration values. */
        $this->importConfig('horde');

        /* Start a session. */
        if ($session_flags & HORDE_SESSION_NONE) {
            /* Never start a session if the session flags include
               HORDE_SESSION_NONE. */
            $_SESSION = array();
        } else {
(=>Line  128 )   Horde::setupSessionHandler();
            @session_start();
            if ($session_flags & HORDE_SESSION_READONLY) {
                /* Close the session immediately so no changes can be
                   made but values are still available. */
                @session_write_close();
            }
        } 





More information about the horde mailing list