Activate Cron Jobs

I have a wp_cronjob set up that gets some data from another server and saves a timestamp to the database. It seems like the cronjob doesn’t execute. Now I know that trellis “handles” the cronjobs. Do I have to make some extra settings?

Nope, nothing special needed. Can you post your code? or might help you debug


Thanks for the two links on how to debug.
I had some custom redirects going on that accidently fired when requesting the wp/wp-cron.php path.

1 Like

It turned out there was another problem with my code. I accidently used a short php open tag in two of my files, which also resulted in output of the file content when using wp-cli.

php-cli seems like not allowing short open tags by default. This problem got solved on my Stackoverflow question on the topic.