Hello!
In case we've installed geoPHP module (7.x-1.4), we should delete old geoPHP library from sites/all/libraries directory, otherwise there will be a conflict. For example, we'll see such a message at update.php:
Fatal error: Call to undefined method geoPHP::geosInstalled() in /var/www/sky2.me/public_html/sites/all/modules/geophp/geophp.module on line 75

Looks like there are ongoing work to handle such cases, so this issue is created mainly for those of us, who are affected - so that people will be able to find a solution.

Comments

phayes’s picture

Status: Active » Fixed

Marking as fixed. I don't think this is a problem any more. If it is, please re-open a provide more information. Thanks.

IWasBornToWin’s picture

I 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).

IWasBornToWin’s picture

Status: Fixed » Active

Forgot to change to active. I can change back or open a new issue if I need to.

odisei’s picture

@IWasBornToWin did you manage to resolve the issue?

odisei’s picture

Issue tags: +openlayers, +Geofield, +geophp

After 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

odisei’s picture

The 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

IWasBornToWin’s picture

I'm still using older version and I had to change the filed display to wkt.

phayes’s picture

Can you try updating to latest geofield? I added a bunch of fixes on tuesday that might have fixed this already.

IWasBornToWin’s picture

Has the patch from MasterChief's proximity fix been added to latest dev?

IWasBornToWin’s picture

Sorry, wrong issue. Yes, i will try latest.

Milena’s picture

I 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.

drewschmaltz’s picture

Also 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).

netbek’s picture

@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.

drewschmaltz’s picture

I'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.

netbek’s picture

Could 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.

drewschmaltz’s picture

Had 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.

Milena’s picture

Hello,

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.

netbek’s picture

Thanks 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:

    if ($base_info['order'] !== 1) {
      throw new Exception('Only NDR (little endian) SKB format is supported at the moment');
    }

to:

    if ($base_info['order'] !== 1) {
      file_put_contents('/path/to/backtrace.txt', serialize(debug_backtrace()));
      throw new Exception('Only NDR (little endian) SKB format is supported at the moment');
    }

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().

netbek’s picture

Going 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()

netbek’s picture

Status: Active » Fixed

If 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().

Automatically closed -- issue fixed for 2 weeks with no activity.