Closed (duplicate)
Project:
FileField
Version:
6.x-3.0-alpha3
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2008 at 10:14 UTC
Updated:
24 Aug 2008 at 18:27 UTC
Wrong callback name causes error:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'file_validate_image_resolution_help' was given in [...]/sites/all/modules/filefield/filefield_widget.inc on line 223.
Due to the error no image resolutuion help string is shown.
223 foreach ($element['#upload_validators'] as $callback => $arguments) {
224 $help_func = $callback .'_help';
Should be 'filefield_validate_image_resolution_help' instead of 'file_validate_image_resolution_help'
Is wiped out roughly by:
foreach ($element['#upload_validators'] as $callback => $arguments) {
if ($callback == 'file_validate_image_resolution') {
$callback = 'filefield_validate_image_resolution';
}
$help_func = $callback .'_help';
Comments
Comment #1
drewish commentedplease look for existing issues. This is fixed in the -dev release.