Fatal error: Call to undefined function _imagecache_preset_flush() in ubercart/uc_catalog

Posts: 23
Joined: 12/08/2007

Just upgraded two of my websites to version 1.0 and get the same error message on both of them after running upgrade.php:

Fatal error: Call to undefined function _imagecache_preset_flush() in www/sites/all/modules/ubercart/uc_catalog/uc_catalog.install on line 172

I then run upgrade *again* and it seems to finish with no errors....

any ideas?

Posts: 23
Joined: 12/08/2007

btw - upgrading from Ubercart RC and using IMAGECACHE 5.x 2.0

Posts: 2267
Joined: 08/07/2007
AdministratoreLiTe!

That function was removed or changed in Imagecache 2.0, but you can still flush the presets yourself through the interface. The update adds a preset and is trying to flush the cached images of a preset that used to be used.

Posts: 23
Joined: 12/08/2007

problem solved by downgrading to previous 1.5 version of imagecache. Seems to work great now... I've had a few weird problems with imagecache in the past while using the RC and DEV versions so I think I'll stick with this version for a while.

/me makes note to only install final versions of software.

/me makes another note to exclude UBERCART from this list since it's been working great since it's alpha days Eye-wink

Posts: 1
Joined: 12/06/2007

I had this same problem as well. Glad to know it's only minor.