Hello,

I installed a Drupal 7 version and tried to create a sub-theme with drush. I placed the aether theme into /sites/all/themes/. I opened a command line and changed to /sites/all/themes/.
I tried: drush aether mytheme

The following error appeared:

PHP Fatal error:  Call to undefined function cache_get() in /var/www/drupal7/includes/module.inc on line 665
PHP Catchable fatal error:  Argument 2 passed to t() must be an array, null given, called in /usr/share/drush/includes/drush.inc on line 269 and defined in /var/www/drupal7/includes/bootstrap.inc on line 1478

Any ideas?

Best regards,
Andre

Comments

KrisBulman’s picture

I will test this on a few systems and get back to you, if anyone else experiences this, please comment.

KrisBulman’s picture

OK, I've tested this on 2 macs running Lion, Drupal 7.14 without a problem. This sounds a bit like a drush problem and not an aether problem, Aether uses virtually identical scripts to Zen and Adaptivetheme.

Questions:

  1. What OS?
  2. What Drupal version?
  3. What Drush version?
  4. Does "drush status" report everything OK?
  5. Does it make a difference if Aether is enabled prior to running the command?
  6. Are you able to create a subtheme with Zen or the dev release of Adaptivetheme?
Faustas’s picture

Hello,

my configuration is as follows:
OS: Ubuntu 10.04 LTS - Lucid Lynx
Drupal: 7.14
Drush: 2.0-6
drush status:
PHP Fatal error: Call to undefined function cache_get() in /var/www/drupal7/includes/module.inc on line 665
PHP Catchable fatal error: Argument 2 passed to t() must be an array, null given, called in /usr/share/drush/includes/drush.inc on line 269 and defined in /var/www/drupal7/includes/bootstrap.inc on line 1478

It seems to me that it can be a problem with the drush version and Drupal 7.14?

Faustas’s picture

Okay, I found the mistake.

The Ubuntu version of Drush did not work properly and I used the Drupal own version. I tried the command and could create a new subtheme with drush aether mytheme.

Works fine.

Faustas’s picture

May I ask you a few questions?

I would like to know:

(1) When do you think the beta release will be?
(2) Can I use the Aether theme on any webserver without drush? Is drush only used in the development environment?

Thanks for your answers.
Andre

KrisBulman’s picture

Title: Drush error when creating subtheme » Creating a sub-theme does not work
Category: support » bug
  1. I must take the standard Drupal stance on this question, "it's ready when it's ready". Unless community contributions start coming in, I will be adding to this when I have time. I have a ticket created for the requirements before a beta release. #1665770: Tasks to complete prior to beta release
  2. Yes, just pre-create your subtheme beforehand, drush is not a dependancy it is only the recommended way to create a subtheme.
KrisBulman’s picture

Title: Creating a sub-theme does not work » Drush error when creating subtheme
Category: bug » support

updated ticket title and category

KrisBulman’s picture

Title: Creating a sub-theme does not work » Drush error when creating subtheme
Category: bug » support
Status: Active » Closed (works as designed)
Faustas’s picture

Hello,

here my solution.

If you want to use Drush on an Ubuntu machine, you should download the Drupal Drush module instead of using the apt-get install version.
Do as follows:
* uninstall the drush version on your Ubuntu system
* Download the Drupal Drush module from http://drupal.org/project/drush
* Follow the README.txt installation steps
* refer to the Drupal Drush module in the command line when using drush commands

Best regards,
Andre

KrisBulman’s picture

Thanks!