Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Translator not working with Microsoft and Apertium

  1. #1
    Junior Member
    Join Date
    Jan 2011
    Posts
    8

    Default Translator not working with Microsoft and Apertium

    As titled. Running vbulletin 4.1.9 with vBet 4.4.6.

  2. #2
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    Hi
    Could you please tell me which translation API's you use?(Microsft/Microsoft Azure)
    For these - used by you - please run test from here
    You can find all of them already created in you do-not-upload/tools folder, just upload to your forum root directory, and share results here
    Last edited by r.dziadusz; 14-01-12 at 12:15.

  3. #3
    Junior Member
    Join Date
    Jan 2011
    Posts
    8

    Default

    This is the result:

    Starting test for Microsft Translation API by Azure


    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in [path]/microsoftbyazuretest.php on line 29

    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in [path]/microsoftbyazuretest.php on line 15
    Full token:
    {"error":"invalid_grant","error_description":"ACS50012: Authentication failed. ACS50026: Principal with name \u0027KHMFBu8/XCgswVqDjzD8pmWaubgZ3qjf3YYIU6HjieY=\u0027 is not a known principal. \r\nTrace ID: 3242b52c-d413-4d4d-aa8f-96a24ddddb4e\r\nTimestamp: 2012-01-15 09:50:46Z"}

    Test result: "ArgumentException: No bearer information found in the token : ID=3835.V2_Json.Translate.2272B74F"
    Test error:
    Connection time (ms): 238.76171875

  4. #4
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    Please try to use this solution at first: http://www.vbenterprisetranslator.co....html#post1543

    Also did you use proper valuse from your Microsoft by Azure aplication:
    Microsoft Comercial Translation API key by Azure: your Client ID,
    Microsoft Comercial Translation API secret by Azure: your Client secret

  5. #5
    Junior Member
    Join Date
    Jan 2011
    Posts
    8

    Default

    safe_mode is already off.

    Updated the keys and this is what I get now:
    Starting test for Microsft Translation API by Azure


    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in [path]/microsoftbyazuretest.php on line 29

    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in [path]/microsoftbyazuretest.php on line 15
    Full token:
    {"access_token":"http%3a%2f%2fschemas.xmlsoap.org%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=2e31cdf8-0c3d-4ce3-908a-703056eb00f3&http%3a%2f%2fschemas.microsoft.com%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=https%3a%2f%2fdatamarket.accesscontrol.windows.net%2f&Audience=http%3a%2f%2fapi.microsofttranslator.com&ExpiresOn=1326813620&Issuer=https%3a%2f%2fdatamarket.accesscontrol.windows.net%2f&HMACSHA256=CREJfZgnv5j8Nq6V46uCP7gqQVM9iwy4irpW4okXSBU%3d","token_type":"http://schemas.xmlsoap.org/ws/2009/11/swt-token-profile-1.0","expires_in":"600","scope":"http://api.microsofttranslator.com"}

    Test result: "Hello!"
    Test error:
    Connection time (ms): 244.588867188

  6. #6
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    As you see translation request is fine.
    Also safe_mode is on:
    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in [path]/microsoftbyazuretest.php on line 29
    Could you please confirm if you have set all vbet opions correctly ?
    Also are you using database cache and guest cache?

    It sems that you reach your limits very quickly. If your databse is on and guest cache is on, and all options are set ok, I will have to check it in you admincp

  7. #7
    Junior Member
    Join Date
    Jan 2011
    Posts
    8

    Default

    safe mode is off:


    Everything was working fine initially with google.

  8. #8
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    So is the problem still exist? If yes please answer my previous questions.
    Also you set safe_mode off but clearly is still on. This warning:
    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in [path]/microsoftbyazuretest.php on line 29
    - if still exist, it's warning from your server, so your server "says" that this mode is on

  9. #9
    Junior Member
    Join Date
    Jan 2011
    Posts
    8

    Default

    Any other ways to check on the safe_mode instead of phpinfo?

  10. #10
    Retired ;)
    Join Date
    Aug 2011
    Posts
    441

    Default

    You can try to edit file: php.ini. Find line: safe_mode and set it off: safe_mode = Off (or "on" if you want to activate it again) and then restart server

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •