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) »
  • Random "non-recoverable" error on Drupal user registration
Pages: [1]

Author Topic: Random "non-recoverable" error on Drupal user registration  (Read 1775 times)

bob schmitt

  • I’m new here
  • *
  • Posts: 22
  • Karma: 1
    • Expeditionary Information Systems
Random "non-recoverable" error on Drupal user registration
June 13, 2007, 11:00:52 am
When it rains, it pours:

Drupal 4.7, CiviCrm 1.7 (June 8 release)

I have a "special" situation where a client has a public registration process, (where applications need to be approved by the admin) and a backdoor for "invited" participants to register and participate immediately.

The public entrance works just fine.

To deal with the "backdoor" I created a virtual domain (through a Drupal song and dance which creates a virtual domain that points to the same files/tables as the original domain) that shares all tables with the primary domain except for the cache, variables, and system tables in Drupal. This lets me setup the registration process to allow immediate entry through the subdomain , and shares all other Drupal/CiviCRM tables with the primary domain. Redirects to the primary domain handles UI  and URL confusions (for the most part).

So far so good.

Here's the weirdness. Sometimes, the "backdoor" registration process works just fine. Users are added to both the Drupal user table and the CiviCRM contacts / profiles / custom fields.

Other times (appears to be random), I get a "fatal error...invalid key" message. Today for instance. Registering using an Opera browser always generated the error. Registering with Safari or IE7, worked ok.

I could get this consistently by enabling "logintoboggan." I figured out a way to not use that module in this process. Now I get random fatal errors generated by CiviCRM.

I enabled the backtrace function to generate a more detailed error message:

Code: [Select]
backTrace

--PATH--/modules/civicrm/CRM/Core/Error.php, backtrace, 236
--PATH--/modules/civicrm/CRM/Core/Controller.php, fatal, 178
--PATH--/modules/civicrm/CRM/Core/Controller.php, key, 132
--PATH--/modules/civicrm/CRM/Core/Controller/Simple.php, crm_core_controller, 60
--PATH--/modules/civicrm/CRM/Core/BAO/UFGroup.php, crm_core_controller_simple, 467
--PATH--/modules/civicrm/drupal/civicrm.module, getedithtml, 440
--PATH--/modules/civicrm/drupal/civicrm.module, civicrm_register_data, 352
, civicrm_user,
--PATH--/includes/module.inc, call_user_func_array, 185
--PATH--/modules/user.module, module_invoke, 2089
--PATH--/modules/user.module, _user_forms, 1191
, user_register,
--PATH--/includes/menu.inc, call_user_func_array, 418
--PATH--/index.php, menu_execute_active_handler, 15


Sorry. A non-recoverable error has occurred.

Could not find valid Key

Return to CiviCRM menu.


I've been trying to debug this for a week but am not getting anywhere. Any help/clues would be appreciated.

bob

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: Random "non-recoverable" error on Drupal user registration
June 13, 2007, 12:04:29 pm

Bob:

do u have caching enabled on the virtual domain? that has caused the periodic invalid key errors. a workaround to it is:

http://forum.civicrm.org/index.php/topic,402.0.html

if not, can u get on IM and we can chat and try to figure this out. The error basically means we've detected some inconsistencies in the sessions and are hosed :(

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

bob schmitt

  • I’m new here
  • *
  • Posts: 22
  • Karma: 1
    • Expeditionary Information Systems
Re: Random "non-recoverable" error on Drupal user registration
June 13, 2007, 12:09:39 pm
Hey lobo-

As you were typing your reply, I found that clue here (at the end):

http://forum.civicrm.org/index.php/topic,114.0.html

I did have caching off on my primary domain, but it was turned on in the subdomain.

Resetting the cache setting, clearing the cache, and then restarting the client browser (Opera) seemed to do the trick. We'll see. I've "fixed" this problems several times, then it seem to reappear.

Call this one "tentatively fixed."

Thanks for the quick reply!

bob schmitt

  • I’m new here
  • *
  • Posts: 22
  • Karma: 1
    • Expeditionary Information Systems
Re: Random "non-recoverable" error on Drupal user registration
June 15, 2007, 05:54:22 pm
Ok...two days later, the problem is back with a vengance. Now it's affecting both sides of the site. Same backtrace error. No caching on. All caches cleared in Drupal.

Also, the fix you mentioned didn't work for my settings.php file (for 4.7)...I suspect it only works with 5.0.

I'm stumped and of course it pops up at Friday at 7 pm.

bob schmitt

  • I’m new here
  • *
  • Posts: 22
  • Karma: 1
    • Expeditionary Information Systems
Re: Random "non-recoverable" error on Drupal user registration
June 15, 2007, 08:58:47 pm
Its "fixed" again. Can't figure out what happened. I reinstalled random modules, reset stuff, rebooted the server, cleared any cache I could find...in essence, floundered around. But it all came back just fine.

Go figure.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Random "non-recoverable" error on Drupal user registration

This forum was archived on 2017-11-26.