6.0.0-beta1
8/11/25

[#11122] PHP Fatal error: Call to a member function query() on a non-object in ... Horde/Db/Adapter/Mysqli.php on line 311
Summary PHP Fatal error: Call to a member function query() on a non-object in ... Horde/Db/Adapter/Mysqli.php on line 311
Queue Horde Base
Queue Version 4.0.14
Type Bug
State Resolved
Priority 1. Low
Owners
Requester klaus (at) tachtler (dot) net
Created 04/01/2012 (4880 days ago)
Due
Updated 06/01/2012 (4819 days ago)
Assigned 04/02/2012 (4879 days ago)
Resolved 06/01/2012 (4819 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/01/2012 04:43:52 PM Jan Schneider State ⇒ Resolved
 
04/27/2012 11:57:40 AM klaus (at) tachtler (dot) net Comment #13 Reply to this comment
Hi,
Ping?
sorry, so since I use MySQL-PDO there are no Problems!

Thank you!
Klaus.
04/27/2012 09:14:47 AM Jan Schneider Comment #12 Reply to this comment
How do we go from here, with thos Problem, how can I help solving the
problems with MySQLi?
See my earlier suggestions.
Ping?
04/10/2012 07:39:42 PM klaus (at) tachtler (dot) net Comment #11 Reply to this comment
Hi, 8 days with no error messages, i think MySQL-PDO does the job!

04/05/2012 01:02:15 PM Jan Schneider Comment #10 Reply to this comment
BUT, if I use MySQL - PDO in horde4 - I found another Problem, 
different from this... I think I will open a new bugs record?
Yes, please.
How do we go from here, with thos Problem, how can I help solving 
the problems with MySQLi?
See my earlier suggestions.
04/05/2012 04:28:44 AM klaus (at) tachtler (dot) net Comment #9 Reply to this comment
So, second day in a row, since I use MySQL PDO - INSTEAD of MySQLi the 
error never occurs.

BUT, if I use MySQL - PDO in horde4 - I found another Problem, 
different from this... I think I will open a new bugs record?

How do we go from here, with thos Problem, how can I help solving the 
problems with MySQLi?

Thank you
Klaus.

04/03/2012 09:44:00 AM Jan Schneider Comment #8 Reply to this comment
Could it be a solution, to use MySQL PDO - NOT MySQLi ? - I can try 
this, for e few
days?
Yes. Though I'd rather like to fix this in MySQLi, if there is 
something to fix there.

You could also install xdebug, so that the error message contains some 
backtrace.
04/03/2012 09:25:45 AM klaus (at) tachtler (dot) net Comment #7 Reply to this comment
Try to find a scheme when exactly this happens. Obviously it doesn't 
happen on every run. Besides getting this error, does it do any harm?
So, I would find out a scheme, this could take a few days, because it is
a new server, which will start working in e few months.

I will start adding some dates to kronolith and can tell you than, if
there occur other problems.

I use MySQLi in horde4 configuration, because, when i use MySQL - PDO,
a problem occurs, if i used to show the actual sessions in the horde4 
admin view.

Could it be a solution, to use MySQL PDO - NOT MySQLi ? - I can try 
this, for e few
days?

Thank you!

Klaus

04/03/2012 09:13:40 AM Jan Schneider Comment #6 Reply to this comment
The next thing is, it is a new horde4 installation, with no 
"kronolith" dates, it's a fresh installation... can this give you 
some clue, which can help you?
No.
Can I give you some other informations, to help you finding out - 
what the problem actually is?
Try to find a scheme when exactly this happens. Obviously it doesn't 
happen on every run. Besides getting this error, does it do any harm?
04/03/2012 09:06:56 AM klaus (at) tachtler (dot) net Comment #5 Reply to this comment
Yes, i wonder myself about that.

I'm not a PHP programmer, but on the line 311 in 
/usr/share/pear/Horde/Db/Adapter/Mysqli.php - is there an object, 
which is NULL or unset at the moment, when the corn-job was running 
(because it is every 5 Minutes running...).

The next thing is, it is a new horde4 installation, with no 
"kronolith" dates, it's a fresh installation... can this give you some 
clue, which can help you?

Can I give you some other informations, to help you finding out - what 
the problem actually is?

Thank you!

Klaus.
04/03/2012 08:24:03 AM Jan Schneider Comment #4 Reply to this comment
# Horde Alarms
*/5 * * * * root /usr/bin/horde-alarms

The error occurs normaly once a day... often, when the daily 
cron-jobs are running, hope this helps?
Not really, because you have setup this cron job to run every 5 
minutes, so it doesn't make any sense that you only get that error 
once a day.
04/03/2012 06:51:12 AM klaus (at) tachtler (dot) net Comment #3 Reply to this comment
Sorry, i forgot to say which cron-job, it was the following one, in my 
/etc/crontab:

# Horde Alarms
*/5 * * * * root /usr/bin/horde-alarms

The error occurs normaly once a day... often, when the daily cron-jobs 
are running, hope this helps?

If you need further informations, please tell me which information you need.

Thank you!

Klaus.
04/02/2012 09:47:43 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
*Which* cron job?
04/01/2012 07:04:25 AM klaus (at) tachtler (dot) net Comment #1
Patch ⇒ No
State ⇒ Unconfirmed
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ PHP Fatal error: Call to a member function query() on a non-object in ... Horde/Db/Adapter/Mysqli.php on line 311
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
When the daily cron-job starts, SOMETIMES a ERROR e-Mail was created, 
with this text:

PHP Fatal error:  Call to a member function query() on a non-object in 
/usr/share/pear/Horde/Db/Adapter/Mysqli.php on line 311

Can anyone help, to resolv this?

Thank you!

Klaus.

Saved Queries