CGSmartImage throws php error – found why

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
reinhardmohr
Forum Members
Forum Members
Posts: 112
Joined: Sun Aug 06, 2006 2:36 pm
Location: Munich, Germany

CGSmartImage throws php error – found why

Post 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
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: CGSmartImage throws php error – found why

Post by velden »

Thanks for sharing!
Post Reply

Return to “Modules/Add-Ons”