Skip to Content Skip to Menu

[SOLVED] Cron job error - You are not authorized to view this page

  • petekuhn
  • petekuhn
  • OFFLINE
  • Posts: 239
  • Thanks: 34
  • Karma: 0
9 years 5 months ago - 9 years 5 months ago #265146 by petekuhn
I was having the same problem as others here running CB 2.0.7, PHP 5.5.21. CBSubs GPL 4.0.0-rc.2 also. I just upgraded on a test site from CB 1.9.1.

I got the error whether I ran the cron command line or clicked on the link in Paid Subscriptions->Mailer.

Based on the format for the URL described in one of Kyle's posts I found that the URL in the Mailer: Automation Settings was incorrect. It contained the following (BTW, this was in all 3 URLs on the page, which were identical).

http://SITE/index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&cbpact=cbsubsclass&cbpclass=mailer&user=62&cbpmailerdo=531&key=KEY&format=raw

I changed the 513 to cronprocesssendmailqueue, and it worked (I did the cron command in a shell).
Last edit: 9 years 5 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 5 months ago - 9 years 5 months ago #265191 by krileon
Not sure what keeps causing the URLs to break like that, but it seams fine in CB 2.0.9 and CBSubs 4.x nightly build. So if anyone else runs into this issue please upgrade or check the URLs against the below.

Code:
index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&cbpact=cbsubsclass&cbpclass=mailer&user=USER_ID&cbpmailerdo=processmailerrules&key=KEY&format=raw index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&cbpact=cbsubsclass&cbpclass=mailer&user=USER_ID&cbpmailerdo=sendmailqueue&key=KEY&format=raw index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&cbpact=cbsubsclass&cbpclass=mailer&user=USER_ID&cbpmailerdo=cronprocesssendmailqueue&key=KEY&format=raw


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.
Last edit: 9 years 5 months ago by krileon.

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

  • petekuhn
  • petekuhn
  • OFFLINE
  • Posts: 239
  • Thanks: 34
  • Karma: 0
9 years 5 months ago #265341 by petekuhn
The URLs seem to be OK in 2.0.9.
The following user(s) said Thank You: nant, krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum