WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Edit Locations page's paging broken (9 posts)

  1. Daedalon
    Member
    Posted 1 year ago #

    In 5.2.6 when I go to the front-end Edit Locations page, it's paging is broken. The first page shows "Displaying 1–20 of 63 1 2 3 4 Next »" and 20 events, as it should. The second page shows "Displaying 21–40 of 63 1 2 3 4 Next »" but shows only one event. Pages three and four show no events.

    The front-end Edit Events page displays correct paging. This is not caused by custom templates.

    http://wordpress.org/extend/plugins/events-manager/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    will look into that and fix

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    this should have been fixed in 5.2.7

  4. Daedalon
    Member
    Posted 1 year ago #

    The update fixed it on our development site, but not on the live site. Tested that template is not affecting this. I'm suspecting something went wrong in the update and an old file is used instead, since WP update doesn't do any CRC checks. Which file was changed for the fix?

  5. Daedalon
    Member
    Posted 1 year ago #

    Correction, it seems to be caused by the template tables/locations.php. Was looking at the wrong template file. Will find the fix or update again.

  6. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    yup, you'd need to correct the locations.php template, that's where the bug was.

    it's only two lines through, an if statement containing $offset inside the loop of locations

  7. Daedalon
    Member
    Posted 1 year ago #

    For anyone else who has the same situation, here's the link to the changes to template files in between 5.2.6 and 5.2.7 (5.2.8 had no changes here): http://plugins.trac.wordpress.org/changeset?reponame=&new=618814%40events-manager%2Ftrunk%2Ftemplates&old=607143%40events-manager%2Ftrunk%2Ftemplates

    The last file contains the fix this thread is about.

  8. Daedalon
    Member
    Posted 1 year ago #

    Thanks, Marcus. I copied the whole changeset and then just redid the changes I had done before: removing the postcode and state, which are site-specific, and this one, that should probably be also done in the plugin core:

    • On line 68 there's a space missing after the comma inside implode().
  9. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    thx, corrected

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.