vlk09
Проверенные
- Сообщения
- 29
- Реакции
- 0
- Баллы
- 708
Были проблемы при регистрации новых пользователей:
XF\Db\Exception: MySQL query error [1364]: Field 'brms_limit_cache' doesn't have a default value
src/XF/Db/AbstractStatement.php:228
Удалил плагин, после чего выполнил SQL-запрос: ? ALTER TABLE xf_user DROP COLUMN brms_limit_cache;
Теперь регистрации пользователя выдаёт:
При этом пользователь появляется в базе и может спокойно авторизоваться.
В журнале:
ParseError: syntax error, unexpected '<', expecting end of file
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ReplacementFilterFactory.php:19
Кто сможет помочь, готов отблагодарить если что.
XF\Db\Exception: MySQL query error [1364]: Field 'brms_limit_cache' doesn't have a default value
src/XF/Db/AbstractStatement.php:228
Удалил плагин, после чего выполнил SQL-запрос: ? ALTER TABLE xf_user DROP COLUMN brms_limit_cache;
Теперь регистрации пользователя выдаёт:
При этом пользователь появляется в базе и может спокойно авторизоваться.
В журнале:
ParseError: syntax error, unexpected '<', expecting end of file
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ReplacementFilterFactory.php:19
#0 [internal function]: Swift::autoload('Swift_Replaceme...')
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/StreamFilters/StringReplacementFilterFactory.php(16): spl_autoload_call('Swift_Replaceme...')
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift.php(56): require('/home/troyhack/...')
#3 [internal function]: Swift::autoload('Swift_StreamFil...')
#4 [internal function]: spl_autoload_call('Swift_StreamFil...')
#5 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(309): ReflectionClass->__construct('Swift_StreamFil...')
#6 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(323): Swift_DependencyContainer->_createNewInstance('transport.repla...')
#7 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(114): Swift_DependencyContainer->_createSharedInstance('transport.repla...')
#8 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(371): Swift_DependencyContainer->lookup('transport.repla...')
#9 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(348): Swift_DependencyContainer->_lookupRecursive('transport.repla...')
#10 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(129): Swift_DependencyContainer->_resolveArgs(Array)
#11 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(312): Swift_DependencyContainer->createDependenciesFor('transport.buffe...')
#12 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(112): Swift_DependencyContainer->_createNewInstance('transport.buffe...')
#13 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(371): Swift_DependencyContainer->lookup('transport.buffe...')
#14 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(348): Swift_DependencyContainer->_lookupRecursive('transport.buffe...')
#15 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(129): Swift_DependencyContainer->_resolveArgs(Array)
#16 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/SmtpTransport.php(37): Swift_DependencyContainer->createDependenciesFor('transport.smtp')
#17 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/SmtpTransport.php(56): Swift_SmtpTransport->__construct('mail.troyhack.b...', 25, NULL)
#18 src/XF/Mail/Mailer.php(336): Swift_SmtpTransport::newInstance('mail.troyhack.b...')
#19 src/XF/App.php(995): XF\Mail\Mailer::getTransportFromOption('smtp', Array)
#20 src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#21 src/XF/App.php(946): XF\Container->offsetGet('mailer.transpor...')
#22 src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#23 src/XF/App.php(2400): XF\Container->offsetGet('mailer')
#24 src/XF/Service/Conversation/Notifier.php(112): XF\App->mailer()
#25 src/XF/Service/Conversation/Notifier.php(58): XF\Service\Conversation\Notifier->_sendNotifications('create', Array, Object(XF\Entity\ConversationMessage))
#26 src/XF/Service/User/Welcome.php(216): XF\Service\Conversation\Notifier->notifyCreate()
#27 src/XF/Service/User/Welcome.php(84): XF\Service\User\Welcome->sendMessage()
#28 src/XF/Service/User/Registration.php(375): XF\Service\User\Welcome->send()
#29 src/XF/Service/User/Registration.php(291): XF\Service\User\Registration->sendRegistrationContact()
#30 src/XF/Service/ValidateAndSavableTrait.php(40): XF\Service\User\Registration->_save()
#31 src/XF/Pub/Controller/Register.php(419): XF\Service\User\Registration->save()
#32 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
#33 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Register), NULL)
#34 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Register), NULL)
#35 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#36 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#37 src/XF.php(391): XF\App->run()
#38 index.php(20): XF::runApp('XF\\Pub\\App')
#39 {main}
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/StreamFilters/StringReplacementFilterFactory.php(16): spl_autoload_call('Swift_Replaceme...')
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift.php(56): require('/home/troyhack/...')
#3 [internal function]: Swift::autoload('Swift_StreamFil...')
#4 [internal function]: spl_autoload_call('Swift_StreamFil...')
#5 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(309): ReflectionClass->__construct('Swift_StreamFil...')
#6 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(323): Swift_DependencyContainer->_createNewInstance('transport.repla...')
#7 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(114): Swift_DependencyContainer->_createSharedInstance('transport.repla...')
#8 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(371): Swift_DependencyContainer->lookup('transport.repla...')
#9 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(348): Swift_DependencyContainer->_lookupRecursive('transport.repla...')
#10 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(129): Swift_DependencyContainer->_resolveArgs(Array)
#11 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(312): Swift_DependencyContainer->createDependenciesFor('transport.buffe...')
#12 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(112): Swift_DependencyContainer->_createNewInstance('transport.buffe...')
#13 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(371): Swift_DependencyContainer->lookup('transport.buffe...')
#14 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(348): Swift_DependencyContainer->_lookupRecursive('transport.buffe...')
#15 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php(129): Swift_DependencyContainer->_resolveArgs(Array)
#16 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/SmtpTransport.php(37): Swift_DependencyContainer->createDependenciesFor('transport.smtp')
#17 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/SmtpTransport.php(56): Swift_SmtpTransport->__construct('mail.troyhack.b...', 25, NULL)
#18 src/XF/Mail/Mailer.php(336): Swift_SmtpTransport::newInstance('mail.troyhack.b...')
#19 src/XF/App.php(995): XF\Mail\Mailer::getTransportFromOption('smtp', Array)
#20 src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#21 src/XF/App.php(946): XF\Container->offsetGet('mailer.transpor...')
#22 src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#23 src/XF/App.php(2400): XF\Container->offsetGet('mailer')
#24 src/XF/Service/Conversation/Notifier.php(112): XF\App->mailer()
#25 src/XF/Service/Conversation/Notifier.php(58): XF\Service\Conversation\Notifier->_sendNotifications('create', Array, Object(XF\Entity\ConversationMessage))
#26 src/XF/Service/User/Welcome.php(216): XF\Service\Conversation\Notifier->notifyCreate()
#27 src/XF/Service/User/Welcome.php(84): XF\Service\User\Welcome->sendMessage()
#28 src/XF/Service/User/Registration.php(375): XF\Service\User\Welcome->send()
#29 src/XF/Service/User/Registration.php(291): XF\Service\User\Registration->sendRegistrationContact()
#30 src/XF/Service/ValidateAndSavableTrait.php(40): XF\Service\User\Registration->_save()
#31 src/XF/Pub/Controller/Register.php(419): XF\Service\User\Registration->save()
#32 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
#33 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Register), NULL)
#34 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Register), NULL)
#35 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#36 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#37 src/XF.php(391): XF\App->run()
#38 index.php(20): XF::runApp('XF\\Pub\\App')
#39 {main}
<pre class='xdebug-var-dump' dir='ltr'>
<small>/home/troyhack/public_html/src/XF/Debugger.php:28:</small>
<b>array</b> <i>(size=4)</i>
'url' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'/index.php?register/register'</font> <i>(length=28)</i>
'referrer' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'
'_GET' <font color='#888a85'>=></font>
<b>array</b> <i>(size=1)</i>
'register/register' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i>
'_POST' <font color='#888a85'>=></font>
<b>array</b> <i>(size=13)</i>
'username' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i>
'8735562af79f2c462d46d197459faac900809d71' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'heds'</font> <i>(length=4)</i>
'f4cc65db8e14927692d0269453597570cfa19a84' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'[email protected]'</font> <i>(length=14)</i>
'email' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i>
'password' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'********'</font> <i>(length=8)</i>
'd6653b0c420f3d4d28b23a0355c5ac0b8fa29cc2' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'********'</font> <i>(length=8)</i>
'accept' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'1'</font> <i>(length=1)</i>
'reg_key' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'tX7Q9_OdUh2KiUZ_'</font> <i>(length=16)</i>
'07a770ee1787ea44ce4bda23637eae1572bbbf93' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'Africa/Nairobi'</font> <i>(length=14)</i>
'_xfToken' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'********'</font> <i>(length=8)</i>
'_xfRequestUri' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'/index.php'</font> <i>(length=10)</i>
'_xfWithData' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'1'</font> <i>(length=1)</i>
'_xfResponseType' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'json'</font> <i>(length=4)</i>
</pre>
<small>/home/troyhack/public_html/src/XF/Debugger.php:28:</small>
<b>array</b> <i>(size=4)</i>
'url' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'/index.php?register/register'</font> <i>(length=28)</i>
'referrer' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'
У Вас недостаточно прав для просмотра ссылок.
Вход или Регистрация
'</font> <i>(length=29)</i>'_GET' <font color='#888a85'>=></font>
<b>array</b> <i>(size=1)</i>
'register/register' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i>
'_POST' <font color='#888a85'>=></font>
<b>array</b> <i>(size=13)</i>
'username' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i>
'8735562af79f2c462d46d197459faac900809d71' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'heds'</font> <i>(length=4)</i>
'f4cc65db8e14927692d0269453597570cfa19a84' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'[email protected]'</font> <i>(length=14)</i>
'email' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i>
'password' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'********'</font> <i>(length=8)</i>
'd6653b0c420f3d4d28b23a0355c5ac0b8fa29cc2' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'********'</font> <i>(length=8)</i>
'accept' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'1'</font> <i>(length=1)</i>
'reg_key' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'tX7Q9_OdUh2KiUZ_'</font> <i>(length=16)</i>
'07a770ee1787ea44ce4bda23637eae1572bbbf93' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'Africa/Nairobi'</font> <i>(length=14)</i>
'_xfToken' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'********'</font> <i>(length=8)</i>
'_xfRequestUri' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'/index.php'</font> <i>(length=10)</i>
'_xfWithData' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'1'</font> <i>(length=1)</i>
'_xfResponseType' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'json'</font> <i>(length=4)</i>
</pre>
Кто сможет помочь, готов отблагодарить если что.
Последнее редактирование модератором: