Code Monkey home page Code Monkey logo

t5-libraries's People

Contributors

toscho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

t5-libraries's Issues

Composer.json

A composer.json would be useful, the only part that may need investigation is tieing in the autoloader

Media upload doesn’t work with AJAX editor

When media uploads are enabled in the AJAX Editor, the upload button is visible, but clicking it raises just an error:

Uncaught exception: TypeError: Cannot convert 'n' to object
Error thrown at line 595, column 2 in <anonymous function: w.template>(n, t, r):
    n.replace(u, function(t, r, e, u, o) {
called from line 27, column 3 in <anonymous function>(data):
    compiled = compiled || _.template( $( '#tmpl-' + id ).html(), , options );
called from line 2939, column 3 in <anonymous function: css>():
    media.view.Attachments.$head().append( this.cssTemplate({
called as bound function from line 2924, column 3 in <anonymous function: initialize>():
    this.css();
called via Function.prototype.apply() from line 3521, column 3 in <anonymous function: initialize>():
    return media.view.Attachments.prototype.initialize.apply( this, arguments );
called via Function.prototype.apply() from line 773, column 3 in <anonymous function: a.View>(t):
    this.initialize.apply(this, arguments);
called via Function.prototype.apply() from line 347, column 3 in <anonymous function: constructor>():
    Backbone.View.apply( this, arguments );
called via Function.prototype.apply() from line 880, column 3 in <anonymous function: constructor>(options):
    wp.Backbone.View.apply( this, arguments );
called via Function.prototype.apply() from line 1121, column 5 in <anonymous function: r>():
    return i.apply(this, arguments)
called via Function.prototype.apply() from line 1121, column 5 in <anonymous function: r>():
    return i.apply(this, arguments)

To debug that, I have replaced the minified underscore.js with an unminified version from the original repo (not included in WordPress core for no obvious reasons). The error is now:

Uncaught exception: TypeError: Cannot convert 'text' to object
Error thrown at line 1130, column 4 in <anonymous function: _.template>(text, data, settings):
    text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {
called from line 27, column 3 in <anonymous function>(data):
    compiled = compiled || _.template( $( '#tmpl-' + id ).html(), , options );
called from line 2939, column 3 in <anonymous function: css>():
    media.view.Attachments.$head().append( this.cssTemplate({
called as bound function from line 2924, column 3 in <anonymous function: initialize>():
    this.css();
called via Function.prototype.apply() from line 3521, column 3 in <anonymous function: initialize>():
    return media.view.Attachments.prototype.initialize.apply( this, arguments );
called via Function.prototype.apply() from line 773, column 3 in <anonymous function: a.View>(t):
    this.initialize.apply(this, arguments);
called via Function.prototype.apply() from line 347, column 3 in <anonymous function: constructor>():
    Backbone.View.apply( this, arguments );
called via Function.prototype.apply() from line 880, column 3 in <anonymous function: constructor>(options):
    wp.Backbone.View.apply( this, arguments );
called via Function.prototype.apply() from line 1121, column 5 in <anonymous function: r>():
    return i.apply(this, arguments)
called via Function.prototype.apply() from line 1121, column 5 in <anonymous function: r>():
    return i.apply(this, arguments)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.