Title: Fatal error when saving changes
Last modified: November 6, 2019

---

# Fatal error when saving changes

 *  Resolved [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-saving-changes/)
 * I upgraded the plugin, activated the “No emails” checkbox, clicked on the “Save
   changes” button and this appeared :
 *     ```
       Fatal error: Uncaught Exception: wp-config.php is not writable. in /wordpress-beta-tester/vendor/WPConfigTransformer.php:49 
       Stack trace: 
       #0 /wordpress-beta-tester/src/WPBT_Extras.php(264): WPBT_WPConfigTransformer->__construct('/wordpress-beta-..') 
       #1 /wordpress-beta-tester/src/WPBT_Extras.php(231): WPBT_Extras->remove_constants(Array) 
       #2 /wordpress-beta-tester/src/WPBT_Extras.php(161): WPBT_Extras->update_constants(Array, Array) 
       #3 /wp-includes/class-wp-hook.php(288): WPBT_Extras->save_settings(Array) 
       #4 /wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) 
       #5 /wp-includes/plugin.php(478): WP_Hook->do_action(Array) 
       #6 /wordpress-beta-tester/src/WPBT_Settings.php(104 in /wordpress-beta-tester/vendor/WPConfigTransformer.php on line 49
       ```
   
 * After the wp-config.php was chmod-ed to writeable the error disappeared. I recommend
   to check for write permissions before changing the file.

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

 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-saving-changes/#post-12104730)
 * Thanks [@hinjiriyo](https://wordpress.org/support/users/hinjiriyo/). This is 
   now tested in the `develop` branch. I had a test for the `file_exists` I just
   changed it to `is_writable` which tests for both.
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-saving-changes/#post-12104755)
 * The detriment will be we won’t be able to discern why certain things aren’t working.
   I’m tempted to leave the Exception in as it’s very descriptive.
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-saving-changes/#post-12104864)
 * I think I came up with a better fix in the `develop` branch.
 * [https://github.com/afragen/wordpress-beta-tester/commit/31caeba9719677a9c113774b7d73463c20215286](https://github.com/afragen/wordpress-beta-tester/commit/31caeba9719677a9c113774b7d73463c20215286)

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

The topic ‘Fatal error when saving changes’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-beta-tester/assets/icon-256x256.png?rev=2562317)
 * [WordPress Beta Tester](https://wordpress.org/plugins/wordpress-beta-tester/)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-beta-tester/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-beta-tester/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-beta-tester/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-beta-tester/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-saving-changes/#post-12104864)
 * Status: resolved