Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
today i updated my geophp lib and all maps just not work at all
today i updated my geophp lib and all maps just not work at all
Comments
Comment #1
ionmedia CreditAttribution: ionmedia commentedafter downgrade to 1.6 all works
Comment #2
phayes CreditAttribution: phayes commentedAre you getting any errors? I need more details.
Comment #3
globalplayer CreditAttribution: globalplayer commentedHi,
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
Comment #4
rajrsingh CreditAttribution: rajrsingh commentedafter 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
Comment #5
arne@dbyte.nl CreditAttribution: arne@dbyte.nl commentedSame 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
Comment #6
mglaredo CreditAttribution: mglaredo commentedSame 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
Comment #7
mglaredo CreditAttribution: mglaredo commentedHi ionmedia. Could you explain your downgrade process which fixed the problem with geofield?
Thank you
Comment #8
nedjoThere 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?
Comment #9
mglaredo CreditAttribution: mglaredo commentedThe 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
Comment #10
knalstaaf CreditAttribution: knalstaaf commentedThe 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.
Comment #11
boabjohn CreditAttribution: boabjohn commentedMaybe 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:
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.
Comment #12
deviantintegral CreditAttribution: deviantintegral commentedFor 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.
Comment #13
jwilson3Thank 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.
Comment #14
knalstaaf CreditAttribution: knalstaaf commented