Re: Fatal errors in inc-common.php
Chris Rose <[email protected]> Thu, 29 May 2003 09:37:02 -0600
| Newsgroups | gmane.comp.audio.netjuke.user |
|---|---|
| Message-ID | <[email protected]> |
Followup: The error is consistent now, and i cannot log in at all. I
have determined (from the context of the code) that this has something
to do w/ the database, but i'm not sure what's happening.
So, in the spirit of providing useable info, here's my DB info:
i'm set up with MySQL, mysql-3.23.56-1.9 to be precise. Redhat 9
versions, here.
I'm certain mysqld is running, and so that isn't the problem.
What i think is the issue is this: The offending line (501) is:
if ($dbrs->RecordCount() == 1) {
But in context, here's where $dbrs is assigned:
$sql = "select * from netjuke_sessions where session_id =
'".$NETJUKE_SESSION_VARS['session_id']."'";
$dbrs = $dbconn->Execute($sql);
if ($dbrs->RecordCount() == 1) {
...
So, i'm guessing that the sql is returning something unexpected. But i
can't determine what it would be...
Can anyone developing this think of a fix or a workaround?
Chris Rose wrote:
> Seems that i get periodic, non-repeating errors in inc-common.php wiht
> the latest pre-release of b18.
>
> They read as follows:
>
> Fatal error: Call to a member function on a non-object in
> /var/www/html/netjuke/lib/inc-common.php on line 501
>
> This was happening on the previous version (b17) when i first installed
> it, but it seemed to clear up on its own.
>
> The error isn't consistent - refreshing the page usually makes it go
> away, but it's frustrating to deal with.
>
> Any ideas?
>
--
Chris R.
======
np: Evanescence - 2002 Demo CD(10) - Before The Dawn
------
http://offline.pointclark.net/
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5