• Hi. This is a notice to others hosted on Siteground.

    I was getting an Error 0 from Loco Translate when I tried to create a new translation. The cause was an HTTP 400 response from admin-ajax.php. I disabled the SG Optimizer plugin and it works fine now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tim W

    (@timwhitlock)

    Thanks for posting this! I’ve had countless reports of this issue that I’ve not been able to solve.

    I don’t understand why a status 400 would produce a status 0
    on the front end, but probably I’m missing something about what’s going on.

    Regardless, I have favourited this post and will add SG Optimizer to my help docs.

    Thread Starter airtite

    (@airtite)

    Glad to help.

    The HTTP response code is 400, but the response body is 0. There are quite a few wp_die( '0', 400 ); lines in admin-ajax.php. They all seem to be related to one of 3 different action parameters being missing.

    I’m not sure exactly why SG Optimizer causes this. It may be stripping query params for some reason. I know some caching systems strip query params to increase the cache hit ration, so it’s not out of the question.

    Plugin Author Tim W

    (@timwhitlock)

    Great info. Thanks again.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Siteground SG Optimizer plugin causes error’ is closed to new replies.