• Resolved eagardiner

    (@eagardiner)


    Hello, I’m using [user_favorites] to display a list of each user’s favourites on their page however on page load, the list appears but then disappears after a few seconds to display ‘Nothing is favourited yet’. Do you know why this is happening?

Viewing 8 replies - 1 through 8 (of 8 total)
  • I’m using the php “get_user_favorites_list” to get each user favorites, and I’m also having this problem.
    On page refresh the favorite list appears for a second and then disappears with the Nothing favourites message.

    Anyone got a solution?

    From the above description it’s really hard to help you, as there’s basically no information to go on. Below are some suggestions:

    1. Provide a simple step-by-step description to let others reproduce the problem. This would include the exact shortcode or command parameters that you’re using.

    2. Describe in detail the problem and the steps you’ve tried to resolve it. E.g. does the shortcode work? Is the problem intermittent or persistent?

    3. Tell us which other plugins are running in your setup – any caching plugins? If you disable all other plugins does the problem persist?

    4. Provide information about platform; browser, operating system etc.

    5. And finally if possible, give us a link to the page in question.

    Plugin Author Kyle Phillips

    (@kylephillips)

    If anyone is having this problem, try updating the plugin to the latest version.

    The plugin uses some AJAX requests to update content once the page loads. This is to get around problems caused by page cacheing plugins.

    • This reply was modified 7 years, 5 months ago by Kyle Phillips.

    I’m having this problem,too.
    I use “shortcode” and “function” both list disappear soon.
    I tried other favorite’s function only “User Favorites List” have problem.

    The latest plugin version and WordPress 4.8

    • This reply was modified 7 years, 5 months ago by addict615.
    odellgraphicsolutions

    (@odellgraphicsolutions)

    I am also having the same issue. user_favorites] List displays for a hot second then disappears. Running most recent version of plugin and wordpress on bluehost wp account with their caching.

    Hi Kyle,

    I just updated on a local install and I am also having this issue. Basically the favorite list appears for about 2 seconds and then it dissapears and displays the ‘No Favorites Text’.

    I disabled ‘Cache Enabled on Site’ and the list appears fine, but when i try to use [clear_favorites_button] I get this on my console:

    favorites.min.js?ver=2.1.2:1 Uncaught TypeError: Cannot read property 'length' of null
        at Lists.t.updateAllLists (favorites.min.js?ver=2.1.2:1)
        at HTMLDocument.<anonymous> (favorites.min.js?ver=2.1.2:1)
        at HTMLDocument.dispatch (jquery.js?ver=1.12.4:3)
        at HTMLDocument.r.handle (jquery.js?ver=1.12.4:3)
        at Object.trigger (jquery.js?ver=1.12.4:3)
        at Object.a.event.trigger (jquery-migrate.min.js?ver=1.4.1:2)
        at HTMLDocument.<anonymous> (jquery.js?ver=1.12.4:3)
        at Function.each (jquery.js?ver=1.12.4:2)
        at a.fn.init.each (jquery.js?ver=1.12.4:2)
        at a.fn.init.trigger (jquery.js?ver=1.12.4:3)
    t.updateAllLists	@	favorites.min.js?ver=2.1.2:1
    (anonymous)	@	favorites.min.js?ver=2.1.2:1
    dispatch	@	jquery.js?ver=1.12.4:3
    r.handle	@	jquery.js?ver=1.12.4:3
    trigger	@	jquery.js?ver=1.12.4:3
    a.event.trigger	@	jquery-migrate.min.js?ver=1.4.1:2
    (anonymous)	@	jquery.js?ver=1.12.4:3
    each	@	jquery.js?ver=1.12.4:2
    each	@	jquery.js?ver=1.12.4:2
    trigger	@	jquery.js?ver=1.12.4:3
    success	@	favorites.min.js?ver=2.1.2:1
    i	@	jquery.js?ver=1.12.4:2
    fireWith	@	jquery.js?ver=1.12.4:2
    y	@	jquery.js?ver=1.12.4:4
    c	@	jquery.js?ver=1.12.4:4

    However, if I refresh the page the favorite list is cleared and no errors appear on the console.

    I also have the shortcode [user_favorite_count] and that correctly displays the total favorite count.

    Hi again Kyle,

    Just updated to 2.1.3 and you fixed it ??

    Great work!

    I have the same problem using the newest version… Any idea what to do?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Favourites list disappearing’ is closed to new replies.