Mailing List Archive

Mythweb errors
Now that Thor's back I figured I would post this. I don't know if
anybody else has seen these.

I seem to get this error:

Fatal error: Call to a member function on a non-object in
/var/www/html/mythweb/listings.php on line 151

On the first sheet or two when I access mythweb listings. As well, on
the pages where this error appears, the listing is cut off after channel
14. Advancing in time a page or two seems to make it disappear (for
subsequent pages), but when I go back it reappears.

And I get this:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL
result resource in /var/www/html/mythweb/search.php on line 240

When I try and search.

Any ideas? I'm running yesterday's cvs, using PHP 4.2.3 under Mandrake
9.

Thanks,

Randy
re: Mythweb errors [ In reply to ]
This is a reply to Randy's question about mythweb. I just recently began to
use the list with digest mode off so I don't have the original message.



I also received the same fatal error from listings.php.



Fatal error: Call to a member function on a non-object in
/var/www/html/mythweb/listings.php on line 151



I remedied it by patching the file. The patch just verifies that the
proginfo record is not empty. Here's the diff output:



----------------------------------------------------------------------------
----------------------------

--- listings.php.orig 2002-10-28 23:14:56.000000000 -0600

+++ listings.php 2002-10-28 23:42:26.000000000 -0600

@@ -116,7 +116,7 @@

{

$proginfo = $programarray[$channelindex][$timeslot];

$finalColour = $list_bg_colour;

- if ($proginfo->title != $lasttitle || $proginfo->subtitle !=
$lastsubtitle)

+ if (($proginfo->title != $lasttitle || $proginfo->subtitle
!= $lastsubtitle ) && $proginfo != "")

{

$cellwidth = 1;

for ($testnext = $timeslot + 1; $testnext <
$timeSlots; $testnext += 1)

----------------------------------------------------------------------------
----------------------------
RE: Mythweb errors [ In reply to ]
Works peachy keen. Thanks.



Randy