Closed (fixed)
Project:
Imagefield Crop
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Feb 2008 at 01:37 UTC
Updated:
19 Feb 2008 at 10:41 UTC
Jump to comment: Most recent file
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
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 217901-yh.patch | 895 bytes | yhager |
Comments
Comment #1
yhager commentedPlease apply the attached patch and let me know if it fixed it.
Thanks for reporting.
Comment #2
paulhudson commentedThank 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
Comment #3
yhager commentedCommitted. 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..
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.