<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Odd script timeout issue. Can native define() or dirname() functions hang?</title>
  <link>http://www.activecollab.com/forums/topic/5474/</link>
  <description>Recent posts on topic: Odd script timeout issue. Can native define() or dirname() functions hang?</description>
  <dc:language>en-us</dc:language>
  <pubDate>Wed, 23 May 2012 22:10:43 CDT</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/24254/#post24254</link>
    <guid>http://www.activecollab.com/forums/post/24254/#post24254</guid>
    <title>Post #5 by chrisbloom7</title>
    <dc:creator>chrisbloom7</dc:creator>
    <description><![CDATA[<p>I did clear the cache out yesterday. I don't suspect any file system/permissions issues because the cache files are being regenerated. I will refresh the permissions, re-clear the cache and continue to monitor.</p>]]></description>
    <pubDate>Wed, 23 Dec 2009 08:01:48 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/24251/#post24251</link>
    <guid>http://www.activecollab.com/forums/post/24251/#post24251</guid>
    <title>Post #4 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>Try to clearing content of /cache folder and see if that helps. Still, there should be no reason for cache to choke the system, but based on error message that's the place where I would start.<br />
<br />
Second, see with your system administrator whether there are any problems with file system access. Nothing should choke the script to take 30 seconds to execute though (all requests should be under 1 second on decent server)...</p>]]></description>
    <pubDate>Wed, 23 Dec 2009 01:56:10 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/24250/#post24250</link>
    <guid>http://www.activecollab.com/forums/post/24250/#post24250</guid>
    <title>Post #3 by chrisbloom7</title>
    <dc:creator>chrisbloom7</dc:creator>
    <description><![CDATA[<p>The exact error message was &quot;Fatal error: Maximum execution time of 30 seconds exceeded&quot;. Looking at the PHP error log for the past month, I'm seeing a lot of that type of message, most pointing at similarly benign code. Some examples:<br />
<br />
Maximum execution time of 30 seconds exceeded in C:\web\wwwroot\activecollab\angie\classes\NamedList.class.php on line 6<br />
<pre name="code" class="brush: php">class NamedList extends AngieObject {</pre><br />
<br />
Maximum execution time of 30 seconds exceeded in C:\web\wwwroot\activecollab\application\modules\system\models\search_engines\MysqlSearchEngine.class.php on line 3<br />
<pre name="code" class="brush: php">require_once SYSTEM_MODULE_PATH . '/models/search_engines/SearchEngine.class.php';</pre><br />
(There was no other error message here, such as one that might suggest the SYSTEM_MODULE_PATH constant was undefined, or that the include file couldn't be found.)<br />
<br />
Maximum execution time of 30 seconds exceeded in C:\web\wwwroot\activecollab\angie\classes\cache\backend\FileCacheBackend.class.php on line 65<br />
Maximum execution time of 30 seconds exceeded in C:\web\wwwroot\activecollab\angie\classes\cache\backend\FileCacheBackend.class.php on line 72<br />
Maximum execution time of 30 seconds exceeded in C:\web\wwwroot\activecollab\angie\classes\cache\backend\FileCacheBackend.class.php on line 115<br />
Maximum execution time of 30 seconds exceeded in C:\web\wwwroot\activecollab\angie\classes\cache\backend\FileCacheBackend.class.php on line 132<br />
Maximum execution time of 30 seconds exceeded in C:\web\wwwroot\activecollab\angie\classes\cache\backend\FileCacheBackend.class.php on line 167<br />
<pre name="code" class="brush: php"> 65.        if(is_file($path)) {

 72.        } // if

115.      if(is_file($path)) {

132.      while(($entry = $d-&gt;read()) !== false) {

167.      } // foreach
</pre><br />
<br />
There are many more of the same. I will try to compile some more examples.</p>]]></description>
    <pubDate>Tue, 22 Dec 2009 22:56:12 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/24248/#post24248</link>
    <guid>http://www.activecollab.com/forums/post/24248/#post24248</guid>
    <title>Post #2 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>As you noticed, this is really simple code that should not result in any severe errors. <br />
<br />
What type of timeout do you get (exact error message)? Execution time fatal error, memory limit error or? </p>]]></description>
    <pubDate>Tue, 22 Dec 2009 19:53:35 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/24245/#post24245</link>
    <guid>http://www.activecollab.com/forums/post/24245/#post24245</guid>
    <title>Post #1 by chrisbloom7</title>
    <dc:creator>chrisbloom7</dc:creator>
    <description><![CDATA[<p>I've started getting sporadic reports of script timeout errors when users are submitting ticket changes. The error code points to line 11 in activecollab\angie\classes\swiftmailer\Swift\ClassLoader.php, a seemingly benign line of code:<br />
<br />
<pre name="code" class="brush: php">if (!defined(&quot;SWIFT_ABS_PATH&quot;)) define(&quot;SWIFT_ABS_PATH&quot;, dirname(__FILE__) . &quot;/..&quot;);</pre><br />
<br />
I've never run into any issue with these two native functions, but I'm wondering if it might be an obscure permissions error or something. Any have any ideas?<br />
</p>]]></description>
    <pubDate>Tue, 22 Dec 2009 09:40:59 CST</pubDate>
  </item>
</channel>
</rss>
