<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Ajax Times out in Print Recurring Invoices]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7489</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7489&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Ajax Times out in Print Recurring Invoices.]]></description>
		<lastBuildDate>Mon, 30 Apr 2018 14:56:43 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Ajax Times out in Print Recurring Invoices]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31545#p31545</link>
			<description><![CDATA[<p>ini_set(&#039;max_execution_time&#039;, 300);</p><p>Worked in my case</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Mon, 30 Apr 2018 14:56:43 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31545#p31545</guid>
		</item>
		<item>
			<title><![CDATA[Re: Ajax Times out in Print Recurring Invoices]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31543#p31543</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 29 Apr 2018 12:45:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31543#p31543</guid>
		</item>
		<item>
			<title><![CDATA[Re: Ajax Times out in Print Recurring Invoices]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31542#p31542</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Sun, 29 Apr 2018 11:45:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31542#p31542</guid>
		</item>
		<item>
			<title><![CDATA[Ajax Times out in Print Recurring Invoices]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31541#p31541</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Sun, 29 Apr 2018 11:21:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31541#p31541</guid>
		</item>
	</channel>
</rss>
