Support » Plugin: Favorites » Favorites.plugin.updateAllLists length undefined error

  • We’re seeing the console.log error pasted below. This only happens when the user has no bookmarks. It seems to start after the last bookmark is removed. Upon refreshing the page the error stops. It seems that in the updateAllLists() function, plugin.userfavorites.length is presumed to be an array which it is normally, but not if the user has just removed their last bookmark.

    simple-favorites.min.js?ver=1.2.3:287 Uncaught TypeError: Cannot read property ‘length’ of undefined
    at Favorites.plugin.updateAllLists (simple-favorites.min.js?ver=1.2.3:287)
    at Object.success (simple-favorites.min.js?ver=1.2.3:212)
    at i (jquery-3.2.1.min.js?ver=3.2.1:2)
    at Object.fireWith [as resolveWith] (jquery-3.2.1.min.js?ver=3.2.1:2)
    at A (jquery-3.2.1.min.js?ver=3.2.1:4)
    at XMLHttpRequest.<anonymous> (jquery-3.2.1.min.js?ver=3.2.1:4)

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Is it possible to have a reply about this issue? It is persistent, though not hugely impacting us because it only happens in certain circumstances (user clears all bookmarks, stays on page, tries to add new bookmark).

Viewing 1 replies (of 1 total)
  • The topic ‘Favorites.plugin.updateAllLists length undefined error’ is closed to new replies.