We were getting a Domain Access domain theme error on save, where hook_custom_theme() was being bypassed.

We traced this down to the entity load where the text area was processed and the filter here was calling theme('image_resize_filter_image').

The easy but non-recommended solution would be to make the filter non-caching, but that would have massive negative consequences on sites running this filter. The best option that I could think of was to making the theme callback optional, directly invoking theme_image_resize_filter_image() using a system variable.

To disable the theme() callback, apply the patch and run the following code on your site once.

variable_set('image_resize_filter_theme_image', 0);

Comments

alan d.’s picture

Small code tidy up and a better comment for the apparently strange option. Fairly hard to paraphrase this issue!

jeroen’s picture

Thank you for the patch Alan.
I'm using it too now. I ran into the same issue, check https://drupal.org/comment/8282265#comment-8282265

alan d.’s picture

These are irritating issues, and I believe they are also the cause of the theme flicking, when you occasionally lose the admin theme for the front end theme for example.