Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
kreynen CreditAttribution: kreynen commentedThis happens when the expected .css files have already been deleted. I'll add some code to the update hook to prevent that.
Comment #2
kreynen CreditAttribution: kreynen commentedComment #5
bagelche CreditAttribution: bagelche commentedThe 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.