Title: PHP error when using fwrite()
Last modified: May 18, 2022

---

# PHP error when using fwrite()

 *  Resolved [sdwareham](https://wordpress.org/support/users/sdwareham/)
 * (@sdwareham)
 * [4 years ago](https://wordpress.org/support/topic/php-error-when-using-fwrite/)
 * We’ve been seeing this fatal error, possibly since updating to PHP 8 when using
   th helpful plugin. Perhaps it does not have permissions to write?
 * TypeError: Caught TypeError (500): fwrite(): Argument #1 ($stream) must be of
   type resource, bool given in /plugins/helpful/core/solutions/class-wpml.php:76
 * I believe the error this thrown from:
    Helpful\Core\Solutions\WPML->create_translation_file()

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

 *  Plugin Author [Pixelbart](https://wordpress.org/support/users/pixelbart/)
 * (@pixelbart)
 * [4 years ago](https://wordpress.org/support/topic/php-error-when-using-fwrite/#post-15655979)
 * [@sdwareham](https://wordpress.org/support/users/sdwareham/)
 * I’ll take a look at the problem today and see about an update.
 * Thank you for reporting!
 *  Thread Starter [sdwareham](https://wordpress.org/support/users/sdwareham/)
 * (@sdwareham)
 * [4 years ago](https://wordpress.org/support/topic/php-error-when-using-fwrite/#post-15675108)
 * [@pixelbart](https://wordpress.org/support/users/pixelbart/) the latest update
   fixed this, thank you for the quick response!

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

The topic ‘PHP error when using fwrite()’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/helpful.svg)
 * [Helpful](https://wordpress.org/plugins/helpful/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/helpful/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/helpful/)
 * [Active Topics](https://wordpress.org/support/plugin/helpful/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/helpful/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/helpful/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [sdwareham](https://wordpress.org/support/users/sdwareham/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/php-error-when-using-fwrite/#post-15675108)
 * Status: resolved