Журнал ошибок сервера
- ParseError: syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
- src/addons/BS/ChatGPTBots/vendor/orhanerday/open-ai/src/OpenAi.php:9
Трассировка стека
#0 src/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/home/httpd/vho...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('Orhanerday\\Open...')
#2 src/addons/BS/ChatGPTBots/Listener.php(19): spl_autoload_call('Orhanerday\\Open...')
#3 src/XF/Container.php(31): BS\ChatGPTBots\Listener::BS\ChatGPTBots\{closure}(Object(XF\Container))
#4 src/XF/App.php(3317): XF\Container->offsetGet('chatGPT')
#5 src/addons/BS/ChatGPTQuickReplyBot/Listener.php(48): XF\App->container('chatGPT')
#6 src/XF/Extension.php(52): BS\ChatGPTQuickReplyBot\Listener::postPostSave(Object(MMO\ReputationSystem\XF\Entity\Post))
#7 src/XF.php(959): XF\Extension->fire('entity_post_sav...', Array, 'XF\\Entity\\Post')
#8 src/XF/Mvc/Entity/Entity.php(1276): XF::fire('entity_post_sav...', Array, 'XF\\Entity\\Post')
#9 src/XF/Mvc/Entity/Entity.php(1264): XF\Mvc\Entity\Entity->save(true, false)
#10 src/XF/Service/Thread/Creator.php(496): XF\Mvc\Entity\Entity->save(true, false)
#11 src/addons/BS/Contests/XF/Service/Thread/Creator.php(38): XF\Service\Thread\Creator->_save()
#12 src/XF/Service/ValidateAndSavableTrait.php(42): BS\Contests\XF\Service\Thread\Creator->_save()
#13 src/XF/Pub/Controller/Forum.php(919): XF\Service\Thread\Creator->save()
#14 src/addons/TC/CUCF/XF/Pub/Controller/Forum.php(18): XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(352): TC\CUCF\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(SV\MultiPrefix\XF\Pub\Controller\Forum), NULL)
#17 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\MultiPrefix\XF\Pub\Controller\Forum), NULL)
#18 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#19 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#20 src/XF.php(517): XF\App->run()
#21 index.php(20): XF::runApp('XF\\Pub\\App')
#22 {main}
Содержимое запроса
array(4) {
["url"] => string(32) "/forums/test-gpt.301/post-thread"
["referrer"] => string(54) "сайт
"
["_GET"] => array(0) {
}
["_POST"] => array(16) {
["_xfToken"] => string(8) "********"
["title"] => string(8) "Тест"
["discussion_type"] => string(10) "discussion"
["message_html"] => string(63) "<p>Дай мне информацию о медитации</p>"
["attachment_hash"] => string(32) "0e6d8f459799872c72dc9704c6efdcb9"
["attachment_hash_combined"] => string(83) "{"type":"post","context":{"node_id":301},"hash":"0e6d8f459799872c72dc9704c6efdcb9"}"
["chatgpt_autoresponder"] => string(3) "yes"
["tags"] => string(0) ""
["_xfSet"] => array(3) {
["watch_thread"] => string(1) "1"
["discussion_open"] => string(1) "1"
["sticky"] => string(1) "1"
}
["discussion_open"] => string(1) "1"
["meta_title"] => string(0) ""
["meta_description"] => string(0) ""
["meta_ogimage"] => string(0) ""
["_xfRequestUri"] => string(32) "/forums/test-gpt.301/post-thread"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}