• Hello, I get a broken 400 bad request
    any help on how to fix it

    === HTTP kod: 400 ===
    
    Response headers
    ================
    HTTP/2 400
    x-powered-by: PHP/8.0.26
    content-type: text/html; charset=UTF-8
    x-robots-tag: noindex
    x-litespeed-tag: 1c5_HTTP.400
    expires: Wed, 11 Jan 1984 05:00:00 GMT
    cache-control: no-cache, must-revalidate, max-age=0
    x-litespeed-cache-control: no-cache
    date: Fri, 27 Jan 2023 17:07:44 GMT
    server: LiteSpeed
    alt-svc: h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46" Request headers
    ================
    GET /wp-admin/admin-ajax.php HTTP/2
    Host: mojdom015.com
    user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.34 Safari/537.36
    accept: */*
    referer: https://mojdom015.com
    connection: close
    range: bytes=0-2048 Response HTML
    ================
    0

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator bcworkz

    (@bcworkz)

    The headers don’t give us a full picture. Please provide the related JS and PHP source code you use for this.

    Thread Starter kile93

    (@kile93)

    Sorry I don’t know how to do it. I just started to use WP and web stuff.

    Moderator bcworkz

    (@bcworkz)

    We need more context about what led up to the error. Do you know why an Ajax request was made? What did you do on the site that resulted in the error?

    You posted in the Developing WordPress forum, which is intended for people developing their own custom code. A more advanced understanding of WP is typically assumed. I’m sure it’s just a misunderstanding. It happens all the time. Not to worry, I moved your topic to a better forum, Fixing WordPress. The topic’s URL remains the same.

    Thread Starter kile93

    (@kile93)

    Sorry for that.
    So i found the ajax problem when i troubleshoot for Broken links.

    Moderator bcworkz

    (@bcworkz)

    So failed Ajax was exposed when checking for broken links? That still doesn’t tell me what element the Ajax call is for. Never the less, it’s likely due to your theme or a plugin you use. You can narrow down the cause by deactivating all plugins and switching to one of the default twenty* themes. The Ajax error (400 response) should go away, even though certain related functionality might be gone. Restore your normal theme and plugins, one at a time, testing after each. When the problem returns, the last activated module was the cause. Take up the issue through the dedicated support channel of that responsible module.

    Thread Starter kile93

    (@kile93)

    Yes, I think the theme is the problem i already contacted the support. Thank you for the answers and sorry for the time waste.

    • This reply was modified 3 years, 4 months ago by kile93.
    Moderator bcworkz

    (@bcworkz)

    I hope you find a solution. No apologies necessary, I don’t see it as a waste of time even if I was unable to offer the final solution. We learn from any experience, whether it’s fruitful or not.

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

The topic ‘ajax’ is closed to new replies.