When generating a new zen-based theme using "drush zen" some PHP warnings appear, such as:

unlink(<path>/sites/all/themes/sub_zen/css/layouts/fixed-rtl.css):[warning]
No such file or directory drush.inc:691
file_get_contents(<path>/sites/all/themes/sub_zen/css/layouts/fixed.css):[warning]
failed to open stream: No such file or directory zen.drush.inc:124

The Drush command is referencing files that have been deleted/moved in 7.x-6.x. The command needs re-writing.

CommentFileSizeAuthor
#5 2494991-5.patch1.61 KBskyredwang
#4 2494991-4.patch863 bytesskyredwang

Comments

cferthorney’s picture

This also seems to happen in Drush 6.6:
drush @testzen.local -vvvv zen --name="Test Zen" --machine-name=test_zen --description="Test theme" --without-rtl && drush --version
Loaded alias @testzen.local from file /Users/username/.drush/testzen.aliases.drushrc.php [notice]
Initialized Drupal 7.38 root directory at /Users/username/drupal-zen-root [notice]
Initialized Drupal site drupaldev.local at sites/default [notice]
unlink(/Users/username/drupal-zen-root/sites/all/themes/testzen/css/layouts/fixed-rtl.css): No such file or directory drush.inc:691 [warning]
file_get_contents(/Users/username/drupal-zen-root/sites/all/themes/testzen/css/layouts/fixed.css): failed to open stream: No such file or directory zen.drush.inc:124 [warning]
file_put_contents(/Users/username/drupal-zen-root/sites/all/themes/testzen/css/layouts/fixed.css): failed to open stream: No such file or directory zen.drush.inc:126 [warning]
unlink(/Users/username/drupal-zen-root/sites/all/themes/testzen/sass/layouts/_fixed-rtl.scss): No such file or directory drush.inc:691 [warning]
file_get_contents(/Users/username/drupal-zen-root/sites/all/themes/testzen/sass/layouts/_fixed.scss): failed to open stream: No such file or directory zen.drush.inc:124 [warning]
unlink(/Users/username/drupal-zen-root/sites/all/themes/testzen/css/layouts/responsive-rtl.css): No such file or directory drush.inc:691 [warning]
file_get_contents(/Users/username/drupal-zen-root/sites/all/themes/testzen/css/layouts/responsive.css): failed to open stream: No such file or directory zen.drush.inc:124 [warning]
file_put_contents(/Users/username/drupal-zen-root/sites/all/themes/testzen/css/layouts/responsive.css): failed to open stream: No such file or directory zen.drush.inc:126 [warning]
unlink(/Users/username/drupal-zen-root/sites/all/themes/testzen/sass/layouts/_responsive-rtl.scss): No such file or directory drush.inc:691 [warning]
file_get_contents(/Users/username/drupal-zen-root/sites/all/themes/testzen/sass/layouts/_responsive.scss): failed to open stream: No such file or directory zen.drush.inc:124 [warning]
unlink(/Users/username/drupal-zen-root/sites/all/themes/testzen/css/components/misc-rtl.css): No such file or directory drush.inc:691 [warning]
file_get_contents(/Users/username/drupal-zen-root/sites/all/themes/testzen/css/components/misc.css): failed to open stream: No such file or directory zen.drush.inc:124 [warning]
file_put_contents(/Users/username/drupal-zen-root/sites/all/themes/testzen/css/components/misc.css): failed to open stream: No such file or directory zen.drush.inc:126 [warning]
unlink(/Users/username/drupal-zen-root/sites/all/themes/testzen/sass/components/_misc-rtl.scss): No such file or directory drush.inc:691 [warning]
file_get_contents(/Users/username/drupal-zen-root/sites/all/themes/testzen/sass/components/_misc.scss): failed to open stream: No such file or directory zen.drush.inc:124 [warning]
unlink(/Users/username/drupal-zen-root/sites/all/themes/testzen/css/base/normalize-rtl.css): No such file or directory drush.inc:691 [warning]
file_get_contents(/Users/username/drupal-zen-root/sites/all/themes/testzen/css/base/normalize.css): failed to open stream: No such file or directory zen.drush.inc:124 [warning]
file_put_contents(/Users/username/drupal-zen-root/sites/all/themes/testzen/css/base/normalize.css): failed to open stream: No such file or directory zen.drush.inc:126 [warning]
unlink(/Users/username/drupal-zen-root/sites/all/themes/testzen/sass/base/_normalize-rtl.scss): No such file or directory drush.inc:691 [warning]
unlink(/Users/username/drupal-zen-root/sites/all/themes/testzen/css/styles-rtl.css): No such file or directory drush.inc:691 [warning]
unlink(/Users/username/drupal-zen-root/sites/all/themes/testzen/sass/styles-rtl.scss): No such file or directory drush.inc:691 [warning]
Starter kit for "Test Zen" created in: /Users/username/drupal-zen-root/sites/all/themes/testzen
Command dispatch complete
Drush Version : 6.6.0

steinmb’s picture

johnalbin’s picture

Issue summary: View changes
skyredwang’s picture

Status: Active » Needs review
StatusFileSize
new863 bytes

CSS files generated from the shipped SCSS files don't exist in the project as default. Therefore, this patch removing the lines for removing the RTL css file.

skyredwang’s picture

StatusFileSize
new1.61 KB

According to https://www.drupal.org/node/2448145#comment-10614786, now I am removing the whole function.

johnalbin’s picture

Woo-hoo! patches. Reviewing.

johnalbin’s picture

patch looks good! But you forgot to remove the --without-rtl flag from the command. I'm doing that now.

johnalbin’s picture

Assigned: Unassigned » johnalbin
Status: Needs review » Needs work

  • JohnAlbin committed 4cd888d on 7.x-6.x authored by skyredwang
    Issue #2494991 by skyredwang, JohnAlbin: Warnings when generating theme...
  • JohnAlbin committed b7ab43f on 7.x-6.x authored by skyredwang
    Issue #2494991 by skyredwang: Warnings when generating theme with drush
    
johnalbin’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.