Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hello,

I had this error before, but I cannot find the way to fix it this time.

My issue:

When I try to upload photos or around 5mb, it works just fine. But once I select the photo from the file manager in Couch, and click SAVE, I instantly get a HTTP 500 error.

I have contacted my hosting service provider, and he said that verified, and that since the error is received instantly, it means that there's no memory issue (it's at 256M right now). Then he checked the server log, and nothing appears there after clicking SAVE and receiving the HTTP 500 error. He deactivated some security modules and firewall just to test it, and still not working. The file upload limit is also set at 16M by the way.

So from what the tech guy said, it must be something going wrong inside Couch, and it's not a server issue.

I have tried to replace all files with original Couch files from the latest download link available. Not working.

The tech guy asked if there was a Debug mode so he would get more info from the CMS about what is going on when clicking that SAVE button, but I said I didn't know if there was. Searched on the forum and couldn't find anything related to a Debug mode.

Any idea what is going on here?

Thanks a lot
Hi,

once I select the photo from the file manager in Couch..

I assume you are trying to select the photo into a type 'image' editable' region, right?

Once a new image is selected in that region and you press save, the region tries to process the image to make its width and height fit the specified values. Something seems to be going wrong at this point. The usual suspect is the memory because the image processing demands quite a lot of it.

Anyway, please try the following -
define an image editable region (in any of your template) using the following exact code -
Code: Select all
<cms:editable name='test_image' type='image' />

The region defined above does not specify the height and width so any image selected within it will go unprocessed.
Try selecting your problem image (the one you have been having problem with) into this region.
If the page saves fine, it would confirm my hypothesis and we can then dig further.

Let me know how it goes.
Thanks.
Hi KK,

I did what you said, and it's working just fine!
I chose a 7mb photo, and it saved without any issues.

What should we be looking at now?

Thanks a lot
To begin with, please try editing couch/includes/timthumb.php. Find line 49 -
Code: Select all
ini_set('memory_limit', "64M");

First change the '64M' to '128M'. Test saving the problem image.
If the error persists, try changing the value to '256M'.

If that does not help, please PM me the FTP+Couch access creds to your site and I'll take a look at the issue.
It worked! I changed it to 128M.
Thank you very much! :D
5 posts Page 1 of 1