• Resolved Shefik

    (@shefik)


    The JavaScript consoled keeps throwing this error:

    updateAllButtons — js.php:123

    TypeError: undefined is not an object (evaluating ‘plugin.userfavorites[site_index].posts’)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Shefik

    (@shefik)

    The problem appears to occur when a WordPress plugin is used to combine JavaScript files. Therefore a loading order issue with the file simple-favorites.min.js.

    Plugin Author Kyle Phillips

    (@kylephillips)

    If you’re manually combining JS files, the unminified version is available under Settings > Favorites > Enqueue Plugin Javascript (uncheck to unenqueue the scripts and a textarea will appear with the JS).

    Just be aware that there are some localized JS variables that are initiated with the plugin scripts that need to be available. These can be found in the app/Activation/Dependencies.php file, in the fontendScripts method.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘TypeError: undefined is not an object’ is closed to new replies.