Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After uploading any picture to the site (even in node content) - I get this message...
Warning: Parameter 1 to imagecache_profiles_file_validate() expected to be a reference, value given in module_invoke_all() (line 817 of /Applications/XAMPP/xamppfiles/htdocs/drupal-7.0/includes/module.inc)
If I upload a profile picture... it displays in that session. But after shutting down... and re-opening - the image disappears from the profile page.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1043360-hook-file-validate-reference.patch | 810 bytes | Dave Reid |
Comments
Comment #1
andypostPlease explain a steps to reproduce this message
Is it appears on user profile page or node page?
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedThe message appears on the profile edit page, but after the picture has been uploaded.
It also appears on the 'create content' page of any content type with a picture upload field... after the picture has been uploaded.
Funnily enough though... the pictures in the node contents do not disappear. Only the ones in user profiles disappear when they log out.
Comment #3
Dave ReidThis error is because the docs for hook_file_validate are wrong (see #1067650: $file is not passed by reference to hook_file_validate()). $file is an object, so there is no need to have '&$file' in the hook implementation declarations.
Comment #4
andypostThanx, fixed http://drupal.org/cvs?commit=503568