Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: fizk commentedPlease reopen if this is still an issue with ImageCache 6.x-2.0-rc1.
Comment #2
Jorrit CreditAttribution: 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 CreditAttribution: fizk commentedFixed in dev. Thanks!
Comment #4
Jorrit CreditAttribution: Jorrit commentedThanks for the quick fix!
Comment #5
yaslama CreditAttribution: 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 CreditAttribution: fizk commentedHow about changing the isset() to isempty()?
Comment #7
aturetta CreditAttribution: 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 CreditAttribution: c4rl commentedRetitling to be more descriptive
Comment #9
c4rl CreditAttribution: c4rl commentedGotta love 1-liners.
Comment #10
fizk CreditAttribution: fizk commentedHopefully we got it this time :)
Comment #11
apotek CreditAttribution: 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 CreditAttribution: fizk commentedIt was committed :)
http://drupalcode.org/project/imagecache.git/commit/dc64e60fdda8793564f6...
Comment #13
apotek CreditAttribution: 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 CreditAttribution: fizk commentedI recommend just patch production, unless you're comfortable going through all the commits in dev that your codebase doesn't have yet.