Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
After I clear all caches or even theme-registry only WITH DRUSH, when I reload the page I get a bunch of errors, here are the main keywords:
Warning : array_diff(): Argument #1 is not an array omega_theme_registry_alter()
Warning : array_unshift() expects parameter 1 to be array, null given omega_theme_registry_alter()
Notice : Undefined index: hero_layout omega_theme_registry_alter()
Notice : Undefined index: simple_layout omega_theme_registry_alter()
Notice : Undefined index: off_canvas_layout omega_theme_registry_alter()
Notice : Undefined index: divine_layout omega_theme_registry_alter()
If I clear all caches or even theme-registry only with admin menu GUI link, I don't have any error.
Any idea what could cause this?
Comments
Comment #1
PCateNumbersUSA CreditAttribution: PCateNumbersUSA commentedI'm getting this error as well, it's quite annoying
Comment #2
thalemn CreditAttribution: thalemn commentedI'm getting this error, too. Info from drush posted below.
Here is the template.php code that is referenced:
Comment #3
thalemn CreditAttribution: thalemn commentedDoes anyone have a moment to take a look at this? Much appreciated!
For what it's worth, I commented out the following code in the template.php file. I also disabled the core Omega 4.4 theme and only have the custom theme enabled. Seems to be working well.
Comment #4
steinmb CreditAttribution: steinmb as a volunteer commentedHi
It would be easier to other to test it If you turn your changes into a real patch (https://www.drupal.org/patch). Make sure the patch apply to dev. since that is where the changes will be committed.