• Resolved Matt

    (@visibledeals)


    Hello

    I notice that I was getting below message on my sitehealth and also noticed that paypal payment options disappeared from the checkout page. Not sure if these issues are related but I turned off your plugin for now. Please let me know if you have any idea as to what might have happened. thanks

    The scheduled event, smush_check_for_conflicts, is late to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @visibledeals ,

    I’m sorry to hear about this issue.

    Did you have LazyLoad enabled in Smush when checkout stopped working? Can you try enabling plugin again and check with LazyLoad enabled and disable?
    If that is this feature causing the issue, please try excluding the checkout page from lazyloading.

    As for The scheduled event, smush_check_for_conflicts is late to run issue – smush_check_for_conflicts is a background task that Smush is running to do some regular maintenance checks. It uses wp-cron to run the task (wp-cron is a built-in WordPress feature that allows plugin authors to run background actions on a predefined schedule).

    The issue here is possibly caused by the fact that wp-cron can only run if the site is being visited. So for example if a task is scheduled to be run at midday and there are no visitors until 1pm, then the task will be run at 1pm – so it will be 1h late. On every page load WordPress checks if there are any scheduled tasks that need to be run and executes them.

    You can read more about wp-cron here: https://wp-events-plugin.com/documentation/wp-cron/

    There are two ways to ensure the background wp-cron tasks are run regularly and as scheduled:

    1. Request your hosting provider to set up a server-side cron job for you to regularly “ping” your site. It’s basically like having a fake visitor that will trigger wp-cron to run.

    On our hosting we have such a server-side cron job set up by default – it runs every 5 minutes and calls a server side script that triggers all wp-cron tasks (using wp-cli) on the site.

    2. Use an external service to regularly ping your site. Example services like that are:
    https://www.easycron.com/
    https://www.pingdom.com/

    kind regards,
    Kasia

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @visibledeals

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cron job issue and paypal checkout disappeared’ is closed to new replies.