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 CiviContribute (Moderator: Donald Lobo) »
  • Contribution pages all fail for anonymous users
Pages: [1]

Author Topic: Contribution pages all fail for anonymous users  (Read 1199 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Contribution pages all fail for anonymous users
September 01, 2010, 05:38:02 am
For anonymous users, I am getting an error when I submit any CiviContribution page.

The error is:
----------------------------------------------
Sorry. A non-recoverable error has occurred.
We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site adminstrator for assistance.

Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is http://example.org, but some users are accessing the page via http://www.example.org or a domain alias like http://myotherexample.org.

Error type: Could not find a valid session key.

------------------------------------------------------------

The URL is http://mygroup.com/civicrm/contribute/transact

The page works fine if I log in to Drupal first. ( If I log out, even on the same machine I get the error again )

I am using Drupal 6.16 and CiviCRM 3.2.2

I have already made sure that if someone uses "www.mygroup.com" they are redirected to "mygroup.com"   BTW: This site was just recently moved to a new URL.

Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

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: Contribution pages all fail for anonymous users
September 01, 2010, 05:54:55 am

most likely your users table is missing uid 0 (the anon user).

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

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Contribution pages all fail for anonymous users
September 01, 2010, 07:30:27 am
My user table had the anonymous user as "uid=3". I updated that record to uid=0 and now the CiviContribute pages are working.

What is odd is I noticed the same issue on another environment, which is a fresh install of Drupal and CiviCRM. ( Changing the uid from 3 to 0 solved the issue there too. )
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

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: Contribution pages all fail for anonymous users
September 01, 2010, 07:48:55 am

might want to investigate how/why your anon user got a non zero uid

civicrm does not care about this for the most part. i think if there is no zero uid, a different session is created every time the user hits a drupal page (and hence no consistent session state)

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

vsharma012

  • I’m new here
  • *
  • Posts: 20
  • Karma: -2
    • Adaptive IT
  • CiviCRM version: 4.1
  • CMS version: Drupal
Re: Contribution pages all fail for anonymous users
June 27, 2011, 04:23:41 am
I also faced the same problem. my uid was changed to 7. I investigated and found it normally happens when you migrate the db from my location to another.

Check this
http://www.drupaler.co.uk/blog/missing-anonymous-user/463

Vikas

Mantra IT
Vikas Sharma
Adaptive IT
http://www.adaptiveitsystems.com

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contribution pages all fail for anonymous users

This forum was archived on 2017-11-26.