Environment: Drupal 8.2.2 on Kalabox 2.1.1 Mac

Overview: Running a cache rebuild via either Drush or Drupal's 'clear caches' button results in a warning, even though the cache-rebuild completes successfully.

Details:

| => kbox drush cr
Cache rebuild complete. [ok]
file_put_contents(temporary://filerfxBTG): failed to open stream: [warning]
"Drupal\Core\StreamWrapper\TemporaryStream::stream_open" call failed
in file_unmanaged_save_data() (line 956 of core/includes/file.inc).
file_unmanaged_save_data('
a.menu-icon-3,
ul.links li.menu-icon-3 a,
ul.menu li.menu-icon-3 a {
background-image:
url(/sites/default/files/menu_icons/menu_icon_targets.png);
padding-left:100px;
background-repeat: no-repeat;
background-position: left center;
}
', 'public://css/menu_icons.css', 1) (Line: 130)
simple_menu_icons_css_generate() (Line: 145)
simple_menu_icons_cache_flush()
call_user_func_array('simple_menu_icons_cache_flush',
Array) (Line: 402)
Drupal\Core\Extension\ModuleHandler->invokeAll('cache_flush')
(Line: 1086)
drupal_flush_all_caches() (Line: 51)
drupal_rebuild(Object, Object) (Line: 291)
drush_cache_rebuild()
call_user_func_array('drush_cache_rebuild', Array) (Line:
366)
_drush_invoke_hooks(Array, Array) (Line: 217)
drush_command()
call_user_func_array('drush_command', Array) (Line: 185)
drush_dispatch(Array) (Line: 67)
Drush\Boot\BaseBoot->bootstrap_and_dispatch() (Line: 66)
drush_main() (Line: 321)
drush_startup(Array) (Line: 114)
require('phar:///usr/local/bin/drush/drush') (Line: 10)

The file could not be created. [error]

Comments

Senpai created an issue. See original summary.

sylvainar’s picture

This is a permission problem, it is not related to the module. Check the permission of your public://css directory.

Senpai’s picture

Status: Active » Closed (cannot reproduce)

This issue is old news, and cannot be replicated. Closing.