I experienced that even if i rebuild the theme registry, the preprocess functions are not registered for the imagecache_insert_image() theme function. This is really odd, cause i see that this code part should ensure that it gets included on the time:

// ImageCache support
if (module_exists('imagecache')) {
module_load_include('inc', 'insert', 'includes/imagecache');
}

But somehow, sometime it fails. I did not have more time to find out how it's possible.
It's sure that specifying 'file' in the theme function explicitly does not hurt (well, a bit more code included, right) and it solved the problem here.

CommentFileSizeAuthor
#4 insert_theme.patch983 bytesquicksketch
insert_theme.patch1010 bytesaron novak

Comments

quicksketch’s picture

Are you using the Admin module by chance? See #622630: Some themes won't let image insert

aron novak’s picture

No. I even fgrep-ped for conflicting function names, but no joy. I really find it confusing and not sure if it's insert module's fault.

quicksketch’s picture

Status: Active » Reviewed & tested by the community

Oh I completely missed your patch. That looks good to me and I'll put it in next time I'm working on Insert.

quicksketch’s picture

Status: Reviewed & tested by the community » Fixed
StatusFileSize
new983 bytes

There was a PHP syntax error in the patch, but otherwise worked great! ;-)

Attached patch committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.