Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pages are not translated to any language automatically when google is preferred as translation engine. #1

Open
jiturocks opened this issue Oct 17, 2022 · 9 comments

Comments

@jiturocks
Copy link

Previously it is working fine with Google as preferred translation engine and after updating to version 1.0.9.1/1.0.9.2 it is not working, not any page is translating automatically. If I select Bing as preferred translation engine then it is working fine with Bing supported language.

@oferwald
Copy link
Owner

Hi @jiturocks, Google has the tendency to block access from time to time. This block is normally lifted after a few hours. You may look at the network tab in the browser console to get some useful debug information on why it is failing.

@jiturocks
Copy link
Author

Hi @oferwald, I check the response by debugging curl request of transposh with google translation API it return 403 error code, and it is still returning the same. It is working with Google API till now. What do we need to make it work again?

@Bouxesas
Copy link

I have the same exact issue on versions 1.0.9.*
Had to revert to 1.0.8.1 which works fine.

@seobyte
Copy link

seobyte commented Nov 14, 2022

I have the same exact issue on versions 1.0.9.* Had to revert to 1.0.8.1 which works fine.

Hi Bouxesas! I have a similar problem, and I would like to follow your footsteps. But where do I get the 1.0.8.1 version from?

Thank you!

@Bouxesas
Copy link

I have the same exact issue on versions 1.0.9.* Had to revert to 1.0.8.1 which works fine.

Hi Bouxesas! I have a similar problem, and I would like to follow your footsteps. But where do I get the 1.0.8.1 version from?

Thank you!

I usually save all the versions. I've attached it for you.
transposh_1.0.8.1.zip

@seobyte
Copy link

seobyte commented Nov 15, 2022

I have the same exact issue on versions 1.0.9.* Had to revert to 1.0.8.1 which works fine.

Hi Bouxesas! I have a similar problem, and I would like to follow your footsteps. But where do I get the 1.0.8.1 version from?
Thank you!

I usually save all the versions. I've attached it for you. transposh_1.0.8.1.zip

You are genius sir! Thank you very much!

@jiturocks
Copy link
Author

I have the same exact issue on versions 1.0.9.* Had to revert to 1.0.8.1 which works fine.

Hey @Bouxesas I tried with 1.0.8.1 but it did not work. Are you using any API key for Google translation Engine ?

@oferwald
Copy link
Owner

Hello @jiturocks,
There was no real change in the code of the google translation service from 1.0.8 to 1.0.9, I only added some logging, so you may see where it fails.

All previous versions of the plugin are available on transposh.org, just replacing the "latest" part of the download url with the version you want to download (example - https://svc.transposh.org/transposh.1.0.8.1.zip)

I strongly recommend against using older versions...

@Bouxesas
Copy link

Bouxesas commented Dec 3, 2022

Hello Ofer,
After searching for a bit, I fount that my issue with Automatic translations on Admin frontend was the function on_ajax_tp_post_phrases() in transposh_admin.php

I had to change it as the older version to this:

function on_ajax_tp_post_phrases() {
    //$this->admins_only();   //version 1.0.9.3
    //$this->transposh->postpublish->get_post_phrases(filter_input(INPUT_POST, 'post', FILTER_VALIDATE_INT)); //version 1.0.9.3
    $this->transposh->postpublish->get_post_phrases($_GET['post']);
    die();
}

Also, for some reason, I had to change the "define('TRANSPOSH_PLUGIN_VER', '1.0.9.3');" to "define('TRANSPOSH_PLUGIN_VER', '1.0.8.1');" in file constants.php
Cannot explain this.

After these two changes, automatic translation worked again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants