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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • "Could not find valid key" when users register with drupal
Pages: [1]

Author Topic: "Could not find valid key" when users register with drupal  (Read 2563 times)

strangefeatures

  • Guest
"Could not find valid key" when users register with drupal
June 29, 2008, 06:00:20 am
Hi,

I've just been reading the post over at http://forum.civicrm.org/index.php/topic,114.msg403/topicseen.html, as I'm having a similar problem to what occurred there - when anonymous users sign up for a new account, this error message is displayed:

Code: [Select]
/var/www/cpddev/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 258
/var/www/cpddev/sites/all/modules/civicrm/CRM/Core/Controller.php, fatal, 186
/var/www/cpddev/sites/all/modules/civicrm/CRM/Core/Controller.php, key, 136
/var/www/cpddev/sites/all/modules/civicrm/CRM/Core/Controller/Simple.php, __construct, 64
/var/www/cpddev/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php, __construct, 468
/var/www/cpddev/sites/all/modules/civicrm/drupal/civicrm.module, getEditHTML, 496
/var/www/cpddev/sites/all/modules/civicrm/drupal/civicrm.module, civicrm_register_data, 399
, civicrm_user,
/var/www/cpddev/includes/module.inc, call_user_func_array, 386
/var/www/cpddev/modules/user/user.module, module_invoke, 2460
/var/www/cpddev/modules/user/user.module, _user_forms, 1198
, user_register,
/var/www/cpddev/includes/form.inc, call_user_func_array, 218
, drupal_retrieve_form,
/var/www/cpddev/includes/form.inc, call_user_func_array, 69
, drupal_get_form,
/var/www/cpddev/includes/menu.inc, call_user_func_array, 418
/var/www/cpddev/index.php, menu_execute_active_handler, 15

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

    Could not find valid Key CRM_Core_Controller_Simple

    Return to home page.

I'm running CiviCRM 2.0.4 and drupal 5.7
but none of the suggested remedies are working. Specifically, I have:

   1. cleared drupal's cache table
   2. turned off drupal caching ( I think - it's still populating the cache table but shouldn't be using it)
   3. set the base_url in settings.php
   4. made sure the URL in civicrm.settings.php matches that base_url
   5. truncated the drupal sessions table
   6. cleared browser cookies

Update: on the basis of the advice over at http://issues.civicrm.org/jira/browse/CRM-1948, I also checked that the drupal anonymous user (uid 0) was present. It wasn't, so I added that in with:
Code: [Select]
INSERT INTO users (uid,name,mail) VALUES(0,'','') but the problem still persists.

Is anyone able to provide me with any other ideas?
« Last Edit: June 29, 2008, 06:31:03 am by strangefeatures »

strangefeatures

  • Guest
Re: "Could not find valid key" when users register with drupal
June 29, 2008, 06:37:01 am
No, no - ignore me.

It looks like inserting the uid 0 entry into the drupal users table did do the trick - I think I might have forgotten to truncate the sessions table after doing that.

andyhu

  • Guest
Re: "Could not find valid key" when users register with drupal
July 12, 2008, 12:28:16 pm
Thank you very much man, I had the same issue, I deleted user@uid=0 and found your post. :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • "Could not find valid key" when users register with drupal

This forum was archived on 2017-11-26.