06-03-2010 02:27 PM
The Edit Contact Sample Code .PHP does not work, registration of contacts is working, but when I try to update an existing contact, the error occurs:
The FastCGI Handler was unable to process the request.
- The FastCGI process exceeded configured request timeout
- Error Number: 258 (0x80070102).
- Error Description: The wait operation timed out.
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
This is the link to the form
Please help me
06-08-2010 08:40 AM
I am not familiar with FastCGI, and I unfortunately cannot comment about what potential issues that this may cause. I have tested the PHP sample pack on both my web server as well as WampServer installed on my own computer, and have been able to successfully edit/update contacts without an issue.
However, we have noticed that depending on your server configuration, the PUT statement may hang and eventually time-out. This is likely due to an issue with your cURL installation and can most likely be resolved by changing the cURL method option used in cc_class.php (line 115) as seen below:
curl_setopt($ch, CURLOPT_PUT, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
This has resolved every report of this that we have taken. However, if you are still experiencing problems please let us know and I would be happy to look in to this further.
03-23-2012 12:01 PM
Thanks for the info, we are having the same issue. Your fix below did take care of the Error 500 we were getting however it is not updating constant contacts information.
Any other thoughts on how to fix this issue?
03-23-2012 02:36 PM
Are you using the PHP sample forms found here on the developer site? I'd like to know if you can pass any actions successfully through the forms, or if updating the contact is the only action that's not woring for you.
03-23-2012 02:54 PM
We are using the sample forms however it is a bit older version 1 of cc_class.php.
The updating is the only funtion that is not working. Adding contacts is fine but updating or removing subscriptions is an issue.
03-23-2012 04:38 PM
I would recommend updating to version 2 of cc_class.php, which is part of the current version of sample forms, as version 1 likely contains some depracated code which might be contributing to your update issues. We'll be making some additional updates to sample forms this year as well, so look for that in the coming months as well.