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) »
  • bin/UpdateAddress.php script runs for a minute, then shows 404 error?
Pages: [1]

Author Topic: bin/UpdateAddress.php script runs for a minute, then shows 404 error?  (Read 585 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
bin/UpdateAddress.php script runs for a minute, then shows 404 error?
October 05, 2010, 03:17:34 pm
Howwwwdy.

I'm running the bin/UpdateAddress.php script, from the command line using:

Code: [Select]
wget -O - -t 1 'http://www.MYSITE.org/sites/all/modules/civicrm/bin/UpdateAddress.php?name=stoob&pass=XXXX&key=XXXXXXXXXXXXXXX'

After a couple minutes I just get a 404 error, which is totally weird I think.  It doesn't appear any of the addresses were updating, either, even though the script took about 2 minutes to show the 404.  I've check that when I manually Edit a Contact, the Mapping does work and the address is updated successfully, so I know Google mapping is not the issue, at least when this action is done manually.

FYI, we have about 9800 records in the database. And this site is using 3.1.6

Any ideas on how to fix this issue, and get the script to run, with no 404 error?

Try CiviTeacher: the online video tutorial CiviCRM learning library.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: bin/UpdateAddress.php script runs for a minute, then shows 404 error?
October 08, 2010, 09:59:49 am
I opened up the script and set the "throttle" to 100.  This line of code is located near the top of the file.

I ran the script a couple more times, and it took more like 10 minutes to show the 404 error, instead of 2 minutes.

I ran it a couple more times after that, and eventually it got a totally different type of error, which I'm sorry I didn't get screencap of.  It was a non-recoverable PHP error.

I spot-checked a dozen contacts and they were all updated with the mapping coordinates by this point.  I'm not sure what happened, and it sure wasn't pretty, but for the most part, the script seems to have worked on most of the contacts.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • bin/UpdateAddress.php script runs for a minute, then shows 404 error?

This forum was archived on 2017-11-26.