7958 Posts in 1402 Topics by 946 members
|Go to End|
11 March 2010 at 7:08am
How would I proceed to add default configuration values for thumbnail sizes and such?
I had a problem with pages on a site I did for a client that generated errors. Turned out because the configuration values were missing, it made GD crash and the page failed to load. I can manage to always set the configuration, but I would like to avoid that burden to my client, who should only have to set a page to Gallery for it to work.
11 March 2010 at 7:12am
Well looking at the code... it seems there already are default values set...
But I still get this error:
Error at sapphire/filesystem/GD.php line 123: No dimensions given (http://vaguedecirque-staging.strangeelement.com/duo-symbiose-photos-fr/)
The error thrown is in GD::resize
if(!$width && !$height) user_error("No dimensions given", E_USER_ERROR);
11 March 2010 at 8:36am
You need to set your thumbnail width. The default values don't apply unless you create the page new. It doesn't work when you convert it from an old page type.
11 March 2010 at 1:33pm
Is there a way then to catch a page type change to apply the defaults?
|Go to Top|