WordPress.org

Forums

[Plugin: lastfm-for-artists] Upcoming events are dublicated (6 posts)

  1. ogonkov
    Member
    Posted 6 years ago #

    Great plugin, but recently i was noticed, that upcoming events are duplicated. How can i fix that?

    I will try get different "Maximum number of items" but after changing it from 1 back to n (5 for me), it's still duplicated.

    See live here --> themaintainers.ru

  2. ogonkov
    Member
    Posted 6 years ago #

    Problem are solved after disabling-enabling widget. But bug still exist, i guess.

  3. j.org
    Member
    Posted 6 years ago #

    Indeed I encountered this strange behavior myself already, unfortunately I cannot explain why this happens. Nevertheless you found the workaround by yourself: clearing the plugin event-cache by dis- and re-enabling the plugin.

    Maybe the error is on the side of last.fm, but I cannot say anything sure about this.

    ~~~Cheers

  4. ogonkov
    Member
    Posted 6 years ago #

    Looks like plugin cached number of events. Band i worked with, have 2 events; after one was past plugin still show 2 events, but both was same. That what i see. Don't sure what was happen if there was more than 2 events, and one was passed.

  5. j.org
    Member
    Posted 6 years ago #

    Unfortunately I've got little time to make bugfixes - situation will become better in march, I guess.

    But to clear things a bit up, I'm afrain it's more complicated than you described: when I encountered this bug, I examined the cached events, and when there should be 2 events, there were 4 events, but the 1st was equal to the 3rd and the 2nd was equal to the 4th. So it's not about caching a wrong number of events, it actually caches the duplicates - which is my reason to assume it may be an error of last.fm.

    But I have to review my own code before blaming last.fm, of course :).

    ~~~Cheers!

  6. ogonkov
    Member
    Posted 6 years ago #

    At all counts, great plugin, j.org ;)
    Thank you )

Topic Closed

This topic has been closed to new replies.

About this Topic