<?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 - HTTP 500 on ARMv7 when initially F3 DEBUG is 0</title>
<link>https://forum.selfoss.aditu.de/</link>
<description>selfoss support forum</description>
<language>en</language>
<item>
<title>HTTP 500 on ARMv7 when initially F3 DEBUG is 0 (reply)</title>
<content:encoded><![CDATA[<p>Note that there are more PHP 7.2 incompatibilities that will probably not be fixed by this, see <a href="https://github.com/SSilence/selfoss/issues/983.">https://github.com/SSilence/selfoss/issues/983.</a></p>
<p>Also, most of the time, the development version is actually more stable than the stable one. Many people including the developers use it and any bugs are usually quickly discovered and fixed. So if there were no commits in the last week or two, the development version is probably safe to use.</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1281</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1281</guid>
<pubDate>Mon, 08 Jan 2018 07:41:41 +0000</pubDate>
<dc:creator>jtojnar</dc:creator>
</item>
<item>
<title>HTTP 500 on ARMv7 when initially F3 DEBUG is 0 (reply)</title>
<content:encoded><![CDATA[<p>Ah! Thanks for the prompt response.</p>
<p>I don't really want to ship a development version to users. So I'm now doing this when putting the package together:</p>
<p><span style="color:#009;">cp index.php index-tmp.php<br />
    cp common.php common-tmp.php<br />
    perl -pi -e &quot;s!/common.php!/common-tmp.php!&quot; index-tmp.php<br />
    perl -pi -e &quot;s!set\('DEBUG', 0\)!set('DEBUG', 1)!&quot; common-tmp.php<br />
    php index-tmp.php &gt; /dev/null<br />
    rm index-tmp.php common-tmp.php<br />
</span></p>
<p>That will generate the CSS file (although not minified, but that's the smaller problem IMHO) and now smoke tests pass.</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1280</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1280</guid>
<pubDate>Mon, 08 Jan 2018 04:25:17 +0000</pubDate>
<dc:creator>jernst</dc:creator>
</item>
<item>
<title>HTTP 500 on ARMv7 when initially F3 DEBUG is 0 (reply)</title>
<content:encoded><![CDATA[<p>Some of the libraries we use did not support PHP 7.2 until recently, it should be fixed in the <a href="https://github.com/SSilence/selfoss#download">development version</a>. In particular, this error originated from the <a href="https://github.com/natxet/CssMin/pull/24">CSS minifier</a>, which is only invoked when there is no <span style="color:#999;">all.css</span> file in the <span style="color:#999;">public</span> directory and the <span style="color:#999;">DEBUG</span> mode is disabled. The CSS is generated on each request in the <span style="color:#999;">DEBUG</span> mode but it is not minified.</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1279</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1279</guid>
<pubDate>Sun, 07 Jan 2018 06:47:16 +0000</pubDate>
<dc:creator>jtojnar</dc:creator>
</item>
<item>
<title>HTTP 500 on ARMv7 when initially F3 DEBUG is 0</title>
<content:encoded><![CDATA[<p>This is very strange, and I do not expect anybody to have an answer, but I'd like to just report what I'm seeing.</p>
<p>Background: I build the <a href="https://ubos.net/">UBOS</a> Linux distro, which makes it  simple to install and maintain web applications on a variety of devices from single-board to cloud. Selfoss has been one of the available apps for quite some time, and it has been working just fine.</p>
<p>We are building the Selfoss package identically on x86_64, ARMv6 (Raspberry PI Zero and One), ARMv7 (Raspberry PI 2 and 3) and aarch64 (ESPRESSObin) and we are running the exact same smoke tests. Recently, the smoke test on the Raspberry Pi 3 has started failing -- all the others still work.</p>
<p>Sequence of steps to reproduce:</p>
<ul>
<li>On Raspberry Pi 3 running UBOS, spin up a Linux container also running UBOS (we smoke test apps in a container)<br />
</li><li>In the container, deploy Selfoss (which includes scripted web server configuration etc)<br />
</li><li>From outside of the container, invoke curl on the Selfoss front page<br />
</li><li>Expectation: HTML of the front page<br />
</li><li>Actual result: HTTP 500. Apache server log says &quot;The each() function is deprecated. This message will be suppressed on further calls&quot;. (Presumably this is harmless)</li></ul><p>If I go into the web server directory, and invoke &quot;php index.php&quot;, I get slightly more: </p>
<p>The each() function is deprecated. This message will be suppressed on further calls<br />
an error occured</p>
<p>(yes, including the misspelling of &quot;occurred&quot;)</p>
<p>Here comes the strange part. If I edit &quot;common.php&quot; and change this line:</p>
<p>$f3-&gt;set('DEBUG', 0);</p>
<p>to this:</p>
<p>$f3-&gt;set('DEBUG', 1);</p>
<p>the home page comes up correctly. But then if I change it right back to</p>
<p>$f3-&gt;set('DEBUG', 0);</p>
<p>it continues to work correctly.</p>
<p>Restarting Apache makes no difference in behavior. Once I set DEBUG to 1, there is a difference in the content of the &quot;public&quot; folder, but that's the only difference I could notice. However, if I preserve the original &quot;public&quot; folder, set DEBUG to 1 so it rewrites it, then set DEBUG back to 0 and replace the rewritten &quot;public&quot; folder with the preserved one, it continues to work.</p>
<p>Beats me.</p>
<p>This is PHP 7.2.0, Apache 2.4.29.</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1278</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1278</guid>
<pubDate>Sun, 07 Jan 2018 05:14:24 +0000</pubDate>
<dc:creator>jernst</dc:creator>
</item>
</channel>
</rss>
