Hi,

when including an image from IFA (I mean when I click an image), I get this error:

warning: Parameter 2 to imagefield_assist_properties_form() expected to be a reference, value given in /var/www/karu.nl/kb/includes/form.inc on line 372.

I’ve seen messages like this before, something related to PHP 5.3?

Thanks (for a great module),
Rolf

CommentFileSizeAuthor
#2 823770_form_reference_value.patch567 bytesrolfmeijer

Comments

rolfmeijer’s picture

After consulting a great friend and programmer ;-) I managed to get a workaround.

In the module file (/sites/all/modules/imagefield_assist/imagefield_assist.module) line 1101, change &$img to $img. That’s all.

Now I’ve heard that this could infuence the memory, so it might be less efficient. But as I’m not a programmer at all, I would like to leave that to the module owner ;-).

I might try to make a patch file.

rolfmeijer’s picture

StatusFileSize
new567 bytes

Well, it seems I succeeded in making a patch. This should do.

shark’s picture

I had the same error occur after hitting 'save'. The imagefield assist popup screen also displayed "ImageField Assist Upload mypicture.jpg has been created." at the same time.

lourenzo’s picture

Assigned: Unassigned » lourenzo
Status: Active » Fixed

Solved and released on beta5.

lourenzo’s picture

Status: Fixed » Closed (fixed)