regularly when imagecache images are accessed by pages I get the following warnings - which are also shown to anonymous users. I know all the options are disabled, but I don't want anonymous users to keep seeing errors about it. Can anyone tell me how to get rid of them?
warning: imagealphablending() has been disabled for security reasons in sites/all/modules/imageapi/imageapi_gd.module on line 260.
warning: imagecolorallocatealpha() has been disabled for security reasons in sites/all/modules/imageapi/imageapi_gd.module on line 261.
warning: imagefill() has been disabled for security reasons in sites/all/modules/imageapi/imageapi_gd.module on line 262.
warning: imagealphablending() has been disabled for security reasons in sites/all/modules/imageapi/imageapi_gd.module on line 263.
warning: imagesavealpha() has been disabled for security reasons in sites/all/modules/imageapi/imageapi_gd.module on line 264.
warning: imagealphablending() has been disabled for security reasons in sites/all/modules/imageapi/imageapi_gd.module on line 260.
warning: imagecolorallocatealpha() has been disabled for security reasons in sites/all/modules/imageapi/imageapi_gd.module on line 261.
warning: imagefill() has been disabled for security reasons in sites/all/modules/imageapi/imageapi_gd.module on line 262.
warning: imagealphablending() has been disabled for security reasons in sites/all/modules/imageapi/imageapi_gd.module on line 263.
warning: imagesavealpha() has been disabled for security reasons in sites/all/modules/imageapi/imageapi_gd.module on line 264.
warning: imagealphablending() has been disabled for security reasons in sites/all/modules/imageapi/imageapi_gd.module on line 71.
warning: imagesavealpha() has been disabled for security reasons in sites/all/modules/imageapi/imageapi_gd.module on line 72.
Comments
Comment #1
avpadernoYou should check your web server configuration. The GD functions are disabled on the server; there is nothing that the module can do in such cases.
The module requires the GD functions to be enabled, but that is not happening on your server.
Comment #2
mbiddlecombe commentedThat may be the case, but I cannot change the GD2 options on our hosted web server. I have been told they have been disabled to save memory.
I only used the imageapi to scale and crop, so it seems disappointing to receive warnings about features that I am not trying to use. Is there no way to suppress these warnings?
Comment #3
avpadernoI checked the function that crop an image, and the functions you reported are used by that function. In this case, you cannot do too much; or those functions are enabled on the server, or you cannot use ImageAPI.
Comment #4
drewish commented