Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

XML Parsing Error in Redirector Page Link


Go to End


4 Posts   3765 Views

Avatar
Sophie

Community Member, 33 Posts

18 November 2009 at 9:43am

Edited: 18/11/2009 9:44am

I've created a redirector page. The page that it should go to is
http://www.dorrlobster.net/cgi/commerce.cgi?preadd=action&key=TAIL

When I test the page I receive an error message pointing to the second "equal" symbol in the link.

XML Parsing Error: not well-formed
Location: http://www.dorrlobster.net/
Line Number 73, Column 98:
<li class="link"><a href="http://www.dorrlobster.net/cgi/commerce.cgi?preadd=action&key=
--------------------------------------------------------------------------------------------------------------------^

Is there any work around for this? http://www.dorrlobster.net/cgi/commerce.cgi?preadd=action&key=TAIL is a legitimate working page.

Thanks in advance!
Sophie

Avatar
dalesaurus

Community Member, 283 Posts

19 November 2009 at 3:06pm

The problem is in the code being generated (and strict handling of content by your browser). It is being parsed as XHTML and second equal sign in an attribute is illegal. You will need to fall back to plain old HTML in order to allow a modern browser to not throw that error, or figure out a clever way to not use 2 equal signs in a link.

You can try appending forceFormat=html to your URL query string to disable XHTML output as another option.

Avatar
Sophie

Community Member, 33 Posts

21 November 2009 at 5:29am

dalesaurus, thank you for your reply. Can you expand more on the forceFormat=html? Do you mean to simply add that string to the end of the url in my redirector page like this?

http://www.dorrlobster.net/cgi/commerce.cgi?preadd=action&key=TAILforceFormat=html?

Sophie

Avatar
dalesaurus

Community Member, 283 Posts

21 November 2009 at 10:51am

No, that won't work because it is a function of SilverStripe. That URL you posted is to your ecommerce system (whatever software ecommerce.cgi is). I'm not sure how you have integrated the two, but I do know that your site is sending XHTML as the headers/Doctype and your ecommerce engine is returning plain old HTML 4.01 code.

That mixture won't fly on modern browsers, as you're seeing.