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) »
  • CiviCRM search block not auto-completing
Pages: [1]

Author Topic: CiviCRM search block not auto-completing  (Read 2880 times)

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
CiviCRM search block not auto-completing
August 07, 2007, 06:55:18 pm
I'm using CiviCRM 1.7 on Drupal 5.1 (server is running MySQL 4.1.21 and PHP 4.4.4) and the auto-complete on the quick search block does not seem to be working. I have checked the Resource URLs and the civicrm.settings file and both are pointing to the correct location. Are there any other common causes for this function not to work?

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: CiviCRM search block not auto-completing
August 07, 2007, 07:20:11 pm

Can u check your apache access log and see if the ajax url is being invoked. can u also check your apache error log and see if there is an error being reported

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

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: CiviCRM search block not auto-completing
August 07, 2007, 07:46:39 pm
Sure can. My Apache error log is empty. The access log appears to indicate that the AJAX URL is being invoked. See log entry below for example...

"208.58.192.16 - - [07/Aug/2007:21:19:14 -0400] "GET /sites/all/modules/civicrm/extern/ajax.php?q=civicrm/search&d=1&s=c HTTP/1.1" 200 2000 "http://www.nonprofitcongress.org/index.php?q=civicrm/dashboard&reset=1" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"

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: CiviCRM search block not auto-completing
August 07, 2007, 09:59:34 pm

check::

http://www.nonprofitcongress.org/sites/all/modules/civicrm/extern/ajax.php?q=civicrm/search&d=1&s=c

you see a few errors in your directory settings. Please fix those notices and i suspect it will work

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

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: CiviCRM search block not auto-completing
August 08, 2007, 05:12:40 am
Caught those errors, and based on some archived advice changed ('CIVICRM_DOMAIN_ID' , 1 ); to ('CIVICRM_DOMAIN_ID' , 0 ); in my civicrm.settings file. The page you linked now loads what should be coming up in the search box and no errors. However, the auto-complete still isn't working. Nothing coming up in the Apache error log and same messages coming up in the Apache access log.

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: CiviCRM search block not auto-completing
August 08, 2007, 03:26:49 pm

The page is loading, but gicing me the same warnings about the files

Make sure you have set your directories in the

administer civicrm >> global settings properly

Ideally the page should return only this when loaded in the web browser:

[["CA Attorney General's Office","CA Attorney General's Office"],["Cabel Foundation","Cabel Foundation"],["Cabell, Marla","Cabell, Marla"],["Cada, Deanna","Cada, Deanna"],["Cahill, Janet","Cahill, Janet"]]

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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviCRM search block not auto-completing
August 10, 2007, 03:09:35 pm
Quote from: rickcohen on August 08, 2007, 05:12:40 am
Caught those errors, and based on some archived advice changed ('CIVICRM_DOMAIN_ID' , 1 ); to ('CIVICRM_DOMAIN_ID' , 0 ); in my civicrm.settings file.

I don't know of any case where CIVICRM_DOMAIN_ID should be set to 0. This is the site's KEY into the required civicrm_domain table (it should match an existing civicrm_domain.id record value). The only time this should be changed in the settings file is if you are running MULTIPLE CiviCRM domains in the same install which are linked to different Drupal sites. I don't think it can ever be 0, since civicrm_domain.id is an auto-increment primary key.
Protect your investment in CiviCRM by  becoming a Member!

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: CiviCRM search block not auto-completing
August 10, 2007, 03:38:17 pm
Yeah, I found that out when I switched it. The error messages went away and the page displayed as Lobo indicated it should, but it killed the site when anyone tried to log-in. So, I switched it back to 1. It's not really imperative that the auto-complete works, but I can't seem to figure out how to fix the errors without messing with the DOMAIN_ID.

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: CiviCRM search block not auto-completing
August 10, 2007, 06:06:26 pm

The config is stored in your domain record. With domain id 1, goto administer civicrm >> global settings >> directories and fix the directory paths there to point to the right directories where the web server has permission to read/write

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

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: CiviCRM search block not auto-completing
August 10, 2007, 06:42:27 pm
I've gone there and checked on the server to confirm that those directories have read/write access. Permissions on those directories are all set to 777

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: CiviCRM search block not auto-completing
August 10, 2007, 07:13:57 pm

the directories seem to be relative. i'd make them absolute just to be sure (i.e. make sure the path starts with '/', so most likely the path should be:

/home/nonprofi/domains/nonprofitcongress.org/public_html/

alternatively reinstall CiviCRM using the PHP5 Drupal installer and it should be able to figure out the right paths etc

thanx

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

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: CiviCRM search block not auto-completing
August 10, 2007, 08:06:53 pm
That did it. Thanx Lobo

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • CiviCRM search block not auto-completing

This forum was archived on 2017-11-26.