<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Session Abandoned Error in Windows Server Systems]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3541&amp;type=atom" />
	<updated>2021-11-01T13:27:16Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3541</id>
		<entry>
			<title type="html"><![CDATA[Re: Session Abandoned Error in Windows Server Systems]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40191#p40191" />
			<content type="html"><![CDATA[<p>I&#039;m getting this error frequently with FA 2.4.8. The check_edit_conflicts() now has a different signature, and I haven&#039;t investigated exactly why this error is popping up, but it happens when I haven&#039;t even created an invoice in my session, and nobody else is logged in.</p><p>I&#039;m just going to turn off edit checks, for now. When I get time, I might try to gather more diagnostic information.</p><p>(edit: I forgot to mention that I am using a CENTOS 7 Linux server running Apache and PHP 5.6)</p>]]></content>
			<author>
				<name><![CDATA[oakstreet1]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42263</uri>
			</author>
			<updated>2021-11-01T13:27:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40191#p40191</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session Abandoned Error in Windows Server Systems]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24350#p24350" />
			<content type="html"><![CDATA[<p>The variable <strong>$no_check_edit_conflicts</strong> can now be removed from FA and the file <strong>sales/includes/sales_ui.inc</strong> can have it&#039;s last function:<br /></p><div class="codebox"><pre><code>function check_edit_conflicts($cartname=&#039;Items&#039;)
{
    global $Ajax, $no_check_edit_conflicts;

    if ((!isset($no_check_edit_conflicts) || $no_check_edit_conflicts==0) &amp;&amp; get_post(&#039;cart_id&#039;) &amp;&amp; $_POST[&#039;cart_id&#039;] != $_SESSION[$cartname]-&gt;cart_id) {
        display_error(_(&#039;This edit session has been abandoned by opening sales document in another browser tab. You cannot edit more than one sales document at once.&#039;));
        $Ajax-&gt;activate(&#039;_page_body&#039;);
        display_footer_exit();
    }
}</code></pre></div><p>changed to:<br /></p><div class="codebox"><pre><code>function check_edit_conflicts($cartname=&#039;Items&#039;)
{
    global $Ajax;

    if (!empty($_SESSION[$cartname]-&gt;cart_id) &amp;&amp; get_post(&#039;cart_id&#039;) &amp;&amp; $_POST[&#039;cart_id&#039;] != $_SESSION[$cartname]-&gt;cart_id) {
        display_error(_(&#039;This edit session has been abandoned by opening sales document in another browser tab. You cannot edit more than one sales document at once.&#039;));
        $Ajax-&gt;activate(&#039;_page_body&#039;);
        display_footer_exit();
    }
}</code></pre></div><p>Steps to check in a fresh FA v2.3 install on Windows XAMPP using <strong>en_US-demo.sql</strong>:<br /><strong>Sales =&gt; Direct Invoice =&gt; Customer =&gt; Ghostbusters</strong><br />No error should crop up.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-09-25T21:35:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24350#p24350</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session Abandoned Error in Windows Server Systems]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=19089#p19089" />
			<content type="html"><![CDATA[<p>People using Textcart NEED to update textcart if they do sales or po in foreign currency (when the new package is ready).</p>]]></content>
			<author>
				<name><![CDATA[Ashtonashlee0]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19011</uri>
			</author>
			<updated>2014-01-25T06:05:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=19089#p19089</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session Abandoned Error in Windows Server Systems]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15448#p15448" />
			<content type="html"><![CDATA[<p>Try the FA v2.3.14 HG Build 3175 available in <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=15447#p15447">post 11 of a thread[</a> here and see if the problem persists.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-02-04T01:07:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15448#p15448</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session Abandoned Error in Windows Server Systems]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15442#p15442" />
			<content type="html"><![CDATA[<p>I never had an issue with the direct sales invoice to change the branch. Since upgrade to 2.3.13 I get the following message when using direct sales invoice.</p><p>&quot;This edit session has been abandoned by opening sales document in another browser tab. You cannot edit more than one sales document at once.&quot;</p><p>Only one user is logged in and only one invoice.</p><p>If I go the long route by creating an invoice, I am able to change the Barch without an issue.</p><p>Regards</p><p>Wynand</p>]]></content>
			<author>
				<name><![CDATA[seahawk]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=544</uri>
			</author>
			<updated>2013-02-03T16:58:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15442#p15442</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Session Abandoned Error in Windows Server Systems]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14280#p14280" />
			<content type="html"><![CDATA[<p>I am using Ubuntu 12.04, Apache 2.22, PHP 5.3.10, FF 16.0.2.&nbsp; I can cause this error msg to happen by doing:</p><p>Sales &gt; Customer Transaction Inquiry &gt; click on pencil to edit some invoice &gt; Process Invoice then hit back button and then Update</p><p>ed10</p>]]></content>
			<author>
				<name><![CDATA[ed10]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=1686</uri>
			</author>
			<updated>2012-11-16T13:49:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14280#p14280</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Session Abandoned Error in Windows Server Systems]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14273#p14273" />
			<content type="html"><![CDATA[<p>Bug 1826 on Mantis.</p><p>Joshua (sticmann) reports the problem:<br /></p><div class="codebox"><pre><code>Often on a sales invoice, I get this error without opening any other tabs:</code></pre></div><p><em>&quot;This edit session has been abandoned by opening sales document in another browser tab. <br />You cannot edit more than one sales document at once.&quot;</em><br /></p><div class="codebox"><pre><code> 
I see the function that is throwing the error, but I can&#039;t figure out how to make it stop.
 
We run a retail store, so we use the sales invoice frequently and this is becoming quite a nuisance.
 
I am running xampp on windows XP with Apache 2.2.21 and PHP 5.3.8

Thank you for any help,
 -Joshua
 </code></pre></div><p>We have reproduced this error in Windows 7 with Apache 2.2.8 and PHP 5.2.6.</p><p>There are problems in Windows OS with session handling and we are not able to localize the problem in the code.</p><p>The check is done in /sales/includes/sales_ui.inc, <strong>function check_edit_conflicts($cartname=&#039;Items&#039;)</strong>.</p><p>If this is a problem for you and you are sure that sales documents are never entered by more than one FA user at <br />the same time, you can eliminate this check by setting the variable <strong>$no_check_edit_conflicts=1</strong> in config.php.<br />This is coming in release 2.3.13 that is about to ship.</p><p>We are working on this issue and if anybody can contribute with valuable information regarding this, you are <br />most welcome.</p><p>We want to solve this problem as soon as possible.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-11-15T22:54:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14273#p14273</id>
		</entry>
</feed>
