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) »
  • Quick search and other undefined errors
Pages: [1]

Author Topic: Quick search and other undefined errors  (Read 1297 times)

norwichhatter

  • I’m new here
  • *
  • Posts: 10
  • Karma: 1
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7
  • MySQL version: 5.0.77
  • PHP version: 5.3.13
Quick search and other undefined errors
June 13, 2012, 07:31:33 am
When we type something into the search bar all the drop down suggestions we are getting appear to be coming out in code?  Has anyone else came across this problem and know how to rectify it?  When I click on one of them I get a message like this

Sorry. A non-recoverable error has occurred.
cid (value: undefined) is not of the type Positive

Here is the one of many error report messages

Notice: Undefined property: CRM_Core_DAO::$coy.name as country in civicrm_api3_contact_quicksearch() (line 766 of /var/www/gandh/sites/all/modules/civicrm/api/v3/Contact.php).

All this has started since updating drupal to drupal 7, is there a patch or anything I need that I'm missing??  I'm having similar undefined issues with other functions too all in the same directory but different files.  So this is what makes me think I need a patch or some updated files.  Please help!!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Quick search and other undefined errors
June 14, 2012, 06:03:45 am
Not sure what this is. Can you upgrade to 4.1.3 first?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Quick search and other undefined errors
June 14, 2012, 12:51:16 pm
I have seen that error when 'address' has been set to show in the QuickSearch results - and that linebreaks have been imported in to the DB - the linebreaks results in the QuickSearch results being 'split' and the top half doesn't get the ID but the lower half does.
Not sure if i have explained it well but may be worth checking if it something like that.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

norwichhatter

  • I’m new here
  • *
  • Posts: 10
  • Karma: 1
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7
  • MySQL version: 5.0.77
  • PHP version: 5.3.13
Re: Quick search and other undefined errors
June 20, 2012, 01:23:04 am
Thanks guys I'll look at upgrading and see if that helps.  It could be that Drupal 7 is just reacting badly to my version of Civicrm.  I'll let you know how I get on....

norwichhatter

  • I’m new here
  • *
  • Posts: 10
  • Karma: 1
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7
  • MySQL version: 5.0.77
  • PHP version: 5.3.13
Re: Quick search and other undefined errors
June 20, 2012, 08:06:32 am
Update seems to have done the trick!!  Thanks guys!

drupleg

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 2
    • Drupal.org Profile
  • CiviCRM version: 4.1
  • CMS version: Drupal 7
  • PHP version: 5.3
Re: Quick search and other undefined errors
November 14, 2012, 09:55:42 pm
Here's a workaround for anyone else with this issue.  I recieved this error today.  I am on the latest 4.2.6 at this time. My system has been upgraded from D6 / Civi 3.x to D7 / Civi 4.x over several months.  The upgrade didn't fix the errors for me so I disabled the offending fields in the search preferences civicrm/admin/setting/search?reset=1. In my case it was Street Address, City, and State all throwing errors such as:

Code: [Select]
Notice: Undefined property: CRM_Core_DAO::$ste.name as state_province in civicrm_api3_contact_getquick()
Notice: Undefined property: CRM_Core_DAO::$street_address in civicrm_api3_contact_getquick()
Notice: Undefined property: CRM_Core_DAO::$city in civicrm_api3_contact_getquick()

So I'll just leave those off for now, maybe it'll get resolved later or the next time I do a database integrity check/reload.

lolas

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 9
    • Freeform Solutions
  • CiviCRM version: Several
  • CMS version: Drupal
  • MySQL version: 5.1+
  • PHP version: Several
Re: Quick search and other undefined errors
March 14, 2013, 05:00:03 pm
@drupleg: Your solution works for me on a 4.1.2 install. Perhaps one of us should file a bug report since you are still seeing it on 4.2.6.
Freeform Solutions provides technology and management consulting, website and database development, and managed internet hosting solutions for not-for-profit organizations (NFPs).

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: Quick search and other undefined errors
March 14, 2013, 05:12:47 pm

lola:

can u please try this on 4.3 and if reproducible file an issue with details

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

lolas

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 9
    • Freeform Solutions
  • CiviCRM version: Several
  • CMS version: Drupal
  • MySQL version: 5.1+
  • PHP version: Several
Re: Quick search and other undefined errors
March 19, 2013, 07:37:08 am
Lobo,

Thanks for your reply. So far I couldn't reproduce this on a 4.3 beta 3 local install with the sample data. So it appears to be fixed. If I get a chance I will try with this customer data as well.
Freeform Solutions provides technology and management consulting, website and database development, and managed internet hosting solutions for not-for-profit organizations (NFPs).

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Quick search and other undefined errors

This forum was archived on 2017-11-26.