Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 07-29-2009 09:20:23

RobH
Member
Registered: 02-12-2009
Posts: 117

Fatal error: Maximum execution time of 120 seconds exceeded...

Hi Guys,

I've had some custom work done to allow exports of customer invoices from Sage into CCP6 (for the purpose of automatically updating the cart based on order status), problem is I'm getting this error, no doubt due to the size of the upload file. Unfortunately every invoice from Sage has to be uploaded each time due to Sage's shortcomings. I'm trying to find where I can alter this timeout setting, I assumed php.ini but there is no timeout setting with a value of 120 seconds. I've also changed the IIS http timeout properties for the website in question - this was set to 120 secs by default but changing the value has made no difference. It's the latest version of CCP6 (UK) running on a Windows 2003 web edition server.

Any suggestions appreciated.

Cheers

H

Offline

 

#2 07-29-2009 09:27:19

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Fatal error: Maximum execution time of 120 seconds exceeded...

When you reset the time for the IIS http did you reboot the server, I think that you would have too to get the new time setting active.

John

Offline

 

#3 07-29-2009 10:42:24

RobH
Member
Registered: 02-12-2009
Posts: 117

Re: Fatal error: Maximum execution time of 120 seconds exceeded...

Hi John, I have to admit I haven't tried that yet, I restarted the website in IIS assuming that would be all that was required. I'll give the reboot a try later on.

Cheers

H

Offline

 

#4 07-29-2009 11:44:18

RobH
Member
Registered: 02-12-2009
Posts: 117

Re: Fatal error: Maximum execution time of 120 seconds exceeded...

Ok, I've tried rebooting but it has made no difference, the timeout setting must be coming from elsewhere, I'm stuck for where else to check :-(. Is there anywhere else that php5 might get its defailt from other than the php.ini? I'm no expert as you can tell ;-)

Cheers

H

Offline

 

#5 07-29-2009 14:18:30

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Fatal error: Maximum execution time of 120 seconds exceeded...

Run phpinfo and find out exactly where the ini file is being read from and its name.  If there isn't a setting in the ini file add one with the value you need.

Offline

 

#6 07-30-2009 05:58:31

RobH
Member
Registered: 02-12-2009
Posts: 117

Re: Fatal error: Maximum execution time of 120 seconds exceeded...

Everything looks fine in phpinfo, I can't see any default timeout value of 120 in the active php.ini.

Dave, I'm not sure what value to add, I'm not getting any debug info as the upload is failing.

The offending line in the upload script appears to be

// Get xml data from php input stream
$xmlInput = file_get_contents("php://input");    // Represents HTTP POST Stream

Don't know if this gives a clue or not :-(

Cheers

RobH

Offline

 

#7 07-30-2009 06:15:02

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Fatal error: Maximum execution time of 120 seconds exceeded...

You don't see a value for  in the output of phpinfo?

I don't have a clue where that line may be coming from but it isn't CCP smile

Offline

 

#8 07-31-2009 08:42:07

RobH
Member
Registered: 02-12-2009
Posts: 117

Re: Fatal error: Maximum execution time of 120 seconds exceeded...

Ok thanks Dave.

The issue has been identified as a php problem, some changes have been made that break the upload data down into smaller chunks, this has resolved the timeout by avoiding the issue rather than fixing it.

Cheers

H

Offline

 

Board footer