[SOLVED] CBSubs Mailer automation and cronjob problem

10 years 7 months ago - 10 years 7 months ago #233254 by Vorak
Hello,

Awhile back, I set up a couple of "Mailers" in the Mailer function of CBSubs.

When I go to "automation settings", I find the URL's needed to trigger the mailer for sending out mails. When I click on those links in my browser, they work perfectly fine.

Then I tried to set up a cronjob, like this:

20 * * * * php /opt/www/[part of path redacted by me for security purposes]/index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&cbpact=cbsubsclass&cbpclass=mailer&user=62&cbpmailerdo=sendmailqueue&key=d41d8cd98f00b204e9800998ecf8427e&format=raw

This is the same way in which I have set up other cronjobs as well (though with other time intervals) and they all work fine, but the ones for the Mailer don't do anything at all. Nothing happens, no mails are being sent out until I open it manually in my browser again.

Have I done something wrong with the way my crontab is set up?

Thanks!

Please Log in to join the conversation.

10 years 7 months ago #233282 by krileon
Replied by krileon on topic CBSubs Mailer automation and cronjob problem
Issue with your sites CRON, you're not reaching CBSubs. Please contact your host for help setting up CRON. If direct access works then the URL is working perfectly fine.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

10 years 7 months ago #233321 by Vorak
Thanks, I have sent an email to my provider and will await their answer. I'll let you know when I have news.

Please Log in to join the conversation.

10 years 7 months ago #233339 by Vorak
The problem has been resolved. The manner in which the cron job was supposed to be configured was different, because a regular PHP cronjob command does not work with arguments like &this=1&that=2. That's only HTTP-protocol.

So I set up a cronjob with this command:


and now it works! Problem solved :)

Please Log in to join the conversation.

10 years 7 months ago #233340 by Vorak
I can't put in the command :(

Please Log in to join the conversation.

10 years 7 months ago #233395 by krileon
Replied by krileon on topic CBSubs Mailer automation and cronjob problem
Our security is probably not going to allow it. It's ok though, glad you were able to resolve your issue!


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: Vorak

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.546 seconds

Facebook Twitter LinkedIn