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:124The Drush command is referencing files that have been deleted/moved in 7.x-6.x. The command needs re-writing.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2494991-5.patch | 1.61 KB | skyredwang |
| #4 | 2494991-4.patch | 863 bytes | skyredwang |
Comments
Comment #1
cferthorneyThis 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
Comment #2
steinmb commentedComment #3
johnalbinComment #4
skyredwangCSS 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.
Comment #5
skyredwangAccording to https://www.drupal.org/node/2448145#comment-10614786, now I am removing the whole function.
Comment #6
johnalbinWoo-hoo! patches. Reviewing.
Comment #7
johnalbinpatch looks good! But you forgot to remove the --without-rtl flag from the command. I'm doing that now.
Comment #8
johnalbinComment #10
johnalbin