[Tickets #4029] NEW: fatal php error occured when first type calendar access
bugs@bugs.horde.org
bugs at bugs.horde.org
Tue Jun 13 02:09:40 PDT 2006
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=4029
-----------------------------------------------------------------------
Ticket | 4029
Created By | mzarubin at swsoft.com
Summary | fatal php error occured when first type calendar access
Queue | Kronolith
Version | 2.1.1
State | Unconfirmed
Priority | 1. Low
Type | Bug
Owners |
-----------------------------------------------------------------------
mzarubin at swsoft.com (2006-06-13 02:09) wrote:
When user try to access 'Calendar' in left frame next fatal error occured
Fatal error: Call to a member function on a non-object in
/usr/share/psa-horde/kronolith/lib/Driver/sql.php on line 291
in function listEventsConditional. It called from
/usr/share/psa-horde/kronolith/lib/Kronolith.php from
listEventsIds(). Global variable kronolith are not fully initialized, here
are var_dump
object(kronolith_driver_sql)(5) {
["_params"]=>
array(11) {
["persistent"]=>
bool(false)
["hostspec"]=>
string(9) "localhost"
["username"]=>
string(5) "horde"
["socket"]=>
string(27) "/var/run/mysqld/mysqld.sock"
["protocol"]=>
string(4) "unix"
["database"]=>
string(5) "horde"
["password"]=>
string(13) "password"
["charset"]=>
string(4) "utf8"
["phptype"]=>
string(5) "mysql"
["table"]=>
string(16) "kronolith_events"
["driverconfig"]=>
string(5) "horde"
}
["_calendar"]=>
NULL
["_db"]=>
NULL
["_connected"]=>
bool(false)
["_cache"]=>
array(0) {
}
I workarounded it by call of _connect in listEventsConditional(), here is
the patch. Feel free to adapt it to your needs.
Thaks, Michael
--- kronolith/lib/Driver/sql.php.orig 2006-06-13 05:04:06.000000000 -0400
+++ kronolith/lib/Driver/sql.php 2006-06-13 05:03:02.000000000 -0400
@@ -251,6 +251,7 @@
function listEventsConditional($startInterval, $endInterval,
$conditions = '', $vals = array())
{
+ $this->_connect();
$q = 'SELECT event_id, event_uid, event_description,
event_location,' .
' event_status, event_attendees,' .
' event_keywords, event_title, event_category,' .
More information about the bugs
mailing list