Support » Plugin: Events Manager » Edit Locations page's paging broken

  • Resolved Daedalon

    (@daedalon)


    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/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Marcus

    (@netweblogic)

    will look into that and fix

    Plugin Author Marcus

    (@netweblogic)

    this should have been fixed in 5.2.7

    Daedalon

    (@daedalon)

    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?

    Daedalon

    (@daedalon)

    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.

    Plugin Author Marcus

    (@netweblogic)

    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

    Daedalon

    (@daedalon)

    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.

    Daedalon

    (@daedalon)

    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().
    Plugin Author Marcus

    (@netweblogic)

    thx, corrected

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Edit Locations page's paging broken’ is closed to new replies.