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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | insert_theme.patch | 983 bytes | quicksketch |
| insert_theme.patch | 1010 bytes | aron novak |
Comments
Comment #1
quicksketchAre you using the Admin module by chance? See #622630: Some themes won't let image insert
Comment #2
aron novakNo. 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.
Comment #3
quicksketchOh I completely missed your patch. That looks good to me and I'll put it in next time I'm working on Insert.
Comment #4
quicksketchThere was a PHP syntax error in the patch, but otherwise worked great! ;-)
Attached patch committed.