spawnbay wrote:
My problem is that when i click on the "register" link in the log in box i get the error
"You are not authorized to view this resource.
You need to login."
When loged in it says...
"You are not authorized to view this resource"
After updating CB for the first time in a while today on a site, I was getting the above for two links:
- logging in with cb_login module
- creating a new account with cb_login module link.
As many other threads indicated, the main login module worked and logged into the site, but the cb module's links would always show "You are not authorized...".
So after reading various posts that didn't give a comprehensive solution, I had a sudden spark of recollection and looked at my site's menu structure where I found, the cause.
It's in the installation instructions, but if it's skipped, it can cause the Not Authorized error. Not saying this is the fix for every site, but as it is a solution that worked for me, thought I'd share it.
New installions:
- Create a link to the Community Builder Component, and make it public, calling it "Your details" or similar.
- You can put it onto the User Menu, and make the User Menu module only accessible to registered users.
- Refreshing home page, you should now be able to login or register, as the menu item can now be used by CB.
Upgraded CB installs:
- Follow the usual upgrade steps to uninstall and reinstall CB.
- Go to your user menu (or where the link is)
- Where you previously had a "Your details" menu item, you'll see now that instead of "Component - Community Builder" you now have "Component -" and CB is detached.
- If you had assigned special modules to appear on that menu item's page you'll need to reassign them. Note these before the next step so you can reassign them.
- Delete that menu item (or in J1.5, you can change the menu item type to fix it)
- Create the new menu item for Component > Community Builder, making it public, but most likely on the registered user menu, so it's not seen until the user is logged in.
The menu item itself needs to be public so that the registration page does not bring up the "not authorized" error for new users.
The site today was in Mambo 4.6.5, but I'll certainly remember it for future Joomla 1.0.15 and Joomla 1.5.8 updates, as I know this was how I fixed the last CB upgrade 18 months ago.
Hopefully this helps many others to solve the problem that seems to have lots of instances but few specific answers until now.
Patrick