XStore variation gallery causing admin-ajax.php overload / 502 errors

This topic has 2 replies, 2 voices, and was last updated 6 hours, 6 minutes ago ago by Jack Richardson

  • Avatar: Safe Desires
    Safe Desires
    Participant
    July 1, 2026 at 04:10

    FYI, I can only create a ticket in SalesMax Support forum for some reason. I purchased 6 months of support yesterday.

    I’m having a serious backend performance issue when editing WooCommerce variable products using the XStore variation gallery feature.

    When I open a variable product and click **“Add Gallery Images”** inside a variation, the admin area starts sending a large number of admin-ajax.php requests. Each request uses:

    `text
    action: get-attachment
    `

    with a different attachment ID.

    The button appears to come from XStore because the HTML class is:

    `html
    add-et-variation-gallery-image
    `

    Example button HTML:

    `html
    Add Gallery Images
    `

    The issue is that the media modal fires many separate get-attachment AJAX requests at once. These requests hang for about 30+ seconds and then return **502 errors**. My server logs also show repeated Apache/PHP timeouts for:

    `text
    /wp-admin/admin-ajax.php
    `

    with the referrer being the WooCommerce product edit screen:

    `text
    /wp-admin/post.php?post=105444&action=edit
    `

    This causes CPU and memory to spike heavily, and the WordPress backend becomes extremely slow or unusable.

    Can you please help identify why the XStore variation gallery is triggering so many separate get-attachment requests and whether there is a fix, patch, or setting to prevent this AJAX overload?

    Thank you.

    Content is visible for topic creator and
    support staff only.
    Files is visible for topic creator and
    support staff only.
    1 Answer
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 1, 2026 at 06:23

    Hello @Safe Desires,

    The issue may have been caused by modifications made to the parent XStore theme’s style.css file along with PHP adjustments. Please note that it is not recommended to add PHP code to a .css file or to modify the parent theme directly. A screenshot has been attached in the private content for your reference.

    If you need to add any custom snippets or hooks, please include them in the child theme’s functions.php file or use a plugin that allows you to create custom snippets.

    We kindly ask you to contact your web-site developer to resolve this issue and verify the results afterward. Note: we are not responsible for modification our customers implement in parent theme/child-theme.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Content is visible for topic creator and
    support staff only.
  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.