Jump to:

1030 Posts in 805 Topics by 311 members

Forum Module

SilverStripe Forums » Forum Module » Javascript error when attaching files to forum posts.

Discuss the Forum Module.

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

Page: 1
Go to End
Author Topic: 513 Views
  • HansR
    Avatar
    Community Member
    140 Posts

    Javascript error when attaching files to forum posts. Link to this post

    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

  • HansR
    Avatar
    Community Member
    140 Posts

    Re: Javascript error when attaching files to forum posts. Link to this post

    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

    513 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.