Jump to content

Product thumbnails with IIS


Recommended Posts

Hello
Ive intsalled Prestashop on a IIS Server and everything seems to work good except a single problem:
when a customer tries to upload an image for a product ( for customization) the thumbnail generation doesnt work, due toand gives
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 100000001 bytes) in C:\inetpub\vhosts\stampadafile.it\httpdocs\images.inc.php on line 156

if a comment out this line the upload works but a new problem rises: the generated thumbnails has no extension, and IIS doesnt serve no extension files...

someone has ideas?

thanks

Link to comment
Share on other sites

It's been a while since I was on a IIS Server, but I recently had a similar error on my Apache server. I don't think this is an error with the code. I was able to figure out (at least in my case on my apache server) that it was a timeout/memory allocation issue. You may want to check you php.ini to adjust the maximum memory settings... I think I also adjusted somethings in my fastcgi settings (but I don't think that error had anything to do with error you're having above, but may be worth taking a look at).

HTH!

Link to comment
Share on other sites

  • 3 months later...

I am having the same problem. Has anyone found a solution. Any help would be appreciated.

I'm hosted on godaddy. This is my info if it helps:

Operating System: Windows Hosting
Type: Shared Hosting Hosting Configuration:
.Net Runtime Version: ASP.Net 2.0/3.0/3.5
PHP Version: PHP 5.x
IIS Version: IIS 7.0

see attachment.

30881_2AJX3n8CeuE83KTjHMD4_t

Link to comment
Share on other sites

So I figured it out.

From what I understand, the problem is with IIS 7 and MIME types. IIS 7 will only serve certain files with certain file extensions. You can edit this on the server side to accept file extensions not already included.

The problem is:
1. With Godaddy you do not have access to configure IIS 7.
2. The thumbnail file generated does not have a file extension.

This is my solution:
1. Copy and paste the following code in a text editor:









2. Save as "web.config" (without quotations)(Encoding UTF-8).
3. Upload to the root directory of your PrestaShop.

By using wildcards this tells IIS to serve all file extensions including files without extensions.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...