Forum Archive - Uncaught SoapFault exception in Gtraslate

Uncaught SoapFault exception in Gtraslate
Sep 16, 2011 5:38 am by maxn1981
Hi, I am using GTranslate in my site: I am suing the following settings in admin Global configration: SEO Settings Search Engine Friendly URLs = Yes Use Apache mod_rewrite = Yes Add suffix to URLs=Yes Gtranslate Module Settings: Operate with GTranslate Pro version = On Translation method = Redirect Load jQuery library = On .htaccess file: # mod_rewrite in use RewriteEngine On # gtranslate config RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L] RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)$ /$1/ [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2&force_no_api=1 [L,QSA] RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1&force_no_api=1 [L,QSA] RewriteCond %{HTTP_HOST} ^investorport\.com RewriteRule ^(.*)$$1 [R=permanent,L] GTranlate config file: <?php //define('API_KEY', 'AIzaSyBBQS7gcvU9bKgFoWtSr_8S6fES8gEO9mI'); // You need to get your Google Translate API key from define('API_KEY', 'AIzaSyBA7y7rUxU9fpAlzztD6DW8WOadnB3RYM4'); define('MAIN_LANG', 'en'); // 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('CACHE_TIME', 365*24*60*60); // 1 year define('LICENSE', 'license.dat'); // username and password to edit translations, please change for security reasons define('USER', 'user'); define('PASS', 'pass'); When I refresh my page and change the language using drop down on home page: Htaccess rules makes URL like: and an error accour : Fatal error: Uncaught SoapFault exception: [s:Client] ArgumentOutOfRangeException: 'to' must be a valid language Parameter name: to : ID=3737.V2_Soap.Translate.256F8EC5 in /home/etech/public_html/ Stack trace: #0 /home/etech/public_html/ SoapClient->__call('Translate', Array) #1 /home/etech/public_html/ get_translation() #2 /home/etech/public_html/ gtranslate() #3 /home/etech/public_html/ translate(Array) #4 /home/etech/public_html/ simple_html_dom_node->outertext() #5 /home/etech/public_html/ simple_html_dom_node->outertext() #6 /home/etech/public_html/ simple_html_dom_node->outertext() #7 /home/etech/public_html/ in /home/etech/public_html/ on line 100 Please help me to short this out and let me know where I am making problem. Feel free if you have any query related to the implementation or you need more details from me. Waiting for your kind response. Please respond me as soon as possible. Rehards, Max
Re: Uncaught SoapFault exception in Gtraslate
Sep 16, 2011 11:07 am by Edvard
Hi, You are using the old version. You need to upgrade to v3.141592.
Re: Uncaught SoapFault exception in Gtraslate
Sep 19, 2011 12:40 pm by maxn1981
Hi, Thanks for your kind response, I am little bit confused could you please you are talking about the SOAP version? If there is problem because of SOAP version then why my another site is working fine (, please have a look of the site. Both sites in same domain and one is working and second one is not working properly. If is there any problem because of SOAP then i will contact with service provider and will improve it as soon as possible. Till then could you please make sure it's happen because of SOAP. Waiting for your kind response. Regards, Max
Re: Uncaught SoapFault exception in Gtraslate
Sep 21, 2011 1:40 pm by Edvard
It is about the GTranslate Pro version. Currently you are using GTranslate Pro v3.14.


Drupal 7: Uncaught TypeErrorMay 4, 2015 1:37 pmReplies: 1Post by: oklidog
Gtraslate installation problemApr 4, 2015 5:19 pmReplies: 1Post by: pgioto
urgent: gtraslate for joomla 1.5?Feb 25, 2014 1:11 pmReplies: 2Post by: Camilo-Extremadura
Gtranslate PRO - Fatal error Uncaught SoapFault exceptionJun 21, 2013 1:13 pmReplies: 3Post by: [email protected]
Sitename exception in Joomla 1.7Mar 29, 2012 6:27 pmReplies: 1Post by: nehogymar

Try GTranslate with a free 15 day trial