WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Wp_cron] Task not executing (2 posts)

  1. airbuzz
    Member
    Posted 3 years ago #

    Hi everyone.

    I have an issue with a plugin i am developing.
    This plugin has to run every 3 hours and connect to some remote server to grab some json data. I set up the cron tasks which appears properly and the plug in display the time remaining to the next update.
    Problem is that when the time for the update comes no data is grabbed at all. When i runs it manually data is grabbed properly and there is no error.

    Also i have been installing 'Cron Control' plugin in order to run the cron directly from the admin. When i do it no problem either, i just get 'the selected task has been run properly'.
    Does anyone know Why the cron would run properly when i manually do it and not when it is completely automated ?

    Thank you in advanced,

  2. airbuzz
    Member
    Posted 3 years ago #

    to precise the scheduled function to execute is inside a class.

Topic Closed

This topic has been closed to new replies.

About this Topic