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 page fails, error: Could not find valid key
Pages: [1]

Author Topic: Contribution page fails, error: Could not find valid key  (Read 3020 times)

jgowans

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 3
    • CiviCRM
Contribution page fails, error: Could not find valid key
December 22, 2008, 06:34:04 am
New to CiviCRM and from what I can see, it is awesome.  However, the contribution pages I've created frequently generate the following error:

Sorry. A non-recoverable error has occurred.  Could not find valid Key   Return to home page.

This occurs in often, but not always, in Firefox and IE7.  I've tested it across three computers so far with the same issue.  When I turn debugging on, here's what I get:

Code: [Select]
backTrace

/home/humane/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 260
/home/humane/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, fatal, 194
/home/humane/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, key, 138
/home/humane/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/Controller/Contribution.php, __construct, 57
/home/humane/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(193) : eval()'d code, __construct, 1
/home/humane/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, eval, 193
/home/humane/public_html/components/com_civicrm/civicrm.php, invoke, 73
/home/humane/public_html/components/com_civicrm/civicrm.php, civicrm_invoke, 24
/home/humane/public_html/libraries/joomla/application/component/helper.php, require_once, 162
/home/humane/public_html/includes/application.php, renderComponent, 124
/home/humane/public_html/index.php, dispatch, 68

unrecoverable error
    Sorry. A non-recoverable error has occurred.

    Could not find valid Key

    Return to home page.

I've searched all over the message boards, the wiki, and cannot seem to find anything that is obviously wrong.  Any help would be greatly appreciated.  Live contribution page can be found here: https://www.baltimorehumane.org/index.php?option=com_civicrm&Itemid=107

CMS: Joomla 1.5.8
CiviCRM: 2.1
MYSQL: 5.0.51a
PHP: 5.2.6
CiviCRM Core Team

kniaz

  • Guest
Re: Contribution page fails, error: Could not find valid key
December 22, 2008, 01:19:26 pm
I've got the exact same problem.  And I am not sure when it started happening, but I know middle of last week, everything was working fine, and the only thing that was done since then was content additions. 

Hoping someone has the answer.

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 page fails, error: Could not find valid key
December 22, 2008, 01:36:01 pm

This is a url issue, u r referring to the page at: :

https://www.baltimorehumane.org/index.php?option=com_civicrm&Itemid=107

however civicrm is configured with the url: https://baltimorehumane.org/

you should fix and either use www. across everything or omit it completely out of all urls

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

kniaz

  • Guest
Re: Contribution page fails, error: Could not find valid key
December 22, 2008, 01:40:46 pm
Hi,

I've just gone through both settings.php files (admin and standard) and both of them are configured for www, yet, I still get an error.  Can someone help?

http://www.integrativeonc.org/donatetosio.html

Thanks!

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 page fails, error: Could not find valid key
December 22, 2008, 01:53:19 pm

can u describe what error u r getting. i just hit submit and it worked fine. In general i would not create a static page for the donation. I would just send folks to:

http://www.integrativeonc.org/index.php?option=com_civicrm&task=civicrm/contribute/transact&reset=1&id=2

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

kniaz

  • Guest
Re: Contribution page fails, error: Could not find valid key
December 22, 2008, 01:57:40 pm
Hi Donald,

Thanks, I've figured it out - had an issue with .htaccess.

The page is not actually a static one - just SEF enabled.

Thanks and I truly appreciate your, and the rest of the community's efforts.

jgowans

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 3
    • CiviCRM
Re: Contribution page fails, error: Could not find valid key
December 23, 2008, 01:59:15 pm
Donald:

Thanks for the help.  That fixed it perfectly, works like a charm now.  Just FYI, I wasn't able to change it via the administration area... whenever I tried and clicked save, it generated the same error.  So, I downloaded the civicrm.settings.php file from both the administrator/components/civicrm and the components/civicrm directories, changed line 131 to include the "www" and that seemed to do it.  Many thanks for your help.

Josh
CiviCRM Core Team

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: Contribution page fails, error: Could not find valid key
December 26, 2008, 11:09:39 pm
I am getting this issue too. It seems to be getting worse.

kniaz

  • Guest
Re: Contribution page fails, error: Could not find valid key
December 27, 2008, 07:27:15 am
The issue is most definitely related to the www.domain.com and domain.com access paths.  Make sure you're using one or the other, including in menus.

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: Contribution page fails, error: Could not find valid key
January 06, 2009, 11:53:28 am
I'm getting this error intermittently on create profiles.

Sometimes it seems to resolve with a small thing like adding a state.
Sometimes it seems related to whether users take the register for Joomla option.

Very strange and I'm pretty sure not related to www. It maybe seems session related.


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 page fails, error: Could not find valid key
January 06, 2009, 02:05:28 pm

How intermittently? I'll ping u on IM and see if we can reproduce this and hence track it down

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contribution page fails, error: Could not find valid key

This forum was archived on 2017-11-26.