Skip to Content Skip to Menu

after registration "You are not authorized to view this page!"

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
9 years 11 months ago #254629 by carin
After a user registered and now logs in successfully he gets:

"You are not authorized to view this page!"

on /index.php?Itemid=311&option=com_comprofiler&view=saveregisters

"First Login Redirect" is "index.php?option=com_comprofiler"

CB 2.0

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48495
  • Thanks: 8284
  • Karma: 1443
9 years 11 months ago - 9 years 11 months ago #254666 by krileon
Check what Joomla menu item relates to Itemid 311. You should have a public and published Joomla menu item for your CB profile page (this link is mandatory). What URL is your browser showing when seeing that error?


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 11 months ago by krileon.

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

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
9 years 10 months ago - 9 years 10 months ago #254829 by carin
"What URL is your browser showing when seeing that error? "
==> the one I mentioned in the initial post

"Check what Joomla menu item relates to Itemid 311. You should have a public and published Joomla menu item for your CB profile page (this link is mandatory)"
==> this is 311, published, public

CB 2.0
Last edit: 9 years 10 months ago by carin.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48495
  • Thanks: 8284
  • Karma: 1443
9 years 10 months ago #254894 by krileon
Edit your CB login module within Extensions > Module Manager and ensure the login redirect is set correctly. If you've multiple CB menu items (e.g. menu item to registration, userlist, etc..) then ensure your login redirect includes the appropriate Itemid otherwise Joomla will auto-find the best fit. So for example your login redirect would be as follows based off the above information.

index.php?option=com_comprofiler&Itemid=311


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.

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
9 years 10 months ago #254922 by carin
Appending the Itemid works, but how do I do that for a multilingual site, there is only one field in the config?

CB 2.0

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48495
  • Thanks: 8284
  • Karma: 1443
9 years 10 months ago #254928 by krileon
Well you could use CB Auto Actions and let it do the redirect on the after login trigger and then try to check what language tag is loaded using [cb:config param="lang_tag" /] in the conditional. I'm not sure why Joomla is finding the wrong menu item though as CB doesn't alter the login redirect URLs and simple sends them to Joomla.

Ideally the view should always be added to the URL so Joomla has an easier time finding the menu item. Maybe try the following URL to see if it gives better results.

index.php?option=com_comprofiler&view=userprofile


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.

Moderators: beatnantkrileon
Powered by Kunena Forum