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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Could not find valid Key - error when importing users
Pages: [1]

Author Topic: Could not find valid Key - error when importing users  (Read 4556 times)

EPagePete

  • Guest
Could not find valid Key - error when importing users
May 04, 2007, 03:31:06 pm
I had a 1.6 install working fine, pre-release of my website, so I figured I would go to 1.7 and then release.  I did not upgrade, but rather deleted the CiviCRM database and did a clean install.  Drupal remained the same (version 5.1).

I get this error on several forms (sometimes searching for a contact, and always when I try to import users from a CSV file):

Sorry. A non-recoverable error has occurred.
Could not find valid Key


Same error on Firefox as IE, I also tried reinstalling all tables (this time without sample data);  in addition, the Drupal session table was cleared.  Error remains.  Here is the backtrace, if that helps:

/home/fostor2/public_html/lib/modules/civicrm/CRM/Core/Error.php, backtrace, 236
/home/fostor2/public_html/lib/modules/civicrm/CRM/Core/Controller.php, fatal, 178
/home/fostor2/public_html/lib/modules/civicrm/CRM/Core/Controller.php, key, 132
/home/fostor2/public_html/lib/modules/civicrm/CRM/Import/Controller.php, crm_core_controller, 45
/home/fostor2/public_html/lib/modules/civicrm/CRM/Core/Invoke.php, crm_import_controller, 651
/home/fostor2/public_html/lib/modules/civicrm/CRM/Core/Invoke.php, import, 103
/home/fostor2/public_html/lib/modules/civicrm/drupal/civicrm.module, invoke, 289
, civicrm_invoke,
/home/fostor2/public_html/lib/includes/menu.inc, call_user_func_array, 418
/home/fostor2/public_html/lib/index.php, menu_execute_active_handler, 15

Any ideas?

      -Pete-

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: Could not find valid Key - error when importing users
May 04, 2007, 04:13:51 pm

I assume u r logged in as admin or a user with civicrm admin privileges? This in general indicates a session error. Can u get on IRC and i can help debug. I'll need ssh access to your machine along with write permission on the civicrm files. Please ensure you have that before getting on IRC :)

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

EPagePete

  • Guest
Re: Could not find valid Key - error when importing users
May 04, 2007, 10:03:37 pm
The computer that has the problem is behind a firewall that is VPN only, so I cannot set up an SSH.  I am guessing that this firewall is part of the problem, although I cannot yet see how.

The website in question is hosted on Lunarpages;  CiviCRM only gives me problems from my work computer.  The site works fine when accessed from my home computer.

I tried deleting cookies, rebooting the computer, flushing the Drupal "sessions" table, and switching browsers.  The problem is very persistent.

I can offer to help debug the problem if someone can tell me what to look for.


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: Could not find valid Key - error when importing users
May 04, 2007, 10:09:05 pm

So thats a big clue. The connection/proxy from work is doing something different from your home computer. i suspect u go thru a firewall/VPN etc and we have no way of really figuring out what/where is the issue. u'll have to check the headers etc in debugging this

sorry we cant be of more help here

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

EPagePete

  • Guest
Re: Could not find valid Key - error when importing users
May 04, 2007, 10:22:35 pm
Ooops... I take back the last post.  It is NOT a function of the computer.  Oddly, it is a function of the FILE that I upload during the import.

On my home machine, I was importing a bogus file to see if I made it to step 2.  I imported .exe's, logs, and a few other random files.  Since they appeared to "work", I transferred the real CSV file to my home machine, and it caused the problem to occur.

The CSV file has about 700 lines, is UTF8 encoded.

I should note here that the problem also occurred when I did a "find contact" without filling out any fields, but I have not reproduced that one recently.

EPagePete

  • Guest
Re: Could not find valid Key - error when importing users
May 05, 2007, 07:56:14 am
I have confirmed that the error is a function of the data in the file.  There was some odd data that apparently was encoded in such a way that the upload failed (error listed in the first post of this thread).  I had saved the file as UTF8, which probably did not help.  The data was entered by end-users when they created their contact information on my original site (non-Drupal, non-CiviCRM).  I deleted the characters, and the file worked.

     -Pete-

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Could not find valid Key - error when importing users

This forum was archived on 2017-11-26.