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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Issue with adding contacts from anonymous user side ...
Pages: [1]

Author Topic: Issue with adding contacts from anonymous user side ...  (Read 1940 times)

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Issue with adding contacts from anonymous user side ...
June 20, 2008, 01:20:46 pm
I have opened up access control in my Drupal 5.7 site (running CiviCRM 2.0.4) to allow anonymous users to add themselves as contacts to our CiviCRM database.  I am using the following URL to point to the contact add form (relative here in this post just to give you an example):

/civicrm/contact/add?ct=Individual&reset=1


The form loads and when I fill it out and submit it I get the following error:

Redirect Loop   

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.

    * Have you disabled or blocked cookies required by this site?
    * NOTE: If accepting the site's cookies does not resolve the problem, it is likely a server configuration issue and not your computer.


The page its trying to load after clicking submit is:

/civicrm?reset=1


so the interesting thing here is that adding contacts work fine for authenticated users - when I'm logged in as admin.  But not when I'm logged out and trying to add as an anonymous user.  Also, the contact does get added - it's just that the browser throws that error page for some reason.

Any suggestions on how to troubleshoot this?

Thanks!
« Last Edit: June 20, 2008, 01:23:48 pm by backdrifting »

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: Issue with adding contacts from anonymous user side ...
June 21, 2008, 10:42:30 pm

can u check your access logs and see what urls it is looping on

i assume u r using v2.0.4

thanx

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

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Issue with adding contacts from anonymous user side ...
June 22, 2008, 06:32:43 pm
Yes, 2.04 and here's a copy of the logs:

MYIP - test [22/Jun/2008:19:26:25 -0600] "GET /farsounder/civicrm?reset=1 HTTP/1.1" 302 572 "http://variantcube.com/farsounder/civicrm/contact/add?ct=Individual&reset=1" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0"

MYIP - test [22/Jun/2008:19:26:25 -0600] "GET /farsounder/civicrm/dashboard?reset=1 HTTP/1.1" 302 562 "http://variantcube.com/farsounder/civicrm/contact/add?ct=Individual&reset=1" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0"

MYIP - test [22/Jun/2008:19:26:26 -0600] "GET /farsounder/civicrm?reset=1 HTTP/1.1" 302 572 "http://variantcube.com/farsounder/civicrm/contact/add?ct=Individual&reset=1" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0"

MYIP - test [22/Jun/2008:19:26:27 -0600] "GET /farsounder/civicrm/dashboard?reset=1 HTTP/1.1" 302 562 "http://variantcube.com/farsounder/civicrm/contact/add?ct=Individual&reset=1" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0"

MYIP - test [22/Jun/2008:19:26:27 -0600] "GET /farsounder/civicrm?reset=1 HTTP/1.1" 302 572 "http://variantcube.com/farsounder/civicrm/contact/add?ct=Individual&reset=1" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0"

I substituted "MYIP" for my IP address - also not sure why it says "test" after the IP address??


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: Issue with adding contacts from anonymous user side ...
June 22, 2008, 07:07:39 pm

1. how do they get to this page

2. Do they have view contact permission? if not, can you give them view contact permission, since the edit page gets redirected to the view page

3. any specific reason why you are not using profiles so anonymous users can add contacts to the db. that might be a easier solution that works :)

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

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Issue with adding contacts from anonymous user side ...
June 22, 2008, 07:47:59 pm
They get to it by going here:
http://variantcube.com/farsounder/civicrm/contact/add?ct=Individual&reset=1

Bear in mind that I'm still developing this site so I have it password protected (htaccess-wise).

I'll check on the permissions.  The issue here is that I don't want to grant anonymous users access to view contacts, only to add them.  Is this possible using profiles?

Basically I want to use this form (or a profile form) as an e-newsletter sign up form - so they can add themselves to our contacts database and then we can send them mail via CiviMail.  What is best CiviCRM practice for doing this?

Can you point me to some docs on the CivicRM site that show how to set up a profile to add contacts?

Thanks!!

-Trevor

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Re: Issue with adding contacts from anonymous user side ...
June 22, 2008, 10:12:26 pm
I guess I don't understand the basis of your question.  How is what you are trying to do different than using a standalone profile that can be placed on any website?

The standalone profile does seem to work, but I had a few issues with it:
http://forum.civicrm.org/index.php/topic,1811.0.html

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: Issue with adding contacts from anonymous user side ...
June 22, 2008, 10:50:09 pm

docs at:

http://wiki.civicrm.org/confluence/display/CRMDOC/Profiles

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

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Issue with adding contacts from anonymous user side ...
June 23, 2008, 08:12:02 am
Thanks a bunch!  This works.    -Trevor

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Issue with adding contacts from anonymous user side ...

This forum was archived on 2017-11-26.