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

[Fresh View] XML-error

BOK
Minted
Posted on Feb 19, '07 at 04:47 pm

Every time I watch my Mint-stats I get this error in “Fresh View” (latest version):

XML Parsing Error: not well-formed Location: http://hostname/mint/pepper/kylerove/freshview/graph_pastday.php Line Number 233, Column 75:

script type=”text/javascript” src=”http://maps.google.com/maps?file=api&v=2&key=Google-API-key-here”>//Google API

(formatting adapted slightly - you get my point, I hope)

Now when I go into the preferences and click “Done” it’s gone… Seems like it is conflicting with the “Geo Mint”-pepper, because that is where the Google-script is coming from. Any ideas?

This appears to be a problem originating from GeoMint’s use of the onDisplaySupplemental() function that was introduced in Mint 2. It is supposed to insert the JavaScript reference on pages that should be tracked, but it is also randomly inserting it into the SVG documents that are returned by Fresh View, turning them into mashed XML soup. (XML parsers are not forgiving on malformed documents.)

Unless there is a fix for Mint for you uninstall GeoMint, I don’t think there is much I can do at this point to protect against this.

clupprich
Third-Party Pepper Developer
Posted on Mar 04, '07 at 12:49 pm

Hi there,

I personally don’t use FreshView anymore but GeoMint uses the Pepper API as it’s supposed to so I can’t find any mistakes from my side. Sorry.

I didn’t mean to imply that the problem was with GeoMint, rather that the Pepper API method that you implement is at fault. It is incompatible with the SVG graphs that are generated and returned by Fresh View.

I haven’t looked closely enough at how Mint implements this function to understand what the problem is. If I find some time, I will, but hopefully Inman can chime in here in the mean time.

Shaun Inman
Mint/Pepper Developer
Posted on Mar 05, '07 at 01:16 pm

It is supposed to insert the JavaScript reference on pages that should be tracked, but it is also randomly inserting it into the SVG documents that are returned by Fresh View…

Not so. onDisplaySupplemental() is used to output extra CSS or JavaScript used by a Pepper when displaying Mint. It does not affect any other page or resource (including output by any Pepper other than the one it is defined for) on your site.

I am unable to reproduce this error and I can’t find anything in either Pepper to explain the problem (especially it’s intermittent appearance). Have you tried uploading fresh copies of both Pepper?

BOK
Minted
Posted on Mar 05, '07 at 05:10 pm

In fact I did… GeoMint is on version 0.53, Fresh View is v1.11.

It’s clearly a conflict between the two, hence the GeoMint code in Fresh View. Let me know here if I can provide any of the developers with some more information, I’d be glad to help in figuring this out!

Oops. That’s actually what I meant, JS for Mint.

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