Closed GoogleCodeExporter closed 9 years ago
Hi François,
can you access the php error log? The error message regarding this 500 error
would
really help!
Best regards
Tobi
Original comment by zzuzzlwuzzl@googlemail.com
on 18 Mar 2010 at 7:33
I don't know exactly where I can find this information... Do you know how can I
get
back the details of error (a log file or something like this)?
Original comment by pro.tess...@gmail.com
on 18 Mar 2010 at 9:45
I failed to find what is the problem with apache2 logs... So I began to find in
PHP
code the line which generate this http error 500.
My first result is that it comes from :
applications/controllers/UpdateController.php
----------------------------------
public function silentAction() {
//...
foreach($feeds as $feed)
$updater->feed($feed);
//...
}
---------------------------------
During the first call of $updater->feed($feed); something happens. Do you have
any
idea? I'll try to find where it crashes.
Original comment by pro.tess...@gmail.com
on 19 Mar 2010 at 12:57
It seems to come from :
application/controllers/helpers/Updater.php
-----------------------------
public function feed($feed) {
//...
try {
$plugin->load($feed->url);
}
//...
}
---------------------------
There is no exception raised. So it probably comes from the PluginLoader helper
but I
don't know where... I can't find the load() function? What's it exactly?
Thx ;)
Original comment by pro.tess...@gmail.com
on 19 Mar 2010 at 1:09
Per default you can find the php error log file in the syslog path of your sever
(e.g. /var/log/php.log). There should be an entry with the exact error message.
The line
$plugin->load($feed->url);
loads and parse the feed content of a given source. For default RSS Feeds the
load
function in
http://code.google.com/p/rsslounge/source/browse/trunk/plugins/rss/feed.php
will be executed, which fetches the RSS Feed content using SimplePie. The
fetched
items will be saved for further use.
Best regards
Tobi
Original comment by zzuzzlwuzzl@googlemail.com
on 19 Mar 2010 at 5:04
I tried to debug feed.php. My error comes from
$this->feed->init()
Original comment by pro.tess...@gmail.com
on 20 Mar 2010 at 8:43
hmm... It seems to be a cache problem I suppose. I have an error on this
condition :
SimplePie.php - line 1777
-----------------
if ($cache && !$cache->save($this))
{
trigger_error("$cache->name is not writeable", E_USER_WARNING);
}
-----------------
The trigger_error function is not called. It seems to be an error during the
call of
save().
Original comment by pro.tess...@gmail.com
on 20 Mar 2010 at 8:58
I found the line which seems to generate an error. It seems to come from this
line :
SimplePie.php
----------------------
class SimplePie_Cache_File
{
//..
function save($data)
{
//..
$data = serialize($data); //line 8662
//..
}
}
-----------------
I don't know why it crashes here... serialize() is a common php function.
Original comment by pro.tess...@gmail.com
on 20 Mar 2010 at 9:32
It's working now... I just increased memory_limit option in php.ini. It's wired
but
it works! I can now reed my RSS feed again! Wouhou :)
Original comment by pro.tess...@gmail.com
on 20 Mar 2010 at 9:42
Hi François,
thats crazy. I recognized this error on fetching multiple feeds using SimplePie,
without destroying the SimplePie object afterwards. But exceeding the
memory_limit in
one run is weird.
Thanks for the feedback, hope this will help other users!
Tobi
Original comment by zzuzzlwuzzl@googlemail.com
on 20 Mar 2010 at 6:07
Yes! I thought about it again and it's very wired... It's very strange because
I had
only one feed during my tests. It's probably not this modification which helped
to
run rssLounge. It works now so all is ok but it's very strange. ;-)
Original comment by pro.tess...@gmail.com
on 21 Mar 2010 at 10:31
Original issue reported on code.google.com by
pro.tess...@gmail.com
on 18 Mar 2010 at 4:40