Skip to Content Skip to Menu

[SOLVED] Triggering 'Users' Auto action from Cron fails

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
8 years 3 weeks ago - 8 years 3 weeks ago #289479 by fribse2011
Hi guys

I can't seem to get the Users action to work here.
I have admintools installed, and the WAF / .htaccess of it is quite restrictive, but I've tried disabling it by renaming the .htaccess to the original Joomla one, and also disabling the WAF by renaming the plugin.
I still can't get it to react.
If I press the 'users' trigger in the backend 'auto-action' it works as it should, it does the jobs it's supposed to, I've enabling debugging, and I see it run through the user objects failing them as it should, except for the one it shouldn't.
However, if I paste the URL in a browser that is not logged in to the backend or frontend, I get redirected to
/component/users/?view=login
and the design of the site is shown, just like I clicked on the frontend.

I've also tried having the admintools enabled, and then in the WAF exceptions I did this:

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
Attachments:
Last edit: 8 years 3 weeks ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
8 years 3 weeks ago #289500 by fribse2011
Replied by fribse2011 on topic Triggering 'Users' Auto action from Cron fails
I've now created a duplicate testsite, where I've removed all admintools from the site, it still doesn't work if I paste the URL in a browser.
If I press the "Internal Users URL" in autoactions, it works as it should, but then I'm also logged into the backend of the system.
If I test it in a browser that has never been on my site, it doesn't work.

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48722
  • Thanks: 8320
  • Karma: 1447
8 years 3 weeks ago #289523 by krileon
Being redirected to login means you've an access permissions problem. Likely your Joomla menu item to CBs profile page isn't public as there is no redirect behavior like that in CB Auto Actions nor the pluginclass endpoint.


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.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
8 years 3 weeks ago #289527 by fribse2011
Replied by fribse2011 on topic Triggering 'Users' Auto action from Cron fails
I see, I currenttly have the tab showing 'userprofile' on the main menu is set to registered, so I need to change that to public? Why can't I find this information, is it me, or is it the documentation?

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48722
  • Thanks: 8320
  • Karma: 1447
8 years 3 weeks ago - 8 years 3 weeks ago #289530 by krileon
It's documented in the CB Primer Book and basically all over these forums that you must have a public and published Joomla menu item to CBs profile page. This is mandatory or you'll end up with access issues since most URLs in CB will use that menu item for its Itemid resulting in Joomla performing access checks on it. You however can try making a Joomla menu item to the CB Auto Actions plugin and setting it as public to see if it'll use that instead. Such menu item doesn't need to be visible though by placing it on a new menu that isn't displayed by a menu module.


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: 8 years 3 weeks ago by krileon.
The following user(s) said Thank You: fribse2011

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

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
8 years 3 weeks ago #289542 by fribse2011
Replied by fribse2011 on topic Triggering 'Users' Auto action from Cron fails
Ahaa, hadn't noticed the books, got those now, thankyou. About the 'all over the forums', you need to know what to search for, and I did try quite a few searches without luck, so thankyou for explaining the problem to me.
The profile menu item is a sub-item here, so I've just made the profile menu item public, it doesn't show, so no need to create an extra on my 'hidden menu' :-)

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum