What I am using:
- Drupal 6.12
- Pathauto 6.x-1.1
- FCKeditor 6.x-1.3 with CKfinder
- Image Resize Filter 6.x-1.2
What happened:
First off, the filter works amazingling well; or it was. There was an update notice to go from 1.1 to 1.2 so I took the bait.
Update went successful and then Drupal told me that there were some database updates to be done, so again, the hungry fish that I am, took the bait.
After the database update, I got the following message, "Previously resized images may have been missing file names. The currently resized images have been flushed."
Result
Any existing image paths now have a duplicate base directory (ie: url/base/base/directory_to_resize). I uninstalled the module, then reinstalled; same result. Un/reinstalled with clearing caches; same result. Uninstalled, cleared caches, deleted all the pictures from nodes, cleared caches, reinstalled module, re-added images; same result.
If the image is not resized, it works fine without issue. If I turn off the Image Resize Filter in the Input Formats admin area, images scale fine... but if I re-enable the Image Resize Filter, image paths are destroyed again...
Please help!?!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | image_resize_filter_subdirectory.patch | 1.03 KB | quicksketch |
Comments
Comment #1
quicksketchHi z33k3r, thanks for the report. The following information will help me determine the source of the problem:
- Is your site installed in a sub-directory? What's the actual URL of the site?
- Visit admin/settings/filters, click "configure" on an input format that has Image Resize Filter enabled, then click the "Rearrange" tab. What filters are enabled and what are their weights?
- Could you post an actual example of what the original path and the incorrect path are?
Comment #2
quicksketchOkay, nm. I found the source of the problem easily enough. The 1.2 version introduced a bug that would cause sites installed under a sub-directory to not work. I've committed the attached patch that should fix the problem. I'll get out a 1.3 version this week. Please let me know if you have any other problems with the current version after applying this patch so that I can fix them also before the next release. Thanks!
Comment #3
z33k3r commentedSounds great! ...now about patches... how would I implement that?
Comment #4
quicksketchhttp://drupal.org/patch/apply
Or to do it manually just remove the lines that have "-" in front of them and add the ones that have "+".
Comment #5
z33k3r commentedYeah, just did that. Patch fixed the issue at hand. Thanks for the prompt attention!
Comment #6
quicksketchUpdating title to reflect cause of issue.
Comment #7
redribera commentedThanks a lot!
Same problem solved.
Nice Filter, and nice Patch !
Comment #8
danieleboyo commentedHad the same problem, and the patch worked perfectly (minus a few cygwin issues). Thanks a lot!
daniele - evolving web
Comment #9
quicksketchI'll put up a 1.3 release since I haven't heard of any other problems in the 1.2 version. Thanks!