Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Bug reports and fixes
.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
DeepL auth key is empty!
« previous
next »
Print
Pages: [
1
]
Author
Topic: DeepL auth key is empty! (Read 4983 times)
seadhna
Hero Member
Posts: 509
DeepL auth key is empty!
«
on:
May 22, 2023, 18:46:26 »
Hi datahell,
this is a great new feature with the Automatic content translator. With the latest upgrade, I can get it to work with MyMemory or Google, but Not with DeepL. I have tried with valid FREE and PRO API Keys but it doesn't work. Error message: DeepL auth key is empty!
Logged
datahell
Elxis Team
Hero Member
Posts: 10358
Re: DeepL auth key is empty!
«
Reply #1 on:
May 22, 2023, 21:56:20 »
I guess this happened due to continuously change of translation providers. Go to Elxis configuration and re-configure translator with DeepL. Click Save. Make sure your changes were saved. Do the same once more if not. Try it.
If it doesn't work do this:
Open file
configuration.php
and set manually the translator settings to something like this:
private $TRANSLATOR = 'deepl';
private $TRANSLATOR_PARAMS = '{"api":"free","auth_key":"11111111-AAAAA-2222-33333-444444444:fx"}';
Change "
auth_key
" with your own key.
Note:
DeepL is the best option!
I strongly recommend it. It asks for credit card details but you don't get charged for the free API.
«
Last Edit: May 22, 2023, 21:58:46 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
seadhna
Hero Member
Posts: 509
Re: DeepL auth key is empty!
«
Reply #2 on:
May 23, 2023, 16:18:07 »
Yes, I'm excited to start working with DeepL.
However, this is not the issue. the settings are saving fine in the configuration file, but I'm still getting the error message: DeepL auth key is empty!
This happens with the Pro API and with a FREE API.
I have just installed a clean new version of Elxis on a test server (Apache) and the same problem.
Logged
datahell
Elxis Team
Hero Member
Posts: 10358
Re: DeepL auth key is empty!
«
Reply #3 on:
May 23, 2023, 18:40:21 »
OK. I will do a full check to see if there is some file not updated in Elxis release because for me it works fine. I will reply you in a while.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
datahell
Elxis Team
Hero Member
Posts: 10358
Re: DeepL auth key is empty!
«
Reply #4 on:
May 23, 2023, 19:29:01 »
Problem found and fixed!
There was a small typo error where the translator parameters were loaded. For some reason it worked in Windows but not in Linux. To fix the problem in Elxis 5.4 you have 2 options:
1.
Perform an Elxis update (revision
2519
just released)
Elxis administration > Extensions > Check for updates
OR
2.
Open the file below:
includes/libraries/elxis/language.class.php
Change line 62 from this:
if (strpos($elxis->getConfig('TRANSLATOR_PARAMS'), '{' !== false)) {
to this:
if (strpos($elxis->getConfig('TRANSLATOR_PARAMS'), '{') !== false) {
Save the file and you are ready.
Thank you very much
seadhna
for reporting this issue.
«
Last Edit: May 23, 2023, 19:32:14 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
seadhna
Hero Member
Posts: 509
Re: DeepL auth key is empty!
«
Reply #5 on:
May 24, 2023, 11:21:52 »
Thanks datahell, with this fix the FREE API is now working. However, the PRO API now returns this error: The requested URL returned error: 403 Forbidden
Logged
datahell
Elxis Team
Hero Member
Posts: 10358
Re: DeepL auth key is empty!
«
Reply #6 on:
May 24, 2023, 20:14:20 »
Yes, because you need a PRO account and a PRO API key.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
seadhna
Hero Member
Posts: 509
Re: DeepL auth key is empty!
«
Reply #7 on:
May 25, 2023, 11:22:39 »
Yes, I have a Pro account with DeepL and a Pro API Key.
Logged
seadhna
Hero Member
Posts: 509
Re: DeepL auth key is empty!
«
Reply #8 on:
May 25, 2023, 11:45:23 »
Ok, it seems DeepL Pro is not the correct plan for access to DeepL's API. To get access to DeepL's API, you need to subscribe to the "DeepL API plan" which is different to DeepL Pro.
https://support.deepl.com/hc/en-us/articles/360020031840-Error-code-403
Logged
seadhna
Hero Member
Posts: 509
Re: DeepL auth key is empty!
«
Reply #9 on:
May 25, 2023, 12:03:34 »
We are on what they call an "Individual Pro plan" but what is required for API access is the "Developer" API plan:
https://www.deepl.com/en/pro/change-plan#developer
Confusing! The good point is that this is NOT an Elxis issue. Thanks for your time to take a look at this.
Logged
datahell
Elxis Team
Hero Member
Posts: 10358
Re: DeepL auth key is empty!
«
Reply #10 on:
May 26, 2023, 20:34:08 »
I think it was obvious, you need the
PRO API for developers
. DeepL provides 2 plans for APIs:
Free
and
PRO
, the pro costs 4,99 USD/month. The other packages it has are for the translator service for individuals and companies, not for the REST APIs.
Details here:
https://www.deepl.com/pro-api
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
seadhna
Hero Member
Posts: 509
Re: DeepL auth key is empty!
«
Reply #11 on:
May 27, 2023, 00:27:55 »
Thanks for repeating what I just said.
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
DeepL auth key is empty!