Joomla! Discussion Forums



It is currently Tue Nov 24, 2009 6:01 pm (All times are UTC )

 


Forum rules

Please submit all new Tips and Tricks to: http://docs.joomla.org/Category:Tips_and_tricks



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
Author Message
Posted: Fri Nov 18, 2005 8:15 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Sun Aug 21, 2005 2:57 pm
Posts: 1366
Location: Colorado, USA
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…)


You do not have the required permissions to view the files attached to this post.

_________________
¡Pura Vida!
Ray,
joomla in testing at Costa Rica Travel: http://costaricamap.net
http://costa-rica-guide.com


Last edited by mcsmom on Mon Oct 01, 2007 2:22 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Wed Feb 15, 2006 3:41 am 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Sep 02, 2005 4:47 pm
Posts: 4
Location: Utah
Another quick fix I didn't notice mentioned here that fixed the issue for me was an issue with my server time. When I would create static content the publish time and date were in the future because the time was set different. So simply creating a piece of static content and making the publish date the day before, I don't get the issue anymore.

Hope that helps!

_________________
http://www.MonkeyFeather.com - Web site hosting Joomla / Mambo installed as builder and website management system. Opensource supporters and Linux Lovers!


Top
   
 
Posted: Thu Mar 02, 2006 4:13 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Thu Aug 18, 2005 10:27 am
Posts: 3928
Location: Sunny City Cebu, Philippines!
MOD NOTE: All Discussion on this thread can be done HERE:

http://forum.joomla.org/index.php/topic,42648.0.html

_________________
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.
^If u cant read that, you clearly missed the HIGHLIGHTS!
www.backspace.ph | www.joomlaconsultancy.net


Top
  E-mail  
 
Posted: Tue Nov 20, 2007 1:08 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Oct 19, 2007 7:34 am
Posts: 75
Location: Switzerland
I just found out this. A link like
Code:
http://www.affaroni.ch/index.php?option=com_content&task=view&id=16&Itemid=16


would give me the warning. Then, I tried
Code:
http://www.affaroni.ch/index.php?option=com_content&task=view&id=16

and boum!, it worked. No idea why.

_________________
Michele Bugliaro Goggia
designer SUP in visual communication
http://www.publipoint.ch


Last edited by publipoint on Tue Nov 20, 2007 1:15 pm, edited 1 time in total.

Top
   
 
Posted: Thu Nov 29, 2007 9:53 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Nov 29, 2007 9:29 pm
Posts: 3
draden wrote:
Another quick fix I didn't notice mentioned here that fixed the issue for me was an issue with my server time. When I would create static content the publish time and date were in the future because the time was set different. So simply creating a piece of static content and making the publish date the day before, I don't get the issue anymore.

Hope that helps!


I tried this on my site, it does! :) Thanks for the great tips!


Top
  E-mail  
 
Posted: Wed Dec 19, 2007 10:51 pm 
I've been banned!
Offline

Joined: Wed Dec 19, 2007 10:36 pm
Posts: 20
you could also make the content static which will have the same effect.

_________________
smile


Top
  E-mail  
 
Posted: Mon Jan 21, 2008 11:55 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Oct 13, 2007 1:49 pm
Posts: 6
Thank you for posting, very helpful.

It seems that I fix problem by clearing cache!, but problem of happens again:

When new content is submitted on front-end, get same problem again "You are not authorised to view this resource.
You need to login."

I am using SEF component "sh404SEF".  How can I fix problem once and for all  ;D

Cheers, Abbas


Top
  E-mail  
 
Posted: Mon Jan 28, 2008 4:23 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Oct 31, 2007 8:35 am
Posts: 1
My development server was in a different time zone as the live site. The live site was 8 hrs behind.... so when dumped and imported the DB some items were not published yet ;)


Top
  E-mail  
 
Posted: Fri Feb 08, 2008 9:17 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 08, 2008 4:59 pm
Posts: 19
Is there a way to overide the error message with the login page? 

what I'm trying to do is instead of getting that error (wich I'm getting intentianlly, cuase I have a menu that points to a registed only article) I don't want to show the message I want to redirect them to the login/registration form.

A quick and dirty workaround was to change the _NOT_AUTH token on the languages files to a message with a link to the login page. but I want to avoid that extra step and do that automaticaly.


Thanks for any help


Top
  E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group