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.
i have a fresh install of drupal 7.22. downloaded omega 4 beta4 and did a few drush commands (dl a few different modules) i get this error
PHP Fatal error: Cannot redeclare omega_theme_get_setting() (previously declared in /[path-to-site]/sites/all/themes/omega/includes/omega.inc:35) in /[path-to-site]/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
/[path-to-site]/sites/all/themes/omega/includes/omega.inc:35)
in
/[path-to-site]/sites/all/themes/omega/includes/omega.inc,
line 59
the error will go away if i delete the omega theme folder in /sites/all/themes
the error will go away if i disable omega (enable bartilk)
Comments
Comment #1
fubhy CreditAttribution: fubhy commentedHow does one reproduce this? Can you post your full path here? I am pretty sure that this is a bug outside of Omega because there are just very few people encountering this problem so I'd guess it has something to do with the system setup, drush version, php-cli, or something... It's very strange to say the least. It's a fact though that omega does NOT include that file twice because it uses require_once. So there is definitely something strange going on there but I am 99% sure that it's triggered by something outside of Omega.
Please post your full system path to Omega.
Anyways, please look for existing issues with the same problem in the future instead of opening the same issue multiple times:
#2026149: Error: Cannot redeclare omega_theme_get_setting()-Resolution
Actually, let me close this as a duplicate and re-open the other one.
Comment #2
BiigNiick CreditAttribution: BiigNiick commentedoh, thanks!
#13 on that thread fixed it.
sorry about the duplicate post
thanks again,
- nick