Closed (fixed)
Project:
Geo
Component:
Geo API
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2009 at 18:44 UTC
Updated:
19 Jun 2009 at 16:20 UTC
I got the following when I enabled the module (downloaded 4 June)
Parse error: syntax error, unexpected $end in /var/www/neiladair/sites/geo.neiladair.ca/modules/geo/geo.module on line 273
Comments
Comment #1
sublimina commentedYes, I did too, and found that there was an open function at the end of the geo.module file. i just commented the last two lines and the error is gone.
Comment #2
swill commentedI got the same thing. the open function is:
function geo_textfield_element_process($element, &$form_state) {
// TODO validate and set wkt value.
cheers,
will
Comment #3
brianbrown commentedI have this issue also!
Thanks!
-Brian
Comment #4
treyuta commentedPlease pardon me if this is the wrong area-- I'm new to this but will learn the where to post it soon. thx :-)
Whenever I attempt to import a shape file, I always get an error message similar to the one below. The message says the import was successful, but it's not- there's nothing in the database geo_shp_ table except for the header line. It seems like the GeomFromText('P', 4326) part is wrong. From examples I've seen on the net, maybe it should be more like :
GeomFromText('POINT(71 97)', 4326) . No matter what data set I use, local, US Census, or 3rd party sources, I still get this same error.
However, if I put into SWL something like GeomFromText('POINT (1 1)', 4326) , the insert go through-- but with nothing in the 'geo' field'. Thanks for any help. If this worked completely for us, this would be a wonderful tool for us! :)
here's the ERROR:
user warning: Column 'geo' cannot be null query: INSERT INTO geo_data_facilities ( sde_facili, perimeter, fac_, fac_id, address, name, facility, d_oct92_, d_oct92_id, d_oct92_s, type, sectors_, juris_, geo ) VALUES (0, 0, 0, 125, '3517 N HILSHIRE BLVD', 'CENTRAL LOCAL', 'POST OFFICE', 0, 0, '', 0, '', '', GeomFromText('P', 4326)) in /var/www/html/modules/geo/includes/shp2sql.inc on line 94.
Import complete. 234 rows imported into geo_data_bicycle_routes
Comment #5
allie mickaTiny but catastrophic bug from when I was cleaning out some debug code. The next version should have this fixed.
@treyuta Thanks for re-filing the issue. You provided great info, but this ticket was the wrong place. I'll mark *this* ticket as "fixed" and follow up on your other one.