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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Could not find valid Key error. I've tried everything
Pages: [1] 2

Author Topic: Could not find valid Key error. I've tried everything  (Read 4931 times)

erpisha

  • Guest
Could not find valid Key error. I've tried everything
July 27, 2007, 01:58:40 am
Hi everyone,
I've just installed CiviCRM (civicrm-1.7.10272-joomla-php5.zip package) on Joomla with MySQL and had no problem.
But when I try to make any change in the administration frontend it always shows "Could not find valid Key" error.
I've been searching in google, forums, wiki for a solution and tried everything including the step 3 found at:
http://wiki.civicrm.org/confluence/display/CRMDOC/Configuring+Front-end+Profile+Listings+and+Forms+in+Joomla%21+Sites
, with no result.
What am I missing?
Thanks in advance

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Could not find valid Key error. I've tried everything
July 27, 2007, 08:07:55 am
I'm a bit confused by 'make any change in the administration frontend'.... ?

Are you getting the error when logged in to Administrator site and accessing a CiviCRM menu (e.g. Componenents >> CiviCRM >> Administer CiviCRM)... OR is the error happening in your site's frontend when accessing a CiviCRM menu link that you've created?

More specifics about steps to recreate the error (as well as Joomla version and other platform info) would be helpful.
Protect your investment in CiviCRM by  becoming a Member!

erpisha

  • Guest
Re: Could not find valid Key error. I've tried everything
July 28, 2007, 09:47:38 am
Hi again,
Thank for the response.
Platform info:
- Windows XP
- Apache 2.2.4
- PHP 5.2.3 + MySQL, XML, ZLib, GD2, MBString extensions
- Joomla 1.0.13 Spanish
- CiviCRM 1.7.10272 for Joomla.

- Config change in apache to allow .htaccess files.
- Made some configuration changes in php.ini:
max_execution_time = 600
register_globals = Off
upload_max_filesize = 20M

- CiviCRM installed through Jommla Administration --> Install Component --> Package file with no problems
- I go to the "Administer CiviCRM" link in the Components panel.
- Then "Setup" --> "Global Settings" --> "Localization"
- Change local settings and click on "Save"
- The system redirects to an error page showing:
"Sorry. A non-recoverable error has occurred.
Could not find valid Key
Return to CiviCRM menu."

I've tried applying changes specified about the session issues in the Step 3 (http://wiki.civicrm.org/confluence/display/CRMDOC/Configuring+Front-end+Profile+Listings+and+Forms+in+Joomla%21+Sites)
in any combination in the files:
- Apache2.2\htdocs\Joomla\administrator\index.php
- Apache2.2\htdocs\Joomla\index.php
- Apache2.2\htdocs\Joomla\administrator\index2.php
, with no result.

It is not a localisation issue. It happens whenever I try to do anything in the Administrator site (create or modify a role, new individual,...). I thought it'd happen to everybody.
Thanks again


erpisha

  • Guest
Re: Could not find valid Key error. I've tried everything
July 28, 2007, 09:52:36 am
I forgot to mention the MySWL version: 5.0.45.

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. I've tried everything
July 28, 2007, 02:56:06 pm

