Closed (fixed)
Project:
geoPHP
Version:
7.x-1.4
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Jun 2012 at 21:19 UTC
Updated:
4 Jan 2014 at 02:05 UTC
Jump to comment: Most recent
Comments
Comment #1
phayes commentedMarking as fixed. I don't think this is a problem any more. If it is, please re-open a provide more information. Thanks.
Comment #2
IWasBornToWin commentedI updated to the latest dev geofield last night and recieved this error when trying to access a user profile where I'm using addressfield, geocoder, and geofield:
Screen locked up and showed:
•Warning: unpack() [function.unpack]: Type c: not enough input, need 1, have 0 in WKB->getGeometry() (line 46 of /home4/growtogi/public_html/sites/all/modules/geophp/geoPHP/lib/adapters/WKB.class.php).
•Exception: Only NDR (little endian) SKB format is supported at the moment in WKB->getGeometry() (line 48 of /home4/growtogi/public_html/sites/all/modules/geophp/geoPHP/lib/adapters/WKB.class.php).
I reverted back to older geofield and now I get these errors:
Notice: Undefined property: stdClass::$field_geo_address_wkt in field_sql_storage_field_storage_load() (line 360 of /home4/growtogi/public_html/modules/field/modules/field_sql_storage/field_sql_storage.module).
Comment #3
IWasBornToWin commentedForgot to change to active. I can change back or open a new issue if I need to.
Comment #4
odisei commented@IWasBornToWin did you manage to resolve the issue?
Comment #5
odisei commentedAfter trying to save the node with geofield I get the following error:
Exception: Only NDR (little endian) SKB format is supported at the moment in WKB->getGeometry() (line 48 of sites/all/modules/geophp/geoPHP/lib/adapters/WKB.class.php).
I have the following modules enabled:
Geofield7.x-2.x-dev
OpenLayers 7.x-2.0-beta1+58-dev
geoPHP 7.x-1.4
Comment #6
odisei commentedThe same error appears after upgrading to lates geoPHP dev version:
Geofield7.x-2.x-dev
OpenLayers 7.x-2.0-beta1+58-dev
geoPHP 7.x-1.x-dev
Comment #7
IWasBornToWin commentedI'm still using older version and I had to change the filed display to wkt.
Comment #8
phayes commentedCan you try updating to latest geofield? I added a bunch of fixes on tuesday that might have fixed this already.
Comment #9
IWasBornToWin commentedHas the patch from MasterChief's proximity fix been added to latest dev?
Comment #10
IWasBornToWin commentedSorry, wrong issue. Yes, i will try latest.
Comment #11
Milena commentedI have also such error:
Exception: Only NDR (little endian) SKB format is supported at the moment in WKB->getGeometry() (line 48 of sites/all/modules/geophp/geoPHP/lib/adapters/WKB.class.php).
I have latest version of geofield.
This is really a blocker, I'm working for the patch right now, but have no luck so far. If I get what is wrong I will post it here.
Comment #12
drewschmaltz commentedAlso getting the same error. Can't figure it out for the life of me...
Exception: Only NDR (little endian) SKB format is supported at the moment in WKB->getGeometry() (line 48 of sites/all/modules/geophp/geoPHP/lib/adapters/WKB.class.php).
Comment #13
netbek commented@odisei @Milena @drewschmaltz If you're still having problems with the latest dev geofield, geocoder and geophp when saving a node, could you maybe indicate which field type you're geocoding from (or not), which widget you're using (or not), and other related settings?
In case you haven't read through it yet, #1708624-11: Migration issues from Geofield db storage updates may or may not be relevant.
Comment #14
drewschmaltz commentedI've decided to tackle a few different fires before coming back to this one based on that exact link.
In case it helps, I had installed the latest devs of geofield, geocoder, geophp and openlayers. I used the openlayer widget to select a point. I used every possibly variation of settings within the field settings.
I don't have GEOS installed.
Let me know if you or anyone begins working on this and I'll be happy to try and help out as much as possible.
Comment #15
netbek commentedCould you try out a patch #1728420-1: OL map widget element_validate broken perhaps? I get the same "Exception: Only NDR (little endian) SKB format..." error with the latest devs (settings described in aforementioned post). The patch fixes things for me.
Comment #16
drewschmaltz commentedHad a chance to try out the patch - no luck. Man, I want to get this figured out but just can't seem to find where the error is originating from.
Comment #17
Milena commentedHello,
I was forced to choose another modules because of deadlines, but I provide some info:
I had chosen stable realeases at first, but when I encounter an error I updated them to dev releases (latest). I've performed update with update.php. I've also disabled and uninstalled this modules and enabled them again. Still no luck.
I also wasn't able to figure this out.
I have enabled some most installed modules as rules, entity api, views, search api modules, facet api modules, transliteration, and field group.
Comment #18
netbek commentedThanks for the feedback, Milena.
@drewschmaltz Could you upload a backtrace? In /sites/all/modules/geophp/geoPHP/lib/adapters/WKB.class.php around line 48 change:
to:
Change the path to backtrace.txt as needed. Then, try to geocode a point with the OL widget as you've done before. After the error message appears, move/download backtrace.txt somewhere accessible and revert the changes to WKB.class.php.
The backtrace will contain absolute paths. If you're paranoid about what else it might reveal about your site, look it over before you upload here. Something like:
print_r(unserialize(file_get_contents('/path/to/backtrace.txt')));Important: ZIP the backtrace.txt file and attach, don't post the raw text file because it's large. Thanks.
Ps. It might be appropriate to move this discussion to another issue because this isn't related to geoPHP::geosInstalled().
Comment #19
netbek commentedGoing off topic, but see #1757374-2: Widget errors with addressfield / geofield / openLayers for another report of
Exception: Only NDR (little endian) SKB format is supported at the moment in WKB->getGeometry()Comment #20
netbek commentedIf anyone is still having problems with
Exception: Only NDR (little endian) SKB format, I'd suggest you try the latest dev geofield, geophp and geocoder. Changes were made that fix that, hopefully.Marking as fixed because the original issue was resolved and the secondary issue is discussed in-depth at #1728420: OL map widget element_validate broken. Feel free to re-open if you have problems with
geoPHP::geosInstalled().