Jump to:

10845 Posts in 2513 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Subsites error when working with assets

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 339 Views
  • kindlemanwill
    Avatar
    Community Member
    63 Posts

    Subsites error when working with assets Link to this post

    Hello,

    I'm getting a JS error "Cannot call method 'reapplyIfNeeded' of null" when switching from one subsite to anouther using the selector in the admin area. Once switching, draging files to folders dosn't work. Refreshing the page each time makes it work, so thats a work around, but not acceptable for clients.

    Has anybody seen this error before? Any fixes?

    I'm also getting a lot of "Refused to set unsafe header "Connection"" errors whilst working in the admin area. Not sure if these are contributing to bugs or not

    Thanks,

    w

  • kindlemanwill
    Avatar
    Community Member
    63 Posts

    Re: Subsites error when working with assets Link to this post

    hmm, to get rid of the connection I deleted all the ?>#whitespace# in assorted plugins (eg the blog) and silverstripe core. as per some comments on here. That didn't do it but i found a line in the core js that was causing an error (or rather commenting it out fixed it
    https://github.com/asecondwill/sapphire/commit/ac41ec59c286ea5907e9c8d018cf35897cbb5b92

    Anyway, i also found that the reapplyifneeded thing was being applied to sitetrefilter list which isn't on the asset page. so that was throwing an error and messing up the drag drop.

    submitted this patch:

    https://github.com/asecondwill/silverstripe-subsites/commit/00bc0f877f85c4b6abae53cf714e3ff47bbc0858

    The drag drop now works after switching subsite but the helpfull yellow highlight showing the folder you are trying to drag to is targeted dosn't show. still. closer to being ok.

    hth somebody

    339 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.