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

fubhy’s picture

Status: Active » Closed (duplicate)

How 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.

BiigNiick’s picture

oh, thanks!

#13 on that thread fixed it.

Posted by dasmoermel on June 29, 2013 at 1:53pm new
I fixed it! :D

The solution was simple but absolutely stupid and has nothing to do with Omega.

The solution:
I'm on OSX and the path to my drupal installations is Users/name/Sites/...
In OSX Terminal the path was users/name/sites/... when I executed any drush commands.

So... for everyone who is on OSX and gets some kind of "Can not redeclare" errors when trying to use drush commands, check your path.

sorry about the duplicate post
thanks again,
- nick