Summary | Fatal PHP Error on first login |
Queue | Kronolith |
Queue Version | 2.1 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | |
Requester | josh (at) trutwins (dot) homeip (dot) net |
Created | 03/29/2006 (7011 days ago) |
Due | |
Updated | 05/03/2006 (6976 days ago) |
Assigned | 04/23/2006 (6986 days ago) |
Resolved | 05/03/2006 (6976 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
Thanks.
http://cvs.horde.org/diff.php/kronolith/lib/base.php?r1=1.117.8.7&r2=1.117.8.8&ty=u
First: $cal = bool(false), $kronolith->getCalendar() = NULL
Second: $cal = horde username, $kronolith->getCalendar() = NULL
As result, on first foreach open() not call.
string(18) "test3@quickhost.ru"
NULL
Can anyone please put the following code after the "foreach" line in
Kronolith::listAlarms (Kronolith.php, line 96) and post the output:
var_dump($cal, $kronolith->getCalendar());
New Attachment: debug_backtrace.txt
Summary ⇒ Fatal PHP Error on first login
State ⇒ Feedback
var_dump(debug_backtrace()); call right after the "// Run the query"
line and post the output?
Kronolith
lastest version does not have this code.
Kronolith (2.1.1), Imp (4.1.1) and Horde (3.1.1) and still get the
error.
New Attachment: kronolith-lib-driver-sql.diff
State ⇒ Resolved
for the next release and live with that error.
(using the kornolith-latest as of 2006-04-04). Is it really
recommended to switch over to a CVS snapshot for production systems?
Greetings Stephan
State ⇒ Feedback
Priority ⇒ 2. Medium
web site. I like my blood too much to go CVS. :-)
it appears to be caused by a user logging in without any entries in
the horde_datatree table.
If I wipe out everything about a user from horde_datree:
mysql> delete from horde_datatree where user_uid = "dinn@moose.to";
then when I next log in as that user I get the same error as well in
kronolith/lib/base.php line 134, in the in_array function.
if (!in_array($GLOBALS['display_calendars'], Auth::getAuth())) {
$GLOBALS['display_calendars'][] = Auth::getAuth();
}
A print_r of $GLOBALS['display_calendars'] shows only one entry - [0] => "".
I'm running Apache 1.3.34, php 51.2 - I can give someone access to the
machine in question if they need to be able to reproduce things easily.
Priority ⇒ 3. High
State ⇒ Unconfirmed
Queue ⇒ Kronolith
Type ⇒ Bug
Summary ⇒ Fatal PhP Error on first login
and it seems as if there is always a fatal PHP error whenever I log in
for the first time that seems related to Kronolith which causes the
sidebar frame to not display (since I have display_errors=Off in
php.ini). If I log out and log back in all is well, the error is only
on the first login.
Here is the error:
[21-Mar-2006 11:33:49] PHP Fatal error: Call to a member function on
a non-object in
/source/web/horde/horde-3.1/kronolith/lib/Driver/sql.php on line 291
PhP is version 4.3.11 running on Linux under Apache 2.0.55 - all tests
passed on the test pages. Database is MySQL 4.1.18. (I tested on
another server, this running MySQL 5.0, same results).
Here's kronolith's conf.php:
$conf['calendar']['params']['table'] = 'kronolith_events';
$conf['calendar']['params']['driverconfig'] = 'horde';
$conf['calendar']['driver'] = 'sql';
$conf['storage']['params']['table'] = 'kronolith_storage';
$conf['storage']['params']['driverconfig'] = 'horde';
$conf['storage']['driver'] = 'sql';
$conf['metadata']['keywords'] = false;
$conf['reminder']['server_name'] = 'reminder@netbits.us';
$conf['reminder']['from_addr'] = 'reminder@netbits.us';
$conf['autoshare']['shareperms'] = 'none';
$conf['menu']['print'] = true;
$conf['menu']['import_export'] = true;
$conf['menu']['apps'] = array('imp');
I also pulled the latest sql.php from CVS - same results. Please let
me know if I can supply additional information.
Thanks,
Josh