Reputation: 4462
I am trying to enable digests to be sent by the Buddypress group email notification plugin for Buddypress/Wordpress, without success.
Here's what's happened so far:
I have confirmed that all items are getting added to the digest list generated by the plugin by visiting the page that shows these, i.e. http://[site url]/?sum=1
I am able to manually trigger the sending of digests by visiting the URL for wp-cron.php, i.e. http://[site url]/wp-cron.php in my browser.
So, the issue is with the triggering of wp-cron.php. Having researched this it seems like it would be a good idea for me to set up a cron job on my server, as there is not much traffic to my site and the built in WordPress pseudo cron job only gets triggered when someone visits the site.
The issue I now have is what to enter for the command for the cron job. I have tried many things, but I currently have this:
wget -O /dev/null http://soteriabrighton.co.uk/wp-cron.php
I have it set up to email me when each cron job runs, and this is what the above command returned:
--2012-07-03 18:15:01-- http://soteriabrighton.co.uk/wp-cron.php
Resolving soteriabrighton.co.uk... 208.53.158.38
Connecting to soteriabrighton.co.uk|208.53.158.38|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: `/dev/null'
0K 0.00 =0s
2012-07-03 18:15:04 (0.00 B/s) - `/dev/null' saved [0/0]
To my untrained eye it looks like it worked OK, and yet no digests were sent out.
Any help to get this fixed/with troubleshooting steps would be much appreciated.
Upvotes: 0
Views: 2968
Reputation: 8616
Tried to google for it or check thei9r forums - 2 seconds gave me:
http://forums.cirtexhosting.com/website-development-scripting/1395-cron-job.html
wget sometimes is permissioned to be not allowed by user so some servers its disabled for users. Might want to try curl, lynx, if those are disabled too, you can try just /usr/bin/local/php /home/youruser/public_html/file.php for example will do or php -q -f /home/user/public_html/file.php
also seems direct php works, i.e:
php -q -f /home/user/public_html/file.php
Alother pages suggests (for critex):
/usr/local/php5/bin/php5 -q /full-path/yours-php5-script.php5
Upvotes: 2