D10 Amazon Translate

Created on 23 January 2024, 5 months ago
Updated 5 February 2024, 5 months ago

I created a user on AWS and gave the right permissions. Then integrated API key and secret in config.

What did I do wrong? This message is the same when I put false credentials, meaning to me there is an access problem... I made it work on D9. Is that the reason?

Thanks folks!

I always get this error Warning: Attempt to read property "error" on string in Drupal\auto_node_translate\AmazonTranslateApi->translate() (line 64 of modules/contrib/auto_node_translate/src/AmazonTranslateApi.php).

Drupal\auto_node_translate\AmazonTranslateApi->translate('Vos preuves sont en sΓ©curitΓ© pour toujours', 'fr', 'en', Array) (Line: 335)
Drupal\auto_node_translate\Form\TranslationForm->translateTextField(Object, 'string', Object, 'fr', 'en') (Line: 201)
Drupal\auto_node_translate\Form\TranslationForm->autoNodeTranslateNode(Object, 'en') (Line: 168)
Drupal\auto_node_translate\Form\TranslationForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 129)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 67)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)
Drupal\Core\Form\FormBuilder->processForm('auto_node_translate_form', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Warning: Attempt to read property "code" on null in Drupal\auto_node_translate\AmazonTranslateApi->translate() (line 64 of modules/contrib/auto_node_translate/src/AmazonTranslateApi.php).
Warning: Attempt to read property "error" on string in Drupal\auto_node_translate\AmazonTranslateApi->translate() (line 65 of modules/contrib/auto_node_translate/src/AmazonTranslateApi.php).
Warning: Attempt to read property "message" on null in Drupal\auto_node_translate\AmazonTranslateApi->translate() (line 65 of modules/contrib/auto_node_translate/src/AmazonTranslateApi.php).
Error :
Warning: Attempt to read property "error" on string in Drupal\auto_node_translate\AmazonTranslateApi->translate() (line 64 of modules/contrib/auto_node_translate/src/AmazonTranslateApi.php).
Warning: Attempt to read property "code" on null in Drupal\auto_node_translate\AmazonTranslateApi->translate() (line 64 of modules/contrib/auto_node_translate/src/AmazonTranslateApi.php).
Warning: Attempt to read property "error" on string in Drupal\auto_node_translate\AmazonTranslateApi->translate() (line 65 of modules/contrib/auto_node_translate/src/AmazonTranslateApi.php).
Warning: Attempt to read property "message" on null in Drupal\auto_node_translate\AmazonTranslateApi->translate() (line 65 of modules/contrib/auto_node_translate/src/AmazonTranslateApi.php).

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium DudeWeb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024