939 Posts in 271 Topics by 291 members
Forum Module
SilverStripe Forums » Forum Module » Javascript error when attaching files to forum posts.
Discuss the Forum Module.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 332 Views |
-
Javascript error when attaching files to forum 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
-
Re: Javascript error when attaching files to forum 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
| 332 Views | ||
|
Page:
1
|
Go to Top |

