I'm experiencing the same thing as Adirael in comment #3 on https://www.drupal.org/node/2229867 so I'm creating a separate issue for it. Quote from the comment:
I get a "Call to undefined function omega_layout()" when trying to enter the administration pages. That's fixed if I clear caches but it comes back at random and get's fixed only if I clear caches (using drush).
The version that Adirael used at the time was Omega v4.2 but I'm seeing the same problem with v4.4.
Here's how to reproduce this error:
1. Install Omega and make a subtheme that you enable and use as a default theme.
2. Add Seven as an admin theme
3. Run drush cc all
4. Go to a public page where the omega subtheme is active as the first page you go to after flushing the cache
5. Now go to an admin page where Seven is supposed to be used. The error should appear.
In theme() when the theme registry is fetched on the line "$hooks = theme_get_registry(FALSE);", the omega preprocessing functions are present among the page preprocessing functions. When it works as it should, they are not present there so I think that's the problem.
Comments
Comment #2
ordermind commentedComment #3
ordermind commentedComment #4
ordermind commentedComment #5
ordermind commentedSo far I've found out that omega_theme_registry_alter() in template.php injects omega preprocess functions from omega no matter what the theme path is, when the theme registry is being built on a page that is themed by omega. It is then cached and that's the reason that omega's preprocess functions are called later on pages that are served by seven.
Comment #6
ordermind commentedIt turned out that in my case the culprit was actually the contrib module Mail System (mailsystem). I'm gonna mark this as a duplicate of https://www.drupal.org/node/2051135.