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) »
  • Resolved: Error type: Could not find a valid session key
Pages: [1]

Author Topic: Resolved: Error type: Could not find a valid session key  (Read 1703 times)

mdatcher

  • I’m new here
  • *
  • Posts: 21
  • Karma: 2
  • CiviCRM version: 4.5.1
  • CMS version: Drupal 7.31
  • MySQL version: 5.5.37
  • PHP version: 5.3.28
Resolved: Error type: Could not find a valid session key
September 26, 2013, 01:59:49 pm
I have a contribution page for anonymous users on my site so that new individuals can join (pay for a membership) our organization. Thanks to Hershel we recently updated to Drupal 7 and CiviCRM 4.3.5. The page is in the form of https://www.xxxxx.org/civicrm/contribute/transact?reset=1&id=1. The pages has been working fine for those who already have a Drupal account on the site. However, it fails when an anonymous user clicks the contribute button at the bottom of the page with the following error.

Sorry but we are not able to provide this at the moment.
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.


In my troubleshooting attempt, I found a similar forum post on the subject (http://forum.civicrm.org/index.php?topic=29359.0). Following that post, I have done the following to no avail:

Cleared the Drupal cache at Administration > Configuration > Development > Performance.
Performed template directory clean up using the following URL: https://www.xxxxx.org/civicrm?reset=1&directoryCleanup=3.
Manually executed the Clean-up Temporary Data and Files scheduled job. The job log states the process was successful.
Finally, I truncated the drp_sessions table.

None of this has been successful. Our site does use SSL. I do have ReCAPTCHA configured on the contribution page. Any thoughts as to the source of my problem? Thanks.
« Last Edit: October 02, 2013, 11:39:09 am by mdatcher »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Error type: Could not find a valid session key
September 26, 2013, 02:48:41 pm
Quote from: mdatcher on September 26, 2013, 01:59:49 pm
I do have ReCAPTCHA configured on the contribution page. Any thoughts as to the source of my problem? Thanks.

Perhaps disable that and test again. It's a shot in the dark, but sometimes troubleshooting works like that. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

mdatcher

  • I’m new here
  • *
  • Posts: 21
  • Karma: 2
  • CiviCRM version: 4.5.1
  • CMS version: Drupal 7.31
  • MySQL version: 5.5.37
  • PHP version: 5.3.28
Re: Error type: Could not find a valid session key
September 26, 2013, 03:29:26 pm
I had to look around in order to remember how to disable the ReCAPTCHA. Sadly, that wasn't the problem. Even without ReCAPTCHA I still get the error. Thanks.

mdatcher

  • I’m new here
  • *
  • Posts: 21
  • Karma: 2
  • CiviCRM version: 4.5.1
  • CMS version: Drupal 7.31
  • MySQL version: 5.5.37
  • PHP version: 5.3.28
Re: Error type: Could not find a valid session key
September 30, 2013, 12:48:35 pm
I had a couple more items to think about. First, I did upgrade to 4.3.6. No change in the status of the contribution page. Although, at one point I loaded the page in Lynx, and when I attempted to click Contribute I got the error message "HREF in BASE tag is not an absolute URL." That's probably just leading us down the primrose path. I should note that I did add a few lines to the .htaccess file:

  RewriteCond %{SERVER_PORT} 80
  RewriteRule ^(.*)$ https://www.xxxxx.org/$1 [R,L]

I added them in order to redirct to https. However, I did test with those line commented out with no change.

mdatcher

  • I’m new here
  • *
  • Posts: 21
  • Karma: 2
  • CiviCRM version: 4.5.1
  • CMS version: Drupal 7.31
  • MySQL version: 5.5.37
  • PHP version: 5.3.28
Re: Error type: Could not find a valid session key
October 02, 2013, 10:49:30 am
Aha!

I finally figured it out. My Drupal 7 installation was missing its anonymous (ID 0) user. I had to follow the instructions at https://drupal.org/node/1029506 in order to restore the anonymous user. Now, the contribution page is working as it should. I hope this helps someone else who runs into this problem.

sergeich

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
    • USDLC
Re: Resolved: Error type: Could not find a valid session key
December 10, 2013, 10:44:33 pm
thank you much! I was about to strangle this website spitting this very error message for anonymous users trying to make contribution.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Resolved: Error type: Could not find a valid session key

This forum was archived on 2017-11-26.