Jump to content

CGI Error : The specified CGI application misbehaved by not returning a complete set of HTTP headers.


Recommended Posts

I'm running Prestashop 1.0.0.8 now, I've been using Prestashop since version 0.9.7 for my online shop.

Thank you for Prestashop, it's really made my business gaining higher interest day by day (maybe its time for me to donate).

Last week I remove files inside "../smarty/compile" manually. I dont know if it would affect the logs. Now all my customers cannot login neither register because there is CGI error :
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

I have CHMOD 777 to the folders. I'm able to enter backoffice, but in catalog, everytime I click on Submit buttons the CGI error message showed up. I contacted my hosting provider, they said the server's running normally.

Can someone give me their best advice. I'm not intend to reinstall Prestashop because I have input almost a thousand products in there and hundreds of customers. I wonder if there is anyone in this community who uses prestashop actively for along time and having similar problem.

I really don't understand these kinda thing. Your help is much much appreciated.
:down:

Link to comment
Share on other sites

Wow.. it's been a week.
No one in this community can help me

My suggestion to you all is : Never run Prestashop under IIS webserver because Prestashop uses PHP, PHP is natively work for Linux so choose only Linux hosting for Pestahop or else.. you will find the exact problem as I am in future days

This error also occured in many opensource software :down:
I browsed google and yes.. latest version of PHP is not ready for IIS

This is from microsoft :
here are the details from Microsoft,

-=-=-=
SYMPTOMS
When you run Common Gateway Interface (CGI) applications on a fast computer, you may receive the following CGI error message:

The specified CGI application misbehaved by not returning a complete set of HTTP headers from time to time

This error message may not appear for every request to the CGI application. This problem is more likely to occur on a fast multi-processor computer that is running Microsoft Internet Information Services (IIS) 5.0 and IIS 6.0.

RESOLUTION
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Windows Server 2003 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/default...1;LN];CNTACTMS

Link to comment
Share on other sites

I am not familiar with IIS and php but a little reading here
http://be2.php.net/manual/en/install.windows.iis.php
and here
http://support.microsoft.com/default.aspx?scid=kb;EN-US;884764
give no indication that IIS and PHP5 can not cooperate. In fact the same error occurs on PHP4 installations also so it seems more a problem of not having setup everything correctly.
I wish I could give you a more direct solution but these kind of problems are hard to tackle without access to the whole installation environment.

Link to comment
Share on other sites

Is there anything in the smarty/compile directory now? i.e. can it still write compiled versions in there? If not then that could be the problem ans you'll need to look at allowing the cart to write to that folder. It appears that the pages the front office is sending are malformed which would suggest that smarty isn't working correctly since you deleted the files.

Paul

Link to comment
Share on other sites

Is there anything in the smarty/compile directory now? i.e. can it still write compiled versions in there? If not then that could be the problem ans you'll need to look at allowing the cart to write to that folder. It appears that the pages the front office is sending are malformed which would suggest that smarty isn't working correctly since you deleted the files.

Paul


Hi Paul C!

Before the CGI error, my front page went blank with this error message :
Categories
PHP Fatal error: Maximum execution time of 60 seconds exceeded in ...\pretashop\tools\smarty\internals\core.write_file.php on line 27



I found that my shop will compile each time when access and write the compiled file to ...\prestashop\tools\smarty\compile. I have granted the write permission for php application, but modify permission was not granted on that folder. So my shop keep on writing the compiled file to that path without deleting the old ones. ...\prestashop\tools\smarty\compile contains more than 60000 files and caused the timeout issue.

So I removed the old files in ..\store\tools\smarty\compile manually.

??

Link to comment
Share on other sites

For this error:

Categories
PHP Fatal error: Maximum execution time of 60 seconds exceeded in ...\pretashop\tools\smarty\internals\core.write_file.php on line 27

Increase Maximum execution from apache, restart apache and you are done...

Link to comment
Share on other sites

  • 9 months later...
×
×
  • Create New...