Jetpack by WordPress.com
Infinite Scroll stopped working after plugin update (2 posts)

  1. h4cky
    Posted 2 years ago #


    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:

    content.php // it contain slightly modified version of the twentyeleven content.php

    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.

    Ivelin "h4ckY" Georgiev


  2. Richard Archambault
    Happiness Engineer
    Plugin Contributor

    Posted 2 years ago #

    Hi! Did you solve this? If not, care to contact us via our support form, with a loink to the site and maybe even a zip of the theme files? Also, is WordPress and TwentyEleven completely up to date? Did you modify TwentyEleven at all?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic