• Resolved micahjsharp

    (@micahjsharp)


    Hello, we recently noticed that an image on a product page is missing (as is a buy button) when we check the box to “Enable Visitor Features”. I noticed a javascript error around flexslider. When I disable the checkbox and re-save, the error goes away and the image appears.

    I just updated to TablePress 2.1.8 but I’m afraid that didn’t help. Here are some images below. Note I unchecked the box to make the problem go away on the url provided, but can turn it back on if necessary for troubleshooting.

    Thank you.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi!

    Thanks for your post and sorry for the trouble!

    The cause for this is that your site (i.e. another plugin or your theme) is loading an extra (but outdated) copy of the jQuery JavaScript library, that both TablePress and FlexSlider (and many other plugins) use.

    Apparently, that outdated version is causing a conflict.

    You will need to find what’s adding that extra copy and adjust that to also use the version of jQuery that comes with WordPress. As a first step, I recommend to turn off things like optimization or page speed plugins, as you might then get more detailed error messages (with indications about which plugin/theme a file is coming from).

    Best wishes,
    Tobias

    Thread Starter micahjsharp

    (@micahjsharp)

    Thank you Tobias, I appreciate the response and suggestion. I’ll look into that.

    Micah

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    sure, no problem! I hope that you can find the actual cause for this!

    Best wishes,
    Tobias

    Thread Starter micahjsharp

    (@micahjsharp)

    Hi there, I finally managed to update my jquery distribution from 3.4.1 to 3.7.1 but I still appear to get the same error, only when I check the box to “Enable Visitor Features” (Offer the following functions for site visitors with this table:). Can you think of anything else that might be causing this problem? Thank you.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    it seems that your site is still loading an extra version of jQuery, which you must not do. Instead, everything should use the version that comes with WordPress, and it should load that via the WordPress wp_enqueue_script() API functions.

    To find out more, please deactivate all JavaScript optimization and minification plugins for a test, please.

    Regards,
    Tobias

    Thread Starter micahjsharp

    (@micahjsharp)

    Thank you Tobias, I will try that.

    Thread Starter micahjsharp

    (@micahjsharp)

    Tobias, you were right, I don’t know why, but our functions.php was not using the default built in jquery and trying to load our own version. I will try changing it to using wp_enqueue_script(‘jquery’) to keep the built in version and see if that has any problems.

    Was this:

    wp_deregister_script( 'jquery' );
    wp_register_script( 'jquery', '/../_/node_modules/jquery/dist/jquery.js', array(), 123);

    Switched to this:

    wp_enqueue_script('jquery');

    • This reply was modified 1 year, 4 months ago by micahjsharp.
    • This reply was modified 1 year, 4 months ago by micahjsharp.
    • This reply was modified 1 year, 4 months ago by micahjsharp.
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, that’s exactly what I meant! ?? Great find!

    Best wishes,
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Missing image and flexslider error’ is closed to new replies.