Title: Failed to open stream when
Last modified: March 28, 2021

---

# Failed to open stream when

 *  Resolved [ericraymond](https://wordpress.org/support/users/ericraymond/)
 * (@ericraymond)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/failed-to-open-stream-when/)
 * After upgrading to WP 5.7 and Simple Local Gravitars 2.2.0 We get the following
   warnings in logs. Both messages occur at the asme time.
 * Somewhat odd to see [http://](https://wordpress.org/support/topic/failed-to-open-stream-when/?output_format=md),
   both because we use https, and because I thought file_put_contents uses file 
   locations, not urls.
 * Warning: file_put_contents([http://XXXX/wp-content/uploads/2012/03/XX_XX_avatar-50×50.jpg](http://XXXX/wp-content/uploads/2012/03/XX_XX_avatar-50×50.jpg)):
   failed to open stream: HTTP wrapper does not support writeable connections in/
   wp-includes/class-wp-image-editor-imagick.php on line 737
 * Warning: file_put_contents([http://XXXX/wp-content/uploads/2012/03/XX_XX_avatar-100×100.jpg](http://XXXX/wp-content/uploads/2012/03/XX_XX_avatar-100×100.jpg)):
   failed to open stream: HTTP wrapper does not support writeable connections in/
   wp-includes/class-wp-image-editor-imagick.php on line 737
    -  This topic was modified 5 years, 1 month ago by [ericraymond](https://wordpress.org/support/users/ericraymond/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Jeffrey Paul](https://wordpress.org/support/users/jeffpaul/)
 * (@jeffpaul)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/failed-to-open-stream-when/#post-14284759)
 * [@ericraymond](https://wordpress.org/support/users/ericraymond/) I just tested
   this locally on WordPress 5.7 and Simple Local Avatars 2.2.0 and am not seeing
   any errors or warnings in the browser console or php and nginx error logs. Can
   you please provide some more details about your environment and steps you take
   to see those warnings so I can try to replicate and further help triage this 
   for you?
 *  Thread Starter [ericraymond](https://wordpress.org/support/users/ericraymond/)
 * (@ericraymond)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/failed-to-open-stream-when/#post-14285858)
 * Sorry but we cannot reproduce this and have not seen the errors since we first
   upgraded. Perhaps it was a migration issue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Failed to open stream when’ is closed to new replies.

 * ![](https://ps.w.org/simple-local-avatars/assets/icon.svg?rev=2783752)
 * [Simple Local Avatars](https://wordpress.org/plugins/simple-local-avatars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-local-avatars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-local-avatars/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-local-avatars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-local-avatars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-local-avatars/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ericraymond](https://wordpress.org/support/users/ericraymond/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/failed-to-open-stream-when/#post-14285858)
 * Status: resolved