today i updated my geophp lib and all maps just not work at all

Comments

ionmedia’s picture

after downgrade to 1.6 all works

phayes’s picture

Status: Active » Postponed (maintainer needs more info)

Are you getting any errors? I need more details.

globalplayer’s picture

Hi,

after updateing to 7.x-1.7 I got the following error:

Fatal error: Class name must be a valid object or a string in /sites/all/libraries/geoPHP/geoPHP.inc on line 48

rajrsingh’s picture

after updating to 7.x-1.7 I get this error:

Notice: Undefined index: P in geoPHP::load() (line 62 of geoPHP.inc).
Location: Specified location data is invalid.

some potentially related module info:
Geofield 7.x-2.0-alpha2
OpenLayers 7.x-2.0-beta1

arne@dbyte.nl’s picture

Same error here, after updating to 7.x-1.7

Error:
Notice: Undefined index: P in geoPHP::load() (line 62 of geoPHP.inc).
Location: Specified location data is invalid.

some potentially related module info:
Geofield 7.x-1.1 and also 7.x-2.0-alpha2
OpenLayers 7.x-2.0-beta1+84-dev

It looks like a problem with the Auto-detect feature

mglaredo’s picture

Same problem. I'm starting with Drupal and get into this obstacle: Adding Location Content which uses Geofield & Openlayers Map Control.

Enabled: geoPHP 7.x-1.7, Geocoder 7.x-1.2, Geofield 7.x-2.0-alpha2+0-dev
Disabled: Geofield Map 7.x-2.0-alpha2+0-dev,

Also I've opened an issue on openoutreach distro (http://drupal.org/node/1863962) and comment this contribution to this other (http://drupal.org/node/1862922#comment-6833686).

Any new advice?
Thanks in advance

mglaredo’s picture

Hi ionmedia. Could you explain your downgrade process which fixed the problem with geofield?

Thank you

nedjo’s picture

There may be two distinct errors here. The undefined index issue reportedly was fixed in #1862922: Undefined index: P in geoPHP::load. That leaves the class name error reported in #3. Does that error still appear with the current dev branch of geoPHP? If so, what are specific steps to reproduce the error from a clean Drupal install?

mglaredo’s picture

The only problem persisting is: http://drupal.org/node/1862922#comment-6880062

Way to reproduce:

1 Install openoutreach 7.x-1.0-rc{5,6,7}-core.tar.gz
At this step, there is the problem "Notice: Undefined index: P in geoPHP::load() (line 62 of geoPHP.inc).
Location: Specified location data is invalid." which avoid the location node creation.

2 Update module geofield to 7.x-2.0-alpha2+0-dev
At this step, problem 1 is fixed but appears another: "Warning: Illegal string offset 'input_format' en geofield_geom_is_empty() (línea 232 de /opt/lampp/htdocs/openoutreach/profiles/openoutreach/modules/contrib/geofield/geofield.module)." which lets the location node creation but the field geolocation becomes empty so the node won't display on main map.

3 Additional info:
- Enabled: geoPHP 7.x-1.7, Geocoder 7.x-1.2, Geofield 7.x-2.0-alpha2+0-dev
- Drupal core: 7.17

knalstaaf’s picture

The erroneous behaviour after the update (of GeoPHP and OpenLayers) exposed itself as an empty map (Open Layers). The map was just being blue (as if it was sea everywhere) without any text.

We didn't see the error messages as mentioned above, so I'm not sure if it's related.

boabjohn’s picture

Maybe related...we had precisely the same error, but we're not using openoutreach.

Back at the first of the year geofield had a couple of patches and a new dev release that seem to cause a bit of trouble (geohash col needs to be manually deleted, or not, depending on the patch and dev update sequence: more here: http://drupal.org/node/1841932)

So we had a database update stuck (would not run the update) due to a missing geohash col which happened in the course of trying to get the dev of geofield installed as above.

I had forgotten about it.

Then this error popped up today. With the downgrade to geophp1.6 recommended I tried that: caused fatal error
So we Re-installed geophp1.7 and I tried to run update db and noted that GeoField was still hanging with its need to:

geofield module :
  7202 -   Drops unused table fields srid, accuracy and source, adds   geohash field, populates it.

Ahhh...well, with geophp1.7 in place,
*Then we ran updatedb with geophp module (off): GeoField updates successfully*
Set geophp to enabled, run updatedb again/flush caches
Problem cleared.

Sorry if that's actually tangential to this actual issue...just wanted to report our path to success.

deviantintegral’s picture

For me, this was an issue with there being an old (0.6) copy of geoPHP in the libraries directory. I updated it to the latest (1.1 at the time) and the update was still broken. It turns out the method signature of load() was changed, breaking geofield's update hook.

I ended up removing the copy in the libraries directory and just relying on what's shipped with the module. Since that was 1.0, the update hook worked properly and everything updated without issue.

jwilson3’s picture

Issue summary: View changes

Thank you @deviantintegral, removing geoPHP from sites/all/libraries and relying on the one that ships with geophp module solved this problem for me as well.

knalstaaf’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)