21282 Posts in 5730 Topics by 2601 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1759 Views |
-
XML Parsing Error in Redirector Page Link

18 November 2009 at 9:43am Last edited: 18 November 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=TAILWhen 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 -
Re: XML Parsing Error in Redirector Page Link

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.
-
Re: XML Parsing Error in Redirector Page Link

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
-
Re: XML Parsing Error in Redirector Page Link

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.
| 1759 Views | ||
|
Page:
1
|
Go to Top |


