Jump to content

Ошибка при редактировании метода входа/регистрации


MrShandy

Recommended Posts

Сделал метод авторизации через Яндекс ID. Но при попытке редактировать его из админки получаю ошибку

Спойлер
TypeError: mb_substr(): Argument #1 ($string) must be of type string, array given (0)
#0 /var/www/shandydev/data/www/scrapmechanic.ru/system/Http/Url.php(852): mb_substr(Array, 0, 2)
#1 /var/www/shandydev/data/www/scrapmechanic.ru/system/Http/Url.php(245): IPS\Http\_Url::componentsFromUrlString(Array, true)
#2 /var/www/shandydev/data/www/scrapmechanic.ru/init.php(927) : eval()'d code(25): IPS\Http\_Url::createFromString(Array, true, true)
#3 /var/www/shandydev/data/www/scrapmechanic.ru/system/Helpers/Form/Url.php(285): IPS\Http\cms_hook_Url::createFromString(Array, true, true)
#4 /var/www/shandydev/data/www/scrapmechanic.ru/system/Helpers/Form/FormAbstract.php(186): IPS\Helpers\Form\_Url->formatValue()
#5 /var/www/shandydev/data/www/scrapmechanic.ru/system/Helpers/Form/FormAbstract.php(147): IPS\Helpers\Form\_FormAbstract->setValue(true)
#6 /var/www/shandydev/data/www/scrapmechanic.ru/system/Helpers/Form/TextArea.php(66): IPS\Helpers\Form\_FormAbstract->__construct('oauth_authoriza...', Array, NULL, Array, Object(Closure), NULL, NULL, 'authorization_e...')
#7 /var/www/shandydev/data/www/scrapmechanic.ru/system/Helpers/Form/Text.php(124): IPS\Helpers\Form\_TextArea->__construct('oauth_authoriza...', Array, NULL, Array, Object(Closure), NULL, NULL, 'authorization_e...')
#8 /var/www/shandydev/data/www/scrapmechanic.ru/system/Login/Handler/OAuth2/Custom.php(107): IPS\Helpers\Form\_Text->__construct('oauth_authoriza...', Array, NULL, Array, Object(Closure), NULL, NULL, 'authorization_e...')
#9 /var/www/shandydev/data/www/scrapmechanic.ru/system/Login/Handler/Handler.php(861): IPS\Login\Handler\OAuth2\_Custom->acpForm()
#10 /var/www/shandydev/data/www/scrapmechanic.ru/system/Node/Controller.php(496): IPS\Login\_Handler->form(Object(IPS\Helpers\Form))
#11 /var/www/shandydev/data/www/scrapmechanic.ru/system/Node/Controller.php(395): IPS\Node\_Controller->_addEditForm(Object(IPS\Login\Handler\OAuth2\Custom))
#12 /var/www/shandydev/data/www/scrapmechanic.ru/applications/core/modules/admin/settings/login.php(154): IPS\Node\_Controller->form()
#13 /var/www/shandydev/data/www/scrapmechanic.ru/system/Dispatcher/Controller.php(107): IPS\core\modules\admin\settings\_login->form()
#14 /var/www/shandydev/data/www/scrapmechanic.ru/system/Node/Controller.php(69): IPS\Dispatcher\_Controller->execute()
#15 /var/www/shandydev/data/www/scrapmechanic.ru/applications/core/modules/admin/settings/login.php(48): IPS\Node\_Controller->execute()
#16 /var/www/shandydev/data/www/scrapmechanic.ru/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\settings\_login->execute()
#17 /var/www/shandydev/data/www/scrapmechanic.ru/admin/index.php(13): IPS\_Dispatcher->run()
#18 {main}

Войти или зарегистрироваться тоже не получается

Спойлер
TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given (0)
#0 /var/www/shandydev/data/www/scrapmechanic.ru/system/Login/Handler/OAuth2/Custom.php(472): array_key_exists('response', NULL)
#1 /var/www/shandydev/data/www/scrapmechanic.ru/system/Login/Handler/OAuth2/Custom.php(447): IPS\Login\Handler\OAuth2\_Custom::getValueFromArray(NULL, 'response[id]')
#2 /var/www/shandydev/data/www/scrapmechanic.ru/system/Login/Handler/OAuth2/Custom.php(294): IPS\Login\Handler\OAuth2\_Custom->_userData('y0_AgAAAAAgVPMK...', 'response[id]')
#3 /var/www/shandydev/data/www/scrapmechanic.ru/system/Login/Handler/OAuth2/OAuth2.php(420): IPS\Login\Handler\OAuth2\_Custom->authenticatedUserId('y0_AgAAAAAgVPMK...')
#4 /var/www/shandydev/data/www/scrapmechanic.ru/system/Login/Handler/OAuth2/OAuth2.php(404): IPS\Login\Handler\_OAuth2->_processAccessToken(Object(IPS\Login), Array)
#5 /var/www/shandydev/data/www/scrapmechanic.ru/system/Login/Handler/OAuth2/OAuth2.php(170): IPS\Login\Handler\_OAuth2->_handleAuthorizationResponse(Object(IPS\Login))
#6 /var/www/shandydev/data/www/scrapmechanic.ru/system/Login/Login.php(339): IPS\Login\Handler\_OAuth2->authenticateButton(Object(IPS\Login))
#7 /var/www/shandydev/data/www/scrapmechanic.ru/applications/core/modules/front/system/settings.php(1474): IPS\_Login->authenticate(Object(IPS\Login\Handler\OAuth2\Custom))
#8 /var/www/shandydev/data/www/scrapmechanic.ru/applications/core/modules/front/system/settings.php(64): IPS\core\modules\front\system\_settings->_login()
#9 /var/www/shandydev/data/www/scrapmechanic.ru/system/Dispatcher/Controller.php(118): IPS\core\modules\front\system\_settings->manage()
#10 /var/www/shandydev/data/www/scrapmechanic.ru/applications/core/modules/front/system/settings.php(49): IPS\Dispatcher\_Controller->execute()
#11 /var/www/shandydev/data/www/scrapmechanic.ru/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\system\_settings->execute()
#12 /var/www/shandydev/data/www/scrapmechanic.ru/index.php(13): IPS\_Dispatcher->run()
#13 {main}

В такие моменты понимаю зачем нужна лицензия и платная поддержка

Link to comment
Share on other sites

1 минуту назад, Anche сказал:

@MrShandy, какое приложение ставили? И по какой инструкции настраивали?

Яндекс ID по инструкции самого яндекса (получил от поддержки). Проблему решил, так:

image.thumb.png.766197ef1540ca876def417491240575.png

Видимо ожидается один URL для эндпоинта авторизации, но когда мы снимаем галочку и вписываем URL для админки и повторной регистрации - выбивает ошибку. Думаю это стоит проверить кому то еще и отправить репорт разработчикам

Link to comment
Share on other sites

24 минуты назад, MrShandy сказал:

Думаю это стоит проверить кому то еще и отправить репорт разработчикам

Думаю стоит установить приложение Yandex Login Handler, и настроить по инструкции, то все будет работать.

Link to comment
Share on other sites

Только что, Anche сказал:

Думаю стоит установить приложение Yandex Login Handler, и настроить по инструкции, то все будет работать.

Оно еще работает? Да и ставить приложения для таких базовых функций бред имхо

В любом случае, я свою проблему решил

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...