<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Ajax Times out in Print Recurring Invoices]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7489&amp;type=atom" />
	<updated>2018-04-30T14:56:43Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7489</id>
		<entry>
			<title type="html"><![CDATA[Re: Ajax Times out in Print Recurring Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31545#p31545" />
			<content type="html"><![CDATA[<p>ini_set(&#039;max_execution_time&#039;, 300);</p><p>Worked in my case</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2018-04-30T14:56:43Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31545#p31545</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ajax Times out in Print Recurring Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31543#p31543" />
			<content type="html"><![CDATA[<p>Others of it&#039;s ilk are:<br /></p><div class="codebox"><pre><code>ini_set(&#039;default_socket_timeout&#039;, 2);
// your socket based code here

// restore to the default socket timeout
ini_restore(&#039;default_socket_timeout&#039;);

ini_set(&#039;max_execution_time&#039;, 0); // unlimited and default for CLI script usage.</code></pre></div><p>You can not change this setting with <strong>ini_set()</strong> when running in safe mode.<br />The duration of <strong>sleep()</strong> will be ignored in the execution time.</p><p>Stands <a href="https://frontaccounting.com/fawiki/index.php?n=Devel.AjaxInFA">Wiki</a>-ed.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-04-29T12:45:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31543#p31543</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ajax Times out in Print Recurring Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31542#p31542" />
			<content type="html"><![CDATA[<p>I don&#039;t use this feature, but looking at the code, I am guessing the rotating icon come on during submit, which has a short Ajax timeout.</p><p>To use the long Ajax timeout (and display the horizontal time icon like in backup) change:</p><p>&nbsp; &nbsp; &nbsp; &nbsp; submit_center_first(&#039;confirmed&#039;.$id, _(&#039;Create&#039;), _(&#039;Create recurrent invoices&#039;), false, ICON_OK);<br />to:</p><p>&nbsp; &nbsp; &nbsp; &nbsp; submit_center_first(&#039;confirmed&#039;.$id, _(&#039;Create&#039;), _(&#039;Create recurrent invoices&#039;), &quot;process&quot;, ICON_OK);</p><p>Note: this really needs to be configurable on a page by page basis rather than hard-coding it, because people keep running into this problem on various pages as their usage of FA grows.&nbsp; Or the timeout needs to pop-up an alert asking the user if they want to continue or cancel.&nbsp; Or ajax needs to check if progress is actually being made and eliminate the timeout.</p><p>Finally, if you get past that timeout, then php also has a timeout.</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2018-04-29T11:45:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31542#p31542</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Ajax Times out in Print Recurring Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31541#p31541" />
			<content type="html"><![CDATA[<p>One of my client creates Recurring Invoices that are around 230 invoices.</p><p>When he clicks to <a href="https://prnt.sc/jbjyy8">Print Recurring Invoices </a> the Ajax fails to show the print preview. The document is however created in the company&#039;s pdf folder but Print Preview is not shown.</p><p>HOw to resolve this issue. Any Idea?</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2018-04-29T11:21:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31541#p31541</id>
		</entry>
</feed>
