• I’m having a problem with adding image galleries to my products. I’m using the flatsome theme if that makes any difference. I click the link to add images to the gallery, then select one or more images in the media browser, then click the “Add to gallery” button, but no images ever show up in the gallery. Please help!

    Richard

    https://www.ads-software.com/plugins/woocommerce/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Try to identify which software element is causing the problem. Deactivate all other plugins. If the problem resolves, reactivate plugins one-by-one to see which one is causing the conflict. If the problem does not resolve, try the default theme. If that solves the problem, it is a theme issue. If the problem persists, please post the link to your site.

    Thread Starter stretchrt

    (@stretchrt)

    Thanks lorro, just tried doing all you suggested, even using the 2015 theme with only woocommerce active as plugin, I was not able to add images.

    My site is still in test and build, so it’s at https://bart.zuver.net.au/~wellfigu

    May I confirm the issue. Using 2015 theme, these are the product gallery images you want to see on the front end:
    https://www.topcode.co.uk/wordpress/product_gallery.jpg
    and this is the setting that you are using on the admin page, although on your site “Add product gallery images” link doesn’t work:
    https://www.topcode.co.uk/wordpress/product_gallery_setting.jpg

    Are there any clues in the text file error_log (no extension) in WordPress root or in wp-admin/ ?

    Can you check the console for javascript errors whilst trying to add an image?

    Thread Starter stretchrt

    (@stretchrt)

    Lorro yes that is correct re the images and adding images. The “Add product gallery images” link opens up the media browser, but after selecting one or more product images, and clicking “Add to Gallery”, nothing happens, I don’t get any thumbnails sitting over the link like in your screen shot.

    I am getting this error: Uncaught TypeError: Cannot read property 'thumbnail' of undefined in meta-boxes-product.min.js?ver=2.3.10:1

    Nothing relevant in the error log

    ‘thumbnail’ is a property of the object: attachment.sizes, so have you got some values set at Admin page > WooCommerce > Settings > Products tab > Display page > Product Thumbnails. Might be worthwhile to:
    https://www.ads-software.com/plugins/regenerate-thumbnails/
    to make sure they exist.

    Its possible something about your install is corrupted, not just an erroneous setting, so I’d be tempted to setup a fresh WordPress in a subdirectory with 2015 and a fresh WooCommerce download. If that works in this respect, the site could be rebuilt there and ultimately the domain name pointed to the new site.

    Thread Starter stretchrt

    (@stretchrt)

    Yes I have values set in the above. I tried regenerating thumbnails as suggested, and I got a Resize Failure for each one that I tried regenerating, with this
    function (){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}

    What is the file size for these images that won’t resize? Maybe they are too big and your system is running out of memory or execution time.

    Thread Starter stretchrt

    (@stretchrt)

    Ah, that’s the answer! I reduced the file size of one set of product images (no change to resolution) and now it’s (mostly) working properly. When uploading images before, I was getting an HTTP error, which I didn’t know what it was so just ignored it – silly me!

    Anywho, one of the reduced size images (164kb) is still getting an http error when uploading, no idea why, and consequently won’t generate a thumbnail. I can’t see any errors in my cpanel either in terms of memory load.

    Are there any unusual characters in the filename?

    Thread Starter stretchrt

    (@stretchrt)

    No just standard letters, numbers and hyphens

    There’s two types of hyphens. The shorter one will be OK.

    What was the http error number?

    Thread Starter stretchrt

    (@stretchrt)

    Yes I know the different types, it’s just the standard shorter one.

    That’s the weird thing, there is no http error number, just a red “button” saying Error, with the file name next to it, then underneath that the words “HTTP error” in red.

    is there any clue in error_log, either in WordPress root or in wp-admin, also is there any clue in the server error log?

    Thread Starter stretchrt

    (@stretchrt)

    in wp-admin, the error_log doesn’t have anything relating to what I’ve been doing with the images. There’s no errors in the server log. Nothing in WordPress root either.

    If you want to put it in Dropbox and post the link I can see if it uploads in mine.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Can't add image gallery to products’ is closed to new replies.