WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
Java Error in WP 3.2 (3 posts)

  1. KippH
    Member
    Posted 3 years ago #

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET4.0C; .NET4.0E)
    Timestamp: Tue, 5 Jul 2011 14:45:43 UTC
    Message: 'plot.plugins' is null or not an object
    Line: 40
    Char: 1
    Code: 0
    URI: http://s0.wp.com/wp-includes/charts/flot/jquery.flot.selection.js?_=1309877069218

    Still working thou. Just get this error on the dashboard. Once in the stats no errors.

    http://wordpress.org/extend/plugins/jetpack/

  2. MarcusPope
    Member
    Posted 2 years ago #

    Rarely to javascript errors occur and things "still work" in this case your chart summary on the dashboard is probably not rendering properly. I'm getting the same issue in IE9.

  3. MarcusPope
    Member
    Posted 2 years ago #

    After doing some research I have determined the cause of the problem - they are loading the flot plugin for jquery via two separate http requests. This will almost always cause a problem in IE (http://blogs.msdn.com/b/kristoffer/archive/2006/12/22/loading-javascript-files-in-parallel.aspx) given the size differential between the jquery flot plugin and the jquery flot selections plugin sources.

    If you need to hack in a solution (because oh I don't know, maybe you have a contract on corporate project that requires support for IE) then you can modify the stats.php file on line 706. Just regex replace the s0.wp.com and s2.wp.com urls from the $body variable and replace them with a local copy of the wp.com files merged into one. Don't worry about the excanvas file as that isn't necessary for IE9 and WP Admin doesn't support < IE9.

    And don't worry about the performance loss of including those files locally because JetPack ends up downloading them twice with timestamps applied to the end of the URL preventing any browser-based caching mechanism anyway... nice job there automattic.

    And for those who think my solution is a terrible hack I would agree with you wholesale... but maybe you should uninstall jetpack because they use the same approach on lines 705, 704 and 703 for some ungodly reason. Among other reasons like 3rd party tracking cookies and horrible burden to your page load speeds it's a wonder this plugin is as popular as it is...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags