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!?!

Comments

quicksketch’s picture

Hi 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?

quicksketch’s picture

Title: File paths disrupted upon database update. » File paths incorrect when Drupal is installed in a sub-directory
Status: Active » Fixed
StatusFileSize
new1.03 KB

Okay, 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!

z33k3r’s picture

Sounds great! ...now about patches... how would I implement that?

quicksketch’s picture

http://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 "+".

z33k3r’s picture

Title: File paths incorrect when Drupal is installed in a sub-directory » File paths disrupted upon database update.
Status: Fixed » Reviewed & tested by the community

Yeah, just did that. Patch fixed the issue at hand. Thanks for the prompt attention!

quicksketch’s picture

Title: File paths disrupted upon database update. » File paths incorrect when Drupal is installed in a sub-directory
Status: Reviewed & tested by the community » Fixed

Updating title to reflect cause of issue.

redribera’s picture

Thanks a lot!
Same problem solved.
Nice Filter, and nice Patch !

danieleboyo’s picture

Had the same problem, and the patch worked perfectly (minus a few cygwin issues). Thanks a lot!

daniele - evolving web

quicksketch’s picture

I'll put up a 1.3 release since I haven't heard of any other problems in the 1.2 version. Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -Image Resize Filter, -Duplicate Paths

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