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.

Forum Module /

Discuss the Forum Module.

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

Javascript error when attaching files to forum posts.


Go to End


2 Posts   1529 Views

Avatar
HansR

Community Member, 141 Posts

6 December 2011 at 3:29pm

I'm getting the following javascript error with the first attempt to attach a file to a forum post:

An invalid or illegal string was specified
div.innerHTML = wrap[1] + elem + wrap[2];

This error occurs in line 4448 of jQuery.js. After this error, the second attempt to attach a file works, but not exactly the way that it's supposed to. Basically, the filename ends up in the filename entry box, and clicking post will upload it. However, multi-file attachment doesn't work.

Has anyone else encountered this before? More importantly, how can this problem be fixed? It occurs with the latest trunk version of the forum module, and was tested with Firefox.

Hans

Avatar
HansR

Community Member, 141 Posts

6 December 2011 at 3:37pm

Okay, a few minutes after posting the question, I have my answer. The version of jQuery.MultiFile.js in the forum module is old. Replacing it with the latest version fixes the problem. I'll be posting a bug ticket shortly.

Hans