Closed (fixed)
Project:
Taxonomy Image
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Aug 2010 at 17:28 UTC
Updated:
23 Oct 2012 at 15:35 UTC
Currently, this module breaks with newer releases of Pressflow because Pressflow altered the core file_create_url() function in the following commit:
http://bazaar.launchpad.net/~pressflow/pressflow/6/revision/74.1.1#inclu...
The attached path accomplished two things:
file_create_url(). The allows the code to work with both stock Drupal and Pressflow.$image[$tid]->url for both taxonomy term images and the default image.| Comment | File | Size | Author |
|---|---|---|---|
| fix_pressflow_incompatibility.patch | 1.39 KB | brianV |
Comments
Comment #1
brianV commentedFor more info, here is discussion of the changes to the file_create_url() function in Pressflow: https://bugs.launchpad.net/pressflow/+bug/597718
Comment #2
jdelaune commentedThanks so much, was the going mad trying to figure out why it had stopped working!
Comment #3
wim leersThis patch should no longer be necessary thanks to #839282: Problems with shipped files and Drupal 6 file_create_url() behavior.
Comment #4
bibo commentedI got this problem after installing Pressflow, and have since been wasting hours to fix it. So glad I found this..
@Win Leers: Sorry, but how does that commit to the cdn-module fix this issue with taxonomy_image? :)
PS: the performance tips on your site are really great, thank you for them, and the module contributions!
Comment #5
wim leersI think I tested back then with and without the patch by brianV after #839282: Problems with shipped files and Drupal 6 file_create_url() behavior and found it working in both cases. I'm not 100% sure anymore though. You should check again if that patch is still required. Maybe #3 was a brain fart :)
@bibo: glad you like my work :)
Comment #6
bibo commentedIn any case, I can also confirm that this patch works (and saved my ass) :)
Comment #7
beanjammin commentedI also confirm that this patch worked for me. Thanks brianV!
Comment #8
naxoc commentedThis also does the trick for me :)
Comment #9
brianV commentedMarked #1043886: Module passes URL to getimagesize() instead of path as a duplicate of this one.
I can confirm that this patch is still needed with Pressflow 6.20.97 and Taxonomy Image 6.x-1.x-dev. Without this patch, Taxonomy Image is broken on Pressflow.
Comment #10
jarek foksa commentedThe patch also solves the issue for me. Tested with Pressflow 6.20.97 and Taxonomy Image 6.x-1.6.
Comment #11
j0nathan commentedSubscribing.
Comment #12
bibo commentedAn interesting turn of events: file_create_url() was changed in the last Pressflow version! See https://bugs.launchpad.net/pressflow/+bug/790092
I noticed this after some taxonomy images broke down when a large site was updated to Pressflow 6.22. Our taxonomy_image was patched with the patch in this issue, and had been working for over 6 months. We replaced our patched version with the latest dev-version of taxonomy_image, and the images started working again.
This rather complicated doublefix => site-break means that the patch shouldn't be applied anywhere. Thus I'm closing this issue (maybe not my call, but anyone can re-open if needed..).
Comment #13
sfyn commentedFor those who are having pressflow break taxonomy_image again, I have found the patch from #961834: Images have incomplete path fixes the issue.