[pkg-horde] Bug#389865: horde3: main panel fails to load when using
weatherdotcom
Anthony Brock
brocka at sterlingcgi.com
Sat Feb 10 19:14:27 CET 2007
I reinstalled using:
# aptitude install php-cache
A reload of the main page showed that the weatherdotcom block did not have a
location set. So I reconfigured it for my location. At this point the error
returned:
Fatal error: Cannot use object of type Cache_Error as array in
/usr/share/php/Cache/Container.php on line 345
So, here is the output from placing var_dump(debug_backtrace()); at line
345:
array(8) {
[0]=>
array(7) {
["file"]=>
string(34) "/usr/share/php/Cache/Container.php"
["line"]=>
int(172)
["function"]=>
string(7) "preload"
["class"]=>
string(15) "Cache_Container"
["object"]=>
object(Cache_Container_file)#79 (18) {
["fileLocking"]=>
bool(false)
["cache_dir"]=>
string(15) "/var/lib/horde/"
["filename_prefix"]=>
string(0) ""
["entries"]=>
array(0) {
}
["total_size"]=>
int(0)
["max_userdata_linelength"]=>
int(257)
["preload"]=>
bool(true)
["id"]=>
string(32) "91e6c19c206918b0552cd8fcde247e23"
["group"]=>
string(6) "search"
["expires"]=>
int(0)
["cachedata"]=>
string(0) ""
["userdata"]=>
string(0) ""
["unknown"]=>
bool(true)
["encoding_mode"]=>
string(6) "base64"
["highwater"]=>
int(2048000)
["lowwater"]=>
int(1536000)
["allowed_options"]=>
array(3) {
[0]=>
string(13) "encoding_mode"
[1]=>
string(9) "highwater"
[2]=>
string(8) "lowwater"
}
["group_dirs"]=>
array(0) {
}
}
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
&string(32) "91e6c19c206918b0552cd8fcde247e23"
[1]=>
&string(6) "search"
}
}
[1]=>
array(7) {
["file"]=>
string(24) "/usr/share/php/Cache.php"
["line"]=>
int(257)
["function"]=>
string(11) "getUserdata"
["class"]=>
string(15) "Cache_Container"
["object"]=>
object(Cache_Container_file)#79 (18) {
["fileLocking"]=>
bool(false)
["cache_dir"]=>
string(15) "/var/lib/horde/"
["filename_prefix"]=>
string(0) ""
["entries"]=>
array(0) {
}
["total_size"]=>
int(0)
["max_userdata_linelength"]=>
int(257)
["preload"]=>
bool(true)
["id"]=>
string(32) "91e6c19c206918b0552cd8fcde247e23"
["group"]=>
string(6) "search"
["expires"]=>
int(0)
["cachedata"]=>
string(0) ""
["userdata"]=>
string(0) ""
["unknown"]=>
bool(true)
["encoding_mode"]=>
string(6) "base64"
["highwater"]=>
int(2048000)
["lowwater"]=>
int(1536000)
["allowed_options"]=>
array(3) {
[0]=>
string(13) "encoding_mode"
[1]=>
string(9) "highwater"
[2]=>
string(8) "lowwater"
}
["group_dirs"]=>
array(0) {
}
}
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
&string(32) "91e6c19c206918b0552cd8fcde247e23"
[1]=>
&string(6) "search"
}
}
[2]=>
array(7) {
["file"]=>
string(49) "/usr/share/php/Services/Weather/Weatherdotcom.php"
["line"]=>
int(342)
["function"]=>
string(11) "getUserdata"
["class"]=>
string(5) "Cache"
["object"]=>
object(Cache)#82 (11) {
["caching"]=>
bool(true)
["gc_time"]=>
int(1)
["gc_probability"]=>
int(1)
["gc_maxlifetime"]=>
int(86400)
["container"]=>
object(Cache_Container_file)#79 (18) {
["fileLocking"]=>
bool(false)
["cache_dir"]=>
string(15) "/var/lib/horde/"
["filename_prefix"]=>
string(0) ""
["entries"]=>
array(0) {
}
["total_size"]=>
int(0)
["max_userdata_linelength"]=>
int(257)
["preload"]=>
bool(true)
["id"]=>
string(32) "91e6c19c206918b0552cd8fcde247e23"
["group"]=>
string(6) "search"
["expires"]=>
int(0)
["cachedata"]=>
string(0) ""
["userdata"]=>
string(0) ""
["unknown"]=>
bool(true)
["encoding_mode"]=>
string(6) "base64"
["highwater"]=>
int(2048000)
["lowwater"]=>
int(1536000)
["allowed_options"]=>
array(3) {
[0]=>
string(13) "encoding_mode"
[1]=>
string(9) "highwater"
[2]=>
string(8) "lowwater"
}
["group_dirs"]=>
array(0) {
}
}
["_debug"]=>
bool(false)
["_default_error_mode"]=>
NULL
["_default_error_options"]=>
NULL
["_default_error_handler"]=>
string(0) ""
["_error_class"]=>
string(10) "PEAR_Error"
["_expected_errors"]=>
array(0) {
}
}
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
&string(32) "91e6c19c206918b0552cd8fcde247e23"
[1]=>
&string(6) "search"
}
}
[3]=>
array(7) {
["file"]=>
string(45) "/usr/share/horde3/lib/Block/weatherdotcom.php"
["line"]=>
int(141)
["function"]=>
string(14) "searchLocation"
["class"]=>
string(30) "Services_Weather_Weatherdotcom"
["object"]=>
object(Services_Weather_Weatherdotcom)#100 (15) {
["_partnerID"]=>
string(10) "1006585472"
["_licenseKey"]=>
string(16) "b020d8780b98aea0"
["_preFetch"]=>
bool(false)
["_links"]=>
NULL
["_unserializer"]=>
object(XML_Unserializer)#104 (15) {
["_knownOptions"]=>
array(19) {
[0]=>
string(11) "complexType"
[1]=>
string(12) "keyAttribute"
[2]=>
string(13) "typeAttribute"
[3]=>
string(14) "classAttribute"
[4]=>
string(10) "tagAsClass"
[5]=>
string(12) "defaultClass"
[6]=>
string(15) "parseAttributes"
[7]=>
string(15) "attributesArray"
[8]=>
string(17) "prependAttributes"
[9]=>
string(11) "contentName"
[10]=>
string(6) "tagMap"
[11]=>
string(9) "forceEnum"
[12]=>
string(8) "encoding"
[13]=>
string(14) "targetEncoding"
[14]=>
string(14) "decodeFunction"
[15]=>
string(12) "returnResult"
[16]=>
string(10) "whitespace"
[17]=>
string(10) "ignoreKeys"
[18]=>
string(10) "guessTypes"
}
["_defaultOptions"]=>
array(19) {
["complexType"]=>
string(5) "array"
["keyAttribute"]=>
string(12) "_originalKey"
["typeAttribute"]=>
string(5) "_type"
["classAttribute"]=>
string(6) "_class"
["tagAsClass"]=>
bool(true)
["defaultClass"]=>
string(8) "stdClass"
["parseAttributes"]=>
bool(false)
["attributesArray"]=>
bool(false)
["prependAttributes"]=>
string(0) ""
["contentName"]=>
string(8) "_content"
["tagMap"]=>
array(0) {
}
["forceEnum"]=>
array(0) {
}
["encoding"]=>
NULL
["targetEncoding"]=>
NULL
["decodeFunction"]=>
NULL
["returnResult"]=>
bool(false)
["whitespace"]=>
string(4) "trim"
["ignoreKeys"]=>
array(0) {
}
["guessTypes"]=>
bool(false)
}
["options"]=>
array(19) {
["complexType"]=>
string(6) "object"
["keyAttribute"]=>
string(4) "type"
["typeAttribute"]=>
string(5) "_type"
["classAttribute"]=>
string(6) "_class"
["tagAsClass"]=>
bool(true)
["defaultClass"]=>
string(8) "stdClass"
["parseAttributes"]=>
bool(false)
["attributesArray"]=>
bool(false)
["prependAttributes"]=>
string(0) ""
["contentName"]=>
string(8) "_content"
["tagMap"]=>
array(0) {
}
["forceEnum"]=>
array(0) {
}
["encoding"]=>
NULL
["targetEncoding"]=>
NULL
["decodeFunction"]=>
NULL
["returnResult"]=>
bool(false)
["whitespace"]=>
string(4) "trim"
["ignoreKeys"]=>
array(0) {
}
["guessTypes"]=>
bool(false)
}
["_unserializedData"]=>
NULL
["_root"]=>
NULL
["_dataStack"]=>
array(0) {
}
["_valStack"]=>
array(0) {
}
["_depth"]=>
int(0)
["_parser"]=>
NULL
["_debug"]=>
bool(false)
["_default_error_mode"]=>
NULL
["_default_error_options"]=>
NULL
["_default_error_handler"]=>
string(0) ""
["_error_class"]=>
string(10) "PEAR_Error"
["_expected_errors"]=>
array(0) {
}
}
["_unitsFormat"]=>
string(1) "s"
["_customUnitsFormat"]=>
array(6) {
["temp"]=>
string(1) "f"
["vis"]=>
string(2) "sm"
["height"]=>
string(2) "ft"
["wind"]=>
string(3) "mph"
["pres"]=>
string(2) "in"
["rain"]=>
string(2) "in"
}
["_httpOptions"]=>
array(1) {
["timeout"]=>
int(60)
}
["_dateFormat"]=>
string(5) "m.d.Y"
["_timeFormat"]=>
string(3) "H:i"
["_location"]=>
NULL
["_weather"]=>
NULL
["_forecast"]=>
NULL
["_cache"]=>
object(Cache)#82 (11) {
["caching"]=>
bool(true)
["gc_time"]=>
int(1)
["gc_probability"]=>
int(1)
["gc_maxlifetime"]=>
int(86400)
["container"]=>
object(Cache_Container_file)#79 (18) {
["fileLocking"]=>
bool(false)
["cache_dir"]=>
string(15) "/var/lib/horde/"
["filename_prefix"]=>
string(0) ""
["entries"]=>
array(0) {
}
["total_size"]=>
int(0)
["max_userdata_linelength"]=>
int(257)
["preload"]=>
bool(true)
["id"]=>
string(32) "91e6c19c206918b0552cd8fcde247e23"
["group"]=>
string(6) "search"
["expires"]=>
int(0)
["cachedata"]=>
string(0) ""
["userdata"]=>
string(0) ""
["unknown"]=>
bool(true)
["encoding_mode"]=>
string(6) "base64"
["highwater"]=>
int(2048000)
["lowwater"]=>
int(1536000)
["allowed_options"]=>
array(3) {
[0]=>
string(13) "encoding_mode"
[1]=>
string(9) "highwater"
[2]=>
string(8) "lowwater"
}
["group_dirs"]=>
array(0) {
}
}
["_debug"]=>
bool(false)
["_default_error_mode"]=>
NULL
["_default_error_options"]=>
NULL
["_default_error_handler"]=>
string(0) ""
["_error_class"]=>
string(10) "PEAR_Error"
["_expected_errors"]=>
array(0) {
}
}
["_cacheEnabled"]=>
bool(true)
}
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
&string(9) "Salem, OR"
}
}
[4]=>
array(7) {
["file"]=>
string(37) "/usr/share/horde3/lib/Horde/Block.php"
["line"]=>
int(145)
["function"]=>
string(8) "_content"
["class"]=>
string(31) "Horde_Block_Horde_weatherdotcom"
["object"]=>
object(Horde_Block_Horde_weatherdotcom)#93 (2) {
["_app"]=>
string(5) "horde"
["_params"]=>
array(3) {
["location"]=>
string(9) "Salem, OR"
["units"]=>
string(8) "standard"
["days"]=>
string(1) "1"
}
}
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
[5]=>
array(7) {
["file"]=>
string(49) "/usr/share/horde3/lib/Horde/Block/Layout/View.php"
["line"]=>
int(99)
["function"]=>
string(10) "getContent"
["class"]=>
string(11) "Horde_Block"
["object"]=>
object(Horde_Block_Horde_weatherdotcom)#93 (2) {
["_app"]=>
string(5) "horde"
["_params"]=>
array(3) {
["location"]=>
string(9) "Salem, OR"
["units"]=>
string(8) "standard"
["days"]=>
string(1) "1"
}
}
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
[6]=>
array(7) {
["file"]=>
string(43) "/usr/share/horde3/services/portal/index.php"
["line"]=>
int(40)
["function"]=>
string(6) "toHtml"
["class"]=>
string(23) "Horde_Block_Layout_View"
["object"]=>
object(Horde_Block_Layout_View)#13 (3) {
["_layout"]=>
array(3) {
[0]=>
array(2) {
[0]=>
array(4) {
["app"]=>
string(3) "imp"
["height"]=>
int(1)
["width"]=>
int(1)
["params"]=>
array(2) {
["type"]=>
string(7) "summary"
["params"]=>
array(1) {
["show_total"]=>
string(2) "on"
}
}
}
[1]=>
array(4) {
["app"]=>
string(5) "turba"
["height"]=>
int(1)
["width"]=>
int(1)
["params"]=>
array(2) {
["type"]=>
string(10) "minisearch"
["params"]=>
array(0) {
}
}
}
}
[1]=>
array(2) {
[0]=>
array(4) {
["app"]=>
string(9) "kronolith"
["height"]=>
int(1)
["width"]=>
int(1)
["params"]=>
array(2) {
["type"]=>
string(7) "summary"
["params"]=>
array(1) {
["calendar"]=>
string(5) "__all"
}
}
}
[1]=>
array(4) {
["app"]=>
string(5) "horde"
["height"]=>
int(2)
["width"]=>
int(1)
["params"]=>
array(2) {
["type"]=>
string(13) "weatherdotcom"
["params"]=>
array(3) {
["location"]=>
string(9) "Salem, OR"
["units"]=>
string(8) "standard"
["days"]=>
string(1) "1"
}
}
}
}
[2]=>
array(2) {
[0]=>
array(4) {
["app"]=>
string(3) "nag"
["height"]=>
int(1)
["width"]=>
int(1)
["params"]=>
array(2) {
["type"]=>
string(7) "summary"
["params"]=>
array(7) {
["show_pri"]=>
string(2) "on"
["show_actions"]=>
string(2) "on"
["show_due"]=>
string(2) "on"
["show_tasklist"]=>
string(2) "on"
["show_alarms"]=>
string(2) "on"
["show_category"]=>
string(2) "on"
["show_overdue"]=>
string(2) "on"
}
}
}
[1]=>
string(7) "covered"
}
}
["_applications"]=>
array(4) {
["imp"]=>
string(3) "imp"
["turba"]=>
string(5) "turba"
["kronolith"]=>
string(9) "kronolith"
["horde"]=>
string(5) "horde"
}
["_linkTags"]=>
array(0) {
}
}
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
[7]=>
array(4) {
["file"]=>
string(27) "/usr/share/horde3/login.php"
["line"]=>
int(136)
["args"]=>
array(1) {
[0]=>
string(43) "/usr/share/horde3/services/portal/index.php"
}
["function"]=>
string(7) "require"
}
}
<br />
<b>Fatal error</b>: Cannot use object of type Cache_Error as array in
<b>/usr/share/php/Cache/Container.php</b> on line <b>346</b><br />
More information about the pkg-horde-hackers
mailing list