Forum Moderators: coopster

Message Too Old, No Replies

Fatal Error

Maximum Execution Time

         

Francis

1:28 am on Mar 21, 2004 (gmt 0)

10+ Year Member



What could be the cause of this error?

Fatal error: Maximum execution time of 30 seconds exceeded in ht*p://localhost/search.php on line 7

The search.php is an included file. I get this error during the first instance the page is accessed. However, succeeding access does not procedure this error anymore.

The code for search.php (up to line 7) is below:

1. <?php include("settings.php");?>
2. <div id="Search" style="position:absolute; width:132px; height:39px; z-index:1; left: 626px; top: 3px;">
3. <table width="132" border="0" align="center" cellpadding="0" cellspacing="0">
4. <tr>
5. <form method="get" action="">
6. <td align="left" valign="baseline">
7. <input type="hidden" name="p" value="1"> <input type="hidden" name="lang" value="en">

Thanks a lot for the help... all of them.

coopster

9:39 pm on Mar 23, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I can't see anything wrong here. I would have to believe that you have something else that is causing the delay prior to this include...

Francis

12:36 am on Mar 24, 2004 (gmt 0)

10+ Year Member



Any ideas what? Could it be the installation of Apache or PHP? I am using this on a local machine with Windows XP installed.

jatar_k

12:58 am on Mar 24, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



are you sure the delay isn't coming from settings.php?

Francis

12:23 pm on Mar 25, 2004 (gmt 0)

10+ Year Member



Currently, my settings.php just contains this line:

define ("SITE_ROOT", "http://localhost/");

Could this be the cause?

Nova Reticulis

12:34 pm on Mar 25, 2004 (gmt 0)

10+ Year Member



No, you'd need a profiler to figure this out. What version of PHP?

Francis

8:52 pm on Mar 25, 2004 (gmt 0)

10+ Year Member



PHP Version 4.3.1

dreamcatcher

9:01 pm on Mar 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is interesting because a friend of mine e-mailed me this evening to say that he`s seeing the exact same message when he tries to access his guestbook script. The sign page is fine, but when he tries to view the index.php page, he gets the error. Its been fine for the last 2 months.

dreamcatcher

7:14 am on Mar 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As a follow up I have found out the problem with my friends guestbook. The guy who created it, implemented some kind of file locking process in the data files. Not quite sure about that, but I`ve downloaded the files again and replaced them and its working ok.

Nova Reticulis

3:01 am on Mar 28, 2004 (gmt 0)

10+ Year Member



Check the apache log files. You might see something interesting there.