Closed (fixed)
Project:
geoPHP
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2012 at 02:01 UTC
Updated:
28 Mar 2012 at 16:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
henrijs.seso commentedAhh, this not true "In the latest development snapshot, all you need to do is install the geoPHP module". You need to download geoPHP and put inside geoPHP module directory too.
Comment #2
michaelfavia commentedExactly. We are going to need to add a notification to prevent this issue on upgrade because dependencies arent enforced on upgrade.
Would you suggest a drupal_set_message() on update.php or a notice in the requirements section? Maybe a notice on entity save is !class_exists()?
Comment #3
henrijs.seso commentedI am not sure how to warn users, but better explanation on module page would be welcome. Also, it would be better to keep geoPHP in libraries. If geoPHP is kept in module directory, you might as well actually bundle it with module.
Comment #4
phayes commentedThe geoPHP library is already bundled with the geoPHP module. So there is no longer any need to manually put anything anywhere. Yeah, we should at least put up a big warning on the project page. It might also make sense to add an hook_upgrade_N that just displays instructions or something....
Comment #5
henrijs.seso commentedIt was not when I downloaded -dev version (and even now geoPHP it is not bundled with geoPHP module -1.0 and -dev), if it would be really bundled, this would be no issue anymore.
Comment #6
phayes commentedOh weird. You are right. It's missing. I wonder if it was a bad push or something
Comment #7
phayes commentedComment #8
pfrenssenThe GeoPHP library was accidentally installed as a git submodule. This does not include the actual sources but references the original repository. The user would need to do a
git submodule initto retrieve the library. Currently git will ignore all code that is put in the geoPHP folder since it assumes these are version controlled by the submodule. You can remedy this situation withgit rm --cached geoPHP.If you like to check out the latest release from a git repository such as GitHub this problem can be avoided in the future by simply deleting the .git folder inside the geoPHP folder before committing.
I have attached a patch that removes the submodule and replaces it with the latest stable 0.7 release of geoPHP. Patch can be applied with
git am.Comment #9
phayes commentedCommited. Thanks
Comment #10
Sebbon commentedHi, thanks for the fixes. I ran into the same problems with " Point not found" for a new project we're working on. However, I have one thing to ask.
I'm using the modules GeoField, Geocoder and GeoPHP. Now, for GeoPHP I need to place the geoPHP library files in the geoPHP module folder /geoPHP. But for Geofield I need to put this in the libraries folder as would be expected. So now we've got geoPHP on two locations?!
Am I missing something or is this the way to go now? Seems a bit weird to have it in two places..
Comment #11
pfrenssen@Sebbon, it should not be needed to install the same library twice. If you already have GeoPHP installed in the
libraries/folder then you don't need this module.Comment #12
phayes commentedHi Sebbon,
Right now we are a bit in-between things. geocoder expects to use geoPHP module, where geofield is still on the old system of using libraries module and manually downloading geoPHP. Eventually we will move everything to using the geoPHP module (no more libraries module and manual downloads). There is an issue open on the goefield project here: #1466210: Depend on geoPHP module .
So yes, currently you will have geoPHP in two places. It's kind of lame, but also a temporary situation.