Okay
  Public Ticket #2034239
Can't add images to gallery
Closed

Comments

  • ThrillzSteev1 started the conversation

    Hello,

    I purchased and installed Salient last week, set up multiple galleries (it's a website for book covers) but now I can't add more images.

    I click on edit gallery, then I scroll down to the images and click the + icon and this brings up my media library. I check additional images and then click the blue Add Images on the bottom right corner.

    But the icon spins for a few seconds and then stops, as if it's waiting for me to check images for the gallery because by then they are all unchecked. FYI At this point there are over 90 images in the gallery.

    I have tried to start from scratch, rechecking all the images, as well as creating a fresh gallery. Still doesn't work. I've also tried two different browsers.

    I have Salient 10.5 and the latest WordPress.

    Looking forward for some assistance. Thank you.

  •  8,994
    Tahir replied

    Hey ,

    the WPBakery plugin uses a method for tracking images in the image gallery element which is known to choke when adding a lot of images. I did some research in regards and can see users have brought this to their attention before:

    https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431/comments?utf8=%E2%9C%93&term=admin-ajax+image+gallery&from_buyers_and_authors_only=0

    (see attached image)

    The issue is that every image in the element will send a separate AJAX request at the same time to the server when saving. Many servers don't handle such a large number of AJAX requests well and will prevent them all from going through - this will cause some images to disappear from the gallery or other issues. The easiest way to fix it would be to split the gallery up into multiple galleries, each containing less images e.g. 20 or so. Alternatively you could also use the actual portfolio element which is populated through the portfolio post type and will not have this issue. The drawback is it's slower to have to create individual projects rather than bulk selecting images. 

    You could also raise this with your host again and see if they can do anything about removing the limit of requests going to admin-ajax.php at a given time. I will also raise this issue to the developers of the plugin again, but I don't know how long they will take to refactor the underlying code since there are reports of this going to them from a year ago.

    ATTACHED FILES:  wpbakery.png


    ThemeNectar Support Team 

  • ThrillzSteev1 replied

    Thank you for the response!