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) »
  • Public Search Page - Could not find a valid key
Pages: [1]

Author Topic: Public Search Page - Could not find a valid key  (Read 755 times)

digitalzen

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
Public Search Page - Could not find a valid key
April 26, 2010, 12:11:54 pm
Hello,

I've read some of the other forum posts on this topic, but am still completely lost. Here's my issue:

I'm trying to set up a public search page for a client's web site so that visitors to the site can search for organization members. Here's the url:

http://www.shorelinechamber.com/index.php?option=com_civicrm&view=Profiles&layout=search&Itemid=50

When I hit search, I get the following:

Sorry. A non-recoverable error has occurred.
We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site adminstrator for assistance.

Error type: Could not find a valid key.

HOWEVER, when I search from exactly the same page, NOT using the domain, it works fine. Here's that URL:

http://camel.arvixe.com/~sharonmk/index.php?option=com_civicrm&view=Profiles&layout=search&Itemid=50

I am a neophyte when it comes to PHP and mySQL so my questions may seem a bit stupid. Please bear with me, and be as thorough and specific in your answers as possible (ie. if I need to edit a table, please be VERY precise).  :P

Specs:

CiviCRM 3.1.3
Joomla 1.5.15
MySQL 5.0.90-community
PHP 5.2.12


I should also mention, I think it was working earlier, then I modified the resource URLs from the default (below):

http://camel.arvixe.com/~sharonmk/administrator/components/com_civicrm/civicrm/
http://camel.arvixe.com/~sharonmk/administrator/media/civicrm/persist/contribute/

to:

http://www.shorelinechamber.com/administrator/components/com_civicrm/civicrm/
http://www.shorelinechamber.com/administrator/media/civicrm/persist/contribute/

But when I saw that that broke things (Search threw the "Could not find valid value for gid" error) I set it back.

I also notice when I click Search from the first url provided (http://www.shorelinechamber.com/index.php?option=com_civicrm&view=Profiles&layout=search&Itemid=50), the address bar shows the non-domain url (http://camel.arvixe.com/~sharonmk/index.php?option=com_civicrm&task=civicrm/profile&) which appears to have truncated a bunch of important stuff off the end.


Please help!  ???

Thanks,
Chris

digitalzen

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
Re: Public Search Page - Could not find a valid key
April 26, 2010, 12:14:20 pm
I should that everything was working fine during testing, until I redirected the shorelinechamber.com domain to the site from its old location.

Chris

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: Public Search Page - Could not find a valid key
April 26, 2010, 12:47:32 pm

check:

http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location

basically due to code limitations, civicrm can only respond to one hostname for any install (yes we know, this is a bit sucky)

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

digitalzen

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
Re: Public Search Page - Could not find a valid key
April 26, 2010, 01:54:11 pm
WOO HOO!!!  :D

All I had to do was change the base url in civicrm.settings.php and that got everything working smooth as silk.

I'm glad to know it wasn't exactly a trivial issue I was running up against, but very glad that the fix was trivial.

Thanks so much for your help, Lobo!!!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Public Search Page - Could not find a valid key

This forum was archived on 2017-11-26.