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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Could not find a valid session key (CiviContribute with v 3.2.2) - solution?
Pages: [1]

Author Topic: Could not find a valid session key (CiviContribute with v 3.2.2) - solution?  (Read 3838 times)

swettling

  • Guest
Could not find a valid session key (CiviContribute with v 3.2.2) - solution?
August 26, 2010, 05:53:05 pm
I am getting the above error (could not find a valid session key) when trying to modify a contribution record for an event.

I have checked that my url is actually http://www.txpeds.org/ everywhere it should be (i.e. it's not http://txpeds.org)
I have cleared the cache
I just did the CiviCRM upgrade form 3.2.0 to 3.2.2 thinking that would fix it. It did not
I do have a default 0 anonymous user in my drupal contacts

The error is onlyhappening when I locate a contact via the "events >> manage events >> list event participants" and click view on one of the records and the edit the subsequent contributions.

The only difference that I can tell at the moment is that when I just go edit a user's contribution through the contribution page or through their edit page there is no "&key=788545b5c1277a109e7afdbed1c37171_9875" component to the querystring but when I locate the person via an event search, it has that "key" value and breaks.

Specific links: 

Sample link from the "manage events >> list event participatns" search results  (THROWS ERROR)
https://www.txpeds.org/civicrm/contact/view/contribution?reset=1&action=update&id=254&cid=8619&context=search&compId=28&compAction=4&compContext=participant&key=788545b5c1277a109e7afdbed1c37171_9875

Sample link to the same company and contribution record via their profile (DOES NOT THROW ERROR)
https://www.txpeds.org/civicrm/contact/view/contribution?reset=1&action=update&id=254&cid=8619&context=search&compId=28&compAction=4&compContext=participant

Finally, if I navigate to this (the same as the first link minus the &key=788545b5c1277a109e7afdbed1c37171_9875) it WORKS
https://www.txpeds.org/civicrm/contact/view/contribution?reset=1&action=update&id=254&cid=8619&context=search&compId=28&compAction=4&compContext=participant


I guess the long and short is there seems to either be something really funky with my installation (which is 100% stock) or there's something broken with the search results.

Does anyone have any ideas?

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




$Fatal Error Details = Array ( [message] => 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.
Code: [Select]
=> )

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: Could not find a valid session key (CiviContribute with v 3.2.2) - solution?
August 26, 2010, 07:43:20 pm

can u check and see if the same issue happens on the demo server: http://drupal.demo.civicrm.org/

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

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: Could not find a valid session key (CiviContribute with v 3.2.2) - solution?
September 01, 2010, 11:41:24 am
getting the exact same error on an online registration for an event. on three computers and three browsers.

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: Could not find a valid session key (CiviContribute with v 3.2.2) - solution?
September 01, 2010, 11:53:26 am
solved my problem, anyway. it was an issue with an http:// page and an http://www page.

our SSL certificate uses our domain WITHOUT the 'www', so when the registration tried to go to the domain page without the www, from a page using the www, it threw the error.

might want to check your URLs, and perhaps (as I had to do) specify static links.

darrick

  • I’m new here
  • *
  • Posts: 5
  • Karma: 1
Re: Could not find a valid session key (CiviContribute with v 3.2.2) - solution?
October 14, 2010, 01:05:54 pm
I ran into this problem for anonymous users attempting to register for events while creating a drupal account at the same time.

I am using the drupal boost module.  http://drupal.org/project/boost  I ended up altering the .htaccess file a bit so anonymous users wouldn't pull up a cached civicrm/event/register

I added the above path to the following RewriteCond
Code: [Select]
  # Caching for anonymous users
  # Skip boost IF not get request OR uri has wrong dir OR cookie is set OR request came from this server OR https request
  RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [OR]
  RewriteCond %{REQUEST_URI} (^/(admin|cache|misc|modules|sites|system|openid|themes|node/add|civicrm/event/register))|(/(comment/reply|edit|user|user/(login|password|register))$) [OR]
  RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]
  RewriteCond %{HTTP:Pragma} no-cache [OR]
  RewriteCond %{HTTP:Cache-Control} no-cache [OR]
  RewriteCond %{HTTPS} on
  RewriteRule .* - [S=3]

rimu

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 3.4.8
  • CMS version: Drupal 6
Re: Could not find a valid session key (CiviContribute with v 3.2.2) - solution?
March 27, 2011, 08:19:53 pm
I had this problem too. It was caused by a missing user 0 in Drupal.

Drupal requires that there be a user with user id of 0 in it's 'users' table in order to create anonymous sessions.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Could not find a valid session key (CiviContribute with v 3.2.2) - solution?

This forum was archived on 2017-11-26.