I have followed the install instruction, I get the following error when I upload an image on a Image crop field.

PHP Fatal error: Only variables can be passed by reference in /var/.../modules/imagefield_crop/imagefield_crop.module on line 215, referer: http://www.....com/node/40/edit

My system:

Drupal 5.5
Database schema Up to date
File system Writable (public download method)
GD library bundled (2.0.28 compatible)
JQuery is 1.1.2
MySQL database 4.1.16
PHP 5.0.4
Unicode library PHP Mbstring Extension
Web server Apache/2.0.54 (Fedora)

Thanks for your help.

Paul

CommentFileSizeAuthor
#1 217901-yh.patch895 bytesyhager

Comments

yhager’s picture

Assigned: Unassigned » yhager
Status: Active » Needs review
StatusFileSize
new895 bytes

Please apply the attached patch and let me know if it fixed it.

Thanks for reporting.

paulhudson’s picture

Thank you for the quick reply yhager,

I tried the patch and it works!

Could you tell me what causes this problem? Also, when ever I try to apply a patch with 'Cygwin' it starts to patch but then reports this:

patch unexpectedly ends in middle of line
Hunk #1 succeeded at 212 with fuzz 2.

I had to apply this patch manually, which is fine because its small but I wondered if you knew what this error meant. (It's not really your obligation to answer my endless curiosities though.) ;-)

Many thanks,

Paul

yhager’s picture

Status: Needs review » Fixed

Committed. Thanks for testing.
I assume the problem was caused by the fact that different PHP versions behave differently.

You might have tried to apply the patch on a different version of the file than the one I created the patch with. You might find more info at http://drupal.org/patch. BTW, if 'Hunk #1 succeeded', it means that it did not apply cleanly, but it was applied eventually..

Anonymous’s picture

Status: Fixed » Closed (fixed)

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