Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

Geo Mint Display Issue

It took me a while to figure out the potential reason for why Geo Mint wasn’t displaying for me recently, but I think that I’ve located the culprit. Could someone please review this, and see if there is a solution that can be implemented? It would seem to me that an ereg_replace() for alphanumerics would be appropriate in this case to prevent the issue.:

When the display didn’t load, I noticed a Javascript error message from IE.:

Error Message: Line: 559 Char: 124 Error: Expected ‘)’ Code: 0 URL: #########################masked

HTML Line 559: var marker = createMarker(point, ’ < div style=white-space: nowrap; > ##.##.##.###masked < / div > < div style=white-space: nowrap; > Xi’an, CHINA < / div > < div style=white-space: nowrap;>22 hours ago < / div > ‘);

Assumed character causing the map not to display: Xi’an (Single quote character.)

If anyone has a solution, I would appreciate the support. I attempted to contact the author via his web site, but if there is a solution more immediate I would appreciate any suggestions - which is why I am posting this issue here as well. Perhaps someone else here has also noticed this issue.

Thanks, Daniel

Note: This also produces the same problem in Firefox, and is not simply an IE issue.

Perhaps a str_replace() solution? Please help? Someone?

Matthew
Minted
Posted on Mar 29, '07 at 12:37 pm

I’m having the same problems. I dropped my queries in the preferences down to 7 and it works. Not sure what that means. Of course, that also means I can only see 7 locations at a time which is pretty lame.

It means that you’re receiving the same issue in the list of links that are written, with that chracter. If you’re reducing the number of links, then you’re only avoiding the line with that character in it.

Christoph attempted to send me a new file to see if the changes would work - but for some reason the attachment displayed in my actual Email window and became cut-off and unusable.

I’ve asked him to send me a .zipped attachment of the file instead, but I haven’t heard anything back despite attempts to contact him.

I figured this out on my own. It’s not elegant, because I’m only taking out the erroneous character causing the map not to load - but it’s a quick work-around for now.:

In line 506, find this code:

{$row[‘city’]}

ABOVE the line containing that code, add the following line:

$new_rowcity = str_replace(“’”, “”, $row[‘city’]);

Replace {$row[‘city’]}

with:

{$new_rowcity}

That at least strips out the single quote character.

Matthew
Minted
Posted on Apr 02, '07 at 01:44 am

Thank you! That did the trick. Smarty Pants doesn’t make code very easy to read or copy and paste, so here is the code version:

`$new_rowcity = str_replace("'","", $row['city']);`

You must be logged in to reply. Login above or create an account