Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] CB not redirecting users to login properly

  • ThePiston
  • ThePiston
  • OFFLINE
  • Posts: 334
  • Thanks: 26
  • Karma: 1
8 years 6 months ago - 8 years 6 months ago #280368 by ThePiston
What setting do I have messed up? When a user clicks on a member-only link, this is the url :

component/comprofiler/login?return=aW5kZXgucGhwP29wdGlvbj1jb21fem9vJnRhc2s9aXRlbSZpdGVtX2lkPTU2NiZJdGVtaWQ9MTg0OA==

however, there is a blank white page with "You are not authorized to view this page!" on it. Shouldn't it be the login page which then redirects user to correct page after login?

See it here

This is in config: public $live_site = '';
All my CB login modules are set to be secure

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X
Last edit: 8 years 6 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 6 months ago #280453 by krileon
Replied by krileon on topic CB not redirecting users to login properly
Create a Joomla menu item to CBs login page and ensure its public access then see if issue persists.


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.

  • ThePiston
  • ThePiston
  • OFFLINE
  • Posts: 334
  • Thanks: 26
  • Karma: 1
8 years 6 months ago - 8 years 6 months ago #280467 by ThePiston
Replied by ThePiston on topic CB not redirecting users to login properly
there was already one created in the CB menu set to Public. This site is fairly old and has gone through many iterations of Joomla and CB since J1. I emptied all of the trashed menu items and trashed modules thinking that may be it, but didn't help.

Of note: I noticed there are different login prompts. When the Joomla login prompt is called, then the site works like it should:

Example of when it works using Joomla login language (which I modified)

So, it looks like it's only when CB catches the login and not Joomla. If I have CB installed, why does Joomla ever get the login prompt?

The Component that fails is Yootheme's Zoo for whatever that's worth. Works fine if logged in but it's the one that CB fails - not sure why CB login is called and not Joomla.

Just trying to figure this out - thanks.

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X
Last edit: 8 years 6 months ago by ThePiston.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 6 months ago #280501 by krileon
Replied by krileon on topic CB not redirecting users to login properly
CB intercepts com_user and redirects to CB. This prevents Joomla login and registration from being accessed or functioning. It does this to stop backdoor login and registration, which bypasses CB. You can turn it off in CBs system plugin, but you shouldn't and should be using strictly CB login module and registration.

As your site has likely been migrated from CB 1.x please be sure you've edit all your CB menu items and corrected their menu type as CB 1.x on J2.x/3.x did not create valid menu items.


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.

  • ThePiston
  • ThePiston
  • OFFLINE
  • Posts: 334
  • Thanks: 26
  • Karma: 1
8 years 6 months ago #280505 by ThePiston
Replied by ThePiston on topic CB not redirecting users to login properly
so when a public user tries to click on a Registered menu item it should be the CB error message I see and not the Joomla error, correct? Why would it be sometimes Joomla and sometimes CB? I see CB login error when I click on a Yootheme Zoo item but I see the Joomla login error when they try to click on a Joomla article item.

I'll edit and save all CB items

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 6 months ago #280509 by krileon
Replied by krileon on topic CB not redirecting users to login properly
Within Extensions > Plugins > Community Builder System plugin > Parse URLs ensure both "Redirect URLs" and "Rewrite URLs" are set to "Enabled". "Rewrite URLs" is disabled by default, but in some cases with 3rd party URLs it's needed.


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