• 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 = “https://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 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

    (@pearlpepper)

    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/dQfz-g4YF9hWpg
    https://yadi.sk/i/XIN22EcDU8Za_A
    https://yadi.sk/i/AoxZk0UV2TNjjQ

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @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.