dast 6 Опубликовано 23 ноября, 2022 Если в админке в настройках магазина попытаться создать категорию выдаёт ошибку array ( 'code' => 500 'type' => 'ErrorException' 'errorCode' => 0 'message' => 'Client error: `POST https://translate.google.com/translate_a/single?client=t&hl=en&dt=t&sl=ru&tl=en&ie=UTF-8&oe=UTF-8&multires=1&otf=0&pc=1&trs=1&ssel=0&tsel=0&kc=1&tk=893964.759666` resulted in a `400 Bad Request` response: <html lang=en><meta charset=utf-8><meta name=viewport content=\"initial-scale=1, minimum-scale=1, width=device-width\"><ti (truncated...) ' 'file' => '/vendor/stichoza/google-translate-php/src/Stichoza/GoogleTranslate/TranslateClient.php' 'line' => 324 'trace' => '#0 /vendor/stichoza/google-translate-php/src/Stichoza/GoogleTranslate/TranslateClient.php(361): Stichoza\\GoogleTranslate\\TranslateClient->getResponse(\'GoogleTranslate\') #1 /vendor/stichoza/google-translate-php/src/Stichoza/GoogleTranslate/TranslateClient.php(185): Stichoza\\GoogleTranslate\\TranslateClient->instanceTranslate(\'GoogleTranslate\') #2 /protected/modules/backend/models/forms/ShopCategoryForm.php(61): Stichoza\\GoogleTranslate\\TranslateClient->__call(\'translate\', Array) #3 /framework/base/CComponent.php(561): app\\modules\\backend\\models\\forms\\ShopCategoryForm->generateSlug(Object(CModelEvent)) #4 /framework/db/ar/CActiveRecord.php(846): CComponent->raiseEvent(\'onbeforesave\', Object(CModelEvent)) #5 /framework/db/ar/CActiveRecord.php(948): CActiveRecord->onBeforeSave(Object(CModelEvent)) #6 /protected/components/ActiveRecord.php(37): CActiveRecord->beforeSave() #7 /framework/db/ar/CActiveRecord.php(1077): ActiveRecord->beforeSave() #8 /framework/db/ar/CActiveRecord.php(811): CActiveRecord->insert(NULL) #9 /protected/modules/backend/controllers/GamesServerShopCategoriesController.php(39): CActiveRecord->save() #10 [internal function]: GamesServerShopCategoriesController->actionForm(NULL) #11 /framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Object(GamesServerShopCategoriesController), Array) #12 /framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Object(GamesServerShopCategoriesController), Object(ReflectionMethod), Array) #13 /framework/web/CController.php(308): CInlineAction->runWithParams(Array) #14 /framework/web/CController.php(286): CController->runAction(Object(CInlineAction)) #15 /framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array) #16 /framework/web/CWebApplication.php(282): CController->run(\'form\') #17 /framework/web/CWebApplication.php(141): CWebApplication->runController(\'backend/gamesSe...\') #18 /framework/base/CApplication.php(185): CWebApplication->processRequest() #19 /tirexl2.ru/index.php(51): CApplication->run() #20 {main}' 'traces' => array ( 0 => array ( 'file' => '/vendor/stichoza/google-translate-php/src/Stichoza/GoogleTranslate/TranslateClient.php' 'line' => 361 'function' => 'getResponse' 'class' => 'Stichoza\\GoogleTranslate\\TranslateClient' 'type' => '->' 'args' => array ( 0 => 'GoogleTranslate' ) ) 1 => array ( 'file' => '/vendor/stichoza/google-translate-php/src/Stichoza/GoogleTranslate/TranslateClient.php' 'line' => 185 'function' => 'instanceTranslate' 'class' => 'Stichoza\\GoogleTranslate\\TranslateClient' 'type' => '->' 'args' => array ( 0 => 'GoogleTranslate' ) ) 2 => array ( 'file' => '/protected/modules/backend/models/forms/ShopCategoryForm.php' 'line' => 61 'function' => '__call' 'class' => 'Stichoza\\GoogleTranslate\\TranslateClient' 'type' => '->' 'args' => array ( 0 => 'translate' 1 => array ( 0 => 'GoogleTranslate' ) ) ) Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Evolution 243 Опубликовано 23 ноября, 2022 Видать у гугла api сменилось Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты