Freemius / wordpress-sdk

https://freemius.com
GNU General Public License v3.0
264 stars 76 forks source link

Unhooked daily cron remains after installation #467

Open mattyrob opened 3 years ago

mattyrob commented 3 years ago

🐞 bug report

Behavior:

Versions: (*)

Plugin / Theme: (*)

Additional Information:


Note: (*) indicates required information. Without this information, your issue may be auto-closed.

You can find your Freemius SDK version at /freemius/start.php

You can find your Freemius product ID in the Freemius dashboard: SETTINGS -> INTEGRATION.

Do not modify the titles or questions. Simply add your responses to the ends of the questions. Add more lines if needed.

vovafeldman commented 2 years ago

@mattyrob we are not able to reproduce this issue. Is it possible that the plugin was deactivated/deleted via FTP?

mattyrob commented 2 years ago

@vovafeldman Thanks for the response. The plugin(s) is/are still installed and active but there remains a cron hook defined with no action attached to it.

vovafeldman commented 2 years ago

@mattyrob why do you think there's no action attached to it? The SDK does come with a daily WP cron to sync license data from the API.

mattyrob commented 2 years ago

@vovafeldman If you install the WP-Crontrol plugin it shows the hook and in the 'Action' column where the hooked function should be listed it displays 'None' as per the attached screenshot.

The column names are Hook, Arguments, Time, Action, Recurrence.

Screenshot 2021-12-19 at 17 23 49
vovafeldman commented 2 years ago

@mattyrob I don't know how this plugin works so hard for me to say.

Please try the following:

mattyrob commented 2 years ago

@vovafeldman

Thanks for keeping with me on this.

My understanding, as per the WordPress developer handbook is that to use the cron system you create a hook and then add a callback to that hook.

I can see the hook in both Query Monitor and WP-Crontrol and I can also see that the hook is being executed on schedule.

The issue I am trying to raise is the the hook appear to have no callback attached to it, so even though there is cron hook registered and executing, it isn't actually doing anything.