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

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

jmkaep

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
Error type: Could not find a valid session key.
December 07, 2010, 05:28:47 am
Contribution form fails intermittently with the following error:

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.<br /><br />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.<br /><br />Error type: Could not find a valid session key.

Dec 06 21:33:29  [info] $backTrace = /var/www/vhosts/psc-gpc.ca/httpdocs/surveyors/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 261
/var/www/vhosts/psc-gpc.ca/httpdocs/surveyors/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, fatal, 241
/var/www/vhosts/psc-gpc.ca/httpdocs/surveyors/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, key, 161
/var/www/vhosts/psc-gpc.ca/httpdocs/surveyors/administrator/components/com_civicrm/civicrm/CRM/Contribute/Controller/Contribution.php, __construct, 58
/var/www/vhosts/psc-gpc.ca/httpdocs/surveyors/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(215) : eval()'d code, __construct, 1
/var/www/vhosts/psc-gpc.ca/httpdocs/surveyors/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, eval, 215
/var/www/vhosts/psc-gpc.ca/httpdocs/surveyors/components/com_civicrm/civicrm.php, invoke, 81
/var/www/vhosts/psc-gpc.ca/httpdocs/surveyors/components/com_civicrm/civicrm.php, civicrm_invoke, 24
/var/www/vhosts/psc-gpc.ca/httpdocs/surveyors/libraries/joomla/application/component/helper.php, require_once, 162
/var/www/vhosts/psc-gpc.ca/httpdocs/surveyors/includes/application.php, renderComponent, 124
/var/www/vhosts/psc-gpc.ca/httpdocs/surveyors/index.php, dispatch, 68

It seems to fail after repeated testing in the same browser but I haven't been able to see a pattern there.

I have ensured that the same url ie domain.ca is used in all CIVICRM_UF_BASEURL in both settings files and htaccess redirect I am using to point to install in subdirectory.

I have increased maxexecution time to 600 in php.ini
PHP memory is set at 512 MB


« Last Edit: December 09, 2010, 02:26:58 am by jmkaep »

lseibert

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
Re: Error type: Could not find a valid session key.
December 10, 2010, 07:27:49 am
I am having the same problem.

jmkaep

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
Re: Error type: Could not find a valid session key.
December 12, 2010, 11:21:40 am
I have resolved this issue by following the steps here:

http://wiki.civicrm.org/confluence/display/CRMDOC33/Installation+and+Configuration+Trouble-shooting

However on further digging my problem has evolved into a different issue.  :P

greenkoi

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 3.2.4
  • MySQL version: 5.0.77
  • PHP version: 5.3.3
Re: Error type: Could not find a valid session key.
December 13, 2010, 05:57:39 pm
I was running into this myself, and used .HTACCESS to force http://www vs http://

Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.your_domain.com$
RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]
Also, depending on what version you're using, you might need to adjust the path in:

administrator/components/com_civicrm/civicrm.settings.php

and

components/com_civicrm/civicrm.settings.php

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

This forum was archived on 2017-11-26.