image_example_colorize_effect() logs an error message using the following code.
if (!function_exists('imagefilter')) {
watchdog('image', 'The image %image could not be colorized because the imagefilter() function is not available in this PHP installation.', array('%file' => $image->source));
return FALSE;
}
The used placeholder is %image but then the '%file' index is provided in the array passed as second argument for watchdog(). The array index should be '%image', or the logged error will literally be The image %image could not be colorized because the imagefilter() function is not available in this PHP installation. where the placeholder is not replaced.
image_example_colorize_effect()logs an error message using the following code.The used placeholder is
%imagebut then the'%file'index is provided in the array passed as second argument forwatchdog(). The array index should be'%image', or the logged error will literally be The image %image could not be colorized because the imagefilter() function is not available in this PHP installation. where the placeholder is not replaced.