Here again the gmap_plugin_style_gmap.inc ... but today on line 144.

I was adjusting some parameters in a view and, after removing latitude and longitude, suddenly this error ina a white screen of death appears.
Now my site is completely stuck. I can't do anything. The message seems to be eternal.

About line 144 there's this bunch of code lines:

foreach ($records as $row_index => $row) {
$this->view->row_index = $row_index;
$lat = (float)$row->{$lat_field};
$lon = (float)$row->{$lon_field};

please, I need some real help, I have only old backups

Comments

SestuDeus’s picture

Title: Fatal error: Cannot access empty property in sites/all/modules/gmap/gmap_plugin_style_gmap.inc on line 144 » Dirty solution
Assigned: Unassigned » SestuDeus
Status: Active » Closed (fixed)

When the site is stuck, via ssh I edited the following lines of the file: sites/all/modules/gmap/gmap_plugin_style_gmap.inc (about line 144):

from

foreach ($records as $row_index => $row) {
$this->view->row_index = $row_index;
$lat = (float)$row->{$lat_field};
$lon = (float)$row->{$lon_field};

to

foreach ($records as $row_index => $row) {
$this->view->row_index = $row_index;
$lat = (float)$row->{1};
$lon = (float)$row->{1};

now the site can run again, I can edit the view who broke the balls and re-edit the above lines to the original ones.