Can't Generate 3.x subtheme with Drush

Events happening in the community are now at Drupal community events on www.drupal.org.
jefdrupal's picture

I can't seem to get drush to make a subtheme in 3.x. I didn't have any problems in 2.x I'm sure it is something I am doing, but I don't know what.

Computer-2:sites jon$ drush omega-subtheme "mysubtheme" -v
Initialized Drupal 7.0 root directory at [notice]
/Users/jon/Sites/acquia-drupal
Initialized Drupal site default at sites/default [notice]
The drush command 'omega-subtheme mysubtheme' could [error]
not be found.

drush help outputs:

Other commands: (omega_tools)
omega-subtheme Creates an Omega subtheme.

Comments

Make sure...

himerus's picture

Make sure that the Omega Tools module is ENABLED.

Drush incorrectly reports all commands, even when the module is disabled, but it will not actually let you use the command unless the module is enabled. (I haven't looked into this issue with Drush)

Also, make sure you are using the same version of Omega Tools as Omega (2.x, 3.x, etc.) or other issues will arise.

That solved my problem

marcvangend's picture

Thanks, that's exactly what helped me solve this problem (at least in my case).

7.x-3.x-dev is omega tools

jefdrupal's picture

7.x-3.x-dev is omega tools version. It is enabled.
Omega HTML5 Starterkit 7.x-3.x-dev is the omega version.
Delta 7.x3.x dev also

I had the alpha3 version of one of them, but I currently have the the above and I am getting the same error.

I am obviosly in the sites directory. When I switch to the /www.mysite subdirectory, it makes a 13.3 mb file where i tries to turn all the installed modules into themes. They obviously show up as disabled, and they don't work, obviously. Regardless the command will run from the /sites/www.mysite directory (albeit not correctly).

i don't know what I am doing wrong. The 2.x subtheme seemed to make itself pretty easily for me. ??

More info

jefdrupal's picture

Delta 7.x3.x dev also

I am obviosly in the sites directory. When I switch to the /www.mysite subdirectory, it makes a 13.3 mb file where i tries to turn all the installed modules into themes. They obviously show up as disabled, and they don't work, obviously. Regardless the command will run from the /sites/www.mysite directory (albeit not correctly).

i don't know what I am doing wrong. The 2.x subtheme seemed to make itself pretty easily for me. ??

Make a 3.x subtheme without drush?

jefdrupal's picture

Reinstalled drush and all the modules. Drush works fine. But it won't make the omega 3.x subtheme. I could be doing something wrong, but I can't figure out what. Is there a way to make a subtheme on 3.x without drush? I know there is a way to do it with 2.x, but I don't know if it works for 3.x?

anybody have any ideas?

jefdrupal's picture

anybody have any ideas?

It works.

davidber's picture

I downloaded the latest omega tools, the latest omega and did a drush omega-theme "xxx" and it worked.

Omega Tools is Broken on 7.3 On My Install

jefdrupal's picture

When I download OT and Omega of version 7.2, it makes a subtheme perfectly and the subtheme works.

Then I install OT and Omega Version 7.3, and it makes a mess of things. Everything I said above (numerous "ghost subthemes" in appearance), and the file structure looks like it is trying to make another drupal site.

I am running Acquia locally.

Here is the output from 7.3
Ipod-Ninja-2:templatesandbox.localhost jon$ drush omega-subtheme "test omega 7-3 subtheme" -v
Initialized Drupal 7.0 root directory at /Users/jon/Sites/acquia-drupal [notice]
Initialized Drupal site templatesandbox.localhost at sites/templatesandbox.localhost [notice]
Undefined index: omega_starterkit in drupal_theme_initialize() (line 101 of [notice]
/Users/jon/Sites/acquia-drupal/includes/theme.inc).
Trying to get property of non-object in drupal_theme_initialize() (line 146 of [notice]
/Users/jon/Sites/acquia-drupal/includes/theme.inc).
Warning: The command callback function drush_omega_subtheme has a deprecated name. It must begin with [notice]
drush_omega_tools
. Skipping hook functions.
HTML5 Omega Subtheme: test omega 7-3 subtheme (test_omega_7_3_subtheme) created and configured for [ok]
usage.
Calling system(rsync -r /Users/jon/Sites/acquia-drupal//* /Users/jon/Sites/acquia-drupal/sites/all/themes/test_omega_7_3_subtheme; sed -i.bak s/omega_starterkit/test_omega_7_3_subtheme/ /Users/jon/Sites/acquia-drupal/sites/all/themes/test_omega_7_3_subtheme/template.php; sed -i.bak s/omega_starterkit/test_omega_7_3_subtheme/ /Users/jon/Sites/acquia-drupal/sites/all/themes/test_omega_7_3_subtheme/theme-settings.php; mv /Users/jon/Sites/acquia-drupal/sites/all/themes/test_omega_7_3_subtheme/omega_starterkit.info /Users/jon/Sites/acquia-drupal/sites/all/themes/test_omega_7_3_subtheme/test_omega_7_3_subtheme.info; sed -i.bak s/"Omega HTML5 Starter Kit"/"test omega 7-3 subtheme"/ /Users/jon/Sites/acquia-drupal/sites/all/themes/test_omega_7_3_subtheme/.info; rm -rf /Users/jon/Sites/acquia-drupal/sites/all/themes/test_omega_7_3_subtheme/.bak)
sed: /Users/jon/Sites/acquia-drupal/sites/all/themes/test_omega_7_3_subtheme/template.php: No such file or directory
sed: /Users/jon/Sites/acquia-drupal/sites/all/themes/test_omega_7_3_subtheme/theme-settings.php: No such file or directory
mv: rename /Users/jon/Sites/acquia-drupal/sites/all/themes/test_omega_7_3_subtheme/omega_starterkit.info to /Users/jon/Sites/acquia-drupal/sites/all/themes/test_omega_7_3_subtheme/test_omega_7_3_subtheme.info: No such file or directory
sed: /Users/jon/Sites/acquia-drupal/sites/all/themes/test_omega_7_3_subtheme/*.info: No such file or directory
Command dispatch complete [notice]
Ipod-Ninja-2:templatesandbox.localhost jon$

Like I said. 7.2 works fine. 6 works fine. 7.3 never for me.

I will soon release a fresh

fubhy's picture

I will soon release a fresh Version of Omega Tools with lots of new Features and a working Subtheme Wizard (creator)

Thanks. Look forward to it.

jefdrupal's picture

Thanks. Look forward to it. I've been excited about Omega 7.3.

based on another thread, i

jefdrupal's picture

based on another thread, i tried using the Omega Tool 7.x-3.0-beta1 (instead of the dev version, which seems to match the omega version i have installed).

This made a (what appears to be) a working subtheme with drush.

Omega Framework

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: