Pages: [1]
Print
Author Topic: Warning: file_get_contents  (Read 219 times)
webster281
Download
Newbie
*
Posts: 1


« on: July 20, 2011, 01:32:19 PM »

We are getting an error when trying to do search - running 2.1

Warning: file_get_contents(http://maps.google.com/maps/geo?q=08043%27+us&output=csv&key=ABQIAAAApzX4BGw5nkBFJW-L7khy8xTHHpteOLaaq0bXe-pAPZD6laZYpBSR2nrSPLFZctEjOpAM1lSSMMNU7Q) [function.file-get-contents]: failed to open stream: Network is unreachable in /home/xxxxx/public_html/xxxxx/lr_v21/classes/class.LocationSearch.php on line 125
Logged
Support
Administrator
Jr. Member
*****
Posts: 97



« Reply #1 on: July 20, 2011, 04:16:16 PM »

The version of LiteRadius you are using communicates with the Google Map server using the PHP function file_get_contents. The Warning may be thrown because your web hosting provider recently upgraded PHP or the Google web server is rejecting the communication from your hosting service.

If you run LiteRadius in a shared hosting environment, your warning is probably happening because the Google server is rejecting the communication because the number of coordinate requests has exceeded the daily limit. I suspect if you run a search first thing in the morning, LiteRadius will work.

Beginning with LiteRadius version 3, we stopped using file_get_contents as the method of communication for just the reason explained above.

The solution is to install the latest version of LiteRadius, which does not use file_get_contents.

Logged
Pages: [1]
Print
Jump to: