• Resolved alFrame

    (@alframe)


    Hi there,

    I get following error: Cron-Reschedule-Event-Fehler für Hook: orddd_lite_ts_tracker_send_event, Fehlercode: invalid_schedule, Fehlermeldung: Die Ereignisplanung existiert nicht., Daten: {“schedule”:”once_in_week”,”args”:[],”interval”:604800}

    Seems that something is going wrong with the anonymous tracking the plugin does. I found out by searching on the web, that I can disable the tracking and the error would go away.

    Unfortunately I cannot see the setting in the plugin settings.

    I also learned, that I could add this to my functions.php: add_filter( ‘pre_option_orddd_lite_enable_tracking’, ‘__return_false’ );

    Unfortunately I am running an Oxygen Builder website and the functions.php is ignored. I could add it through the CodeSnippets plugin.

    Also I was told I could add the following to my functions.php : add_filter( ‘cron_schedules’, function( $schedules ) { $schedules[‘once_in_week’] = array( ‘interval’ => 604800, ‘display’ => ‘Once a Week’ ); return $schedules; });

    Any advice on this would be helpful! Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @alframe,

    I apologize for the delay in getting back to you.

    My developer colleague has reviewed your query and shared the following details:

    The error happens because the Order Delivery Date Lite plugin is trying to run a weekly tracking task using a schedule called “once_in_week”, but that schedule no longer exists in WordPress. When the plugin tries to reschedule the task, WordPress reports “invalid_schedule”.
    This usually occurs when:

    • The plugin created the tracking task earlier, but the weekly schedule was not registered
    • Tracking was turned off later, leaving behind an old cron entry
    • Another plugin removed custom cron schedules

    It’s harmless and only related to the plugin’s anonymous tracking.
    Fix: Please set the option orddd_lite_allow_tracking to an empty value.

    Kindly review the above information and let us know if you have any further questions.

    Hi @alframe,

    We also checked and found that clicking the Reset Usage Tracking button in the plugin settings does not disable the tracking, so the error will continue to appear.

    To fix this, my developer colleague has provided the following snippet:

    add_action( 'admin_init', 'orddd_lite_set_allow_tracking_empty' );
    function orddd_lite_set_allow_tracking_empty() {
    // Get current option value
    $current_value = get_option( 'orddd_lite_allow_tracking' );

    // If value is not empty, update to empty
    if ( ! empty( $current_value ) ) {
    update_option( 'orddd_lite_allow_tracking', '' );
    }
    }

    You can add this code snippet to the functions.php file of your active theme, or preferably, add it using the Code Snippets plugin.

    If you have any questions or need assistance implementing this snippet, please feel free to reach out.

    • This reply was modified 6 months, 1 week ago by komal-maru.
    Thread Starter alFrame

    (@alframe)

    Hi @komal-maru now I am sorry for my delay.

    I have now implemented the script via Code Snippet plugin. I will see if the emails stop coming in about the failed cron job and let you know.

    Closing the ticket for now.

    Thank you!

    Hi @alframe,

    Thank you for the update.

    That sounds good. Please monitor it, and feel free to reopen the ticket or reach out to us if you continue to receive emails related to the failed cron job or need any further assistance.

    Have a great day!

    Thread Starter alFrame

    (@alframe)

    This is more an update. I have still received the emails about the broken cron-job after applying your code snippet.

    I AI’d it and Claude gave me the following snippet to also remove the broken cron-event from the db.

    add_action('init', function() {
    $timestamp = wp_next_scheduled('orddd_lite_ts_tracker_send_event');
    if ($timestamp) {
    wp_unschedule_event($timestamp, 'orddd_lite_ts_tracker_send_event');
    }
    });

    I will monitor it and let you know if it now stopped sending me emails.

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

You must be logged in to reply to this topic.