<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Nginx server and PHP version]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9282&amp;type=atom" />
	<updated>2021-08-11T16:01:25Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9282</id>
		<entry>
			<title type="html"><![CDATA[Re: Nginx server and PHP version]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39836#p39836" />
			<content type="html"><![CDATA[<p>@joe: can include this?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2021-08-11T16:01:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39836#p39836</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nginx server and PHP version]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39812#p39812" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>lugezz wrote:</cite><blockquote><p>I understand you have to download now the 2.4.9 version from SourceForge and install it again and it should work.</p><p>----------<br />install/isession.incDiffSwitch to side-by-side view<br />--- a/install/isession.inc<br />+++ b/install/isession.inc<br />@@ -31,7 +31,7 @@<br /> //<br /> function strip_quotes($data)<br /> {<br />-&nbsp; &nbsp; if(get_magic_quotes_gpc()) {<br />+&nbsp; &nbsp; if(version_compare(phpversion(), &#039;5.4&#039;, &#039;&lt;&#039;) &amp;&amp; get_magic_quotes_gpc()) {<br /> &nbsp; &nbsp; &nbsp; &nbsp; if(is_array($data)) {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach($data as $k =&gt; $v) {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $data[$k] = strip_quotes($data[$k]);</p></blockquote></div><p>thanks it worked fine</p>]]></content>
			<author>
				<name><![CDATA[cedricktshiyoyo]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45118</uri>
			</author>
			<updated>2021-08-06T12:07:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39812#p39812</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nginx server and PHP version]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39414#p39414" />
			<content type="html"><![CDATA[<p>I understand you have to download now the 2.4.9 version from SourceForge and install it again and it should work.</p><p>----------<br />install/isession.incDiffSwitch to side-by-side view<br />--- a/install/isession.inc<br />+++ b/install/isession.inc<br />@@ -31,7 +31,7 @@<br /> //<br /> function strip_quotes($data)<br /> {<br />-&nbsp; &nbsp; if(get_magic_quotes_gpc()) {<br />+&nbsp; &nbsp; if(version_compare(phpversion(), &#039;5.4&#039;, &#039;&lt;&#039;) &amp;&amp; get_magic_quotes_gpc()) {<br /> &nbsp; &nbsp; &nbsp; &nbsp; if(is_array($data)) {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach($data as $k =&gt; $v) {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $data[$k] = strip_quotes($data[$k]);</p>]]></content>
			<author>
				<name><![CDATA[lugezz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42365</uri>
			</author>
			<updated>2021-05-05T14:32:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39414#p39414</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nginx server and PHP version]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39413#p39413" />
			<content type="html"><![CDATA[<p>Hello Cedrick! Are you using 2.4.9 version? It&#039;s supposed to working well in this version.</p>]]></content>
			<author>
				<name><![CDATA[lugezz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42365</uri>
			</author>
			<updated>2021-05-05T14:29:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39413#p39413</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nginx server and PHP version]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39404#p39404" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Function get_magic_quotes_gpc() is deprecated in file: /var/www/html/finance/includes/session.inc at line 308<br />Trying to access array offset on value of type bool in file: /var/www/html/finance/gl/includes/db/gl_db_accounts.inc at line 220<br />implode(): Passing glue string after array is deprecated. Swap the parameters in file: /var/www/html/finance/includes/ui/ui_lists.inc at line 151</p></blockquote></div><p>Hello guys, i am having the same message, I am using ubuntu 20.04 with php 7.4.3&nbsp; &nbsp;mysql&nbsp; Ver 8.0.23-0ubuntu0.20.04.1</p><p>Any idea?</p>]]></content>
			<author>
				<name><![CDATA[cedricktshiyoyo]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45118</uri>
			</author>
			<updated>2021-05-05T09:51:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39404#p39404</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nginx server and PHP version]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39378#p39378" />
			<content type="html"><![CDATA[<p>Genius!!!! It works perfectly, thanks a million!</p>]]></content>
			<author>
				<name><![CDATA[lugezz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42365</uri>
			</author>
			<updated>2021-04-27T22:30:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39378#p39378</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nginx server and PHP version]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39377#p39377" />
			<content type="html"><![CDATA[<p>Thanks a lot! I will follow your advice!</p>]]></content>
			<author>
				<name><![CDATA[lugezz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42365</uri>
			</author>
			<updated>2021-04-27T19:28:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39377#p39377</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Nginx server and PHP version]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39376#p39376" />
			<content type="html"><![CDATA[<p>Regarding 7.4, you can safely ignore the error.</p><p>PHP 7.4 has better validation than earlier php.&nbsp; I fixed a lot of these issues in my fork and I still need to post the fixes.&nbsp; The fix for db_tags.inc is:</p><div class="codebox"><pre><code>diff --git a/core/admin/db/tags_db.inc b/core/admin/db/tags_db.inc
index b33de82..96bdbe9 100644
--- a/core/admin/db/tags_db.inc
+++ b/core/admin/db/tags_db.inc
@@ -77,7 +77,7 @@ function get_tag_name($id)
        $result = db_query($sql, &quot;could not get tag name&quot;);
        
        $row = db_fetch_row($result);
-       return $row ? $row[0] : &#039;&#039;;
+       return $row == false ? false : $row[0];
 }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2021-04-27T19:12:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39376#p39376</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Nginx server and PHP version]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39375#p39375" />
			<content type="html"><![CDATA[<p>I am serving FrontAccounting on Ubuntu on a Nginx server and I have the problem with PHP version and I don&#039;t know how to handle it, I have the following problems:</p><p>PHP v.7.0: mysqli_connect(): The server requested authentication<br />PHP v.7.4: Trying to access array offset on value of type bool En archivo : /var/www/..../admin/db/tags_db.inc en la línea80<br />PHP v.8.0: A lot of message with deprecated functions.</p><p>I set 7.4 because although the problem it is working, can you help me to know what should I do?. Thanks in advance.</p>]]></content>
			<author>
				<name><![CDATA[lugezz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42365</uri>
			</author>
			<updated>2021-04-27T18:05:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39375#p39375</id>
		</entry>
</feed>
