[SOLVED] You are not authorized to view this page!

1 year 7 months ago - 1 year 7 months ago #330361 by galanopd
Used a backup from my host https://mysite where https://mysite/community/login works fine but now that I have set it up locally with kickstart.php to http://localhost/ , http://localhost/community/login throws this error "You are not authorized to view this page!" (nothing else is shown).

Relevant console error
Status403ForbiddenVersionHTTP/1.0Transferred289 B (43 B size)Referrer Policystrict-origin-when-cross-originRequest PriorityHighest
 Request headersAccepttext/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8Accept-Encodinggzip, deflate, brAccept-Languageen-US,en;q=0.5Connectionkeep-aliveCookiecookiesDNT1HostlocalhostRefererhttp://localhost/Sec-Fetch-DestdocumentSec-Fetch-ModenavigateSec-Fetch-Sitesame-originSec-Fetch-User?1Sec-GPC1Upgrade-Insecure-Requests1User-AgentMozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0
Tried many things in CB->Configuration seen in relevant posts for this error in the forum but no luck so far

(WAMP / Apache 2.4.54 / PHP 7.4.30 / MariaDB 10.8.3)

Any ideas?

Please Log in to join the conversation.

1 year 7 months ago #330363 by krileon
Replied by krileon on topic You are not authorized to view this page!
CB shows that on the login page when a login type is not defined or login was turned off. This is configured in CB > Configuration > General with the Login Method parameter. If set to None change it to at least Username. If already has a value then re-save configuration as your backup restore process may have not restored cleanly and those parameters were lost.


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 to join the conversation.

1 year 7 months ago #330365 by galanopd
Replied by galanopd on topic You are not authorized to view this page!
It looks like the problem is solved by changing from Yes to No the CB Login module->Login and Logout Options->Encrypt Login Form
That was causing the issue

Thanks

 
The following user(s) said Thank You: krileon

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.187 seconds

Facebook Twitter LinkedIn