Hello @Miro,
Thank you again. Itâs funny as two days ago I wrote a blog post about wp-cron on my blog (in french), and mentioned the fact that you can offload the triggering of these tasks to the server, instead of relying on the traffic.
Unfortunately, it is still not working for me.
So maybe the support team (@andrii, @ihor ? ) would be kind enough to point me towards the right direction ?
The hosting support team said they werenât responsible for the DISABLE_WP_CRON
set to true. So I set to false instead. No improvement.
Some cron tasks are triggered (like the wp smtp mail weekly summary, which I can disable and probably will). I even created my own event. it works.
At some point, I had about 50+ failed events, but deleted them altogether, to see if any more event would fail. None so far.
However listings due to expire yesterday (for debugging purposes) are still showing.
Any idea on how to find the culprit ?
The following code is triggered when I forced it (ran it manually) :
function my_cron_function() {
error_log('Cron (daily hivepress) job executed at: ' . current_time('mysql'));
// should I add some logic here to force the due listings to expire ?
}
add_action('hivepress/v1/events/daily', 'my_cron_function');
It shows in the debug.log file. So the hivepress/v1/events/daily
cron task seems to run (at least manually), but does not do anything to the expired listings (should change their status to draft, as I understand).
I am using Taskhive theme, I assume the expiry feature also work for this theme.
At least it is available in the Hivepress > Settings > Listings dashboard section.
Looking forward to hearing from you, guys !
[EDIT]
Here are the settings in /wp-admin/admin.php?page=hp_settings
for listings :
(for debugging purposes, the listing should expire the next day).
I recreated a new listings (logged as vendor, not admin).
Then I went to check the expiry date set in the backend for this listing (therefore as admin) :

(â> May 4th, 2025, instead of tomorrow (Feb 4th), as set in the settings above.
This may look like the beginning of an explanationâŚ
As you can see my backend language is set to English, but date shows in French format (DD/MM/YY instead of MM/DD/YY). Anyway, when I switch back to french, the same date shows, exactly the same (in french format and wording), only labels would switch to french.
Reason for which I set my backend in English, even though I am French, is that it is easier to speak the same language, take screenshot, or debug (based on error messages) in this âlingua francaâ. To do this, I would go to Users > Profile > and set language to en-US.
Then I checked the date format under (WP) Settings > General :
Should I change anything here ?
But then dates in the front end (user/listing/request creation, last loginâŚ) would display in a funny way, instead of French format (which is my audience). Changing the language, the way I did, affects the backend only and for myself only (admin), as far as I know.
I donât know if this is the beginning of a solution , but I thought I should mention this finding.
[/EDIT]
[EDIT2]
I went a little further and played around with the date format :

But the date in the listings still remains buggy (to me) :

I then even switched to m/d/Y, recreated a new listing, same problem : expiration date shows 04/05/2025 (or 05/04/2025 depending of the date format chosen).
[/EDIT2]
Please advise.