Google translation 302 error

This topic is: resolved

 

Thank you for contacting me. Please note that I live in the GMT+3 time zone - responses might be delayed by this.

Viewing 7 reply threads
  • Author
    Posts
    • #1975


      srobex
      Participant
      Post count: 3

      [21-Sep-2020 20:56:01 UTC] Exception thrown in Translator Exception: Failed to translate string, incorrect response 302 – <HTML><HEAD><meta http-equiv=”content-type” content=”text/html;charset=utf-8″> <TITLE>302 Moved</TITLE></HEAD><BODY> <H1>302 Moved</H1> The document has moved here. </BODY></HTML> in /var/www/u1134050/data/www/stiridetop.com/wp-content/plugins/newsomatic-news-post-generator/res/newsomatic-translator.php:46 Stack trace: #0 /var/www/u1134050/data/www/stiridetop.com/wp-content/plugins/newsomatic-news-post-generator/newsomatic-news-post-generator.php(7850): GoogleTranslator->translateText(‘(*)\n …’, ‘auto’, ‘ro’) #1 /var/www/u1134050/data/www/stiridetop.com/wp-content/plugins/newsomatic-news-post-generator/newsomatic-news-post-generator.php(7525): newsomatic_translate(‘Coding unit tes…’, ‘(*)\n …’, ‘auto’, ‘ro’) #2 /var/www/u1134050/data/www/stiridetop.com/wp-content/plugins/newsomatic-news-post-generator/newsomatic-news-post-generator.php(4181): newsomatic_spin_and_translate(‘Coding unit tes…’, ‘(*)\n …’, ‘disabled’, ‘disabled’) #3 /var/www/u1134050/data/www/stiridetop.com/wp-content/plugins/newsomatic-news-post-generator/newsomatic-news-post-generator.php(1685): newsomatic_run_rule(‘0’, ‘0’, 0) #4 /var/www/u1134050/data/www/stiridetop.com/wp-includes/class-wp-hook.php(287): newsomatic_run_my_action_callback(”) #5 /var/www/u1134050/data/www/stiridetop.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array) #6 /var/www/u1134050/data/www/stiridetop.com/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #7 /var/www/u1134050/data/www/stiridetop.com/wp-admin/admin-ajax.php(176): do_action(‘wp_ajax_newsoma…’) #8 {main}
      [21-Sep-2020 20:56:01 UTC] Translation Failed – returned false!
      [21-Sep-2020 20:56:01 UTC] Rule ID 0 succesfully run! 1 posts created!
      [21-Sep-2020 20:57:26 UTC] Exception thrown in Translator Exception: Failed to translate string, incorrect response 302 – <HTML><HEAD><meta http-equiv=”content-type” content=”text/html;charset=utf-8″> <TITLE>302 Moved</TITLE></HEAD><BODY> <H1>302 Moved</H1> The document has moved here. </BODY></HTML> in /var/www/u1134050/data/www/stiridetop.com/wp-content/plugins/newsomatic-news-post-generator/res/newsomatic-translator.php:46 Stack trace: #0 /var/www/u1134050/data/www/stiridetop.com/wp-content/plugins/newsomatic-news-post-generator/newsomatic-news-post-generator.php(7850): GoogleTranslator->translateText(‘(*)\n …’, ‘auto’, ‘ro’) #1 /var/www/u1134050/data/www/stiridetop.com/wp-content/plugins/newsomatic-news-post-generator/newsomatic-news-post-generator.php(7525): newsomatic_translate(‘Ready to slip i…’, ‘(*)\n …’, ‘auto’, ‘ro’) #2 /var/www/u1134050/data/www/stiridetop.com/wp-content/plugins/newsomatic-news-post-generator/newsomatic-news-post-generator.php(4181): newsomatic_spin_and_translate(‘Ready to slip i…’, ‘(*)\n …’, ‘disabled’, ‘disabled’) #3 /var/www/u1134050/data/www/stiridetop.com/wp-content/plugins/newsomatic-news-post-generator/newsomatic-news-post-generator.php(1685): newsomatic_run_rule(‘0’, ‘0’, 0) #4 /var/www/u1134050/data/www/stiridetop.com/wp-includes/class-wp-hook.php(287): newsomatic_run_my_action_callback(”) #5 /var/www/u1134050/data/www/stiridetop.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array) #6 /var/www/u1134050/data/www/stiridetop.com/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #7 /var/www/u1134050/data/www/stiridetop.com/wp-admin/admin-ajax.php(176): do_action(‘wp_ajax_newsoma…’) #8 {main}
      [21-Sep-2020 20:57:26 UTC] Translation Failed – returned false!
      [21-Sep-2020 20:57:26 UTC] Rule ID 0 succesfully run! 1 posts created!

    • #1976


      Szabi – CodeRevolution
      Keymaster
      Post count: 4179

      Hello,

      First of all, thank you for your purchase.

      I checked and it seems that the free version of the Google Translator API that my plugin is using started showing captchas to limit the number of calls users are making to it. Because of this, the plugin is not able to parse the translations using it.

      To solve this issue, please switch to using the official Google Translator API, this will solve this issue. I made a video to help with this, please check it here: https://www.youtube.com/watch?v=1gUJNAnlEhw

      Also, changing the ip address of your server will also make the free version of the translation work again, but switching to the above official API is recommended.

      Regards, Szabi – CodeRevolution.

    • #1992


      srobex
      Participant
      Post count: 3

      Thx you! but Google API is too expensive. Can i set proxy to use free google tranlator from different IPs?

    • #1993


      Szabi – CodeRevolution
      Keymaster
      Post count: 4179

      Good idea, please update plugin to v3.0.1.1, you will be able to set proxies in the plugin’s ‘Main Settings’ -> ‘Web Proxy Address’ settings field.

      Regards.

    • #1994


      srobex
      Participant
      Post count: 3

      i mean a list of proxy… web proxy support socks4 proxy?

    • #1995


      Szabi – CodeRevolution
      Keymaster
      Post count: 4179

      Nice suggestion, you will be able to use a comma separated list of proxies in the v3.0.1.2 update of the plugin. To use socks4 proxies, use this format:

      socks4://bob:marley@localhost:12345
    • #1996


      srobex
      Participant
      Post count: 3

      if i use non autorisation proxy, it will be

      <span class="str">socks4://localhost:12345,socks4://localhost:12345,socks4://localhost:12345</span>

      right sintax?

    • #1997


      Szabi – CodeRevolution
      Keymaster
      Post count: 4179

      Yes, but don’t forget to replace URLs and ports. 🙂

Viewing 7 reply threads

The topic ‘Google translation 302 error’ is closed to new replies.