<?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 - Error 500 and database connection error</title>
<link>https://forum.selfoss.aditu.de/</link>
<description>selfoss support forum</description>
<language>en</language>
<item>
<title>Error 500 and database connection error (reply)</title>
<content:encoded><![CDATA[<p>Hey!</p>
<p>selfoss is unfortunately based on fatfree framework, which sometimes behaves rather peculiarly. In this case, looking at the <a href="https://fatfreeframework.com/3.6/framework-variables#globals">documentation</a>, I would guess your password contains a comma character, which makes the framework split the password into an array. To fix that, you can either change the password or wrap it in quotes like this: <code>db_password=&quot;pass,word&quot;</code></p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1331</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1331</guid>
<pubDate>Sat, 24 Nov 2018 14:22:34 +0000</pubDate>
<dc:creator>jtojnar</dc:creator>
</item>
<item>
<title>Error 500 and database connection error</title>
<content:encoded><![CDATA[<p>Hi all,<br />
I am using Uberspace as my hosting provider and followed <a href="https://lab.uberspace.de/guide_selfoss.html">their instructions</a> to install selfoss on my account.</p>
<p>When I load the page I get the following GET 500 error for this domain in the console:<br />
<a href="https://&lt;my_domain&gt;/selfoss/?offset=0&amp;itemsPerPage=50&amp;search=&amp;type=newest&amp;tag=&amp;source=&amp;sourcesNav=false&amp;ajax=true">https://&lt;my_domain&gt;/selfoss/?offset=0&amp;itemsPerPage=50&amp;search=&amp;type=newest&amp;tag=&amp;source=&amp;sourcesNav=false&amp;ajax=true</a> </p>
<p>In the debug message I get the following errors:<br />
[2018-11-23 13:00:11] selfoss.DEBUG: Establish database connection<br />
[2018-11-23 13:00:11] selfoss.ERROR: PDO::__construct() expects parameter 3 to be string, array given {&quot;exception&quot;:&quot;[object] (TypeError(cod$<br />
[stacktrace]<br />
#0 /var/www/virtual/&lt;username&gt;/html/selfoss/vendor/bcosca/fatfree-core/db/sql.php(519): PDO-&gt;__construct('mysql:host=loca...', '&lt;username&gt;', Array,$<br />
#1 /var/www/virtual/&lt;username&gt;/html/selfoss/daos/mysql/Database.php(42): DB\\SQL-&gt;__construct('mysql:host=loca...', '&lt;username&gt;', Array, Array)<br />
#2 /var/www/virtual/&lt;username&gt;/html/selfoss/daos/Sources.php(25): daos\\mysql\\Database-&gt;__construct()<br />
#3 /var/www/virtual/&lt;username&gt;/html/selfoss/controllers/Sources.php(27): daos\\Sources-&gt;__construct()<br />
#4 /var/www/virtual/&lt;username&gt;/html/selfoss/vendor/bcosca/fatfree-core/base.php(1806): controllers\\Sources-&gt;show(Object(Base), Array, 'control$<br />
#5 /var/www/virtual/&lt;username&gt;/html/selfoss/vendor/bcosca/fatfree-core/base.php(1627): Base-&gt;call(Array, Array, Array)<br />
#6 /var/www/virtual/&lt;username&gt;/html/selfoss/index.php(80): Base-&gt;run()<br />
#7 {main}<br />
&quot;}</p>
<p>It seems that the database connection is not possible as my database &lt;username&gt;_selfoss is still empty.<br />
The crendentials should be correct, as I can login with them in adminer.</p>
<p>Could you please have a look?<br />
Thanks!</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1330</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1330</guid>
<pubDate>Fri, 23 Nov 2018 12:22:08 +0000</pubDate>
<dc:creator>rssreader-reader</dc:creator>
</item>
</channel>
</rss>
