View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 19441 | Bug reports | Translation | public | 2024-02-23 21:22 | 2026-01-12 09:45 |
| Reporter | Mazi | Assigned To | c_schmitz | ||
| Priority | none | Severity | crash | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 6.4.x | ||||
| Summary | 19441: Google translate feature broken at 3.x and 6.x (and probably 5.x?) | ||||
| Description | We tried testing the Google translate feature at the quick translation screen. For this we have added a Google translate API key at the global settings. Afterwards, the button to auto-translate show up at the quick translation screen. When clicking that button I get "There was an error using the Google API. Detailed error: true. file_get_contents(https://www.googleapis.com/language/translate/v2?q=%0A%3Cdiv+class%3D%22question-text-from%22%3E%3C%2Fdiv%3E%0A &source=de &target=en &key=XXXXRG4yBSnOF1q22Hw2iazgtjBRr9Hinc &): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden #0 /var/www/vhosts/my-domain.com/httpdocs/ls3dev.my-domain.com/ls/framework/base/CErrorHandler.php(133): CErrorHandler->handleError() We tested the same with the 6.x version and get this error using debug mode: Undefined property: stdClass::$data (/var/www/vhosts/my-domain.com/httpdocs/ls6dev.my-domain.com/vendor/gtranslate-api/GTranslate.php:318) #0 /var/www/vhosts/my-domain.com/httpdocs/ls6dev.my-domain.com/vendor/yiisoft/yii/framework/base/CErrorHandler.php(133): CErrorHandler->handleError() | ||||
| Steps To Reproduce | Steps to reproduceEnter a valid Google translate API key. Use quick translation to translate details at a multilingual survey and click "Auto Translate" there. Expected resultTexts should get translated Actual resultError, see above | ||||
| Tags | No tags attached. | ||||
| Bug heat | 10 | ||||
| Complete LimeSurvey version number (& build) | 6.4.5 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | MariaDB 10.1.48 | ||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | 8.2 | ||||
|
@DenisChenu, do you have an API key at hand to test if you can reproduce this? |
|
|
Update to the latest version. There has been a recent fix. |
|
|
@c_schmitz, thanks a lot for the hint. I updated to 6.4.8+240221 but still get error "There was an error using the Google API. Detailed error: true." when clicking the auto translate button. |
|
|
Check your Google API console if you can see any errors/calls there. |
|
|
@c_schmitz, we can close this one. I just used the Google Translate API at the latest 6.x version successfully. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2024-02-23 21:22 | Mazi | New Issue | |
| 2024-02-23 21:23 | Mazi | Note Added: 79616 | |
| 2024-02-23 21:23 | Mazi | Bug heat | 0 => 2 |
| 2024-02-24 09:39 | c_schmitz | Assigned To | => c_schmitz |
| 2024-02-24 09:39 | c_schmitz | Status | new => feedback |
| 2024-02-24 09:39 | c_schmitz | Note Added: 79617 | |
| 2024-02-24 09:39 | c_schmitz | Bug heat | 2 => 4 |
| 2024-02-26 09:07 | Mazi | Note Added: 79618 | |
| 2024-02-26 09:07 | Mazi | Status | feedback => assigned |
| 2024-02-26 09:08 | c_schmitz | Note Added: 79619 | |
| 2024-02-26 09:13 | c_schmitz | Status | assigned => feedback |
| 2025-05-05 12:54 | guest | Bug heat | 4 => 10 |
| 2026-01-12 09:29 | Mazi | Note Added: 84080 | |
| 2026-01-12 09:29 | Mazi | Status | feedback => assigned |
| 2026-01-12 09:45 | c_schmitz | Status | assigned => closed |
| 2026-01-12 09:45 | c_schmitz | Resolution | open => fixed |