• Resolved David Botibol

    (@botibol)


    Repeated errors are appearing in the WordPress error_log file on Sunday nights, e.g.:

    Cron reschedule event error for hook: wpforms_weekly_entries_count_cron, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {“schedule”:”wpforms_weekly_entries_count”,”args”:[],”interval”:-3505}

    This appears to occur with WPForms Lite 1.8.8 versions which introduced a new file
    \wpforms-lite\src\Lite\Emails\Summaries.php
    that is not found in WPForms Lite 1.8.7.2.

    At line 171 we find the instruction:

    wp_schedule_event( $this->get_weekly_entries_count_interval(), ‘wpforms_weekly_entries_count’, ‘wpforms_weekly_entries_count_cron’ );

    Does the error arise from that instruction?

    Please could a new release of WPForms Lite include an adjustment so that the weekly entries count process will run without error and generate the weekly summary email?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support Kenneth Macharia

    (@kmacharia)

    Hey @botibol

    Thank you for reaching out and sorry for the trouble there!

    Could you please confirm if there are any other failed actions displayed when you go to WPForms → Tools → Scheduled Actions?

    We have just released WPForms 1.8.9.1 today that addresses a couple of warning in PHP 8.0.

    When you have a chance, could you please update to this version and check if the errors are still reported?

    Thank you!

    Thread Starter David Botibol

    (@botibol)

    Hi Kenneth,

    Thanks for picking this up.

    On one website the last SA last failed action in Scheduled Actions was wpforms_admin_addons_cache_update on 2024-03-23 23:32:18 +0000, whereas the first wpforms_weekly_entries_count error was 02-Jun-2024 23:00:19 UTC, following update of WPForms Lite. I think the failed actions are unrelated to the wpforms_weekly_entries_count error.

    Looking at WPForms 1.8.9.1, the file of interest, \wpforms-lite\src\Lite\Emails\Summaries.php has a fresh date. but unchanged contents. So if the error was in the old version of that file, it is still in the new one. The changelog does not assert any adjustment of wpforms_weekly_entries_count processing.

    The problem manifests with PHP7 as well as PHP8.

    I propose to try WPForms 1.8.9.1 as you ask.

    Good weekend,

    David

    Plugin Support Kenneth Macharia

    (@kmacharia)

    Hey @botibol

    Thanks for sharing these findings! Since multiple scheduled tasks are affected, would you mind checking if wp_cron is running as expected on your server? I have just tested this on a local instace but I’m unable to reproduce these warnings on my end.

    In my experience, any issues with wp_cron will affect the running of scheduled tasks.

    Please let me know how this goes! Thank you!

    Thread Starter David Botibol

    (@botibol)

    Hi Kenneth,

    Investigating this issue further, I discovered that with WPForms Lite 1.8.8 versions the weekly email was being sent, but incorrectly showing zero totals.

    Looking at the site where I updated to WPForms 1.8.9.1, the following scheduled actions subsequently completed:
    wpforms_process_forms_locator_scan
    wpforms_process_forms_locator_save
    wpforms_admin_notifications_update
    wpforms_email_summaries_fetch_info_blocks

    However wpforms_builder_help_cache_update action failed via Admin List Table: Scheduled action for wpforms_builder_help_cache_update will not be executed as no callbacks are registered.

    There are no new entries in the error_log. The weekly email turned up on 17 June 2024 at 17:44. The weekly email shows Entries This Week whereas for WPForms Lite whereas previous releases showed the total number of submissions for each form, as documented at https://wpforms.com/docs/how-to-use-email-summaries/ .

    Thank you very much for your help with this.

    Good wishes,

    David

    Thread Starter David Botibol

    (@botibol)

    Hi Kenneth,

    After updating to WPForms Lite 1.8.9.4 the fault returned. I have reverted to WPForms Lite 1.8.9.1. Did the correction in 1.8.9.1 get accidentally downdated? I see there are recent releases 1.8.9.5 and 1.8.9.6. From which release is the correction re-applied, please?

    Thanks for keeping a watch on this plugin.

    David

    Plugin Support Kenneth Macharia

    (@kmacharia)

    Hey @botibol

    I’m sorry to hear that you are still experiencing the issue. We have not made any updates that should affect scheduled actions in the last two updates.
    Did you get a chance to very if cron is working correctly on your site? There are various plugins available in the WordPress repo that you can use to check if scheduled jobs are running as expected.

    Thanks!

    Thread Starter David Botibol

    (@botibol)

    Hi Kenneth,

    The fault occurs on two totally separate and different websites.

    On both sites the wpforms Scheduled Actions tab shows scheduled tasks and many completed tasks but no recent failed tasks. I think these are WP-Cron rather than Cron tasks. I don’t think we have non-WordPress cron jobs set up. Also, on one of the sites I installed Cron Logger plugin which shows lots of wp-cron.php runs.

    Can you tell me which files in the plugin zip relate to the process that would trigger these entries in the error log? It could be worth searching what changes in them occurred between 1.8.9.1 and 1.8.9.4. Unfortunately WPForms Lite 1.8.9.3 appears to be missing from https://www.ads-software.com/plugins/wpforms-lite/advanced/, so I couldn’t check that one.

    The Weekly WPForms Summary process having failed, is there a way to trigger it, rather than waiting till the following week?

    Best wishes,

    David

    Plugin Support Kenneth Macharia

    (@kmacharia)

    Hey @botibol

    Thank you for getting back to me.

    This action is called from the following file: wpforms/src/Admin/Builder/HelpCache.php.
    You can manually trigger the email by going to WordPress > Tools > Scheduled Actions and click on Run below the action.

    I have alerted our team about this issue and they will be investigating further. I will shoot you an update as soon as I hear back from them.

    I hope this helps!

    Plugin Support Kenneth Macharia

    (@kmacharia)

    Hey @botibol,

    I wanted to let yo know that we have just released version 1.9.1.1 of WPForms that contains a fix for the debug log error resulting from the?wpforms_weekly_entries_count_cron?task. Please update to this version if you have not done so already.

    Have a good one. ??

    Thread Starter David Botibol

    (@botibol)

    Hi Kenneth,

    Thank you for this update.

    I have updated one website to the latest release 1.9.1.3.
    The ‘Disable Email Summaries weekly delivery’ switch stays on.

    Good week,

    David

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @botibol,

    Thanks for the information!

    When you have a moment, could you please confirm whether the debug log error related to the wpforms_weekly_entries_count_cron task has been resolved with the new version, or if it’s still occurring for you?

    Thanks!

    Thread Starter David Botibol

    (@botibol)

    Hi Ralden,

    I updated another website to Version 1.9.1.3 on Oct 8, 2024, 5:01 PM BST. For this website there remains in place the following code snippet to disable the weekly summary processes.

    add_filter( ‘wpforms_emails_summaries_is_disabled’, ‘__return_true’ );
    add_filter( ‘wpforms_dash_widget_allow_entries_count_lite’, ‘__return_false’ );

    So far the error log has not been added to by this plugin. However there are weekly processes involved; so I shall look again over the next week or so.

    Thanks for your help.

    Best wishes,

    David

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @botibol,

    Thanks for letting us know!

    I hope the issue is fully resolved and that no new error logs are generated when the weekly email summary is delivered this week.

    However, if the issue persists, please don’t hesitate to reach out. We’re here to help!

    Thanks!

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