WordPress.org

Forums

Tubepress paging errors (4 posts)

  1. Lwangaman
    Member
    Posted 2 years ago #

    I'm making a gallery with a youtube user's videos, and since there are a number of videos Tubepress is paging them automatically. But when I click on "2" for page 2 or on "next >>", the screen goes blank and I can see these errors in the console:

    GET http://www.parrocchiasanlino.org/wordpress/wp-content/plugins/tubepress/sys/scripts/ajax/shortcode_printer.php?shortcode=%5Btubepress%20mode%3D%22user%22%2C%20userValue%3D%22Lwangaman%22%2C%20theme%3D%22youtube%22%2C%20galleryId%3D%221406135639%22%5D&tubepress_page=2&tubepress_galleryId=1406135639 404 (Not Found) jquery.js:4
    Uncaught TypeError: Cannot read property 'fluidThumbs' of undefined

    Here is the detail of this last error message about 'fluidThumbs':

    Uncaught TypeError: Cannot read property 'fluidThumbs' of undefined
    d
    f tubepress.js:1
    f.event.dispatch jquery.js:3
    h.handle.i jquery.js:3
    f.event.trigger jquery.js:3
    (anonymous function) jquery.js:3
    e.extend.each jquery.js:2
    e.fn.e.each jquery.js:2
    f.fn.extend.trigger jquery.js:3
    d tubepress.js:1
    n tubepress.js:1
    k tubepress.js:1
    m tubepress.js:1
    o jquery.js:2
    p.fireWith jquery.js:2
    w jquery.js:4
    d jquery.js:4

    And here is the detail for the 'GET' error:

    GET http://www.parrocchiasanlino.org/wordpress/wp-content/plugins/tubepress/sys/scripts/ajax/shortcode_printer.php?shortcode=%5Btubepress%20mode%3D%22user%22%2C%20userValue%3D%22Lwangaman%22%2C%20theme%3D%22youtube%22%2C%20galleryId%3D%22249547490%22%5D&tubepress_page=2&tubepress_galleryId=249547490 404 (Not Found) jquery.js:4
    send jquery.js:4
    f.extend.ajax jquery.js:4
    g tubepress.js:1
    a tubepress.js:1
    f tubepress.js:1
    j tubepress.js:1
    f.event.dispatch jquery.js:3
    h.handle.i jquery.js:3
  2. Lwangaman
    Member
    Posted 2 years ago #

    I think that Tubepress is conflicting with jQuery-UI! I have some UI tabs on my homepage, which are no longer rendering now that I've activated Tubepress, and I'm getting this console error message:

    Caught exception when booting TubePress: TypeError: Object [object Object] has no method 'tabs' tubepress.js:1
  3. Lwangaman
    Member
    Posted 2 years ago #

    Going through the tubepress folder, I see that it includes its own version of jQuery UI. But I already use jQuery UI in my theme. Tubepress should have a conditional statement, like:

    if(typeof jQuery.ui == 'undefined'){
    ...load own version of jQuery UI...
    }

  4. Lwangaman
    Member
    Posted 2 years ago #

    Ok I used "<?php wp_deregister_script('jquery'); ?>" in my buddypress child theme before "<?php wp_head(); ?>" in order to prevent wordpress from loading its own local version of jquery, and I put this towards the beginning of the head in header.php (instead of registering in functions.php with wp_enqueue_script, which didn't work because tubepress was still loading first):

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>

    Now I'm only getting one copy of jquery and jquery ui, but I'm still getting some errors...

    Caught exception when booting TubePress: TypeError: Cannot call method 'apply' of undefined tubepress.js:1

    I'm not sure what this is referring to...

Topic Closed

This topic has been closed to new replies.

About this Topic