Page 1 of 1

CGSmartImage throws php error – found why

Posted: Sun May 17, 2020 2:19 pm
by reinhardmohr
Hi,
I struggled on this problem, found the error described a few times on this forum, but no solution. So I decided to post it here.

I used CGSmartImage the first time – and was impressed what it can do. Thanks for making it!
But it also resulted in an error at one point:
CGSmartImage/action.default.php on line 44
plus something on php memory limit.
I checked the hoster: Ample php memory.
And I checked CMSms system information:
Bildschirmfoto 2020-05-06 um 16.18.37.png
I could only get it fixed when I finally found a mention in the CMSms documentation:
[url]]https://docs.cmsmadesimple.org/installa ... imit_range[/url
So I added this line to my config.php:

Code: Select all

ini_set("memory_limit", "256M");
Now CMSms system info showed no longer -1. But 256M.
And CGSmartImage worked like a charme!

I hope this helps people who run into the same problem as I did.
Thanks for making CMSms and for all the great modules!

Reinhard

Re: CGSmartImage throws php error – found why

Posted: Sun May 17, 2020 2:36 pm
by velden
Thanks for sharing!