Disabling the module and then uninstalling produces the following error in watchdog log three (3) times.
Location http://domain.com/admin/build/modules/uninstall/confirm
Referrer http://domain.com/admin/build/modules/uninstall/confirm
Message uasort() [function.uasort]: The argument should be an array in /var/www/domain.com/beta/sites/all/modules/imagecache/imagecache.module on line 259.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | imagecache-536608-9.patch | 487 bytes | c4rl |
Comments
Comment #1
fizk commentedPlease reopen if this is still an issue with ImageCache 6.x-2.0-rc1.
Comment #2
Jorrit commentedWith ImageCache 6.x-2.0-rc1 I get an error upon installation that looks like the error from this issue:
It looks like
imagecache_action_definitions()needs something like$actions = array();around line 278.Comment #3
fizk commentedFixed in dev. Thanks!
Comment #4
Jorrit commentedThanks for the quick fix!
Comment #5
yaslama commentedWith the last change, the action list is always empty, because isset($actions) is true after the initialisation.
I propose the following patch (tested in at least one site).
Thanks
Comment #6
fizk commentedHow about changing the isset() to isempty()?
Comment #7
aturetta commented#5 is confirmed, the latest dev breaks badly.
Either the diff #5 or the
change suggested in #6will do.Edit: the change suggested in #6 is not 100% correct. The comparison should change from
!isset($actions)toempty($actions)Comment #8
c4rl commentedRetitling to be more descriptive
Comment #9
c4rl commentedGotta love 1-liners.
Comment #10
fizk commentedHopefully we got it this time :)
Comment #11
apotek commented+1
Bitten by this bug.
Patch in #9 works for me.
Anyone else want to suggest this is RTBC? No one? Ok. Doing it myself. This issue shouldn't be marked fixed until the patch is committed, which is probably why the patch has been gathering dust since January.
Comment #12
fizk commentedIt was committed :)
http://drupalcode.org/project/imagecache.git/commit/dc64e60fdda8793564f6...
Comment #13
apotek commentedAh! And so it was. But it's just not present in the latest release. Should I switch over to the dev branch for my production line or should I just patch my RC1+4 version?
Comment #14
fizk commentedI recommend just patch production, unless you're comfortable going through all the commits in dev that your codebase doesn't have yet.