|
Written by Paul MacKenzie
|
|
Wednesday, 07 October 2009 09:24 |
|
In the process of implemting CiviCRM within Citizen's For Clean Air's Joomla website I ran into the following problem.
Sorry. A non-recoverable error has occurred.
Could not find valid Key
I searched on-line and saw a bit of information dealing with a few unrelated topics.
After some searching I was able to reproduce the problem with cookies disabled on the browser but not any other way.
I then saw a few posts that the url migt be realted to this problem and the site was configured for both www and without www in the url. With a little more testing this indeed turns out to be the case.
If you load up the site without www, and then submit the CiviCRM form it appends the www to the form submission location and brings up the error.
To fix this I added an entry into the .htaccess file as follows:
RewriteCond %{HTTP_HOST} ^c4ca\.org [NC]
RewriteRule ^(.*) http://www.c4ca.org/$1 [R=301,L]
This solved my problem by forcing all access to http://c4ca.org to be redirected to http://www.c4ca.org. I hope this help to solve other people's issues when working with CiviCRM. |
|
Last Updated on Monday, 18 January 2010 18:28 |