Closed (fixed)
Project:
ImageCache
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2008 at 01:43 UTC
Updated:
28 Jun 2008 at 02:34 UTC
Jump to comment: Most recent file
Here's a port of the core functionality for ImageCache, accompanied by a port of ImageAPI (http://drupal.org/node/232623). There are likely to be some bugs, still, and display of action settings in the preset table are borked because of the new need for hook_theme() -- I think it makes sense just to make those settings functions callbacks rather than theme functions, as there's no real use case for overriding them.
CCK Formatter integration is still unfinished, but other than that it should be ready to check out.
| Comment | File | Size | Author |
|---|---|---|---|
| #56 | imagecache_d6-upgrade_232624-56.patch | 52.96 KB | add1sun |
| #48 | imagecache_232624.patch | 55.63 KB | drewish |
| #45 | imagecache-6.0.tar_.gz | 17.35 KB | deciphered |
| #41 | HEAD-may-20.patch | 51.39 KB | Steve Dondley |
| #39 | imagecache-6.0-232624-3.patch | 53.95 KB | deciphered |
Comments
Comment #1
eaton commentedAlso, page titles for sub-pages are janky. Need to move the title-setting code from the menu hooks to the individual pages.
Comment #2
eaton commentedWhee, here's a version that fixes the menu title funkiness. It uses some of the slightly crazy menu loading magic to translate the titles, and so on.
Comment #3
eaton commented(Oh... and the imagecache preset form, where actions can be re-ordered, now uses tabledrag.js to avoid the ugly weight fields).
Comment #4
eaton commentedWhoops. Missed a couple menu titles.
Comment #5
drewish commentedI'm having problems getting this to work. The files aren't being created and I'm not quite sure where the problem is. It's a new host and a new 6.x install so it might be something as stupid as file permissions or a screwy .htaccess. While trying to debug it I came across one other thing.
Looking at the preset settings (e.g. admin/build/imagecache/preset/1) I'm noticing that the 'Settings' column is empty. imagecache_ui_preset_form() is setting:
which leads me to think that the theme function isn't being registered correctly. Looks like we need to add:
theme_imagecache_resize and the contents of imagecache_actions.inc to image_cache_theme().
Once I figure out my issue I'll look at updating this patch.
Comment #6
drewish commentedwhen i enable private files imagecache works, with public files imagecache_cache() never gets called. i can't say that it's not a problem with my server and mod_rewrite though.
the attached patch add the theme functions to imagecache_theme().
Comment #7
eaton commentedThanks! I can't help but think that the theme functions might be overkill in the D6 model; why not make them a callback defined in the action structure, given the fact that they are only displayed in the administration table?
Comment #8
drewish commentedeaton, probably right about not needing the full theme functionality... a call back sounds like the right approach. if there's a usecase for changing the callback we can just send the actions through a call to drupal_alter() so other modules can hack on them.
Comment #9
freakx0 commentedCan anybody provide the complete files? i've build the new files with the patches, but the module doesn't work :-(
Comment #10
drewish commentedfreakx0, what didn't work? also, did you try private file transfers?
Comment #11
drewish commentedjust wanted to note that turned on public file transfers to test it out again and it was working.
Comment #12
drewish commentedit turns out that it's not working quite right, the images are only created when private file transfers are enabled but will be served correctly in either mode.
Comment #13
drewish commentedfixed the menu access to be compatible with D6.2.
Comment #14
drewish commentedforgot to fix the access in imagecache_ui.module...
Comment #15
drewish commentednow that quicksketch has a patch for imagefield i started working on getting the field formatters updated. the as link to the node doesn't work yet because i can figure out where to find the node id.
Comment #16
drewish commenteddefault formatter wasn't working...
Comment #17
Boletus commentedWhich version should I check out and apply the patch to? I will try to test this imagecache6 with the imagefield patch6_5.
Was the private/public file transfer issue solved?
Comment #18
siliconmind commentedcan someone please provide patched file for drupal 6.2? this patches get quite messy - complete download would be extremely helpful for non full time developers ;)
Comment #19
benpjohnson commentedThanks for this one guys it's working a treat for me with imagefield at the moment.
To anyone reading please note that the current HEAD copy of the module has been updated since this patch was started which causes some nasty breakages if you try to apply the patches to them. I am reluctant to attach a full fileset for the module as it will likely be out of date almost as soon as it is attached.
Instead here's how you get it to work:
rejoice in the imagecache goodness
Comment #20
dopry commentedjust a note... I won't be supporting merged code sources from unofficial releases.. I really suggest you only use the 6.x port if you're really comfortable with the code... I'm still working on 5.x-2.x in HEAD and it will be a moving target until I'm done.
Comment #21
siliconmind commentedwell, it seems like March 11th, 2008 rep is empty. i've used latest one but patching gave me quite few errors :/
Comment #22
fanta commentedno joy with patching
take it that from the above post the version patched against is no longer available from the cvs?
any change of putting up already patched version
or if not the module version itself that needs to be patched
thanks
Comment #23
psynaptic commentedI would also like to test this port.
Comment #24
drewish commentedtotally untested re-roll...
Comment #25
psynaptic commentedThanks drewish, the patch worked perfectly.
When I visit admin/build/imagecache, none of the links (edit, remove, flush) seem to do anything other than changing the URL to admin/build/imagecache/preset/1.
Comment #26
drewish commentedpsynaptic, thanks for the testing looks like i'd accidentally removed one of the menu wildcard loader functions thinking it was unused. moved it from imagecache.module to imagecache_ui.module and updated the name accordingly.
please keep banging away at it.
Comment #27
antiorario commented[don't mind me, just subscribing]
Comment #28
siliconmind commentedlol, drewish your patch is already out of date. 8 hours ago cvs got updated. please provide full patched module. original sources change so fast that we won't be able to patch them anyway :(
Comment #29
psynaptic commentedI'd say just an updated patch would be good.
Comment #30
drewish commentedhere's a re-roll... i won't post full versions of the module. patches are pretty simple to apply and if you're not comfortable enough to get the patch applied you probably shouldn't be messing with beta code. because you can always get old versions out of cvs.
Comment #31
siliconmind commentedthanks.
it's not that i'm uncomfortable with patching. it's not a problem. the real issue was that every time i've came to this thread your patches turned out to be already outdated :)
anyway thanks for re-roll this time i've made it on time ;)
i hope we'll get new 6.x branch soon because this module is almost a must-have for every site.
Comment #32
fanta commentedpatch goes ok
but get blank screen on the next page after enabling imagecache module
would I be right in thinking its something to do with permission issues?
Comment #33
drewish commentedmikehh, well assuming you installed imageapi and applied the D6 patch, pull php's error log and provide some detail. what was the error message?
Comment #34
drewish commentedfixed a problem with the requirements checking. on a clean i'd tried enabling imagecache_ui and imageapi_imagemagick thinking it would detect the dependency and enable the required modules... didn't quite work. i got a fatal error because imagecache_requirements() was calling imageapi_get_available_toolkits() which wasn't defined. i tried changing it so that if the function was not defined i returned a requirements error which worked better but caused a new problem: trying to enable the same two modules sort of worked, imagecache_ui was enabled but listed with a missing dependency and imagecache was disable but the checkbox to enable it was disabled. the simplest fix was to just make the toolkit a runtime requirement just like the imagecache_directory checks.
Comment #35
jdblank commentedwhich version of imagecache should this patch be applied to? I have gotten errors on the versions i have tried applying it to.
Comment #36
encho commentedSubscribing.
Comment #37
decipheredNew Patch:
- Updated to HEAD
- Modified hook_theme() and imagecache_field_formatter() so that Imagecache now works with Views in 6.2 - needs further testing.
Possible bugs:
- Cache may need to be flushed each time a new Imagecache preset is added/renamed for Views support.
Comment #38
decipheredUpdated Patch:
- Updated two l()'s from 5.x style to 6.x style
Comment #39
decipheredUpdated patch:
- Runs drupal_rebuild_theme_registry() after new Preset is defined.
Comment #40
yan commentedsubscribing to know what's going on
Comment #41
Steve Dondley commentedUntested patch against latest version of 5.x dev (may 20)
Comment #42
Vigile commentedI tried this, patch applied successfully but it still shows up as "incompatible" with my Drupal 6.2 installation.
I've actually been trying all day to get some version of ImageCache working on Drupal 6.
If anyone can help that would be awesome!
Comment #43
Steve Dondley commentedWhat version are you patching against? You have to patch this against HEAD.
Comment #44
Vigile commentedRight, that's what I was trying:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/imagecache/
And I have tried these patches:
http://drupal.org/files/issues/imagecache-6.0-232624-3.patch
http://drupal.org/files/issues/imagecache_232624_7.patch
http://drupal.org/files/issues/imagecache_6_0.patch
None of them complete cleanly. Which one SHOULD I be using at this point?
Comment #45
deciphered@Vigile,
Download every file from: http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/imagecache/...
Use the patch I posted at #39
I just did this myself and it patched perfectly. I can also confirm that it works enough to play with on a development site.
Edit: To make things a bit easier for you I have attached a working version that I just patched from HEAD seconds ago, hope this helps with testing.
@Steve Dondley
I looked at your patch briefly can confirm that it will not work as it is missing some crucial information in the .info file.
Is there anything in your patch that mine does not have?
Comment #46
Steve Dondley commented@Deciphered
Right, my patch only covers the .module file. An oversight on my part.
My patch was created with your patch from #39. Your patch did not apply cleanly because HEAD had moved. So I patched in the failed hunks manually. If I recall, one of the hunks was just thrown away because it wasn't needed any longer.
Comment #47
Vigile commented@Deciphered - That got it working - many thanks! I'll play around and see how it goes!
Comment #48
drewish commentedjust to keep everyone on the same page, here's a re-roll of Deciphered's last patch. it seems to be working pretty well for me.
Comment #49
mrgoltra commentedsubscribing
Comment #50
jbrauer commentedApplied and tested #48 and it seems to work pretty well.
Comment #51
webchickSounds like we might be inching towards RTBC?
dopry, I see that a stable release of 5.x-2.x is out now. Does that mean the majority of your changes are complete, or are you still doing some refactoring there?
Comment #52
mo6subscribing to this valuable effort
Comment #53
designerbrent commented...
Comment #54
webchickHm. This patch doesn't apply against 5.x-2.x, and it looks like that's where active development is going on (last commit in 5-x-2.x was 8 days ago vs. 2 weeks ago in HEAD).
Comment #55
Steve Dondley commented@webchick, try my patch at #41 (does not patch install/info files though).
Comment #56
add1sun commentedHere is a working patch against 5--2.
Comment #57
nexus246 commentedsubscribing...
Comment #58
dopry commentedfollowup #56 committed to HEAD... I'll be doing some follow up fixes... Create new issues for head if it's broken now, but give me a day to work some kinks out.
Comment #59
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #60
flickerfly commentedsub
Comment #61
thechraveler commentedsub
Comment #62
afox commentedSubscribing
Comment #63
drewish commentedseriously... why are you people subscribing to a closed issue when there's a D6 release available for testing?
Comment #64
encho commentedI guess for 2 reasons:
1. they are not aware of it
2. they want latest news - that version is in head, not even dev yet
Anyway, you're right - there should be another issue about latest development and link to it posted here.
Comment #65
flickerfly commentedI'm subscribing because in the web 2.0 world I've become quite accustomed to having information I want come to me rather than continually searching until the answer becomes available and this seem to be the most likely place for that answer to show up. If someone creates another issue to track the release of an RC or whatever I'm sure you'd see a mass sub on that issue as soon as it is posted here. Basically, yeah, encho is right on #2.
There is also probably a bit of fatigue in all the testing of all the different module going through D6 release. Seems like everyone needs testing to get the bugs out and I only have so much time. Just keeping track of the ones I want to watch is keeping me on my toes.
Comment #66
randal-1 commentedseriously... why are you people subscribing to a closed issue when there's a D6 release available for testing?
This link above is to a head version from 2006.
Is there to be a full 6.0 release of this?
Comment #67
rmiddle commented#66 Head tar regenerates every 12 hours so even though head was created in 2006 it has the most current testing version. It the case of my posting it would be.
Last updated: June 24, 2008 - 19:04
Thanks
Robert
Comment #68
drewish commentedflickerfly, the thing is the issue is marked closed that means that there won't be any further activity on here. any further bug fixes will happen in separate issues. so at this point subscribing is just creating noise for everyone else.
Comment #69
drewish commentedi got dopry to create a release for 6.x: http://drupal.org/node/275934 so please stop posting on this issue it's closed for a reason.
Comment #70
flickerfly commented@drewish: I understand it's closed; however, it was closed automatically and issues do get re-opened sometimes. The thing is, from my perspective the system is broken and this is the best possible solution which seems to work fine for a number of other contrib modules. If something happens, I want to know. If people subscribing to these things bother you, then please work on one of the issues related to handling notifications in a better way so that it doesn't spam everyone just for a 'sub' message. http://drupal.org/node/34496 I think that would be a great benefit to the community. I note your other contributions including contrib modules. Thank you for that, seriously.
Putting the link to the release on the project page still means I have to come looking at this and a bunch of other module pages in a regular rotation each time I want to find out if I can build a D6 site and promote it to production using this module. That's messed up and wasting community resources looking for things. I'm no coder, but I'd be much happier spending the time trying to figure out how things work and writing documentation than making the rounds yet again.
If there is a better way to get the information I need to come to me, please let me know. I don't like this method either. I've looked and I just can't find anything better.