Forum Archive - [Solved] Blank Page on my Test Environment

[Solved] Blank Page on my Test Environment
Dec 26, 2013 5:36 pm by showlib
Hi, I've a blank page after selecting a country. My config.php is well configured with define('SSL_VERIFY_PEER', false); // disable if you get CA certificate error and cannot reconfigure your server to solve the issue define('FOLLOW_LOCATION', true); // if your site have redirects for some URLs and for that reason you see blank pages, you need to enable this feature The debug.txt shows : cat debug.txt * About to connect() to test.showlib.com port 80 (#0) * Trying 172.16.0.21... * connected * Connected to test.showlib.com (172.16.0.21) port 80 (#0) > GET /temp_user_end.php?fname=Thibaut HTTP/1.1 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/6.1.1 Safari/537.73.11 Host: test.showlib.com Accept: */* Cookie: SESSa4c72380e40468e34aa288e20559b308=LXdg2GKB3BEsPFtYA09_mjyYVX_tapT4OdURRCQRt_M; PHPSESSID=pj47attpnip95f9uld0bdvrbc6 * HTTP 1.0, assume close after body < HTTP/1.0 302 Found < Location: https://test.showlib.com/temp_user_end. ... %3dThibaut < Content-Type: text/html < Content-Length: 180 < * Closing connection #0 * Issue another request to this URL: 'https://test.showlib.com/temp_user_end.php?fname%3dThibaut' * About to connect() to test.showlib.com port 443 (#0) * Trying 172.16.0.21... * connected * Connected to test.showlib.com (172.16.0.21) port 443 (#0) * successfully set certificate verify locations: * CAfile: none CApath: /etc/ssl/certs * SSL certificate problem: self signed certificate * Closing connection #0 I have pound SSL proxy activated and a self signed certificate because it's e test environment Do you have an idea ? Thanks
Re: Blank Page on my Test Environment
Dec 27, 2013 3:18 pm by Edvard
Hi, Are you redirecting http to https? Thank you!
Re: Blank Page on my Test Environment
Dec 27, 2013 3:35 pm by showlib
yes pound redirect http to https, th site is entire https
Re: Blank Page on my Test Environment
Dec 27, 2013 3:37 pm by Edvard
Hi, Please add this line in gtranslate/config.php file, so it will look like as follows: <?php $_SERVER['SERVER_PROTOCOL'] = 'HTTPS/1.1'; ...
Re: Blank Page on my Test Environment
Dec 27, 2013 4:09 pm by showlib
Thnaks, When I click to a flag, nothing append : $ cat debug.txt * About to connect() to test.showlib.com port 443 (#0) * Trying 172.16.0.21... * connected * Connected to test.showlib.com (172.16.0.21) port 443 (#0) * successfully set certificate verify locations: * CAfile: none CApath: /etc/ssl/certs * SSL certificate problem: self signed certificate * Closing connection #0 Always a problem of certificate… $ cat config.php <?php define('MAIN_LANG', 'fr'); // 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 https://code.google.com/apis/console/?api=translate 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', false); // disable if you get CA certificate error and cannot reconfigure your server to solve the issue define('FOLLOW_LOCATION', true); // 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', ''); // If the option above is enabled you need to get your Bing API key from http://www.bing.com/developers/createapp.aspx (PHP SOAP client is required) define('DEBUG', true); // turn on for debug mode $_SERVER['SERVER_PROTOCOL'] = 'HTTPS/1.1'; // 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', 'xxxxx'); define('PASS', 'xxxxx'); $ The SSL_VERIFY_PEER' don't work ? Thanks
Re: Blank Page on my Test Environment
Dec 27, 2013 5:31 pm by showlib
Perhaps we need to configure 'allow_self_signed' in your code ??
Re: Blank Page on my Test Environment
Dec 27, 2013 6:24 pm by Edvard
Just fix the issue with your certificate.
Re: Blank Page on my Test Environment
Dec 27, 2013 6:40 pm by showlib
Hi Edvard, does it mean the Gtranslate doesn't work with self-signed certificate ? thanks for your reply
Re: Blank Page on my Test Environment
Dec 27, 2013 7:43 pm by Edvard
As I can see CAfile is set to none, you need to specify a correct file. In any case you are not going to use self signed certificate on your production site, so I would suggest using GTranslate on you production directly. Thank you!
Re: Blank Page on my Test Environment
Dec 30, 2013 8:45 am by showlib
Hi, In fact I think the problem is due to Curl version : Curl: SSL certificate problem, verify that the CA cert is OK There's quite a lot of post on the net on this subject. The solution is to launch Curl with -k option in order to disable the test certificate. How can we do this ? Thanks a lot for your feedback
Re: Blank Page on my Test Environment
Dec 30, 2013 4:36 pm by Edvard
Hi, We have created an option for your case which is SSL_VERIFY_PEER. If you disable it and have a correct self signed certificate for your host then it will be OK. You will need to make sure that your self signed certificate is correct for your host. You may create another one from the beginning. It need to be solved by your hostmaster. Thank you!
Re: Blank Page on my Test Environment
Dec 31, 2013 12:52 pm by showlib
Hi Edvard, My admin re-installed the certificate as CA and it works. Thanks for your time. We're now continuing our debug phase with the drupal module. Happy new year
Re: Blank Page on my Test Environment
Dec 31, 2013 12:53 pm by Edvard
Good to hear that! Happy new year! Thanks!

SIMILAR TOPICS

GT doesn't work...error 404 pageJan 28, 2019 5:36 pmReplies: 1Post by: vincenzodinuzzo
Translate website to any specific language, on page loadJan 19, 2019 6:49 amReplies: 1Post by: Leaon7756
Best way to translate a page in WordPress?Jan 7, 2019 11:10 amReplies: 3Post by: Tonnystark
Is it translate web page in any languageAug 17, 2018 12:23 pmReplies: 3Post by: jaizoojee
Set the language through the URL, from a different pageSep 2, 2018 7:51 pmReplies: 3Post by: Jorgedmm

Try GTranslate with a free 15 day trial