Home Forums Newsletter Plugin Support Newsletter Automated ::: Bug for Generator next run

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #323050
    JamesOHT
    Participant

    Hello,

    I found an issue with the newsletter automated status page. It looks like
    echo NewsletterControls::print_date(wp_next_scheduled('newsletter_automated', array($channel->id)), false, true);
    is failing to find the next cron. After some debugging on a new wordpress install, I think the issue is that it expects an integer but is receiving a string.

    This corrects it for me: admin/edit.php

    // convert string to int
    $check = (int)$channel->id;
    echo NewsletterControls::print_date(wp_next_scheduled('newsletter_automated', array($check)), false, true); 

    PHP:
    PHP 7.4.33 (cli) (built: Feb 14 2023 09:31:03) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies

    #323206
    Michael
    Keymaster

    Hello James,

    I’ve passed this to our developers, we’ll look into this as soon as possible. Thanks for you feedback.

    Michael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.