• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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