Each time I refresh a page, I get the above error.

what is the error about?

Comments

rdeboer’s picture

HTTP Error 500 Internal server error: the web server (running the Web Site) encountered an unexpected condition that prevented it from fulfilling the request.

Could be a problem with any module on your system. What makes you think it's an IP Geolocation error? Is that literally what it says?
Any clues in the logs both in Drupal (under Reports) and the Apache server logs?

mabf’s picture

I have the same problem
your you have been able to solve the problem?

rdeboer’s picture

@Miguel Angel, #2:

Hi Miguel,

Can you please describe more clearly what you do to get this error?
What is the page that you refresh. Does it have an IPGV&M map on it? If so, what kind of map: Google, Leaflet or OpenLayers?
Is "Use AJAX" on in your View or not?
Is it indeed the 7.x-1.x-dev version of IP Geoloc Views & Maps that this report was logged against that you use? Or is the 7.x-1.18 release?

If I can't reproduce this issue, I cannot fix it. Please show me the steps...

Rik

mabf’s picture

Version: 7.x-1.x-dev » 7.x-1.9

Hi Risk, thank
I use:
Drupal 7.x-1.9
Modules the location
Geofield, Geofield map 7x-1.1
Geo PHP 7x-1.7
IP Geolocation views and maps 7x-1.18
Device GEolocation 7x-1.0
Smart IP 7x-1.8
leaflet... 7x-1.0
it´s all updated

The error is: Message webpage
IP Geolocation : an HTTP error 500 occurred
In blue State report

GeoPHP and GEOS GeoPHP library installed and OK. However, GEOS is was not found. While not required, you will see performance improvements if you install the GEOS PHP extension. See the following link for more information.https://github.com/phayes/geoPHP/wiki/GEOS

webpage
www.cosasmedicas.com

I not because it says that to me if everything is correct

thanks you

rdeboer’s picture

Interesting Miguel....

Ok I can see the error on your site. It happens in the HTML5 location retrieval Javascript....

What does your "Recent log messages, /admin/reports/dblog, show? Anything suspicious there?

You don't need to enable Device Geolocation if you have IP Geolocation Views and Maps enabled. Just Smart IP by itself is sufficient.
In fact this may be part of your problem...
Try disabling Device Geolocation.

Rik

mabf’s picture

I have been disabling several modules and GeoPHP and GEOS GeoPHP the have disabling but the error does not disappear IP Geolocation : an HTTP error 500 occurred

rdeboer’s picture

Title: IP Geolocation : an HTTP error 500 occurred » Javascript popup alert: "IP Geolocation : an HTTP error 500 occurred"
Version: 7.x-1.9 » 7.x-1.18

Don't know. Haven't seen this on other Drupal installs before.
It's easy to just comment out the error in the javascript code, but that's not fixing the underlying issue.

rdeboer’s picture

Hi Miguel,
Did you solve this in the end?
Rik

rdeboer’s picture

Status: Active » Closed (cannot reproduce)

Closing due to inactivity.

socialnicheguru’s picture

Hi.

I am still getting this intermittently. Here is what I get in chrome:
POST http://mysite/ip-geoloc-current-location 500 (Internal Server Error) jquery.js?v=1.7.1:8102
send jquery.js?v=1.7.1:8102
jQuery.extend.ajax jquery.js?v=1.7.1:7580
callback_php ip_geoloc_current_location.js?mwd3ku:89
(anonymous function) ip_geoloc_current_location.js?mwd3ku:61
(anonymous function) VM842:5
(anonymous function) VM842:3
$P VM842:1
e VM842:3
(anonymous function) VM822:72
(anonymous function) VM822:58
(anonymous function) VM822:72
Vt.c VM822:69
(anonymous function) GeocodeService.Search?5m2&1d37.774929&2d-122.41941600000001&7sUS&9sen-US&callback=_xdc_._y5g5if&tok…:1

I have google selected for my geocode.

socialnicheguru’s picture

Issue summary: View changes
Status: Closed (cannot reproduce) » Active
rdeboer’s picture

Weird...

"I have google selected for my geocode."

Do you mean you have the "Employ the Google Maps API to reverse-geocode HTML5 visitor locations to street addresses" box ticked on the IPGV&M config page or are you referring to a Geocoder module setting?

gettysburger’s picture

I am also getting an error like that, on my live server but it works fine on localhost?

The error reads, in part, "A 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."

I am using Geocoder 7.x-1.2
Geofield 7.x-1.1
Geofield Map 7.x-1.1
GeoPHP 7.x-1.7
IP Geolocation 7.x-1.23

I am using Chrome and it does not just throw a popup, it throws me to a white error page.

I am wondering if I need to update to a new version of Geofield...?

rdeboer’s picture

@gettysburger:
I don't know how and why you would get that error on your server as a result of IP Geolocation Views & Maps.
Geofield 7.x-2.x is preferred but it won't make this error go away.
You don't need Geofield Map when you use IP Geolocation Views & Maps.

gettysburger’s picture

Thanks. I'll play around with it some more. Very excited by what I see on my local server.

gettysburger’s picture

Someone has suggested that, although this is working for me locally I might need to contact my service provider (webhostinghub.com) and have them change some setting. I have contacted them and will see what they say. Strangely, I checked my server logs (from whh) and they are empty?

gettysburger’s picture

OK, I called my service provider, enabled the module and got the server 500 error. This is waht he got:

"[Mon Nov 25 10:43:20 2013] [error] [client 24.153.125.19] Premature end of script headers: index.php, referer: http://www.virtualantietam.com/admin/modules"

Any thoughts? Thanks.

gettysburger’s picture

Solved! I upgraded to PHP 5.3 and the module loaded with no problem. I have not banged on it yet to be absolutely sure, but the first thing it did after starting with no errors was tell me that the site wanted to know my location, which I saw as a good sign. Thanks for a great module.

rdeboer’s picture

Status: Active » Closed (works as designed)

Great. Closing