Title: [Bug] Plugin will Fatal Error without filesystem write access
Last modified: March 5, 2025

---

# [Bug] Plugin will Fatal Error without filesystem write access

 *  Resolved [krdevio](https://wordpress.org/support/users/krdevio/)
 * (@krdevio)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/bug-plugin-will-fatal-error-without-filesystem-write-access/)
 * Hello,
   we wanted to use this plugin, however it looks like the plugin requires
   file write access (fwrite is in the code everywhere).
 * Example error:
 *     ```wp-block-code
       PHP Warning: fopen([REMOVED]/wp-content/uploads/logs/mathcaptcha/sessions/.htaccess): Failed to open stream: Permission denied in [REMOVED]/wp-content/plugins/wp-advanced-math-captcha/includes/class-core.php on line 106PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in [REMOVED]/wp-content/plugins/wp-advanced-math-captcha/includes/class-core.php:107
       ```
   
 * Best practices for WP calls for no/limited write access to file system for obvious
   security reasons. It would be great if the plugin can be refactored to either
   detect if there is write access, and/or remove write access to function.
 * Thanks.

Viewing 1 replies (of 1 total)

 *  [lulub5592](https://wordpress.org/support/users/lulub5592/)
 * (@lulub5592)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/bug-plugin-will-fatal-error-without-filesystem-write-access/#post-18353615)
 * Thank you! It will be fixed with the next update

Viewing 1 replies (of 1 total)

The topic ‘[Bug] Plugin will Fatal Error without filesystem write access’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-advanced-math-captcha_cce2f3.svg)
 * [WP Advanced Math Captcha](https://wordpress.org/plugins/wp-advanced-math-captcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-advanced-math-captcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-advanced-math-captcha/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-advanced-math-captcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-advanced-math-captcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-advanced-math-captcha/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [lulub5592](https://wordpress.org/support/users/lulub5592/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/bug-plugin-will-fatal-error-without-filesystem-write-access/#post-18353615)
 * Status: resolved