Tips: "You are not authorized to view this resource. You need to login."
Posted: Fri Nov 18, 2005 8:15 pm
Public items cannot be viewed by the public. Instead they see the error message "You are not authorized to view this resource. You need to login."
The number of reasons for seeing this error message is almost as numerous as the posts asking for help on it. Many of these issues are discussed under other topics (especially Itemid) but I thought it might be helpful to pull them together in one place. Below are some of the things you can check.
Really easy fixes (that sometimes work)
1. Trash! Permissions and settings are sometimes pulled from the trash. Empty it!
2. Cache! Never seen anyone say that this definitely solved their problem because they usually do a bunch of other stuff at the same time and can't be sure, but it’s been suggested in dozens of posts. Can’t hurt, clear them all (browser, program and database)
3. Turn on SEF and/or install a third party SEF component.
Thirty some odd pages of discussion of this over on mamboserver
http://forum.mamboserver.com/showthread.php?p=287541#post=603
kenmcd's rather briefer explanation
http://forum.joomla.org/index.php/topic,4259.msg53038.html#msg53038
Publishing and Permissions:
You must have all of the following published, permissions set to public,
1. Content item
2. Category the content item belongs to
3. Section the Category belongs to
Additionally the publication start and end must encompass today and now. The “Start Publishing:” date and time must be before the current date and time of your server and the “Finish Publishing:” date and time must be after the current date and time of your server.
See attached screenshots of the backend content>>content item manager>>content item: edit if you don't know where to check this.
Linking to Menus:
1. You must have the content item linked to a menu and the permissions on the menu and menu item must be set to public. The menu does not have to be published.
2. Linking the content item to more than one menu can cause problems if one of the menus has permissions other than public. Mambo/Joomla will apply the most restrictive or the first permission it comes across depending on the case. Any Menu or menu item set to “registered” or “special” could cause the error.
3. Menus and menu items (and maybe other things?) in the trash can cause problems (see below)
Specific instances and solutions (where they’ve been discovered):
1. The readmore link does not work. Solution-Core Hack
http://forum.joomla.org/index.php/topic,4259.msg37548.html#msg37548
2. Users cannot add content.
3. I’m using an add-on menu system or some of my pages don’t appear on menus-all of my content gives "You are not authorized to view this resource. You need to login."
Solution-Hidden menu
http://forum.joomla.org/index.php/topic,4259.msg34432.html#msg34432
4. Expired items still generate links in searches and tables-these links lead to "You are not authorized to view this resource. You need to login." error pages
Solution-Manually unpublish the item. Apparently expiration is not necessarily automatically linked to unpublishing.
Possible Solution-hack
http://forum.joomla.org/index.php/topic,15338.msg96432.html#msg96432
5. Expired session cookie and daylight savings time.
Possible Solution-Install latest version of Joomla more discussion on this thread
http://forum.joomla.org/index.php/topic,17423.0.html
Other bits that can cause or contribute to this issue:
This is far from a comprehensive list, but these have shown up in other posts eventually identifying them as the culprit. If you are using any of these you may want to try disabling them temporarily to see if that solves the problem.
1. Community builder component (pre CB2 versions, no known issues with CB2)
2. discussbot mambot
3. hotproperty discussion http://forum.joomla.org/index.php/topic ... l#msg46899
4. Any add-on that has an independent registration feature. (real estate, photo gallery, shopping…)
The number of reasons for seeing this error message is almost as numerous as the posts asking for help on it. Many of these issues are discussed under other topics (especially Itemid) but I thought it might be helpful to pull them together in one place. Below are some of the things you can check.
Really easy fixes (that sometimes work)
1. Trash! Permissions and settings are sometimes pulled from the trash. Empty it!
2. Cache! Never seen anyone say that this definitely solved their problem because they usually do a bunch of other stuff at the same time and can't be sure, but it’s been suggested in dozens of posts. Can’t hurt, clear them all (browser, program and database)
3. Turn on SEF and/or install a third party SEF component.
Thirty some odd pages of discussion of this over on mamboserver
http://forum.mamboserver.com/showthread.php?p=287541#post=603
kenmcd's rather briefer explanation
http://forum.joomla.org/index.php/topic,4259.msg53038.html#msg53038
Publishing and Permissions:
You must have all of the following published, permissions set to public,
1. Content item
2. Category the content item belongs to
3. Section the Category belongs to
Additionally the publication start and end must encompass today and now. The “Start Publishing:” date and time must be before the current date and time of your server and the “Finish Publishing:” date and time must be after the current date and time of your server.
See attached screenshots of the backend content>>content item manager>>content item: edit if you don't know where to check this.
Linking to Menus:
1. You must have the content item linked to a menu and the permissions on the menu and menu item must be set to public. The menu does not have to be published.
2. Linking the content item to more than one menu can cause problems if one of the menus has permissions other than public. Mambo/Joomla will apply the most restrictive or the first permission it comes across depending on the case. Any Menu or menu item set to “registered” or “special” could cause the error.
3. Menus and menu items (and maybe other things?) in the trash can cause problems (see below)
Specific instances and solutions (where they’ve been discovered):
1. The readmore link does not work. Solution-Core Hack
http://forum.joomla.org/index.php/topic,4259.msg37548.html#msg37548
2. Users cannot add content.
3. I’m using an add-on menu system or some of my pages don’t appear on menus-all of my content gives "You are not authorized to view this resource. You need to login."
Solution-Hidden menu
http://forum.joomla.org/index.php/topic,4259.msg34432.html#msg34432
4. Expired items still generate links in searches and tables-these links lead to "You are not authorized to view this resource. You need to login." error pages
Solution-Manually unpublish the item. Apparently expiration is not necessarily automatically linked to unpublishing.
Possible Solution-hack
http://forum.joomla.org/index.php/topic,15338.msg96432.html#msg96432
5. Expired session cookie and daylight savings time.
Possible Solution-Install latest version of Joomla more discussion on this thread
http://forum.joomla.org/index.php/topic,17423.0.html
Other bits that can cause or contribute to this issue:
This is far from a comprehensive list, but these have shown up in other posts eventually identifying them as the culprit. If you are using any of these you may want to try disabling them temporarily to see if that solves the problem.
1. Community builder component (pre CB2 versions, no known issues with CB2)
2. discussbot mambot
3. hotproperty discussion http://forum.joomla.org/index.php/topic ... l#msg46899
4. Any add-on that has an independent registration feature. (real estate, photo gallery, shopping…)