<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Package 'Payroll' is incompatible with current application version]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6459</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6459&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Package 'Payroll' is incompatible with current application version.]]></description>
		<lastBuildDate>Wed, 07 Sep 2016 04:40:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Package 'Payroll' is incompatible with current application version]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26264#p26264</link>
			<description><![CDATA[<p>@Janusz - I have tried it by making the `_init` folder and `config` file and put the following things. but its not even working.</p><p>&nbsp; &nbsp;</p><div class="codebox"><pre><code> Package: Payroll
Version: 2.4
Name: Payroll And HRM 
Description: Payroll system for generating paychecks
 and tax forms, and administrating employees.
Author: Varadha &lt;admin@kvcodes.com&gt;
Maintenance: Varadha &lt;admin@kvcodes.com&gt;
Homepage: kvcodes.com
Type: extension
InstallPath: modules/Payroll  </code></pre></div><p>. </p><p>it creates an entry here in `installed_extensions.php` It will be like this.&nbsp; Version is not getting here. <br /></p><div class="codebox"><pre><code>  array (
    &#039;package&#039; =&gt; &#039;Payroll&#039;,
    &#039;name&#039; =&gt; &#039;Payroll&#039;,
    &#039;version&#039; =&gt; &#039;-&#039;,     // if i change here 2.4, it works fine. 
    &#039;available&#039; =&gt; &#039;&#039;,
    &#039;type&#039; =&gt; &#039;extension&#039;,
    &#039;path&#039; =&gt; &#039;modules/Payroll&#039;,
    &#039;active&#039; =&gt; false,
  ),</code></pre></div><p>EDIT: </p><p>It doesn&#039;t check _init/config folder i think. Do something to fix it. </p><p>Every time i have to change it manually to take effect of it.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Wed, 07 Sep 2016 04:40:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26264#p26264</guid>
		</item>
		<item>
			<title><![CDATA[Re: Package 'Payroll' is incompatible with current application version]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26262#p26262</link>
			<description><![CDATA[<p>Thank you <br />Janusz&nbsp; and Apmuthu. I thought to change it in my _init/config&nbsp; file.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Tue, 06 Sep 2016 14:33:54 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26262#p26262</guid>
		</item>
		<item>
			<title><![CDATA[Re: Package 'Payroll' is incompatible with current application version]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26261#p26261</link>
			<description><![CDATA[<p>@itronics: Actually I was puzzled by how a length of a string returned by <strong>strspn()</strong> could be used though the logic was clear. Thanks for the <a href="https://github.com/FrontAccountingERP/FA/commit/1285e40718bc5b86f2630a8cea3230c7419024f7">fix</a>.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 06 Sep 2016 11:59:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26261#p26261</guid>
		</item>
		<item>
			<title><![CDATA[Re: Package 'Payroll' is incompatible with current application version]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26260#p26260</link>
			<description><![CDATA[<p>There was a bug in above procedure, just fixed in FA repo <a href="https://sourceforge.net/p/frontaccounting/git/ci/1285e40718bc5b86f2630a8cea3230c7419024f7/">here</a>. <br />To install your module you have to set Version variable in your _init/config file to be compatible with current FA version, i.e. the version string have to begin with &#039;2.4&#039;</p><p>Thank you for pointing out the problem.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Tue, 06 Sep 2016 10:51:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26260#p26260</guid>
		</item>
		<item>
			<title><![CDATA[Re: Package 'Payroll' is incompatible with current application version]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26257#p26257</link>
			<description><![CDATA[<p>You must make the version of your package 2.4.something....</p><p><strong>includes/packages.inc</strong> has at it&#039;s last <strong>function check_src_ext_version($ext_v)</strong> which has lines 725-741:<br /></p><div class="codebox"><pre><code>/*
    Check basic extension source compatibility.
*/
function check_src_ext_version($ext_v)
{
    global $src_version;

    $compat_levels = 2;    // current policy is keeping compatibility on major version level.
    $app = explode(&#039;.&#039;, strspn($src_version, &quot;0123456789.&quot;));
    $pkg = explode(&#039;.&#039;, strspn($ext_v, &quot;0123456789.&quot;));

    for ($i=0; $i &lt; min($compat_levels, count($app)); $i++)
        if ($pkg[$i] &lt; $app[$i])
            return false;

    return true;
}</code></pre></div><p> This function returns <strong>true</strong> only if the package version (at major level 2) is greater than or equal to that of the FA version.</p><p>The <strong>$SysPrefs-&gt;version</strong> (or if absent, the <em>$src_version</em>) in <strong>version.php</strong> is used as the FA version.</p><p>The <strong>admin/inst_module.php</strong> at line 215 checks the above before the said warning / error arises:<br /></p><div class="codebox"><pre><code>            if (check_value(&#039;Active&#039;.$i) &amp;&amp; !check_src_ext_version($ext[&#039;version&#039;]))</code></pre></div><p>This must be borne in mind when developing / updating modules in FA v2.4. </p><p>In FA v2.3, only a check for previous version &lt; current version of the module was done.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 06 Sep 2016 09:36:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26257#p26257</guid>
		</item>
		<item>
			<title><![CDATA[Package 'Payroll' is incompatible with current application version]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26253#p26253</link>
			<description><![CDATA[<p>I&nbsp; have recently developed a new module and tried to install it on 2.4 RC1. It&#039;s not working here.&nbsp; but its working fine with earlier version of&nbsp; Frontaccounting.&nbsp; </p><p>here is the warning message, when i try to actvate it. </p><div class="codebox"><pre><code> Package &#039;Payroll&#039; is incompatible with current application version and cannot be activated. Check Install/Activate page for newer package version.</code></pre></div><p>.</p><p>Help me to fix it.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Tue, 06 Sep 2016 07:35:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26253#p26253</guid>
		</item>
	</channel>
</rss>
