Plugin Author
Tim W
(@timwhitlock)
First of all, be careful about editing system translation files. This is probably a separate issue, but see FAQ on that topic.
According to your screenshot you have a HTTP/2 protocol error. I can’t imagine what Loco Translate could to do to cause that, especially when other bundles display fine. Is that correct? that you can display the Loco Translate editor for other PO files in other bundles? Including system PO files?
It could be useful to know more about that error, but the problem with protocol errors is that the browser has failed to interpret the response, so can’t tell you much about it. See if you get any more detail in the Chrome Developer tools console. Or if you’re happy getting your hands dirty try chrome://net-export/.
Debugging aside, I would be inclined to try the following things, in no particular order:
1. Try creating a new Spanish translation file for WooCommerce by clicking “(+) Nuevo Idioma” and selecting “custom” location. This would be the correct way to do things anyway, as mentioned above.
2. Disable any security software that might be interfering with loading that page. There may be something it doesn’t like and is blocking the page. If that’s happening then it might intercept the HTTP response. That could potentially lead to a protocol error, but I’m guessing a bit here.
3. Disable all other plugins. This should always be done when a mysterious error occurs. All plugins run on all pages, so you can’t just assume the plugin you’re looking at is causing the error.
4. Try switching HTTP/2 to use regular HTTP/1.1. I can’t help you do that, and you may have to speak to your hosting provider. But HTTP/2 is stricter about some things, so we might see the real error if that page can display properly.
Thanks for the response, meanwhile I’m editing in a custom location of loco translate the translation file of woocommerce, I’m editing with poedit using loco custom location.
But debugging aside, I couldn’t find a solution.
Wocommerce has adviced me to replace the original file by default, replacing it with the new one, but the problem is still happening.
The problem is with woocommerce translation, because I tried to modify other translates like powerpack for elementor, jet menu and so on there is no problem with others plugins and my theme.
Regards..
-
This reply was modified 5 years, 5 months ago by
alphavarez.
Plugin Author
Tim W
(@timwhitlock)
So you tried my no.4 suggestion? I think switching to HTTP/1.1 may reveal the true error.
The problem being only “with woocommerce translation” does not get us any closer to knowing why. The only way this will be resolved is by establishing the reason behind your HTTP2 protocol error. I suggest you follow that line of enquiry, because it’s the only thing that’s actually displaying a symptom. Everything else (like replacing PO files) is just grasping at straws.
I’m guessing that your server is configured to send HTTP2, but some other component is not. e.g. security software, or some server module. If this component was to interfere with the http response (e.g. to display an error page), it would send HTTP1 and the browser would be able to understand it. This is a guess, but it’s a reasoned one. Switching protocols as I suggested would eliminate it.
Hello, sorry for the delay in the response, I have spoken with my hosting service they told me that the protocols depend on the search engine or browser that is being used so, I have tried all their points to be able to repair the problem but I still get it, I have also I reset my wordpress with “wp reset” to the initial state but the problem continues.
Hello, I think I found where the error raise, I’m not sure but when I check CPanel, the woocoomerce file size is over 1 Mb (picture), and according to CPanel rules a file over 1 mb can’t be edited, but if want to edit others languages files is over 1 mb like this, I’m able to edit the language file. and maybe that was the reason I couldn’t edit the woocommerce language.
Now, in case of adding a new file so that the size of the language file is empty and weighs less than 1mb, such as Peruvian Spanish, it keeps loading trying to create the file. I refreshed the page and I went to plugins again and the Peruvian Spanish that I created doesn’t appear now…
I hope you can help me.
regards
Plugin Author
Tim W
(@timwhitlock)
A large file could certainly be triggering a server error page, which as I said previously could cause a problem by mixing protocols.
The response from your hosting provider is unhelpful. It is true that HTTP2 will only be sent if the client supports it, but that doesn’t mean it can’t be disabled, which is what I suggested.
As to your last problem, I suspect this is the same issue, but happening in the background. Resolve the HTTP2 issue first.