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.

Archive /

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

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

Another problem


Go to End


1138 Views

Avatar
HansR

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.

Hans