javascript - Silverstripe Argument 1 of Node.appendChild does not implement interface Node -
i running version silverstripe 3.0x. have few websites on codero , of them working fine. decided move 1 new amazon linux server. able make work except one.
when got admin side of project ex: http://illusion.info/admin/pages/, loads fine , works fine. when try navigate through ajax clicking on other navigation link settings or reports, javascript error is
typeerror: argument 1 of node.appendchild not implement interface node. fragment.appendchild(script);}}}
in http://illusion.info/assets/_combinedfiles/lib.js
i have no idea issue. how can fix or try track it?
you have old version of ss 3.0.x, please upgrade @ least latest ss 3.0.14
the problem in leftandmain.js
if(xhr.getresponseheader('content-type')=='text/json') { newfragments=data; } else { newfragments['content']=data; }
the actual response header longer , not match condition
content-type:text/json;charset=utf-8
it fixed handled with
if(xhr.getresponseheader('content-type').match(/^text\/json[ \t]*;?/i)) {
Comments
Post a Comment