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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

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

Another problem

Go to End



Community Member, 141 Posts

7 June 2008 at 4:25pm

Edited: 09/06/2008 1:44am

If I log out right after viewing the draft site, I get this error:
XML Parsing Error: not well-formed

Line Number 119, Column 106: <p><p>You must log in with your CMS password in order to view the draft or archived content. <a href=\"/home/?stage=Live\">Click here to go back to the published site.</a></p></p>

It seems that my setup isn't processing an sprintf correctly at line 115 of ContentController.php. It's leaving the backslash in front of the quotation mark in instead of removing it (i.e., emitting \" instead of ").

Any idea what's causing this? BTW, what is _t() (in line 114 of ContentController.php)? I've done a simple sprintf test with an ordinary string on the server inquestion, and it worked fine.