Title: CRON problem
Last modified: August 19, 2021

---

# CRON problem

 *  [pearlpepper](https://wordpress.org/support/users/pearlpepper/)
 * (@pearlpepper)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/cron-problem-10/)
 * I found a problem when you enable Maintenance Mode and the CRON script wp-cron.
   php is used after each execution of the command, an execution report is sent 
   to the email. If CRON runs once a minute, that’s 60 messages an hour or 1440 
   emails a day !!!
 * Messages have the following text:
    <! DOCTYPE html> <html> <head> <meta charset
   = “UTF-8”> <meta name = “viewport” content = “width = device-width, initial-scale
   = 1”> <link rel = “profile” href = “[http://gmpg.org/xfn/11”&gt](http://gmpg.org/xfn/11”&gt);
   <style type = “text / css”> * { -webkit-box-sizing: border-box; -moz-box-sizing:
   border-box; box-sizing: border-box; }
 *  html, body {
    min-height: 100%; }
 *  body {
    background:; font-family: Helvetica, Arial, sans-serif; font-size: 18px;
   text-align: center;
 *  }
 *  #container {
    margin: 40px auto; max-width: 600px; padding: 30px; background:
   white; box-shadow: 0px 0px 5px 0px # e0dfdf; padding-bottom: 40px; }
 *  p {
    margin: 0 0 20px; }
 *  .logo {
    max-width: 540px; }
 *  [@media](https://wordpress.org/support/users/media/) screen and (max-width: 
   630px) {
    .logo { max-width: 100%; } }
 *  </style>
 *  <title> First </title>
    </head>
 *  <body>
    <div id = “container”> <header>  </header> <main> <p> Sorry, fixing 
   </p> </main> </div> </body> </html>

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

 *  Thread Starter [pearlpepper](https://wordpress.org/support/users/pearlpepper/)
 * (@pearlpepper)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/cron-problem-10/#post-14785489)
 * Also it stops CRON jobs from running. You can watch it through the WP Cron plugin
 * [https://yadi.sk/i/fErEPa3nJQ9a4Q](https://yadi.sk/i/fErEPa3nJQ9a4Q)
    [https://yadi.sk/i/dQfz-g4YF9hWpg](https://yadi.sk/i/dQfz-g4YF9hWpg)
   [https://yadi.sk/i/XIN22EcDU8Za_A](https://yadi.sk/i/XIN22EcDU8Za_A) [https://yadi.sk/i/AoxZk0UV2TNjjQ](https://yadi.sk/i/AoxZk0UV2TNjjQ)
 *  Plugin Author [Northern Beaches Websites](https://wordpress.org/support/users/northernbeacheswebsites/)
 * (@northernbeacheswebsites)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/cron-problem-10/#post-14786430)
 * Hi [@pearlpepper](https://wordpress.org/support/users/pearlpepper/),
 * I am not sure about this one. I haven’t had any other reports of this, but other
   users probably aren’t doing things at the same level as you are.
 * In our main plugin file: wp-custom-admin-interface.php on line 851 it sets out
   the condition in which the maintenance mode should run, it looks like this:
 * if ($pagenow !== ‘wp-login.php’ && ! current_user_can( ‘manage_options’ ) && !
   is_admin() && isset($options[‘wp_custom_admin_interface_enable_maintenance’])&&
   $todaysDate < $maintenanceExpiryDate) {
 * There’s a condition !is_admin() which prevents it running on admin, and I would
   have thought that this would prevent affecting any cron processes. It would be
   strange if this would be affecting cron to be honest, so maybe double check that
   it’s actually the maintenance mode doing this. I also don’t know about this execution
   report you are talking about. I really think in this instance you need a developer
   to go through your specific requirements and troubleshoot the code potentially,
   or just don’t use our plugin for the maintenance functionality. Our maintenance
   functionality was based off other maintenance plugins though so you may run into
   the same issue with them!

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

The topic ‘CRON problem’ is closed to new replies.

 * ![](https://ps.w.org/wp-custom-admin-interface/assets/icon.svg?rev=1656274)
 * [WP Custom Admin Interface](https://wordpress.org/plugins/wp-custom-admin-interface/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-custom-admin-interface/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-custom-admin-interface/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-custom-admin-interface/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-custom-admin-interface/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-custom-admin-interface/reviews/)

## Tags

 * [cron](https://wordpress.org/support/topic-tag/cron/)

 * 2 replies
 * 2 participants
 * Last reply from: [Northern Beaches Websites](https://wordpress.org/support/users/northernbeacheswebsites/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/cron-problem-10/#post-14786430)
 * Status: not resolved