Was trying to enter a PLAC name: first by letting PGV complete then by pieces (Country, state, county, city). The place does exist. Township of Southfield, Oakland County, Michigan, USA. I also received this entering a name in Poland that I did find existed (GeoNames website).
Error:
<br />ERROR 2: file_get_contents() : php_network_getaddresses: getaddrinfo failed: Name or service not known<br />
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
mac
Sounds like a connection error on 'geonames'. Do you have it enabled? If so, this happens from time to time as an issue accessing their database - not a PGV error.
Do you really use the fields entry method? If you already have most places where your family has resided listed in your PLAC hierarchy, auto-complete will find the existing results as the suggested place much easier than the separate fields method. You can still use geonames with this one, long PLAC field too. If the PLAC does not exist, new ones will be suggested. -Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use auto-complete most times. It couldn't complete the entry so was trying it "manual". I use PGV to complete the names as well as the actual website for some odd names where I want to see options available in a easier-to-read list.
I've seen the error before but not very often. Thought something wrong when there were no suggestions.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Mac
Some other suggestions on PLAC names, rather than the individual field approach (I have that disabled on my site for fear of misuse by my users) and geonames:
The new Google Map v3 API is outstanding in displaying and assisting with PLAC names. Unfortunately, it is unlikely to come to PGV in the near future and v2 is deprecated. -Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
<QUOTE>auto-complete will find the existing results as the suggested place much easier than the separate fields method</>
Am I stuck with the errors when using auto-complete? (And also using field entry when needed) While I do use GeoNames website, it's harder to paste in as there's no full form shown, only the parts.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Mac
Use of Geonames as part of the PLAC field choices is an option in PGV's configuration. I've never visited their website to see what is offered as it would be unnecessary to do so, using the PGV tool.
Manage GEDCOMS > Configuration file > Edit > Edit Options > Use Geonames database
Usually I use Google and simply ask the question: "County for Indianapolis, Indiana" with the results "Marion" -Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Think I may not have explained properly. When I type in London and find I don't have a London already, I get the ERROR message noted. I don't get suggestions. This started with the upgrade. When I try to "manual" enter via the split (? term) <country, state, county, city> I get the error when I get to city.
If I am uncertain about London (obscure name or maybe my research says it's in USA but suggestions don't show USA, then I use the website. I have GeoNames bookmarked and one for USA names (think one of you gave it to me) and those are very good. No problem there. (If results of searching for London, USA fail, I then will add comment to the Source)
In short it's the PGV errors for autocomplete that's causing problems where I don't have a previous entry. It's not suggesting names, it's throwing up the error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Mac:
I suspect that your copy of the "autocomplete.php" script is damaged. Try replacing it with a fresh copy.
If you inspect the code around line 506 (SVN version) or 662 (version 4.2.3), you can see that there's no way an incorrect URL can be generated for the Geonames search.
If you're not in the SVN version of PGV, I strongly suggest that you upgrade. There have been significant changes in various features, including Autocomplete.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
canajun2eh:
I just FTP'd fresh autocomplete.php from the svn (4.3.0 svn). Picked a record and OCCU tag. Typed "kath" for Kathmandu. Got the error:
ERROR 2: file_get_contents() : php_network_getaddresses: getaddrinfo failed: Name or service not known
0 Error occurred on in function <b>file_get_contents
1 called from line <b>514</b> of file <b>autocomplete.php in function <b>autocomplete_PLAC
2 called from line <b>91</b> of file <b>autocomplete.php
<b>Warning</b>: file_get_contents() : php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/home/myra/alterfamily.woodengems.com/tree/autocomplete.php</b> on line <b>514</b>
still. I typed "inv" for Inverness, it accepted it as it's already on file. (The HTML codes aren't in the message of course, only way I could paste here)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I use Autocomplete YES, Geonames NO, (logout/in), then type "kath", NOTHING happens.
Don't I need Geonames (YES) in order to lookup "kath" = "Kathmandu" and Autocomplete (YES) to complete name if previously used? My settings are carried over and I had both as YES and working just fine. Since the svn I'm using it stopped (Nov 21 download)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Gerry
That change in mine restores the use of GEONAMES in the PLAC fields, with autocomplete still searching (after 3 letters and a pause) for names already present in the database (GEDCOM).
Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Mac:
The standard PHP function that's used by PhpGedView to interpret the results of a Geonames search is limited to 20 names in PHP versions prior to 5.2.3. In PHP 5.2.3 the limit was raised to 127.
I did a manual submission of the URL to Geonames, using "kath" as the filter. I got a lot more than 127 results.
Try entering more of the name to focus the results list.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I typed in the full Kathmandu and nothing. Just sits there. Tried Bangkok too, an easier name to check (the first has variable spellings). Nothing. Then tried various other names I know I've never used. Nothing. No errors. Field stays 'coloured'.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just thought I'd ask if there's anything else to try and get this working again.
Sorry, to get what working. The GEO-NAMES bug was fixed and autocomplete (on existing data within your database) works correctly. Doesn't appear to be anything in need of repair. Perhaps you need to clean up your place structure and/or reimport to repopulate your place locations data table.
If you can be more specific, and allow us access to reproduce any problem you see on your site, it would be more helpful than such a general statement to which we can take no action. -Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Mac:
The Geonames search works just fine on my site. PHP version is 5.2.13
When I enter "Bangk", I get several Bangkok suggestions. Anything shorter than that, and I get a number of suggestions that are irrelevant, and no Bangkok. This is where the limit of 127 or 20 comes into play.
The same is true for "Kathma" - anything less, and I get irrelevant suggestions.
I had to set the GEDCOM configuration to enable autocomplete and also to enable the use of the Geonames database. The option for splitting places in Edit mode doesn't affect anything.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Was trying to enter a PLAC name: first by letting PGV complete then by pieces (Country, state, county, city). The place does exist. Township of Southfield, Oakland County, Michigan, USA. I also received this entering a name in Poland that I did find existed (GeoNames website).
Error:
<br />ERROR 2: file_get_contents() : php_network_getaddresses: getaddrinfo failed: Name or service not known<br />
mac
Sounds like a connection error on 'geonames'. Do you have it enabled? If so, this happens from time to time as an issue accessing their database - not a PGV error.
Do you really use the fields entry method? If you already have most places where your family has resided listed in your PLAC hierarchy, auto-complete will find the existing results as the suggested place much easier than the separate fields method. You can still use geonames with this one, long PLAC field too. If the PLAC does not exist, new ones will be suggested.
-Stephen
I use auto-complete most times. It couldn't complete the entry so was trying it "manual". I use PGV to complete the names as well as the actual website for some odd names where I want to see options available in a easier-to-read list.
I've seen the error before but not very often. Thought something wrong when there were no suggestions.
Mac
Some other suggestions on PLAC names, rather than the individual field approach (I have that disabled on my site for fear of misuse by my users) and geonames:
Google the PLAC (ask "County for Springfield Illinois", get results "Sangamon") then becomes Springfield, Sangamon County, Illinois, USA
http://www.placenames.com
http://www.epodunk.com/
http://www.fallingrain.com
The new Google Map v3 API is outstanding in displaying and assisting with PLAC names. Unfortunately, it is unlikely to come to PGV in the near future and v2 is deprecated.
-Stephen
<QUOTE>auto-complete will find the existing results as the suggested place much easier than the separate fields method</>
Am I stuck with the errors when using auto-complete? (And also using field entry when needed) While I do use GeoNames website, it's harder to paste in as there's no full form shown, only the parts.
Mac
Use of Geonames as part of the PLAC field choices is an option in PGV's configuration. I've never visited their website to see what is offered as it would be unnecessary to do so, using the PGV tool.
Manage GEDCOMS > Configuration file > Edit > Edit Options > Use Geonames database
Usually I use Google and simply ask the question: "County for Indianapolis, Indiana" with the results "Marion"
-Stephen
Mac:
I'm with Stephen on this one.
I use Google extensively to determine county names in the USA.
Think I may not have explained properly. When I type in London and find I don't have a London already, I get the ERROR message noted. I don't get suggestions. This started with the upgrade. When I try to "manual" enter via the split (? term) <country, state, county, city> I get the error when I get to city.
If I am uncertain about London (obscure name or maybe my research says it's in USA but suggestions don't show USA, then I use the website. I have GeoNames bookmarked and one for USA names (think one of you gave it to me) and those are very good. No problem there. (If results of searching for London, USA fail, I then will add comment to the Source)
In short it's the PGV errors for autocomplete that's causing problems where I don't have a previous entry. It's not suggesting names, it's throwing up the error.
Mac:
I suspect that your copy of the "autocomplete.php" script is damaged. Try replacing it with a fresh copy.
If you inspect the code around line 506 (SVN version) or 662 (version 4.2.3), you can see that there's no way an incorrect URL can be generated for the Geonames search.
If you're not in the SVN version of PGV, I strongly suggest that you upgrade. There have been significant changes in various features, including Autocomplete.
canajun2eh:
I just FTP'd fresh autocomplete.php from the svn (4.3.0 svn). Picked a record and OCCU tag. Typed "kath" for Kathmandu. Got the error:
ERROR 2: file_get_contents() : php_network_getaddresses: getaddrinfo failed: Name or service not known
0 Error occurred on in function <b>file_get_contents
1 called from line <b>514</b> of file <b>autocomplete.php in function <b>autocomplete_PLAC
2 called from line <b>91</b> of file <b>autocomplete.php
<b>Warning</b>: file_get_contents() : php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/home/myra/alterfamily.woodengems.com/tree/autocomplete.php</b> on line <b>514</b>
still. I typed "inv" for Inverness, it accepted it as it's already on file. (The HTML codes aren't in the message of course, only way I could paste here)
Looks to be an issue with the Geonames.org URL coded into PGV.
file_get_contents
Don't know it they switched or not.
Stephen
So do I understand I can't use autocomplete for names not already used in my PGV? Does it need a bug fix request?
No you have misunderstood. You can't have USE GEONAMES DATABASE configured as YES. Autocomplete has nothing to do with Geonames.
Stephen
If I use Autocomplete YES, Geonames NO, (logout/in), then type "kath", NOTHING happens.
Don't I need Geonames (YES) in order to lookup "kath" = "Kathmandu" and Autocomplete (YES) to complete name if previously used? My settings are carried over and I had both as YES and working just fine. Since the svn I'm using it stopped (Nov 21 download)
Mac:
Please try changing the URL in line 507 of "autocomplete.php" (SVN version).
Change "ws5" to "ws".
if (empty($data) && $USE_GEONAMES) {
$url = "http://ws.5geonames.org/searchJSON".
to
if (empty($data) && $USE_GEONAMES) {
$url = "http://ws.geonames.org/searchJSON".
made no difference when typing "kath" into PLACE to get Kathmandu or "ban" to get "Bangkok"
Did you get an error message of some sort, or did the search just not work?
Gerry
That change in mine restores the use of GEONAMES in the PLAC fields, with autocomplete still searching (after 3 letters and a pause) for names already present in the database (GEDCOM).
Stephen
Sorry, should have said no error. This time the "kath" just sits there.
Mac:
The standard PHP function that's used by PhpGedView to interpret the results of a Geonames search is limited to 20 names in PHP versions prior to 5.2.3. In PHP 5.2.3 the limit was raised to 127.
I did a manual submission of the URL to Geonames, using "kath" as the filter. I got a lot more than 127 results.
Try entering more of the name to focus the results list.
I typed in the full Kathmandu and nothing. Just sits there. Tried Bangkok too, an easier name to check (the first has variable spellings). Nothing. Then tried various other names I know I've never used. Nothing. No errors. Field stays 'coloured'.
Just thought I'd ask if there's anything else to try and get this working again.
Mac
Sorry, to get what working. The GEO-NAMES bug was fixed and autocomplete (on existing data within your database) works correctly. Doesn't appear to be anything in need of repair. Perhaps you need to clean up your place structure and/or reimport to repopulate your place locations data table.
If you can be more specific, and allow us access to reproduce any problem you see on your site, it would be more helpful than such a general statement to which we can take no action.
-Stephen
Mac:
The Geonames search works just fine on my site. PHP version is 5.2.13
When I enter "Bangk", I get several Bangkok suggestions. Anything shorter than that, and I get a number of suggestions that are irrelevant, and no Bangkok. This is where the limit of 127 or 20 comes into play.
The same is true for "Kathma" - anything less, and I get irrelevant suggestions.
I had to set the GEDCOM configuration to enable autocomplete and also to enable the use of the Geonames database. The option for splitting places in Edit mode doesn't affect anything.