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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • Proximity Search "expects parameter 1 to be string"
Pages: [1]

Author Topic: Proximity Search "expects parameter 1 to be string"  (Read 2533 times)

bchoc

  • Guest
Proximity Search "expects parameter 1 to be string"
August 18, 2008, 12:09:49 pm
In the sandbox, I attempted a proximity search for everything within 200km of postal code 80211.  I left all other fields empty (none are marked as required).  I tried this twice, and did get two successful results, but also 4-5 copies of this error on-screen:
Quote
warning: urlencode() expects parameter 1 to be string, array given in /var/www/drupal-6.civicrm.org/public/sites/sandbox.civicrm.org/modules/civicrm/CRM/Utils/Geocode/Google.php on line 120.

Changing the postal code to something else did not change anything ... it still appears to work with lots of errors.

I went through and tried each of the other fields individually plus postal code (address + code, city + code, etc.) and the error was the same.  However, certain combinations beyond code+1 did seem to eliminate the error. Code+Country+Any-other-field gave the same search results, but without the error.  So, the country code seems necessary, but code+country is not sufficient.

So, anyway, it's weird.  I didn't see an issue for this in the queue or another post, so I thought I'd drop a note here.

Brian

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Proximity Search "expects parameter 1 to be string"
August 18, 2008, 01:49:19 pm
Brian:

Thanx for reporting this issue, it's fixed and sandbox is updated.

kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • Proximity Search "expects parameter 1 to be string"

This forum was archived on 2017-11-26.