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 CiviContribute (Moderator: Donald Lobo) »
  • Cannot find valid key error, base url seems ok
Pages: [1]

Author Topic: Cannot find valid key error, base url seems ok  (Read 722 times)

nicol

  • I post occasionally
  • **
  • Posts: 95
  • Karma: 5
  • CiviCRM version: 4.2, 4.3, 4.4
  • CMS version: Joomla 2.5.x, Joomla 3.x Wordpress 3.x, Drupal 7.x
  • MySQL version: 5.x
  • PHP version: 5.3 / 5.4
Cannot find valid key error, base url seems ok
February 01, 2011, 04:39:40 am
Hello,

Since restoring our site's database last week after a failed attempted upgrade to 3.3.3, I've been getting the "Sorry. A non-recoverable error has occurred. Could not find valid Key" error whenever any contribution page is submitted sending you to the following URL:

http://www.domain.org/administrator/index.php?option=com_civicrm&task=civicrm/contribute/transact&

Searching the forums I see this is normally connected to sessions and the base url. Here's what I've tried:
 - in the two civicrm_settings.php files the BASE_URL is pointed to the www.domain.org (ie with www.)
 - in my hosting provider's domain settings  it's set up so anyone visiting the http://domain gets forwarded to http://www.domain
 - In the dbse I've set the CiviCRM_domain description field to Null as suggested somewhere
 - I've added to .htaccess the following, as suggested at http://forum.civicrm.org/index.php/topic,16934.msg72170.html#msg72170:

Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.domain.org$
RewriteRule ^(.*)$ http://www.domain.org/$1 [R=301]

 - I've also cloned the site and database at http://dev.domain.com and despite changing the settings the contribution page still sends people to the URL at the top - ie it seems to ignore what's in the settings.php files.
 - restoring the database to a backup from before the failed upgrade doesn't solve it either.

This is all on a live site, so any solutions or suggestions are really appreciated as I'm at a loss and people aren't able to renew their membership at the moment

I'm using:

Joomla 1.5.22
CiviCRM 3.0.2
MySQL 5
PHP 5.2.15
Apache
Hosting - Dreamhost

Many thanks
Nic

Edit - to add info about .htaccess.
« Last Edit: February 11, 2011, 01:22:55 pm by nicol »

bmw

  • I post occasionally
  • **
  • Posts: 103
  • Karma: 4
    • Alcohol Justice - The Industry Watchdog
  • CiviCRM version: 4.5.8
  • CMS version: Joomla! 3.4.0
  • MySQL version: 5.5.42-cli
  • PHP version: 5.3.27
Re: Cannot find valid key error, base url seems ok
February 11, 2011, 02:00:41 am
I just keep emptying the cache from /media/civicrm/template_c/ in Joomla 1.5, then the main Joomla cache and then browser cache. Eventually, it all starts to work.

Bruce
Bruce Wolfe, M.S.W., CIO
Alcohol Justice, 501(c)3

nicol

  • I post occasionally
  • **
  • Posts: 95
  • Karma: 5
  • CiviCRM version: 4.2, 4.3, 4.4
  • CMS version: Joomla 2.5.x, Joomla 3.x Wordpress 3.x, Drupal 7.x
  • MySQL version: 5.x
  • PHP version: 5.3 / 5.4
Re: Cannot find valid key error, base url seems ok
February 11, 2011, 02:23:29 am
Cheers Bruce,

My problem seemed to be down to having an extra civicrm.settings.php file in the root directory from an earlier backup.

Thanks to @lcdservices for the help.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Cannot find valid key error, base url seems ok

This forum was archived on 2017-11-26.