Support » Plugin: Woocommerce Upsell Popup » Bad element for Flickity: NULL

  • Resolved liamdijitul



    Just downloaded this plugin but can’t get it to work. Getting this error: Bad element for Flickity: NULL.

    I’ve looked into the code, and it seems like it’s failing in thp-popup-frontend.js:19, where it tries to start a flickity carousel on something that doesn’t exist: $(“.thp-carousel”).flickity()

    How is that .thp-carousel created?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author 10Horizons


    The thp-carousel class is located in the default template file for multiple upsell products.

    This is where the file is located:

    Did you by any chance maybe change the content of the template file or other plugin files? Either that, or the include file which is supposed to fire the popup doesn’t get included because of plugin/theme conflicts. Or another possibility, is the .js file gets loaded before the include file is included.

    A little bit more information about your WordPress and Woocommerce installation is appreciated. What plugins/theme you are running? Do you have AJAX enabled for Woocommerce? On what page did this error happen? Shop page or single product page?

    Plugin Author 10Horizons


    This error has been fixed in latest version (now pro). I’m marking this as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bad element for Flickity: NULL’ is closed to new replies.