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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andypost’s picture

Please explain a steps to reproduce this message

Is it appears on user profile page or node page?

Anonymous’s picture

The 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.

Dave Reid’s picture

Version: 7.x-1.0-rc2 » 7.x-1.x-dev
Status: Active » Needs review
FileSize
810 bytes

This 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.

andypost’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.