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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Could not find valid Key
Pages: [1]

Author Topic: Could not find valid Key  (Read 2853 times)

casitc

  • Guest
Could not find valid Key
July 04, 2008, 02:48:39 am
Hi All,

I'm a newbie so please be gentle.. I've searched an untold amount of websites, articles, forums, blogs etc. but still can't seem to find a solution. 

I've recently installed CiviCrm 2.0.4 on my joomla (1.5) site; which is running in legacy mode (1.0).  CiviCRM seems to be working fine in the back-end.

When I try to use the search facility and list profiles in CiviCRM in the front-end the following error keeps coming up:

unrecoverable error
    Sorry. A non-recoverable error has occurred.

    Could not find valid Key

    Return to home page.

Back Trace reveals the following:

backTrace

/homepages/1/d240759381/htdocs/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 258
/homepages/1/d240759381/htdocs/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, fatal, 185
/homepages/1/d240759381/htdocs/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, key, 136
/homepages/1/d240759381/htdocs/administrator/components/com_civicrm/civicrm/CRM/Core/Controller/Simple.php, __construct, 64
/homepages/1/d240759381/htdocs/administrator/components/com_civicrm/civicrm/CRM/Profile/Page/Listings.php, __construct, 243
/homepages/1/d240759381/htdocs/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, run, 922
/homepages/1/d240759381/htdocs/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, profile, 130
/homepages/1/d240759381/htdocs/components/com_civicrm/civicrm.php, invoke, 82
/homepages/1/d240759381/htdocs/components/com_civicrm/civicrm.php, civicrm_invoke, 26
/homepages/1/d240759381/htdocs/libraries/joomla/application/component/helper.php, require_once, 162
/homepages/1/d240759381/htdocs/includes/application.php, renderComponent, 124
/homepages/1/d240759381/htdocs/index.php, dispatch, 69

When i return to the home page the base url changes.  I am then able to search and view listings in the database. 

I changed the url settings in the resource urls to match.  But still nothing.

Can anyone shed any light on this....???

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Could not find valid Key
July 11, 2008, 12:11:38 pm
Did you originally install to a different domain, and then move the site? Sounds like you've got the old domain still hanging around in one of the settings, either in Civi or Joomla, and that's throwing it off.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

casitc

  • Guest
Re: Could not find valid Key
July 22, 2008, 04:19:15 am
Hi,

thanks for your response icdweb.

> Did you originally install to a different domain, and then move the site?

No.

> Sounds like you've got the old domain still hanging around in one of the settings, either in Civi or Joomla, and that's throwing it off.

I think you were right.  After uninstalling civi I changed $live_site in configuration.php to reflect the full url/domain of my site.  The problem seems to have gone away.  But....

..I now have another problem.

It seems to show the profile search listings on the homepage, surrounded by the modules on that page, rather than on a new page/section.  Ideally, I would like the listing to be displayed in a new section.  I'm not sure if this is a CSS style problem or something related to civi..

please help....

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Could not find valid Key
July 22, 2008, 06:25:42 am
I'm a little fuzzy by what you mean when you say "surrounded by modules" -- do you mean Joomla modules? When you expose a CiviCRM page, such as a profile listing, to the frontend of the Joomla site, it works like any other component -- using the main component block. If you have Joomla modules present on that page that you want removed, you need to use the module manager to designate what pages you want the module present on.
-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

casitc

  • Guest
Re: Could not find valid Key
July 23, 2008, 02:03:50 am
That's exactly what I did.  Using module manager I designated the modules to be present on the homepage only.  I had the same problem using the JEvents component, which also opened on the homepage surrounded by the modules. 

After some frantic searching on this and other forums I picked up on a thread that suggested turning off my SEO settings, in particular, Search Engine Friendly URLs. I did just that and voila, it's ok.  Not sure if this is a bug or limited to my site/design.  Using Search Engine Friendly URLs has it's advantages especially when referring to site URLs in printed publications.  IMHO the last thing a reader wants to do is type a complicated address into their address bar i.e. http://www.mydomain.org.uk/index.php?option=com_weblinks&view=category&id=12&Itemid=54.  Some are even longer and more compliacted than that.  Maybe, if I have enough strength left I might investigate this further to see if a solution exists whereby I could use both, SEO and CiviCRM without any problems.   

Many thanks for your guidance lcdweb.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Could not find valid Key
July 23, 2008, 06:27:45 am
Ok, this is more a general Joomla issue. Any page in Joomla picks up its module settings from the menu link or its parent menu link (itemid). However, not all of your pages will have a direct menu link, or even inherit from a parent menu link, which sort of throws Joomla off. It may display unintended modules because it has lost its direction.

So the most common workaround in the joomla world is to create a "link setting" menu set to "special" user access (only visible to admins). Create menu links to your components in that menu, which then allows you to define module settings and grab the link to the page.

Yes, I'm not surprised it's more of an issue with SEO turned on, because of the way Joomla rewrites urls for that tool.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

pooririshman

  • Guest
Re: Could not find valid Key
September 04, 2008, 11:23:19 am
I found that my CiviCRM Settings were INCORRECT for my domain

The civicrm.settings.php file located in -
/public_html/components/com_civicrm

Has a setting on Line 148 which states -
define( 'CIVICRM_UF_BASEURL'      , 'http://www.domain.org/' );

Incorrectly - my setting was still
define( 'CIVICRM_UF_BASEURL'      , 'http://domain.org/' );

I added the WWW before the Domain Name - saved - and uploaded!

All is right with the world once again ...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Could not find valid Key

This forum was archived on 2017-11-26.