Title: maintenance.php not updated/saved properly.
Last modified: August 31, 2016

---

# maintenance.php not updated/saved properly.

 *  Resolved [Joakim](https://wordpress.org/support/users/yettyn/)
 * (@yettyn)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/maintenancephp-not-updatedsaved-properly/)
 * I really like the simplicity of this plugin but I have a major problem with it.
 * After installation and activation a default wp-content/maintenance.php file was
   created. However, when I make changes to the html portion in the admin the text
   there is updated – but the maintenance.php is not! The preview shows the changes
   though.
 * The only way to make it write a new file is to manually delete the default one
   created, but then another problem appears. The file seems to be saved in coded
   format with html entities replacing things like < > etc. and just render to text
   showing the html source in stead of parsing it. Example:
 *     ```
       // Get the HTML code from plugin options ?>
       <!DOCTYPE html><html lang=&quot;fr-FR&quot;>
       <head>
       ```
   
 * Reading the code I can see that maintenance.php is supposed to get deleted before
   recreated on save, but that never happens. The file is not write protected or
   anything, server has privileges to do it so not sure what’s happening, if it’s
   just me or???
 * [https://wordpress.org/plugins/maintenance-switch/](https://wordpress.org/plugins/maintenance-switch/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Fugu Design](https://wordpress.org/support/users/fugudesign/)
 * (@fugudesign)
 * [10 years ago](https://wordpress.org/support/topic/maintenancephp-not-updatedsaved-properly/#post-7327541)
 * Hi,
 * Sorry for the inconvenience and for this belated answer, but i was not noticed
   of your request.
 * This bug has been detected and quickly solved since version 1.3.3.
    Could you
   confirm that?
 * Thank you.
 * Best regards.

Viewing 1 replies (of 1 total)

The topic ‘maintenance.php not updated/saved properly.’ is closed to new replies.

 * ![](https://ps.w.org/maintenance-switch/assets/icon-256x256.png?rev=1205972)
 * [Maintenance Switch](https://wordpress.org/plugins/maintenance-switch/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/maintenance-switch/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/maintenance-switch/)
 * [Active Topics](https://wordpress.org/support/plugin/maintenance-switch/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maintenance-switch/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maintenance-switch/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Fugu Design](https://wordpress.org/support/users/fugudesign/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/maintenancephp-not-updatedsaved-properly/#post-7327541)
 * Status: resolved