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

Problem with forum attachments


Go to End


3 Posts   1227 Views

Avatar
Muts

Community Member, 3 Posts

11 September 2008 at 8:25am

Whenever I enable attachments I get this error~

XML Parsing Error: not well-formed
Location: http://campbarebones.com/general-discussion/starttopic
Line Number 194, Column 258: <div id="PostAttachment" class="field attachment "><label class="left" for="Form_ReplyForm_PostAttachment">Upload Files</label><span class="middleColumn"> <iframe name="AttachmentField_upload" src="AttachmentField_Uploader/uploadiframe/?PostID=19&DestObj=Post_Attachment" id="Form_ReplyForm_AttachmentField_PostAttachment" border="0"></iframe></span></div>
----------------------------------------------------------------------------------------------------

Any ideas? or am I missing something?

Avatar
Willr

Forum Moderator, 5523 Posts

11 September 2008 at 4:45pm

I think the error is to do with &'s. If you look in forum/code/AttachmentField.php scroll down to about line 50ish is there a $extraData = implode("&", $array); ? You might need to change that to $extraData = implode("&amp;", $array);

Avatar
Muts

Community Member, 3 Posts

12 September 2008 at 8:24am

ok well I can't try that because I am now getting this error

Cannot write manifest file! Check permissions of /tmp/silverstripe-cache-home etc....

any ideas on that one, it will not even let me in the admin section...