Downloaded the Beta 2 today and tried creating a sub theme using the drush wizard. Got the following error:
Cannot redeclare omega_theme_get_setting() (previously declared in /Users/pcate/Sites/nusa-com/sites/all/themes/omega/includes/omega.inc:35) in /Users/pcate/sites/nusa-com/sites/all/themes/omega/includes/omega.inc on line 59
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Cannot redeclare omega_theme_get_setting() (previously
declared in
/Users/pcate/Sites/nusa-com/sites/all/themes/omega/includes/omega.inc:35)
in
/Users/pcate/sites/nusa-com/sites/all/themes/omega/includes/omega.inc,
line 59
Comments
Comment #1
fubhy CreditAttribution: fubhy commentedDo you have Omega Tools installed? If so, disable it.
There is no bug in the code so it's either Omega Tools 3.x (which is incompatible with Omega 4.x) which tries to include the same file twice. Or it's some other, custom code on your side because there is nothing in Omega atm. (at least as far as I can tell) that includes omega.inc twice (and would thereby trigger that error).
Comment #2
PCateNumbersUSA CreditAttribution: PCateNumbersUSA commentedThis happens on a stock fresh install of drupal 7 with no non-core modules installed. Omega tools isn't activated or even installed.
Comment #3
fubhy CreditAttribution: fubhy commentedPlease try "drush cc drush". It's definitely working :)
There is no 'include' or 'require' omega.inc in the code anywhere. Only thing there is are require_once / include_once. And the redeclration can _only_ be triggered (in this case) by false re-imports of the same file. Which Omega does not do (double-checked). So yeah.. it's working (just tested it).
Comment #4
fubhy CreditAttribution: fubhy commentedOr maybe you have two installations of Omega in place... Did you maybe place the theme in there somewhere twice? Maybe even a 3.x version? Maybe one in sites/all/themes and one in sites/yourdomain.com/themes? Must be something like that I am afraid :)
Comment #5
fubhy CreditAttribution: fubhy commentedDid that work for you?
Comment #6
PCateNumbersUSA CreditAttribution: PCateNumbersUSA commentedI tried "drush cc drush" and then running the drush subtheme wizard again. I was able to get through the process and create a sub-theme, but the same error popped up immediate after when I tried to make another one. Omega is the only non-core theme running on the install, and there aren't any multi-site installs (no sites/yourdomain.com/themes in other words.) Since I was able to create the sub-theme that's enough for me to continue, but I'd still like to find the reason for the error.