Running update.php to apply the pending update for css_injector module "7203 - Import the 1.x rules to the new 2.x structure" generates this error:

Warning: file_get_contents(public://css_injector/css_injector_3.css): failed to open stream: "DrupalPublicStreamWrapper::stream_open" call failed in css_injector_update_7203() (line 254 of /srv/bindings/9d3a182de15144029d5442fbb8cdb678/code/sites/all/modules/css_injector/css_injector.install).

Comments

kreynen’s picture

Assigned: Unassigned » kreynen

This happens when the expected .css files have already been deleted. I'll add some code to the update hook to prevent that.

kreynen’s picture

Status: Active » Needs review

  • kreynen committed 9843a5b on 7.x-2.x
    fix for #2344481 when .css files don't exist
    

  • kreynen committed aabe119 on 7.x-2.x
    needed to manually load ctools in update_hook for #2344481
    
bagelche’s picture

The fix of manually loading ctools removed my errors and I was able to update CSS Injector successfully. I did notice, however, that the permission to administer CSS Injector had been cleared. Rechecked it in Permissions and it's working well. Imported my existing 1.x rules successfully.