Jump to:

1155 Posts in 2568 Topics by 408 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Strange JavaScript error

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 1105 Views
  • Mans
    Avatar
    Community Member
    21 Posts

    Strange JavaScript error Link to this post

    Hi all,

    OK, I got no response on my last question, so I did some more digging. In the admin tool, a JavaScript error is triggered when I click on the page links to the left. This error stops the page from showing in the content area to the right. It first occurred after I upgraded from 2.2.3 to 2.3.

    In Opera, the error message looks like this (except for the sad smiley...):

    name: TypeError
    message: Statement on line 685: Type mismatch (usually non-object value supplied where object required)
    Backtrace:
    Line 685 of linked script http://silver.typodesign.se/assets/base.js?m=1236673810: In function processOnDemandHeaders
    function processOnDemandHeaders(xml,_ondemandComplete){var i;if(xml.getResponseHeader('X-Include-CSS')){var cssIncludes=xml.getResponseHeader('X-Include-CSS').split(',');for(i=0;i<cssIncludes.length;i++){if(cssIncludes.match(/^(.*):## .*)$/)){jQuery.requireCss(RegExp.$1,RegExp.$2);}else{jQuery.requireCss(cssIncludes);}}}
    Line 684 of linked script http://silver.typodesign.se/assets/base.js?m=1236673810: In function prototypeOnDemandHandler
    function prototypeOnDemandHandler(xml,callback){processOnDemandHeaders(xml,callback);}
    Line 70 of linked script http://silver.typodesign.se/assets/base.js?m=1236673810
    if(typeof prototypeOnDemandHandler!='undefined'){prototypeOnDemandHandler(this.transport,completeHandler);}else{completeHandler();}}
    Line 66 of linked script http://silver.typodesign.se/assets/base.js?m=1236673810
    this.respondToReadyState(this.transport.readyState);}
    ... Line 29 of linked script http://silver.typodesign.se/assets/base.js?m=1236673810
    function(){return __method.apply(object,arguments);}
    ...
    stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have Stacktrace'

    Can anyone make sense of this?

    /MÃ¥ns

  • Mans
    Avatar
    Community Member
    21 Posts

    Re: Strange JavaScript error Link to this post

    I solved this. It was the FileManager module that needed upgrading.

    Cheers!
    MÃ¥ns

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