<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>selfoss support forum - Internal Server Error 500, Undefined offset: 2 when updating</title>
<link>https://forum.selfoss.aditu.de/</link>
<description>selfoss support forum</description>
<language>en</language>
<item>
<title>Internal Server Error 500, Undefined offset: 2 when updating (reply)</title>
<content:encoded><![CDATA[<p>Hello,</p>
<p>I used to have the same error message on the previous release 2.8.<br />
I confirm I have the same on 2.9.</p>
<p>I can suggest that &quot;fix&quot; that works on both 2.8 and 2.9 (works for me) :<br />
on file helpers/ContentLoader.php, line 128</p>
<p>change that line :<br />
$icon = $item-&gt;getIcon();</p>
<p><br />
to this:<br />
try {<br />
  $icon = $item-&gt;getIcon();<br />
} catch(\exception $e) {<br />
  return;<br />
}</p>
<p><br />
I'm not a developer, and that &quot;fix&quot; didn't really fix the issue.</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=690</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=690</guid>
<pubDate>Sat, 16 Nov 2013 12:43:43 +0000</pubDate>
<dc:creator>mathcoll</dc:creator>
</item>
<item>
<title>Internal Server Error 500, Undefined offset: 2 when updating (reply)</title>
<content:encoded><![CDATA[<p>Checking again, it's definitely stopping early. If anyone has any clues as to why and how to fix it, please let me know.</p>
<blockquote><p>Sorry for the late reply, was away from the computer for a few days.</p>
<p>It looks like its some kind of general apache problem rather then a selfoss problem - enabling debug in config.ini on selfoss has this at the end of the update</p>
<ul>
<li>03-28-13 9:34:17 Debug Memory usage: 7830112<br />
</li><li>03-28-13 9:34:17 Debug Memory peak usage: 21744664<br />
</li><li>03-28-13 9:34:17 Debug start insertion of new item &quot;Giving a CNC knitting machine a new brain&quot;<br />
</li><li>03-28-13 9:34:17 Debug item content sanitized<br />
</li><li>03-28-13 9:34:17 Debug use last icon: <a href="http://s1.wp.com/wp-content/themes/vip/hackaday2/images/favicon.ico?m=1353160633g">http://s1.wp.com/wp-content/themes/vip/hackaday2/images/favicon.ico?m=1353160633g</a><br />
</li><li>03-28-13 9:34:17 Debug item inserted<br />
</li><li>03-28-13 9:34:17 Debug Memory usage: 7848952<br />
</li><li>03-28-13 9:34:17 Debug Memory peak usage: 21744664<br />
</li><li>03-28-13 9:34:17 Debug destroy spout object<br />
</li><li>03-28-13 9:34:17 Debug ---<br />
</li><li>03-28-13 9:34:17 Debug start fetching source &quot;Hanging Rock Comics (id: 209)<br />
</li><li>03-28-13 9:34:17 Debug spout successfully loaded: spouts\rss\feed<br />
</li><li>03-28-13 9:34:17 Debug fetch content<br />
</li><li>03-28-13 9:34:18 Debug minimum date: 2013-02-26 09:34:18<br />
</li><li>03-28-13 9:34:18 Debug start item fetching<br />
</li><li>03-28-13 9:34:18 Debug start insertion of new item &quot;blahblah1&quot;<br />
</li><li>03-28-13 9:34:18 Debug item content sanitized</li></ul><p>which all looks normal.</p>
<p><br />
Apaches log file has this:</p>
<p><strong>[Thu Mar 28 09:34:20 2013] [error] [client 127.0.0.1] Undefined offset: 2<br />
</strong><br />
The previous line is from 6 minutes before that, and just about me using update with lower case rather then update with upper case:</p>
<p><strong>[Thu Mar 28 09:28:35 2013] [error] [client 127.0.0.1] Negotiation: discovered file(s) matching request: /var/www/selfoss/update (None could be negotiated).<br />
</strong></p>
<p>But that still doesn't give me any more clue as to what the error is.</p>
<p>Does no one else have this update issue?</p>
<p>This time, the update ran for 4 or 5 minutes and pulled around 270 posts - but looking at the comparative time in Google Reader, boing boing (which is only one of the subscriptions) appears to have had roughly this many alone over that time period.</p>
<p>Could it be working and have some other criteria google reader doesn't have for collecting posts? Or is the update process crapping out early? Any clues or anywhere else I should look?</p>
</blockquote>]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=249</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=249</guid>
<pubDate>Thu, 28 Mar 2013 12:18:25 +0000</pubDate>
<dc:creator>lcd</dc:creator>
</item>
<item>
<title>Internal Server Error 500, Undefined offset: 2 when updating (reply)</title>
<content:encoded><![CDATA[<p>Sorry for the late reply, was away from the computer for a few days.</p>
<p>It looks like its some kind of general apache problem rather then a selfoss problem - enabling debug in config.ini on selfoss has this at the end of the update</p>
<ul>
<li>03-28-13 9:34:17 Debug Memory usage: 7830112<br />
</li><li>03-28-13 9:34:17 Debug Memory peak usage: 21744664<br />
</li><li>03-28-13 9:34:17 Debug start insertion of new item &quot;Giving a CNC knitting machine a new brain&quot;<br />
</li><li>03-28-13 9:34:17 Debug item content sanitized<br />
</li><li>03-28-13 9:34:17 Debug use last icon: <a href="http://s1.wp.com/wp-content/themes/vip/hackaday2/images/favicon.ico?m=1353160633g">http://s1.wp.com/wp-content/themes/vip/hackaday2/images/favicon.ico?m=1353160633g</a><br />
</li><li>03-28-13 9:34:17 Debug item inserted<br />
</li><li>03-28-13 9:34:17 Debug Memory usage: 7848952<br />
</li><li>03-28-13 9:34:17 Debug Memory peak usage: 21744664<br />
</li><li>03-28-13 9:34:17 Debug destroy spout object<br />
</li><li>03-28-13 9:34:17 Debug ---<br />
</li><li>03-28-13 9:34:17 Debug start fetching source &quot;Hanging Rock Comics (id: 209)<br />
</li><li>03-28-13 9:34:17 Debug spout successfully loaded: spouts\rss\feed<br />
</li><li>03-28-13 9:34:17 Debug fetch content<br />
</li><li>03-28-13 9:34:18 Debug minimum date: 2013-02-26 09:34:18<br />
</li><li>03-28-13 9:34:18 Debug start item fetching<br />
</li><li>03-28-13 9:34:18 Debug start insertion of new item &quot;blahblah1&quot;<br />
</li><li>03-28-13 9:34:18 Debug item content sanitized</li></ul><p>which all looks normal.</p>
<p><br />
Apaches log file has this:</p>
<p><strong>[Thu Mar 28 09:34:20 2013] [error] [client 127.0.0.1] Undefined offset: 2<br />
</strong><br />
The previous line is from 6 minutes before that, and just about me using update with lower case rather then update with upper case:</p>
<p><strong>[Thu Mar 28 09:28:35 2013] [error] [client 127.0.0.1] Negotiation: discovered file(s) matching request: /var/www/selfoss/update (None could be negotiated).<br />
</strong></p>
<p>But that still doesn't give me any more clue as to what the error is.</p>
<p>Does no one else have this update issue?</p>
<p>This time, the update ran for 4 or 5 minutes and pulled around 270 posts - but looking at the comparative time in Google Reader, boing boing (which is only one of the subscriptions) appears to have had roughly this many alone over that time period.</p>
<p>Could it be working and have some other criteria google reader doesn't have for collecting posts? Or is the update process crapping out early? Any clues or anywhere else I should look?</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=245</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=245</guid>
<pubDate>Thu, 28 Mar 2013 10:08:20 +0000</pubDate>
<dc:creator>lcd</dc:creator>
</item>
<item>
<title>Internal Server Error 500, Undefined offset: 2 when updating (reply)</title>
<content:encoded><![CDATA[<p>What messages do you see in the log files at selfoss/data/logs/default.log and /var/log/apache2/error.log ?</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=185</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=185</guid>
<pubDate>Thu, 21 Mar 2013 03:14:54 +0000</pubDate>
<dc:creator>burliest</dc:creator>
</item>
<item>
<title>Internal Server Error 500, Undefined offset: 2 when updating</title>
<content:encoded><![CDATA[<p>Hello! Another of the google reader refugees here - </p>
<p>Selfoss is excellent! At first I was a little hesitant about having everything in one feed, but actually since you parse the text and format things in three columns it looks great!</p>
<p>I'm having a problem with updating however - I'm hosting it on a raspberry pi and whenever I update the update fails with the following error message:</p>
<p>Internal Server Error 500</p>
<p>Internal Server Error<br />
Undefined offset: 2.</p>
<p>Reading about it it sounds like it's some kind of python error? This happens if I run it via the website (mywebsite/selfoss/Update with a capital U, which I gather is a change from 2.2) or via wget or curl on the terminal</p>
<p>curl:</p>
<p>/usr/bin/curl -s -S -m 3300 <a href="http://127.0.0.1/selfoss/Update">http://127.0.0.1/selfoss/Update</a></p>
<p>wget:</p>
<p>wget 127.0.0.1/selfoss/Update</p>
<p><br />
In case it's relevant I have 250 or so feeds and have tried both the mysql and sqlite databases with it - I get the same error. It's 256mb model b pi, and memory usage is only coming up to 200 meg or so, both sqlite and mysql. </p>
<p>Is anyone else having the same issue, and how would I go about fixing it?</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=178</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=178</guid>
<pubDate>Wed, 20 Mar 2013 14:11:27 +0000</pubDate>
<dc:creator>lcd</dc:creator>
</item>
</channel>
</rss>
