Viewing 6 replies - 1 through 6 (of 6 total)
  • I simply have the same problem on a site I am using it with, but thought I hadn’t done it properly myself. However, other users of that site report it as well. Adding a post to favourites often doesn’t work immediately, only after adding it multiple times (i.e. hit add to fav, reload page –> state is not being saved, hit button again, reload, then it is saved). Is there something known to interfere with your plugin?

    Edit: Well, it seems to happen when a page needs long to load completely. When I click the button while the content is still loading, the button turns grey, reads ‘Remove’ and then switches back to its former state, and the post is not added to the favourites.

    Edit II: This happens even WHEN the page is loaded. I click on the Fav button, it switches (and the count of user favourites changes too), then switches back to unfavourited, and the user fav count is going back too.
    What I observed is that if possibly one of your plugin’s resources hasn’t loaded yet and you already click the button, the console throws an error, saying
    Uncaught TypeError: Cannot read property 'length' of undefined for simple-favorites.min.js in line 1. Hope this helps a bit!

    Thread Starter geophray

    (@geophray)

    Yeah… Still having this problem as well. It would be nice to hear back from the author…

    Can you replicate that it happens when the page is still loading, and does work when it is fully loaded? It seems it has to do with a resource not being loaded that Favorites relies on for its AJAX actions.

    You can in a way circumvent the problem by enabling ‘Display loading indicator for buttons (Helpful for slow sites with cache enabled)’ and ‘Include loading indicator image on page load’ (the latter does not show an image if you did not enable the loading image in the box above) in the ‘Display’ settings tab. This way there is a visible indicator that the page needs to load to 100% in order to succeed.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Favorite status not saved’ is closed to new replies.