Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Error: has no method 'promise' [SOLVED]


  • Please log in to reply
6 replies to this topic

#1 Steve Castro

Steve Castro

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 14 August 2012 - 10:47 PM

Hello, I have been using TubePress successfully on my site for a few months now. I recently did the update to TubePress 2.4.3 and all of the jQuery elements on my site have broken, including my homepage feature area. Here is the error that I get from my Firebug Console:

Uncaught TypeError: Object function (){try{oldReady.apply(this,arguments)}catch(a){if(typeof console!=="undefined"){console.log("Caught exception when booting TubePress: "+a)}}tubePressBoot()} has no method 'promise'



Any help is much appreciated...Thanks!
Steve

#2 Randy Nells

Randy Nells

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 15 August 2012 - 09:26 AM

Same. JQuery is only loading once, and it seems that all other scripts/plugins work fine until TubePress is activated once again. It seems there is a conflict with the newest version of Tubepress and the newest JQuery perhaps?

#3 Steve Castro

Steve Castro

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 15 August 2012 - 06:49 PM

Yeah, seems like the newest jQuery, released on 8/9 killed TubePress, which in turn killed the rest of my site. Gonna have to disable TubePress until the author can release a fix. : (

#4 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 16 August 2012 - 04:23 PM

Confirmed. I'm working on a fix now and will report back here once I have it. Stand by...

#5 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 16 August 2012 - 04:59 PM

Fixed with this commit. To change this in your code right now, here's what you can do:

  • Open up tubepress/sys/ui/static/js/tubepress-dev.js with your favorite text editor
  • Around line 1505, change it from

    tubePressBoot();
        };
     } else {
    to

    tubePressBoot();
        };
    
        jQuery.ready.promise = oldReady.promise;
    
     } else {
    Alternatively, you can replace your copy of tubepress-dev.js with the contents of this file
  • Rename your copy of tubepress-dev.js to tubepress.js, overwriting the existing copy of tubepress.js.
That should do it. Give it a try and let me know if it works? If it does, I'd like to push out a new release for TubePress.

Thanks!

#6 Steve Castro

Steve Castro

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 17 August 2012 - 12:48 PM

Eric- That worked!
Thanks so much for your quick reply and fix!

-Steve

#7 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 17 August 2012 - 03:27 PM

That worked!


Good news. I'll likely be pushing out a new release of TubePress over the weekend to address this. Thank you for the report and helping to test!