PDA

View Full Version : Is my requst timing out?


fcmisc
06-06-07, 23:25
Using the following php code, I sometimes get get the error listed below.

PHP CODE:
$oClient = new api_client();

$aGetProductList = array('iCategoryId'=>235,
'sSort'=>'popular',
'bIncludeDescendants'=>0,
'iOffset'=>0,
'iLimit'=>50
);

$oSearchProduct = $oClient->call('getProductList',$aGetProductList);

ERROR:
warning: Invalid argument supplied for foreach() in
PATH/includes/soap/classes/class.php4Client.php
on line 113.

I have a feeling this is because the WSDL request is timing out.

How can I resolve this? If my feeling is correct, how can I increase the timeout?

authcode
07-06-07, 08:38
I've had a few of those - it's definately a problem on the SW end because that loop deals directly with the feed data before anything else gets it. I don't know the answer to your question about timeouts but I just supress soap and php errors to avoid the error message and hope that the user just refreshes the page. I'd love a better solution though, or at least a better explanation.

amarath
07-06-07, 23:32
Hi Guys,

Ive bought this to the attention of our lead developer on Client Software.

Once he has taken a look I will update this thread.

Cheers

Amo

digitalwindow
12-06-07, 09:52
Hi Guys,

Quick Update for you:

http://www.shopwindowforum.com/showthread.php?t=208


Cheers

Amo