• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Forwarded to devs WordPress Toolkit Maintenance Folder

Alex Miller

New Pleskian
TITLE:
WordPress Toolkit Maintenance Folder
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
Plesk 17.5.3x on CentOS 7.3, WordPress 4.8.2
PROBLEM DESCRIPTION:
In the past couple of minor WordPress updates the following files are not cleaned up:
  • /wp-content/maintenance.php
  • /wp-content/maintenance/*
  • wp-content/maintenance/template.phtml
We're also receiving the following PHP error in our debug logs:

Code:
PHP Notice: Undefined variable: timer in /wp-content/maintenance/template.phtml on line 22

We have the WordPress Toolkit installed but we do not use it for updates or, really at all, it's just there if we ever need it. The following plugins are installed on said system ( though it's happening on many systems throughout ):
  • All In One WP Security
  • Contact Form 7
  • Really Simple CAPTCHA
  • Custom General Plugin ( Created by my company )
We believe since the maintenance folder appears to be produced by the WordPress Toolkit that maybe it is the cause of why maintenance.php and the folder itself is not automatically being removed after maintenance.​
STEPS TO REPRODUCE:
Have WordPress run through an automatic update.​
ACTUAL RESULT:
Files and Folder are left in the wp content folder after maintenance mode has ended:
  • /wp-content/maintenance.php
  • /wp-content/maintenance/
    • template.phtml
    • /assets/
      • styles.css
      • timer.js
      • /images/
        • bg.jpg
        • facebook.svg
        • instagram.svg
        • plesk-logo.png
        • twitter.svg
      • /fonts/
        • open-sans-300.woff
        • open-sans-300.woff2
        • open-sans-regular.woff
        • open-sans-regular.woff2
EXPECTED RESULT:
Any maintenance files / folder being removed after WordPress has exited maintenance mode.​
ANY ADDITIONAL INFORMATION:
This appears to only happen during an automatic update which we have enabled in WordPress ( not Plesk ).
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Confirm bug
 
From developer:

Reported behavioir is expected.

  • /wp-content/maintenance.php
  • /wp-content/maintenance/*
began left after disabling Maintenance mode since WP Toolkit 2.1 when managing this mode was added to GUI. It was made to allow users to customize maintenance page template while website is not in maintenance.

The only file that creates and removes after it disabling is ../example.com/httpdocs/.maintenance
 
Thanks for the reply!

What about the error? We keep debug logs enabled throughout all our websites and this has recently started popping up through all our sites.
 
Back
Top