Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi Patrick!
I seem to be getting an odd error when I run cron, I have isolated it away from my custom modules as the error occurs before my cron hooks, but dont know where to go to figure it out:
Exception: ParseException: Expected word but encountered end of stream in GEOSWKTReader->read() (line 38 of /home/sparcsadmin/drupal7/sites/all/modules/geophp/geoPHP/lib/adapters/WKT.class.php).
I am using geoPHP 7.x-1.6+2-dev (2012-Sep-05)
Any thoughts on what Im doing wrong?
Franco
Comments
Comment #1
phayes CreditAttribution: phayes commentedCould you tell me what it's trying to parse? Can you capture what's being passed to $read ?
Comment #2
dscutaru CreditAttribution: dscutaru commentedI have something similar, but on node page, the string passed to read is an empty string. Actually, because of this error some nodes cannot be displayed.
Nodes have a geofield, and those throwing exception contain the following field:
I assume this field doesn't contain what it should, because node was created by feeds after importing an CSV file, and that is causing the error.
To fix I added in the geofield_map.module, function geofield_map_field_formatter_view, on line 62
if (empty($item['wkt'])) continue;
So the code looks like
Comment #3
spydmobile CreditAttribution: spydmobile commentedSorry patrick, (and @dscutaru) but I have been away on medical and while I was gone the Virtual Machine having this problem was rebuilt from the ground up and I am not seeing this in the new one. I will keep my eyes open and if it resurfaces I will post again.
Franco
Comment #4
dscutaru CreditAttribution: dscutaru commentedWow, so quick, I didn't even manage to edit my post...
I'm glad you are better !
Comment #5
Neslee Canil Pinto