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.

Archive /

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

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

Problem with forum attachments


Reply


3 Posts   1000 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, 5513 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...