google-code-backups / rsslounge

Automatically exported from code.google.com/p/rsslounge
0 stars 0 forks source link

Error 500 when I try to update feeds #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi!

I just installed a new Apache2 server at home. Then I installed RssLounge.
All was ok during the installation and I can now access to this application
with no error with Firefox. But I encounter problems with the update job.
RssLounge doesn't do any updates on my feeds neither by Ajax updater, nor
by cronjob.

I tried in command line a wget on http://<myRssLoungeUrl>/update/silent but
I get an error 500.

mod_env and mod_rewrite are enabled. It worked on my old server with the
same configuration... Do you have any idea?

Thx a lot!

François

Original issue reported on code.google.com by pro.tess...@gmail.com on 18 Mar 2010 at 4:40

GoogleCodeExporter commented 8 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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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