<?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 - PHP7 depreciated constructor (v2.14)   [WORKAROUND]</title>
<link>https://forum.selfoss.aditu.de/</link>
<description>selfoss support forum</description>
<language>en</language>
<item>
<title>PHP7 depreciated constructor (v2.14)   [WORKAROUND] (reply)</title>
<content:encoded><![CDATA[<p>Workaround / potential solution of renaming the constructor is kindly provided here:</p>
<p><a href="https://github.com/SSilence/selfoss/issues/731#issuecomment-170017665">https://github.com/SSilence/selfoss/issues/731#issuecomment-170017665</a></p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1160</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1160</guid>
<pubDate>Sun, 10 Jan 2016 10:49:09 +0000</pubDate>
<dc:creator>nickrickard</dc:creator>
</item>
<item>
<title>PHP7 depreciated constructor (v2.14) (reply)</title>
<content:encoded><![CDATA[<p>I've just tried the current git version and it also fails to update some feeds.</p>
<p>I still get the &quot;Error Methods with the same name as their class will not be constructors in a future version of PHP; floIcon has a deprecated constructor&quot; message.</p>
<p>This is an error and once you it this all further processing stops. It seems selfoss will later try other feeds so I suppose it will skip the &quot;offending&quot; feeds and still manage to update the ones that don't cause problems.</p>
<p>Example log:</p>
<p>### I've triggered an update via the web interface by clicking the update button</p>
<p>01-06-16 18:31:00 Debug Establish database connection<br />
01-06-16 18:31:44 Debug Establish database connection<br />
01-06-16 18:31:54 Debug ---<br />
01-06-16 18:31:54 Debug start fetching source &quot;Hackaday (id: 32) <br />
01-06-16 18:31:54 Debug spout successfully loaded: spouts\rss\feed<br />
01-06-16 18:31:54 Debug fetch content<br />
01-06-16 18:31:55 Debug minimum date: 2015-10-08 18:31:55<br />
01-06-16 18:31:55 Debug start item fetching<br />
01-06-16 18:31:55 Debug start insertion of new item &quot;The Most Plausible Apollo Moon Landing Conspiracy Ever Devised&quot;<br />
01-06-16 18:31:56 Debug item content sanitized<br />
01-06-16 18:31:57 Error Methods with the same name as their class will not be constructors in a future version of PHP; floIcon has a deprecated constructor</p>
<p>### It stopped here with a popup saying: &quot;Can not refresh sources: Internal Server Error&quot;, then I've triggered another update and it seems to continue until it hits another problematic feed (not shown).</p>
<p>01-06-16 18:34:22 Debug Establish database connection<br />
01-06-16 18:34:28 Debug ---<br />
01-06-16 18:34:28 Debug start fetching source &quot;LWN.net (id: 33) <br />
01-06-16 18:34:28 Debug spout successfully loaded: spouts\rss\feed<br />
01-06-16 18:34:28 Debug fetch content<br />
01-06-16 18:34:29 Debug minimum date: 2015-10-08 18:34:29<br />
01-06-16 18:34:29 Debug start item fetching<br />
01-06-16 18:34:29 Debug start insertion of new item &quot;Security updates for Wednesday&quot;<br />
01-06-16 18:34:29 Debug item content sanitized<br />
01-06-16 18:34:30 Debug icon: using feed homepage favicon: <a href="http://lwn.net/images/favicon.png">http://lwn.net/images/favicon.png</a><br />
01-06-16 18:34:31 Debug icon generated: <a href="http://lwn.net/images/favicon.png">http://lwn.net/images/favicon.png</a><br />
01-06-16 18:34:34 Debug item inserted<br />
01-06-16 18:34:34 Debug Memory usage: 4099600<br />
01-06-16 18:34:34 Debug Memory peak usage: 5399000<br />
01-06-16 18:34:34 Debug destroy spout object<br />
01-06-16 18:34:39 Debug ---</p>
<p>I guess it's time to take to take a trip to the bug tracker.</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1159</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1159</guid>
<pubDate>Wed, 06 Jan 2016 18:38:08 +0000</pubDate>
<dc:creator>R00KIE</dc:creator>
</item>
<item>
<title>PHP7 depreciated constructor (v2.14) (reply)</title>
<content:encoded><![CDATA[<p>Good spot, thanks: not all my feeds are being updated by the cron job. I'm not sure what determines which are and which aren't.</p>
<p>A manual update by loading &quot;www.mysite..../selfoss/update&quot; seems to work okay. I've taken to using this rather than the cron job I had previously in order to cut down on error messages/logs.</p>
<p>I haven't tried the git version yet - from a quick scan of the changelogs I couldn't explicitly see anything to suggest this issue had been addressed.</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1158</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1158</guid>
<pubDate>Wed, 06 Jan 2016 17:14:45 +0000</pubDate>
<dc:creator>nickrickard</dc:creator>
</item>
<item>
<title>PHP7 depreciated constructor (v2.14) (reply)</title>
<content:encoded><![CDATA[<p>You probably want to take a closer look and check if all feeds are being updated.</p>
<p>I'm also seeing this message/error on Arch Linux ARM after the update to php7 and some of my feeds are not updating.</p>
<p>I'm using the current 2.14 release and I'm planning to try the git version to see if it works, unless you have already tried it and it doesn't work.</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1157</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1157</guid>
<pubDate>Wed, 06 Jan 2016 16:56:09 +0000</pubDate>
<dc:creator>R00KIE</dc:creator>
</item>
<item>
<title>PHP7 depreciated constructor (v2.14)</title>
<content:encoded><![CDATA[<p>Following an upgrade to PHP7.0 (7.0.0-4 on Debian sid), I now get the following message each time cliupdate.php is run from a cron job.</p>
<p>&quot;Methods with the same name as their class will not be constructors in a future version of PHP; floIcon has a deprecated constructor<br />
an error occured&quot;</p>
<p>The update appears to still work so I think this is an information rather than critical warning, but might need a tweak for a future version of selfoss as more people move to PHP7.</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1148</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1148</guid>
<pubDate>Tue, 15 Dec 2015 16:26:36 +0000</pubDate>
<dc:creator>nickrickard</dc:creator>
</item>
</channel>
</rss>
