Forum Archive - Error 504 Gateway Time-out

Error 504 Gateway Time-out
Mar 1, 2013 11:37 am by Soldierluca91
Hi, After changing the hosting server, gtranslate no longer works. When i click on a flag, nothing happens for a few minutes and then i have the 504 Gatewey Timed-out. The website is Thanks.
Re: Error 504 Gateway Time-out
Mar 1, 2013 12:40 pm by Yana
Hi, Please check gtranslate settings and try to enable the debug mode. If you can send me access info I can check it.
Re: Error 504 Gateway Time-out
Mar 1, 2013 2:06 pm by Soldierluca91
Sorry, i can't give access to FTP. I paste here the config.php: <?php define('MAIN_LANG', 'it'); // Main language code: en, ar, bg, hr, cn, ct, cs, da, et, tl, fi, fr, gl, el, iw, hi, es, nl, id, ja, ca, ko, lt, lv, mt, de, no, pt, ru, ro, sr, sk, sl, sv, th, tr, uk, hu, vi, it, pl, sq define('API_KEY', 'INSERT-YOUR-KEY'); // You can get your Google Translate API key from define('AUTO_DETECT_LANG', false); // set to true if you have mixed language content, works with Google only define('CACHE_TIME', 365*24*60*60); // 1 year by default, no need to decrease define('LICENSE', 'license.dat'); define('SSL_VERIFY_PEER', true); // disable if you get CA certificate error and cannot reconfigure your server to solve the issue define('FOLLOW_LOCATION', false); // if your site have redirects for some URLs and for that reason you see blank pages, you need to enable this feature define('USE_BING_TRANSLATOR', false); // Enable it to use Bing Translotor instead of Google Translate define('BING_API_KEY', 'INSERT-YOUR-KEY'); // If the option above is enabled you need to get your Bing API key from (PHP SOAP client is required) define('DEBUG', true); // turn on for debug mode // username and password to edit translations, please change for security reasons, // this is not your google login/pass, you need to think something new define('USER', '****'); define('PASS', '****'); And you can see the debug.txt from this url: Thanks
Re: Error 504 Gateway Time-out
Mar 1, 2013 10:19 pm by Yana
HI, There is a connection problem. Please ask your hosting provider to fix that issue for you. * About to connect() to port 80 * Trying * Connection timed out * couldn't connect to host * Closing connection #0
Re: Error 504 Gateway Time-out
Mar 4, 2013 10:24 am by Soldierluca91
I have the answare of the hosting provider. They said that is a problem of the server structure, we can't connect to from inside the server. They created another url,, that is accessible, but i have to configure gTranslate to contact this url and not ... I tried to open in the browser and the gTranslate can connect to server (but he give the license error). How i can do? It is possible to configure gTranslate to connect to new URL from (sorry for the english, i'm not very good)
Re: Error 504 Gateway Time-out
Mar 4, 2013 5:59 pm by Soldierluca91
Maybe the provider can resolve, i wait that he try to do something...
Re: Error 504 Gateway Time-out
Mar 4, 2013 6:21 pm by Yana
HI, If you want we can change the license. Please let us know how to proceed.
Re: Error 504 Gateway Time-out
Mar 5, 2013 8:41 am by Soldierluca91
Hi, Before the domain pointing to a load balancer, which sent requests to the server where the site is physically, now the provider has directly point the domain to the IP of the server ( The problem is that gTranslate continues to resolve the domain with the old IP (, giving the same error. Do you have any idea on how I could fix it? (However I think the problem is with the provider, but if you have an idea I listen) Thanks
Re: Error 504 Gateway Time-out
Mar 5, 2013 10:03 am by Soldierluca91
Ok, the provider solved the poroblem. Now, sometime, when i choose a language, the page is still in the original language. When this happens, i have this lines on debug.txt: < HTTP/1.1 200 OK < Date: Tue, 05 Mar 2013 10:01:05 GMT < Server: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0g DAV/2 mod_fastcgi/2.4.6 PHP/5.3.9 < Last-Modified: Thu, 28 Feb 2013 14:41:06 GMT < ETag: "8039c011-8b560-4d6c9e1733750" < Accept-Ranges: bytes < Content-Length: 570720 < Cache-Control: max-age=37739520, public < Content-Type: application/x-shockwave-flash * Connection #0 to host left intact * Closing connection #0
Re: Error 504 Gateway Time-out
Mar 5, 2013 9:38 pm by Yana
Hi, Sometimes it may stop translating to not exceed the limits set by Google. The limit.txt is intended for saving the translation traffic. It has a timestamp in it and it expires. If you wait, it will expire and the translation process will continue. When you add ?force_translation=1 you force the translation process to be continued.


Gtranslate: Error with numberFeb 20, 2019 1:20 amReplies: 1Post by: infact_dat
Error message and URL problemsFeb 6, 2019 11:16 amReplies: 1Post by: Kidbooo
GT doesn't work...error 404 pageJan 28, 2019 5:36 pmReplies: 1Post by: vincenzodinuzzo
Nginx 502 ErrorJan 11, 2019 2:15 pmReplies: 1Post by: mightyfineprint
Error message on click on the widgetJan 6, 2019 9:52 pmReplies: 1Post by: jmric68

Try GTranslate with a free 15 day trial