typisttech / sunny

Automatically purge Cloudflare cache, including cache everything rules.

Home Page:https://typist.tech/projects/sunny

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cron job

studiosx opened this issue · comments

I've scheduled some posts. None of them was published. (Missed schedule)

From cronjob I got this error:
Parse error: syntax error, unexpected ':', expecting '{' in /home/xxxxx/public_html/wp-content/plugins/sunny-purge-extra-urls-example-master/sunny-purge-extra-urls-example.php on line 48

Can you hemp me with that issue?
Thank you!

PS: After I deactivated Sunny Purge Extra URLs Example plugin, I got this error from cronjob:


Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) in /home/xxxxx/public_html/wp-content/plugins/sunny/src/Sunny.php on line 57

Your cron jobs are running on a different PHP version. Sunny requires PHP 7.0 (next release will be 7.1)

If you trigger wp cron via wp cli, see: ~~~#137~~~ typisttech/wp-cloudflare-guard#74

If you trigger wp cron via php /home/xxxxx/public_html/wp-cron.php?doing_wp_cron, then use /full/path/to/php /home/xxxxx/public_html/wp-cron.php?doing_wp_cron

Side note: sunny-purge-extra-urls-example is an example. By default, it doesn't do anything useful.

Thank you very much!
I made the changes and now it works like a charm!

Glad to help.

For anyone from the future, if you trigger wp cron via wp cli, see: ~~~#137~~~ typisttech/wp-cloudflare-guard#74
The original link was incorrect.