I had the same error (cannot get the geometry object from the data sent to the GEOMETRY field), but when trying to import spatial data from a mysql dump. I found that in some rows "null" (X is null or Y is null) is spatial data, although the column is "NOT NULL" ..
Check if you have the same problem as I describe using this SQL:
SELECT id FROM location WHERE X (coordinates) IS NULL OR Y (coordinates) NULL;
If you have multiple lines, this is what worked for me:
locations UPDATE SET coordinates = POINT (0,0) WHERE X (coordinates) IS NULL OR Y (coordinates) NULL;
Then try your mysqldump (or from phpmyadmin) and import again.
source share