WordPress.org

Support

Support » Plugins and Hacks » Jetpack by WordPress.com » Infinite Scroll stopped working after plugin update

Infinite Scroll stopped working after plugin update

  • Hello!

    Recently client of mine updated their Jetpack plugin from v2.5 to v2.9.2 and after that update The Infinite Scroll stopped working, so when you scroll down to the last post which is visible by defaut, no new posts are displayed.

    The theme which the client is using is child theme of Twenty Eleven with the following file structure:

    css/
    img/
    js/
    content-single.php
    content.php // it contain slightly modified version of the twentyeleven content.php
    footer.php
    functions.php
    header.php
    single.php
    style.css

    The chield theme doesn’t include call which activate the infinite scroll, however it tried to add such code by following ottopress.com tutorial and still nothing is changed.

    I’ve noticed that even before and after the tutorial from ottopress.com which I followed and later removed the changes from it, there is the infinite-scroll class on the body like that:

    <body class="home blog logged-in custom-background two-column right-sidebar infinite-scroll neverending" data-twttr-rendered="true">

    Then i decided to follow Jetpack Infinite Scroll Tutorial and I decided to use that code fragment:

    /**
     * Add theme support for infinity scroll.
     */
    function twenty_eleven_infinite_scroll_init() {
        add_theme_support( 'infinite-scroll', array(
            'container'      => 'content',
            'footer_widgets' => array( 'sidebar-3', 'sidebar-4', 'sidebar-5', ),
            'footer'         => 'page',
        ) );
    }
    add_action( 'init', 'twenty_eleven_infinite_scroll_init' )[/code]

    and then I receive the following error:

    Fatal error: Cannot redeclare twenty_eleven_infinite_scroll_init() (previously declared in /wp-content/themes/mytheme/functions.php:169) in /wp-content/plugins/jetpack/modules/infinite-scroll/themes/twentyeleven.php on line 16

    Which make me realize that I already had that feature activated.

    I will be happy If i get some ideas from you guys/girls, sadly I can’t provide a link to the website.

    Sincerely,
    Ivelin “h4ckY” Georgiev

    https://wordpress.org/plugins/jetpack/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Infinite Scroll stopped working after plugin update’ is closed to new replies.
Skip to toolbar