<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Invalid argument supplied for foreach() in file:]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3627&amp;type=atom" />
	<updated>2012-12-19T20:29:25Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3627</id>
		<entry>
			<title type="html"><![CDATA[Re: Invalid argument supplied for foreach() in file:]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14724#p14724" />
			<content type="html"><![CDATA[<p>Oh yes, thanks. Lines 238-240 in <strong>system_tests.inc</strong> do it:<br /></p><div class="codebox"><pre><code>    $fname =  $path_to_root.&#039;/lang&#039;;
    $test[&#039;test&#039;] = $fname;
    if (!(is_dir($fname) &amp;&amp; is_writable($fname))) {</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-19T20:29:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14724#p14724</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Invalid argument supplied for foreach() in file:]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14721#p14721" />
			<content type="html"><![CDATA[<p>The lang folder check is included in system_test.inc, and result is displayed on leading installer page.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2012-12-19T19:45:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14721#p14721</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Invalid argument supplied for foreach() in file:]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14718#p14718" />
			<content type="html"><![CDATA[<p>Yes, the <strong>function check_write()</strong> in <strong>includes/main.inc</strong> should cover the lang folder check as well.</p><p>In <strong>install/index.php</strong> mustn&#039;t there be a check to see if <strong>lang</strong> folder is writeable?</p><div class="codebox"><pre><code>    if (!file_exists($path_to_root . &quot;/lang/installed_languages.inc&quot;)) {
        $installed_languages = array (
            0 =&gt; array (&#039;code&#039; =&gt; &#039;C&#039;, &#039;name&#039; =&gt; &#039;English&#039;, &#039;encoding&#039; =&gt; &#039;iso-8859-1&#039;));
            $dflt_lang = &#039;C&#039;;
            write_lang();
    }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-19T19:18:36Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14718#p14718</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Invalid argument supplied for foreach() in file:]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14710#p14710" />
			<content type="html"><![CDATA[<p>The installed_extensions.php file is properly created during installation. Nevertheless I have found small bug in system tests (main FA folder was not tested properly whether it is writable or not). Fixed for next release.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2012-12-19T16:21:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14710#p14710</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Invalid argument supplied for foreach() in file:]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14608#p14608" />
			<content type="html"><![CDATA[<p>If the file installed_extensions.php does not exist, why not hard code it&#039;s content into the script? And if the content needs to be written and saved and the file is still missing, then it can be created!</p><p>Alternatively, just create it if it is missing - with some acceptable default content - and then read it back into the current script!</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-13T07:11:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14608#p14608</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Invalid argument supplied for foreach() in file:]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14607#p14607" />
			<content type="html"><![CDATA[<p>Thanks Joe, maybe an &quot;@&quot; should do it!.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-13T07:09:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14607#p14607</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Invalid argument supplied for foreach() in file:]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14606#p14606" />
			<content type="html"><![CDATA[<p>No, this is because of a missing include file ...../installed_extensions.php. It only appears when starting up. The include file is coming later in session.inc. It is totally harmless, however do not look nice.</p><p>Janusz is going to fix this asap.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-12-13T06:45:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14606#p14606</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Invalid argument supplied for foreach() in file:]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14596#p14596" />
			<content type="html"><![CDATA[<p>Hi Joe, expect that this issue has been solved in the latest Mercurial 3122 in <a href="https://frontaccounting.hg.sourceforge.net/hgweb/frontaccounting/frontaccounting/raw-file/257613419f2a/includes/session.inc">session.inc</a></p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-13T03:58:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14596#p14596</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Invalid argument supplied for foreach() in file:]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14557#p14557" />
			<content type="html"><![CDATA[<p>You are right rajbirdhaka. Although the bug is quite harmless, it will be fixed to next minor. The bug shows up when starting up FA, but only if you have specific warnings enabled.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-12-09T07:56:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14557#p14557</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Invalid argument supplied for foreach() in file:]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14546#p14546" />
			<content type="html"><![CDATA[<p>When I Open Page I saw That</p><p>Invalid argument supplied for foreach() in file: /home/choudh1/domains/choudharyenterprises.tk/public_html/includes/session.inc at line 342</p><br /><p>Give Solutin Please</p>]]></content>
			<author>
				<name><![CDATA[rajbirdhaka]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16747</uri>
			</author>
			<updated>2012-12-06T16:21:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14546#p14546</id>
		</entry>
</feed>