Unfortunately you are on a windows machine :( else I would have volunteered to ssh in and check whats happening and why

The basic problem is the session is inconsistent. Can u ensure that the url's have the same hostname (i.e. either www.example.com OR example.com and not a combination). Also can u check the "action" of the form and see the host name it is pointing to.

in my case the url is:

http://localhost/~lobo/joomla_15/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/localization&reset=1

and the form action is:

action="http://localhost/~lobo/joomla_15/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/localization"

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

erpisha

  • Guest
Re: Could not find valid Key error. I've tried everything
July 30, 2007, 09:37:08 am
Mines are pretty much the same:
http://localhost:8080/joomla/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/localization&reset=1
action="http://localhost:8080/joomla/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/localization"
It must be some step I've missed or any obvious thing because I've done nothing strange so I suppose it should happen to everybody if not.
Anyway, is there any way to see a trace of the error in any log or activating any php option in order to give to you or to myself some additional input?
Thank a lot


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. I've tried everything
July 30, 2007, 11:23:31 am

Just a random guess, but there is a remote possibility that this has something to do with utf8? CiviCRM stores everything in a utf8 format. Joomla 1.0.x does not use utf8 for the database tables etc

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

launch2

  • Guest
Re: Could not find valid Key error. I've tried everything
July 30, 2007, 05:41:10 pm
I've had this same error:
It occurs whenever I try to make any changes within the Administer CiviCRM section.
Code: [Select]
Sorry. A non-recoverable error has occurred.
Could not find valid Key

I'm on Joomla 1.0.13
PHP 5.2.2 MySQL 5.0.24

It first started when I installed CiviCRM 1.7.10272 and I found this thread... I then fully uninstalled CiviCRM from Joomla as well as deleted from the MySQL tables. I then just finished installed CiviCRM 1.8.beta.10594 and am getting the same error.

Funny thing is both CiviCRM 1.7 and 1.8 work on my Joomla 1.0.12 install.

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. I've tried everything
July 30, 2007, 06:48:12 pm

I've reproduced this on Joomla 1.0.13

Seems like joomla made a changes regarding their session handling in 1.0.13. I'm not sure of what changed and why, but will need to track it down and debug. We will fix this for CiviCRM v1.8

For CiviCRM v1.7 please use Joomla 1.0.12

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

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. I've tried everything
July 30, 2007, 07:27:18 pm

This is fixed in CiviCRM v1.8 now. The next beta should have the fix

Issue at: http://issues.civicrm.org/jira/browse/CRM-2148

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

vtitarchuk

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
  • Expert in Development of Educational Technologies
    • ServanTek Ukraine
  • CiviCRM version: 4.1
  • CMS version: Drupal
Re: Could not find valid Key error. I've tried everything
July 31, 2007, 06:37:20 am
Hi guys, I posted recently on this forum about the same problem:
http://forum.civicrm.org/index.php/topic,791.0.html

It looks like the patch changed the rules in Joomla 1.0.13 and my civicrm_com is not usable. I really like running the latest stable (secure) version of both the engine and component on my production site. Therefore, I am going to use Joomla 1.0.13 with civicrm 1.7 until 1.8 will become stable.

Would you please help me to make com_civicrm 1.7 run on Joomla! v.1.0.13, please?

Perhaps, an explanation on how to tweak some files will suffice. Thanks a lot for your contribution to community.
Customizing CiviCRM for non-profits is the former Soviet Union
Localizing CiviCRM into Russian
Deploying CiviCRM in multi-lingual and multi-organizational environments
http://servantek.org.ua

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Could not find valid Key error. I've tried everything
July 31, 2007, 06:45:54 am
The changes made to fix this issue in 1.8 can be seen here:
http://fisheye.civicrm.org/viewrep/CiviCRM/branches/v1.8/CRM/Core/Key.php?r1=10014&r2=10634
Protect your investment in CiviCRM by  becoming a Member!

vtitarchuk

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
  • Expert in Development of Educational Technologies
    • ServanTek Ukraine
  • CiviCRM version: 4.1
  • CMS version: Drupal
Re: Could not find valid Key error. I've tried everything
July 31, 2007, 07:21:53 am
Would it be difficult to do a fix for 1.7 file that needs a change? Thanks.
Customizing CiviCRM for non-profits is the former Soviet Union
Localizing CiviCRM into Russian
Deploying CiviCRM in multi-lingual and multi-organizational environments
http://servantek.org.ua

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. I've tried everything
July 31, 2007, 01:11:57 pm

No its not too difficult to apply the patch to a file. Please do a Yahoo! search on diff/patch to get more instructions on how to do so. All bugs are fixed in the latest version only, we dont fix issues in prior versions (standard software practice)

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

vtitarchuk

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
  • Expert in Development of Educational Technologies
    • ServanTek Ukraine
  • CiviCRM version: 4.1
  • CMS version: Drupal
Re: Could not find valid Key error. I've tried everything
July 31, 2007, 10:43:10 pm
Thanks a lot for a lead. I will do some digging now.
 :)
Customizing CiviCRM for non-profits is the former Soviet Union
Localizing CiviCRM into Russian
Deploying CiviCRM in multi-lingual and multi-organizational environments
http://servantek.org.ua

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Could not find valid Key error. I've tried everything

This forum was archived on 2017-11-26.