Message Text |
On the site www.weddingserviceproviders.co.uk I have a search by post code radius, but it has a drop down list of categories so that you can search particular categories by post code. The firs option in the drop down box is all services, which is a blank option which should and did used to search within all categories.
If this is used I now get an error message...
Example:
All categories
Within 10 miles
of RH11 6AP
An error occoured at www.weddingserviceproviders...r&filled=1&whichtype=links on 2009-05-24 07:52:41. Please relay this data to support. Error #2: 'file_get_contents(ws.geonames.org/findNearbyP...ostalCodes?postalcode=RH13 6ap&radius=16&maxRows=500&country=AL) [function.file-get-contents]: failed to open stream: Connection timed out' in /home/hello211/public_html/includes/filefunctions.php on line 513.
Step 1 of backtrace:
File: /home/hello211/public_html/includes/filefunctions.php
Line: 513
Function: file_get_contents
Arguments: ws.geonames.org/findNearbyP...ostalCodes?postalcode=RH13 6ap&radius=16&maxRows=500&country=AL Resource id #41
Step 2 of backtrace:
File: /home/hello211/public_html/includes/commonfuncs.php
Line: 200
Function: geturl
Arguments: ws.geonames.org/findNearbyP...ostalCodes?postalcode=RH13 6ap&radius=16&maxRows=500&country=AL
Step 3 of backtrace:
File: /home/hello211/public_html/includes/searchlogic.php
Line: 12
Function: getlocalzips
Arguments: RH13 6ap 10
Step 4 of backtrace:
File: /home/hello211/public_html/search.php
Line: 22
Function: include
Arguments: /home/hello211/public_html/includes/searchlogic.php
---
Also, if someone puts in a post code incorrectly (omits the space) the results are wrong. Is there any way to make it so it works...
For example...
If someone puts in RH136AP instead of RH13 6AP, the results are incorrect.
Thanks
Jon |