CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • anonymous user can't access civicrm
Pages: [1]

Author Topic: anonymous user can't access civicrm  (Read 1598 times)

SinisterSith

  • Guest
anonymous user can't access civicrm
September 06, 2007, 12:57:57 pm
Hi I'm new to drupal and civicrm, but I was pleasantly surprised to get almost everything working correctly (at least I think so)
The main issue I'm having right now is that i can't seem to get access to Civi as an anonymous user, even if I give full access in the drupal access permissions. If I hit the link nothing happens and the page seems to refresh. Also if I set civicrm to be the front page in drupal then   I can't access it at all. Authenticated users do have access and it all seems to work well. Right now I'm just using sample data running on a test server (so I have full access to it). I'm using Drupal 5.2 with Civicrm 1.8

any help is welcome

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: anonymous user can't access civicrm
September 06, 2007, 01:16:54 pm

Most likely you have caching enabled in drupal. You can disable this for the site completely and/or disable it only for civicrm pages. The relevant code snippet for this is at:

http://wiki.civicrm.org/confluence/display/CRMDOC/Automated+Installer+for+Drupal#AutomatedInstallerforDrupal-%26nbsp%3BDrupalPageCachingOptionalConfiguration

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

SinisterSith

  • Guest
Re: anonymous user can't access civicrm
September 06, 2007, 01:24:10 pm
Thanks for the quick reply but I have caching disabled for the entire site + i also tried the with caching enabled for the entire site and just having it disabled for civi pages (followed the instruction that you mentioned already). Any other ideas?

Sinistersith

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: anonymous user can't access civicrm
September 06, 2007, 02:36:08 pm

This is potentially a bug/feature of CiviCRM. We track who makes changes to what contacts in some cases and hence require that the "user" have an userID in those cases. The "front" page of CiviCRM is the "user dashboard" which shows the user the activities he is assigned

An anonymous user by default does not have a userID and hence does not have a user dashboard page (and gets redirected to the home page). Not sure what we should do in this case, but i suspect the fix if any will happen in the 2.x series

You can however go to this page: q=civicrm/group&reset=1 and then u get the menu items etc. Note that we have not tested this scenario at all, and I suspect you will trip across a few bugs / FK constraints etc

Can u give us more details with regard to your use case and the need for anon user access to CiviCRM

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • anonymous user can't access civicrm

This forum was archived on 2017-11-26.