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

I encountered a WSOD today on site of one of my clients'. Its a customized gallery page done using isotope gallery style. I was unable to upload images in the gallery (created using cms:pages). The problem is a two part problem:

1. Wheneven i uploaded an image I got a Blank page (WSOD) at the backend (Couch). So i searched the forum and reached viewtopic.php?f=4&t=8031. I made the changes in the #49 line and increased the size to 128M. The couch part started to accept image upload and save the page.

2. When i now visited the front end of the site i got the message
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16640 bytes) in /home/excelint/public_html/couch/includes/timthumb.php on line 137

I tried to revert back to 50M and the above message disappears but now a WSOD on the front end.

What do I do?

Regards,
GenXCoders
Image
where innovation meets technology
Hi,

It'd appear that even 128M is insufficient for your site's needs.
Please try setting higher values e.g. 256M or 512M.
You may even try using the following which effectively removes all limits -
Code: Select all
ini_set('memory_limit', '-1');

Does this help?
@KK Sir,

with the "-1" value i get this error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16640 bytes) in /home/excelint/public_html/couch/includes/timthumb.php on line 137
Image
where innovation meets technology
The '134217728' value reported remains the same as last reported by you, Aashish.
So, it seems the 'ini_set' method of increasing memory is not taking effect at all.

To confirm this, please place <?php phpinfo(); ?> in one of your templates and in the listed values find the value reported for 'memory_limit'. This will show exactly how much memory is available for use to your installation.

If the value does not change even after you have used ini_set('memory_limit', '256M'); or ini_set('memory_limit', '512M'); it would mean that the ini_set method does not work on your host.

You'll need to set this value directly from php.ini then. Please contact your host to help you in doing that.

Hope it helps.
@KK Sir,

If the value does not change even after you have used ini_set('memory_limit', '256M'); or ini_set('memory_limit', '512M'); it would mean that the ini_set method does not work on your host.


This i tried and the maximum limit is that of 32M on the server.

I have pmed the creds, if you could please look into it. I have no idea where what is going wrong, when i set 32M, the "Fatal Error Message" goes, but i get a WSOD!

Regards,
Aashish
Image
where innovation meets technology
Well, Aashish if your host has capped you to only 32M of memory there is little a script that needs more memory than this can do to fix things. You'll have to move to a better hosting plan.

Coming to the problem WSOD page that you PMed me, I had a look and found that the following statement used with <cms:pages> loop was needing all that memory -
Code: Select all
<img src="<cms:thumbnail gallery_image />" class="gallery-img">

I removed the <cms:thumbnail> tag and simply used <cms:show> and that seems to have fixed the problem -
Code: Select all
<img src="<cms:show gallery_image />" class="gallery-img">

I must also add here that you are using an older version of Couch.
This performance issue with cms:thumbnail had been reported (https://github.com/CouchCMS/CouchCMS/issues/15) and has since been fixed in Couch v2.0.
@KK Sir,

Sir i have got the explaination and gone through the GitHub post too... will upgrade the system to 2.0.
There is a small issue still, when i am trying to upload an image, it uploads, i select where to place the image but when i click save its returning a white screen in the couch admin panel and not saving.

Regards,
Aashish
Image
where innovation meets technology
Aashish, you'll have to get a host who can provide a decent amount of memory.
A mere 32M will not cut it, I am afraid, for any kind of image processing.
Ok Sir.
Image
where innovation meets technology
9 posts Page 1 of 1