Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp-activity-oldestpage pagination Cookie bug on page reload


  • itsart
    Participant

    @itsart

    HI,

    I’ve a cookie issue with pagination on page reload on https://www.iamag.co/post-your-work/?nocache=true

    The page loads well and the implementation of autoload also

    The problem is that bp-activity-oldestpage stores the current value of pagination and if I reload the page the first 3 posts are ok but but the next autoload are never the one that should as the bp-activity-oldestpage value has not been reseted and keep the state of value of previous pagination

    The same problem happens without autoload and also in private mode

    Is there a simple way to reset the value of bp-activity-oldestpage each time the activity page is loaded?

Viewing 2 replies - 1 through 2 (of 2 total)

  • fmercalli
    Participant

    @fmercalli

    Same issue here: bp-activity-oldestpage does not get reset when I reload a page with an activity-loop.php inside it.
    After reloading the page afresh, when I press “Load More” I do not get page 2, but the last page visited before refresh + 1.


    fmercalli
    Participant

    @fmercalli

    I temporarily remedied with this hack:

    function reset_bp_activity_oldestpage() {
        if ( ! wp_doing_ajax() )
            setcookie('bp-activity-oldestpage', '1', -1, '/');
    }
    add_action( 'wp_loaded', 'reset_bp_activity_oldestpage' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar