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 (Moderator: Dave Greenberg) »
  • "could not find valid key" when trying to create anything
Pages: [1]

Author Topic: "could not find valid key" when trying to create anything  (Read 4940 times)

cdm

  • Guest
"could not find valid key" when trying to create anything
August 08, 2008, 08:40:55 am
Hi guys,

using drupal 5.8
and civicrm 2.0

I am really strugling with this error message. It popped up before on our development server, then magically went away and now back after moving to production.

All I am trying to do is create an event or contribution page on a bone stock civicrm install. This is what I get when I get past the screen where I select the date:

Sorry. A non-recoverable error has occurred.

Could not find valid Key

Return to home page.

I have researched and have done the following with no luck

-reinstalled civicrm
-put civicrm in its own db
-cleared drupal sessions table
-disabled drupal caching
-made sure there was a uid=0 in users table (I am logged in as admin though when i try to create events)
-made sure the base urls match in both the civi and drupal config files
-"let it be" for a few hours and tryed again
-banged head against cubicle twice  ;D :-[

Any help would be a life-saver. I need to get this up and running asap!! Thanks guys.

edit: not sure if it helps but here is a dump of my session with the devel module "session viewer"

Code: [Select]
Array
(
    [CiviCRM] => Array
        (
            [domainID] => 1
            [ufID] => 1
            [userID] => 1
            [ufUniqID] =>
            [CRM_Event_Page_ManageEvent] => Array
                (
                    [action] => 16
                    [sortByCharacter] =>
                )

            [qfPrivateKey] => 9070f98e6cfc6d45b810be234983ed5b1b3ab890e1d18e8e3a64a3c3f268ac81
            [qfSessionID] => nvkrmeqajd1vna7h3ar9fmmgd0
            [CRM_Contribute_Page_ContributionPage] => Array
                (
                    [action] => 16
                    [sortByCharacter] =>
                )

        )

)

« Last Edit: August 08, 2008, 09:09:52 am by cdm »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: "could not find valid key" when trying to create anything
August 08, 2008, 10:17:49 am
It seems like some folks have reported that changing the collation on the Drupal sessions table to utf_general_ci resolved this for them.
Protect your investment in CiviCRM by  becoming a Member!

cdm

  • Guest
Re: "could not find valid key" when trying to create anything
August 08, 2008, 10:33:42 am
Quote from: Dave Greenberg on August 08, 2008, 10:17:49 am
It seems like some folks have reported that changing the collation on the Drupal sessions table to utf_general_ci resolved this for them.
Hey dave, thanks for the quick reply,

following the advice in this thread: http://forum.civicrm.org/index.php/topic,173.15.html

I logged out of drupal, truncated the drupal cache table and deleted all files from templates_c directory (there was alot in there!) and it seems like it it finally getting past the screen where the error normally shows! I will keep you updated.

cdm

  • Guest
Re: "could not find valid key" when trying to create anything
August 08, 2008, 11:57:31 am
gahh!!! the error just came back to haunt me when creating another event!  :-[ Also I checked the collaton of the sessions table and it already was utf_general_ci.

mcsmom

  • I post frequently
  • ***
  • Posts: 266
  • Karma: 23
    • Official Joomla! Book
  • CiviCRM version: 4 and 3.4
  • CMS version: Joomla!
Re: "could not find valid key" when trying to create anything
August 12, 2008, 03:23:42 am
Dave,

This is on the alpha, but when i go to my contribute page the text for the keys are shown in a block--i don't know why they are even there since they are for administrators only. then when going to the second step I get the key error.

cdm

  • Guest
Re: "could not find valid key" when trying to create anything
August 12, 2008, 08:48:03 am
Anyone else have any ideas for this? It still won't let me get past the event creation screen with this error.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: "could not find valid key" when trying to create anything
August 12, 2008, 11:09:36 am
Quote from: mcsmom on August 12, 2008, 03:23:42 am
Dave,

This is on the alpha, but when i go to my contribute page the text for the keys are shown in a block--i don't know why they are even there since they are for administrators only. then when going to the second step I get the key error.

Elin - can you repost with a few more details on the 2.1 Release Testing board. I'm not too clear on what you mean by "keys shown in a block" etc.
http://forum.civicrm.org/index.php/board,35.0.html

thx,
dave
Protect your investment in CiviCRM by  becoming a Member!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: "could not find valid key" when trying to create anything
August 12, 2008, 11:11:22 am
Quote from: cdm on August 12, 2008, 08:48:03 am
Anyone else have any ideas for this? It still won't let me get past the event creation screen with this error.

I'm pretty much out of ideas - other than try increasing available memory ???
Protect your investment in CiviCRM by  becoming a Member!

cdm

  • Guest
Re: "could not find valid key" when trying to create anything
August 12, 2008, 09:01:53 pm
Quote from: Dave Greenberg on August 12, 2008, 11:11:22 am

I'm pretty much out of ideas - other than try increasing available memory ???
hmm, I'm not getting any white screens, and the memory limit is at the recommended 64mb.

I think I have this narrowed down to my drupal database. Basically I installed a fresh copy of drupal and switched the drupal database back and forth (using the same drupal directory and civi database) and I confirmed that using the original drupal database seems to incite this error. So my question is, what drupal tables would effect a civicrm install? I have already truncated the session and cache table to no avail.
« Last Edit: August 12, 2008, 09:05:20 pm by cdm »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • "could not find valid key" when trying to create anything

This forum was archived on 2017-11-26.