Okay
  Public Ticket #1958250
Image Gallery
Closed

Comments

  • Ivan started the conversation

    The Salient image gallery is not working for posts containing more than 30 images in a gallery.

    That means I can’t create a new gallery with more than 30 images, and even worse I can not update /add more images to existing galleries within my portfolio.

    I have tried everything (from disabling plugins to contacting my hosting) but the issue is replicating in all websites I manage using Salient.

    Is there a new limit on the number of images a gallery can contain, which is making my old images galleries uneditable? (maybe a salient update brought this in?)

    I would need to fix this asap, and be able to update my website. Thank you!

  •  8,996
    Tahir replied

    Hey AGain,

    Another user had the same issue and the developer replied.


    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

    Best


    ThemeNectar Support Team 

  • Ivan replied

    Thanks for your reply. Splitting up the gallery is not a solution as it would break the page layout, also my existing posts can't be edited if they already contain a gallery with more than 30 images. And your alternative of using the portfolio is not a realistic solution for a website already containing more than 2,000 images.

    I think you should include this huge limitation in your Salient notes, because having a gallery with more than 30 images is a very usual scenario for many people.

  •  8,996
    Tahir replied

    Hey Again,

    This is in no way a limitation imposed by the Salient Theme  . Please contact your hosting provider and they should be able to remove it.  Furthermore all Themes that use the WPBakery Plugin have this limitation put in by the Page Builder Plugin itself.

    Best 


    ThemeNectar Support Team 

  • Ivan replied

    This is obviously limiting and affecting Salient theme. It is, indeed, a limitation on the way people can interact with Salient theme. And I know it's not imposed by Salient but since Salient relies on plugins to work, if the plugins fail, Salient fails. And we are Salient customers.

    Also, I have contacted my hosting and they spent days and days trying to figure out what's happening, upgrading php version, increasing php limit, setting up php.ini files... Believe me, they have done everything they can.

    Last night they replied this:

    I am afraid that there is nothing we can do on our end in order to increase the limit for requests going to admin-ajax.php, the best option will be to try and decrease the number of requests that ajax makes.
    I have discussed your case with a colleague from our escalated level of department and he advised me that the only thing that can stop the request on our end is a block on a server level but since there is no such against your domain, the only way to resolve the issue will be to adjust the number of requests on a website level.

    Looking forward to hearing your plans on this issue.

    Thank you,

    Ivan

  •  8,996
    Tahir replied

    Unfortunately we cant do anything on our end until the plugin developers release a patch . 

    Best


    ThemeNectar Support Team