• Resolved Antony Booker

    (@antonynz)


    Thanks for this plugin. You might be aware of this already.

    I noticed cron tasks are no longer running on 2.6.0 when WooCommerce is installed with this plugin. This is due to the modular_connector_run_schedule cron requesting an admin screen in the screensimulation.php file (I’m assuming to check for errors?). However this triggers WooCommerce to fire a safe_redirect to /my-account/ since no user is logged in, which then fires an “exit” any further cron jobs from running.

    #0  WP_CLI\Utils\wp_redirect_handler(example.com/my-account/) called at [wp-includes/class-wp-hook.php:343]
    #1 WP_Hook->apply_filters(example.com/my-account/, Array ([0] => example.com/my-account/,[1] => 302)) called at [wp-includes/plugin.php:205]
    #2 apply_filters(wp_redirect, example.com/my-account/, 302) called at [wp-includes/pluggable.php:1492]
    #3 wp_redirect(example.com/my-account/, 302, WordPress) called at [wp-includes/pluggable.php:1641]
    #4 wp_safe_redirect(example.com/my-account/) called at [wp-content/plugins/woocommerce/includes/admin/class-wc-admin.php:213]
    #5 WC_Admin->prevent_admin_access() called at [wp-includes/class-wp-hook.php:341]
    #6 WP_Hook->apply_filters(, Array ([0] => )) called at [wp-includes/class-wp-hook.php:365]
    #7 WP_Hook->do_action(Array ([0] => )) called at [wp-includes/plugin.php:522]
    #8 do_action(admin_init) called at [wp-content/plugins/modular-connector/vendor/ares/framework/src/Foundation/ScreenSimulation.php:209]
Viewing 2 replies - 1 through 2 (of 2 total)
  • Just in case it helps, 
    We are reporting the same problem:



    $ wp cron event run --due-now

    Warning: Some code is trying to do a URL redirect. Backtrace:
    #0 /var/www/html/wp-includes/class-wp-hook.php(343): WP_CLI\Utils\wp_redirect_handler('https://pharmar...')
    #1 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters('https://pharmar...', Array)
    #2 /var/www/html/wp-includes/pluggable.php(1492): apply_filters('wp_redirect', 'https://pharmar...', 302)
    #3 /var/www/html/wp-includes/pluggable.php(1641): wp_redirect('https://pharmar...', 302, 'WordPress')
    #4 /var/www/html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin.php(213): wp_safe_redirect('https://pharmar...')
    #5 /var/www/html/wp-includes/class-wp-hook.php(341): WC_Admin->prevent_admin_access('')
    #6 /var/www/html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
    #7 /var/www/html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
    #8 /var/www/html/wp-content/plugins/modular-connector/vendor/ares/framework/src/Foundation/ScreenSimulation.php(209): do_action('admin_init')
    #9 /var/www/html/wp-includes/class-wp-hook.php(341): Modular\ConnectorDependencies\Ares\Framework\Foundation\ScreenSimulation->Modular\ConnectorDependencies\Ares\Framework\Foundation\{closure}('')
    #10 /var/www/html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
    #11 /var/www/html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
    #12 /var/www/html/wp-settings.php(764): do_action('wp_loaded')
    #13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1374): require('/var/www/html/w...')
    #14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1293): WP_CLI\Runner->load_wordpress()
    #15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #16 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(84): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
    #17 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(35): WP_CLI\bootstrap()
    #18 phar:///usr/local/bin/wp/php/boot-phar.php(20): include('phar:///usr/loc...')
    #19 /usr/local/bin/wp(4): include('phar:///usr/loc...')
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Not Found</title>
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
    .container { margin: 30px; max-width: 600px; }
    h1 { color: #dc3545; font-size: 24px; }
    h2 { font-size: 18px; }</style>
    </head>
    <body>
    <div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "404 Not Found".</h2>

    <p>
    Something is broken. Please let us know what you were doing when this error occurred.
    We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
    </div>
    </body>
    Thread Starter Antony Booker

    (@antonynz)

    Just confirming updating to the latest release 2.6.1 has fixed the issue.

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

You must be logged in to reply to this topic.