Jump to:

23007 Posts in 11866 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » XML Parsing Error in Redirector Page Link

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

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

Page: 1
Go to End
Author Topic: 2320 Views
  • Sophie
    Avatar
    Community Member
    33 Posts

    XML Parsing Error in Redirector Page Link Link to this post

    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

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: XML Parsing Error in Redirector Page Link Link to this post

    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.

  • Sophie
    Avatar
    Community Member
    33 Posts

    Re: XML Parsing Error in Redirector Page Link Link to this post

    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

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: XML Parsing Error in Redirector Page Link Link to this post

    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.

    2320 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.