MichDe / wordpress-geo-mashup

Automatically exported from code.google.com/p/wordpress-geo-mashup
1 stars 0 forks source link

missing } after property list - double quotes in title #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
upgraded GeoMashup from 0.4 to 1.0.1
Wordpress 2.0.4
PHP Version 5.1.6
Mac OSX 10.4.9
Firefox 2.0.0.3
Safari 2.0.4
testing from Localhost
changed default Wordpress theme
Geo plugin de-actived
old geo-mashup plugin folder deleted

problem: After creating a map page and configuring the plugin, no Google
tiles or control graphics download.
The only files from Google are:

http://maps.google.com/mapfiles/maps2.75.api.js
http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAU96pK8je06HHPsGXSsJQxRT2yXp
_ZAY8_ufC3CFXhHIE1NvwkxSNsScnT8yU51NKI6e5PAbALv9W_w
http://www.google.com/intl/en_ALL/mapfiles/poweredby.png
http://www.google.com/intl/en_ALL/mapfiles/transparent.png

Geotagging the post with the location map works fine.

With Firefox' error console I found this error:

Error: missing } after property list
Source File: http://localhost/wp/wp-content/plugins/geo-mashup/geo-mashup.js
Line: 310, Column: 242
Source Code:
{ posts : [{"post_id":"148","title":"Portofino geo
test","lat":"44.30328966871594","lng":"9.213366508483887"},{"post_id":"134","tit
le":"Delivery
ends up in
nightmare","lat":"43.4000","lng":"10.13900"},{"post_id":"108","title":"Dayworkin
g
on "My Song"","la

Original issue reported on code.google.com by antonput...@gmail.com on 1 Apr 2007 at 9:46

GoogleCodeExporter commented 9 years ago
I have no working Mac right now to test with, but if the error appears in 
Firefox I
should be able to see it. Could you give me a URL to look at?

Original comment by dylankk...@gmail.com on 2 Apr 2007 at 4:10

GoogleCodeExporter commented 9 years ago
Hi, sorry I didn't check earlier.. I just tried with a fresh downloaded 1.0.1
version. disabled my working 0.4 version
disabled the Geo plugin
moved the geo-mashup folder somewhere else
uploaded the 1.0.1 version and activated it
checked if all the configuration options where right (needed to reset the page 
slug)

no files downloaded from Google except the ones mentioned in my first post
same error in Firefox
on my map page I see a gray bounding box, with Google's logo, that's it
tried switching to Wordpress default theme
exactly the same in Safari

Sorry I can only test on localhost and needed to switch back to 0.4 on my 
website
(antonputtemans.com/map) 

Original comment by antonput...@gmail.com on 6 Apr 2007 at 5:31

GoogleCodeExporter commented 9 years ago
Hi Dylan, I finally traced my problem. Because I used " quotes in my geotagged 
post
titles they where not escaped correctly, causing the error and not parsing the 
map.

{"post_id":"108","title":"Dayworking
on "My Song"","lat": ...

This is an easy fix.
All the best and thanks for the support.

Original comment by antonput...@gmail.com on 8 Apr 2007 at 1:44

GoogleCodeExporter commented 9 years ago
I should probably add some code to deal with these if possible, thanks!

Original comment by dylankk...@gmail.com on 13 Apr 2007 at 2:53

GoogleCodeExporter commented 9 years ago
Should be fixed in 1.1 beta 1.

Original comment by dylankk...@gmail.com on 12 Jun 2007 at 4:17

GoogleCodeExporter commented 9 years ago
No news is good gnus - verifying this fix.

Original comment by dylankk...@gmail.com on 21 Aug 2008 at 1:41