I get this error in an popup when editing a node with an address field:

Exception: Only NDR (little endian) SKB format is supported at the moment in WKB->getGeometry() (line 52 of /var/www/vhosts/parkour.org/httpdocs/sites/all/modules/geophp/geoPHP/lib/adapters/WKB.class.php).c

Any ideas?

The funny thing is, i get the error when uploading a picture with filefield and plupload. I get this error mainly when editing existing nodes with exisiting addresse field values, not on creating new nodes..

Comments

N20’s picture

Same here. On node edit i get this message while editing different sorts of fields.

Schnitzer’s picture

1+
But i guess its maybe Leaflet Geofield Widged related. I only have this error on edit pages where i use this widget in the same node type.

This is the Error on every ajax call wich comes from ajax fields, but only if some location is set on the leaflet widget.

Eine AJAX-Anfrage ist abnormal beendet worden.
Im Folgenden finden Sie Debugging-Informationen.
Pfad: /***/file/ajax/field_***/und/form-3Q3wWzz778cL_fAKDKkvz3K35MPd-7xgJFAYg8aGcOg
Statustext: n/a
Antworttext: 
*SITENAME*
Fehler          
×
Fehlermeldung
Exception: Only NDR (little endian) SKB format is supported at the moment in WKB->getGeometry() (Zeile 52 von /***/sites/all/modules/geophp/geoPHP/lib/adapters/WKB.class.php).
Auf der Website ist ein unvorhergesehener Fehler aufgetreten. Bitte versuchen Sie es später nochmal.           

ReadyState: undefined

Sorry i cannot get the error in english.

Leaflet 7.x-1.1
Leaflet Widget for Geofield 7.x-2.0-beta1+7-dev
geoPHP 7.x-1.7+7-dev

Schnitzer’s picture

Breakerandi’s picture

Schnitzer, do you use address field on that node edit form? (https://www.drupal.org/project/addressfield).
which version of geocoder module do you use?

Schnitzer’s picture

On this content type i dont use the address field, only the geofield widget.
Geocoder 7.x-1.2+18-dev

Schnitzer’s picture

I guess every ajax call on node edit is also received and validated by geophp, image upload, inline entity form widget and similar. Maybe we need a namespace for this?

Breakerandi’s picture

If you have any solution for this problem, please tell me Schnitzer. Its really bad for my users... I would disable a module, but i don't know which module.. if I disable geocoding option in leaflet geofield than the error happens when uploading images...

Schnitzer’s picture

I dont have a real solution, but my system works stable, so i just comment out line 52 in the WKB.class.php

sites/all/modules/geophp/geoPHP/lib/adapters/WKB.class.php line 52

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

So far it works.

I dont need this validation in my workflow and time to find a real solution is rare ;-)
As i said, some one could look at the ajax event namespace or eventname, may be the solution is to check where the ajax data comes from and sort out all events that has nothing to do with geocoding.

Breakerandi’s picture

AWESOME!! Danke du hast mir den Tag gerettet!! Nein was sag ich, den Monat!
Gruß aus München!

Schnitzer’s picture

Gern geschehen! Grüße aus dem Erzgebirge!

pixelsweatshop’s picture

Status: Active » Closed (duplicate)

Going to close this as duplicate because there are some patches for Leaflet Widget to fix this issue over there.
#2456915: Geometry type reset incorrectly on unrelated ajax calls