On Windows 7/Cygwin/mintty/xampp 1.8 with Drush 5.7, running:

drush omega-subtheme jandp --starterkit=starterkit_omega_xhtml

Renders this error:

file_put_contents(public:///.htaccess): failed to open stream:                              [warning]
"DrupalPublicStreamWrapper::stream_open" call failed file.inc:502
WD security: Security warning: Couldn't write .htaccess file. Please create a .htaccess file[error]
in your public:// directory which contains the following lines: SetHandler
Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks

Using the UI at admin/appearance/omega-tools/add worked fine, however.

sites/default/files/.htaccess shows the proper additions. Is that the correct targeted htaccess file?

Comments

Screenack’s picture

Status: Active » Closed (won't fix)

The problem: Windows-level permissions, where cygwin was unable to modify the file. Not an Omega/drush problem. In Windows, I selected the directory root folder and explicitly set all children dirs and files to where I was the "owner" for all objects. Worked fine afterwards. I'm closing this ticket.