[jonah] Can't update news channels

Marko Djukic marko at oblo.com
Sat May 3 19:42:22 PDT 2003


Quoting Rick Emery <rick at emery.homelinux.net>:

> Quoting Marko Djukic <marko at oblo.com>:
>
> OK, I'm going to need some help with this one because I'm *way* out of my
> element here.
>
> > no but i seem to recall that there have been a couple commits to
> > horde/lib/Cache.php so make sure you have all your libs cvs updated...
>
> That seems to be where the problem is...I explain below.
>
> > try var_dumping a bit in /jonah/news/stories.php to see where it breaks.
> it's
> > tough to tell where it is failing from just a white page.
> > a few people have got external channels running so they seem to work.
>
> I've done some debugging, and the problem seems to be related to
> horde/jonah/lib/News.php line 226:
>
> $stories = $cache->getData($url,
> "Horde_Serialize::serialize(Jonah_News::_fetchExternalStories('$url',
> '$timestamp'), SERIALIZE_UTF7_BASIC);", $interval);
>
> (in the file, that's all on one line)
>
> Using var_dump and print, I determined that $url, $timestamp, and $interval
> appear to contain valid values (they get printed onto the empty white frame I
> was getting). On the line immediately below the one I listed above, I added
> "var_dump($stories);" and nothing was displayed. Initially I thought $stories
> was empty, but I replaced the var_dump with "print('Got here');" and still
> nothing was displayed. It almost seems as though the script is dying on that
> line, and nothing after is being processed. I opened up Cache.php to look at
> getData, and quickly realized that I don't know enough about "the big
> picture"
> to understand what it's doing.
>
> I updated all of horde from cvs and tried all of this again, with the same
> results. Also, you mentioned that there have been recent changes to
> Cache.php,
> so I stopped php accelerator and flushed my browser cache just to be sure I
> was
> using the right one.
>
> Thanks in advance for any help,
> Rick
>
can you do a var_dump($data) after line 43 in Cache.php?

marko


More information about the jonah mailing list