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

    (@timwhitlock)

    I wouldn’t know how to start reproducing this based on your description. Please provide the HTTP request and response data in full.

    Thread Starter corporatei

    (@corporatei)

    I go into the wordpress admin, on the side bar, click on Loco Translate, then clicked on plugin, then clicked on woocommerce, then clicked on new language. On this page, I selected WordPress Language – Chinese (taiwan), then Choose a location and I selected “Author: plugins/woocommerce/i18n/languages/woocommerce-zh_TW.po”, then I clicked “Start translating”, then it gave this HTTP2 error message.

    I had the same problem due to gzip compression.

    I added :
    SetEnvIfNoCase Request_URI ^/wp-admin/admin-ajax\.php no-gzip dont-vary
    in .htaccess file to fix this problem.

    • This reply was modified 4 years, 10 months ago by guiguiweb.
    • This reply was modified 4 years, 10 months ago by guiguiweb.
    Plugin Author Tim W

    (@timwhitlock)

    @guiguiweb Thanks for adding this.

    Loco Translate manually sets the Content-Length of the JSON response, so any server module that compresses the content would have to modify that header. (Nginx removes it. I can’t comment on Apache).

    There’s nothing to say that corporatei has the same issue, which is why I asked to see the HTTP data. Regardless, it sounds like a server issue unless it can be attributed to a bug in the plugin.

    Thread Starter corporatei

    (@corporatei)

    @timwhitlock I checked with goDaddy web hosting, and they couldn’t find out what the problem was. At first, they say that it maybe a DNS problem, which is not. They say to check with you guys.

    @guiguiweb so should I try to modify the .htaccess file to include that sentence? Just add it in copy and paste right?

    Plugin Author Tim W

    (@timwhitlock)

    At first, they say that it maybe a DNS problem

    Based on that response I would insist they refer me to someone who knows what they’re talking about.

    Regarding your checking with us guys. I did ask to see your HTTP exchange. If you require any further suggestions from me, please post that.

    Thread Starter corporatei

    (@corporatei)

    What is a HTTP exchange, and how do I provide that information to you?

    Plugin Author Tim W

    (@timwhitlock)

    Use your browser’s network inspector. See here for help with Chrome: https://developers.google.com/web/tools/chrome-devtools/network/reference#headers

    I need the full response headers and response body.

    Thread Starter corporatei

    (@corporatei)

    Request URL: https://eleotintaiwan.com/wp-admin/admin.php?path=plugins%2Fwoocommerce%2Fi18n%2Flanguages%2Fwoocommerce-zh_TW.po&bundle=woocommerce%2Fwoocommerce.php&domain=woocommerce&page=loco-plugin&action=file-edit
    Referrer Policy: strict-origin-when-cross-origin
    :authority: eleotintaiwan.com
    :method: GET
    :path: /wp-admin/admin.php?path=plugins%2Fwoocommerce%2Fi18n%2Flanguages%2Fwoocommerce-zh_TW.po&bundle=woocommerce%2Fwoocommerce.php&domain=woocommerce&page=loco-plugin&action=file-edit
    :scheme: https
    accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
    accept-encoding: gzip, deflate, br
    accept-language: en-CA,en-GB;q=0.9,en-US;q=0.8,en;q=0.7
    cache-control: max-age=0
    cookie: wordpress_sec_3dbf3ddad4e700940488e0ae6ede62ef=admin%7C1589925038%7CcTuwZVhTzULQD8F9uBBIvfdgUz7cY4EJufn0bPJUvSp%7C64981f203763e000066d8b3b9a546099d0cfaa92b5fe5c0138e1cdeae52c5d19; _fbp=fb.1.1585807081452.1616625501; _tccl_visitor=22eab4ea-2311-47f9-bba1-0266211a71c3; gadwp_wg_default_dimension=30daysAgo; gadwp_wg_default_metric=sessions; gadwp_wg_default_swmetric=sessions; wordpress_logged_in_3dbf3ddad4e700940488e0ae6ede62ef=admin%7C1589925038%7CcTuwZVhTzULQD8F9uBBIvfdgUz7cY4EJufn0bPJUvSp%7Cea9904b7a8f01777a55af0241205b07ef2283edd4e68b5b2e8a8a6bd86d5ff87; wpcc_variant_3dbf3ddad4e700940488e0ae6ede62ef=zh-hant; wp-settings-time-1=1588963848; wp-settings-1=deleted%3Dundefined%26mfold%3Do%26libraryContent%3Dbrowse%26editor%3Dtinymce%26post_dfw%3Doff%26urlbutton%3Dnone; wp_woocommerce_session_3dbf3ddad4e700940488e0ae6ede62ef=1%7C%7C1589346046%7C%7C1589342446%7C%7C350a8f04a5b89a625c8539388316a7b2; PHPSESSID=fd649986fbf412cde26715aa637345be; tk_ai=woo%3A8Ar0Uawu4dTyBsvu49MxeZ4w; _tccl_visit=23202113-8984-4486-add0-09c7cca5dae2; woocommerce_items_in_cart=1; woocommerce_cart_hash=64966051da896e73c6822f833081f58a
    dnt: 1
    referer: https://eleotintaiwan.com/wp-admin/admin.php?bundle=woocommerce%2Fwoocommerce.php&page=loco-plugin&action=view
    sec-fetch-dest: document
    sec-fetch-mode: navigate
    sec-fetch-site: cross-site
    upgrade-insecure-requests: 1
    user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
    path: plugins/woocommerce/i18n/languages/woocommerce-zh_TW.po
    bundle: woocommerce/woocommerce.php
    domain: woocommerce
    page: loco-plugin
    action: file-edit

    Plugin Author Tim W

    (@timwhitlock)

    This is the request. I need the response headers and response body.

    Thread Starter corporatei

    (@corporatei)

    When I go to Network, then When i click on the link under the name, there are the tabs “Headers, Preview, Response, Initiator”. I clicked on “response” and I see this:

    It says ‘Failed to load response data”

    See this screenshot here.

    • This reply was modified 4 years, 10 months ago by corporatei.
    Plugin Author Tim W

    (@timwhitlock)

    That’s annoying. Can you not even see the response headers in the Headers tab?

    Thread Starter corporatei

    (@corporatei)

    Please use respectful language when you communicate here. I am an beginners to intermediate web developer and you should not use this tone.

    Did you see the screenshots? I clicked on the response header and it shows nothing.

    Maybe is easier if you take a screenshot of an example and circle it so I know where to properly find what you need instead of using rude tones.

    Plugin Author Tim W

    (@timwhitlock)

    Tone? its annoying that the response isn’t shown! How is that disrespectful?

    I looked at your screenshot. Hence my comment. You didn’t post a screenshot of the headers tab. Which is why I followed with that.

    This is a server issue, which I’m not obliged to help you with at all. And here I am at 8:30am still looking at your problem and you’re accusing me of rudeness.

    I have nothing more to add to this. You’ve been given a good suggestion by guiguiweb. I suggest you try it. If it fails, pursue the issue with your hosting support.

    Thread Starter corporatei

    (@corporatei)

    Sorry I misunderstood your words, I did not know you were referring specifically to the empty header’s tab.

    I thought the screenshot did show the header’s tab? this was under the network, headers? Under the headers tab, I don’t see anything related to “response”, I attach the screenshot here.

    In this screenshot, under headers, I don’t see anything related to “response”, if that is what you were referring to.

    Otherwise I will just try to modify the .htacesss as suggested by guiguiweb. I just thought it was a bug that’s why I reached out here.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘ERR_HTTP2_PROTOCOL_ERROR’ is closed to new replies.