Jump to content

1.6.0.9 - 1.6.0.11 Internal Server Error when viewing pictures


Recommended Posts

*I have fully backed up my old site*

 

Everytime I try to view an attachment image from a customer using the contact block, I get an internal server error. 

 

The URL is correct as I check to see if the image exists via FTP, but when trying to actually view it from within back office -> error.

 

Any ideas why this is happening?

Link to comment
Share on other sites

Try enabling error reporting (read my signature) and see if it spawns an error

 

Hi Nemo :)

 

It throws an error already so enabling error reporting wouldn't make much difference.

 

I tried it anyway and unfortunately, no extra error information was given.

 

Do you have any more suggestions?

 

Thank you

Link to comment
Share on other sites

 

Hm, it might be a permission issue in any case (error 500 is generic, prestashop spawns that to avoid displaying specifc information when error reporting is disabled)

Try checking folder permissions

 

Hi Nemo,

 

Ah, I didn't actually know that!

 

The folder permissions is set to 755 on the uploads folder. Is this correct?

Edited by proevilz (see edit history)
Link to comment
Share on other sites

It should be. Hm... try, for testing purposes only, setting it to 777. If it doesn't work, set it back
Also check the htaccess there
 

<IfModule mime.c>
RemoveHandler .php .phtml .php3 .php4 .php5
RemoveType .php .phtml .php3 .php4 .php5
</IfModule>
php_flag engine off
 
 
SHould be like this
Link to comment
Share on other sites

 

It should be. Hm... try, for testing purposes only, setting it to 777. If it doesn't work, set it back

Also check the htaccess there

 

<IfModule mime.c>
RemoveHandler .php .phtml .php3 .php4 .php5
RemoveType .php .phtml .php3 .php4 .php5
</IfModule>
php_flag engine off
 
 
SHould be like this

 

 

Setting it to 777 didn't resolve it and the .htaccess is identical to what you posted.

 

Strange problem I have isn't it...

Edited by proevilz (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

Hello,

 

I am having the same problem.  Has anybody figured out a solution to this problem yet?  

 

When clicking on the attachment link from a customer service request sent by a customer, I too get the 500 Internal Server Error problem.  

 

Thanks,

Mike

Link to comment
Share on other sites

Same as above, did you check with your hosting if you already tried changing permissions?

 

 

Hello,

 

I am having the same problem.  Has anybody figured out a solution to this problem yet?  

 

When clicking on the attachment link from a customer service request sent by a customer, I too get the 500 Internal Server Error problem.  

 

Thanks,

Mike

 

I contacted my hosting provider and they said this :

There was a php_flag line in the .htaccess file which we don't support as we don't run PHP as DSO - I've commented it out and the images load now.

 

Perhaps it's the same with your host?

 

And thanks Nemo for your support.

Link to comment
Share on other sites

I resolved the problem on my website too per the php_flag line change in the .htaccess file in my /public_html/upload/.htaccess directory.  Since there are many .htaccess files on the system, I included the path here for anybody's future reference.  

 

Here is a copy of my .htaccess file prior to my change:

 

<IfModule mime.c>
RemoveHandler .php .phtml .php3 .php4 .php5
RemoveType .php .phtml .php3 .php4 .php5
</IfModule>
php_flag engine off
 
Here is a copy afterward (php_flag line commented out):
 
<IfModule mime.c>
RemoveHandler .php .phtml .php3 .php4 .php5
RemoveType .php .phtml .php3 .php4 .php5
</IfModule>
# php_flag engine off
 

Thank you all for your help.  I am sure there are several users out there that may not be as technically savvy as some so that is why I wanted to include the path to which .htaccess file was modified.  I know my server has something like 25 instances of .htaccess files.  I hope this may possibly help someone else down the road.   :D

 

Thanks again,

Mike

  • Like 1
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...