Skip to Content Skip to Menu

[#5344] Mailer cronprocesssendmailqueue not working

  • petekuhn
  • petekuhn
  • OFFLINE
  • Posts: 239
  • Thanks: 34
  • Karma: 0
9 years 4 months ago - 9 years 4 months ago #266115 by petekuhn
CB 2.0.9.ci.2015.06.16.00.20+9c3cbefdf, CBSubs 4.0.0.ci.2015.06.12.00.20, Joomla 3.3.6, PHP 5.5.24

Cron job failing. When I click on the link in the backend, I get this error:

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '15 DAY )) AND (m.`expiry_date` >= DATE_ADD( UTC_TIMESTAMP(), INTERVAL 1 MONTH 7 ' at line 3 SQL=SELECT * FROM `qujx_cbsubs_subscriptions` AS m WHERE (m.`expiry_date` <= DATE_ADD( UTC_TIMESTAMP(), INTERVAL 1 MONTH 15 DAY )) AND (m.`expiry_date` >= DATE_ADD( UTC_TIMESTAMP(), INTERVAL 1 MONTH 7 DAY )) AND m.`plan_id` = 12 AND m.`status` = 'A' ORDER BY m.`id` DESC
Last edit: 9 years 4 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 4 months ago #266141 by krileon
Replied by krileon on topic Mailer cronprocesssendmailqueue not working
Looks like there's an SQL syntax error when using the 1 month and 15 days before/after as well as 1 month and 7 days before/after usages. Please edit your mailer and set it to just 1 month for now so your mailer will function. I've created a bug ticket for further investigation and fixing for a new nightly release.

#5344


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 or Create an account to join the conversation.

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
9 years 4 months ago #266204 by beat
Thanks for reporting. This bug is now fixed and will be available in next CBSubs nightly which should be in downloads tomorrow.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
The following user(s) said Thank You: krileon, petekuhn

Please Log in or Create an account to join the conversation.

  • petekuhn
  • petekuhn
  • OFFLINE
  • Posts: 239
  • Thanks: 34
  • Karma: 0
9 years 4 months ago #266249 by petekuhn
Replied by petekuhn on topic Mailer cronprocesssendmailqueue not working
Picked up CBSubs-4.0.0.ci.2015.06.19.00.20. Verified fix. Thanks.
The following user(s) said Thank You: nant

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum