Glek
Проверенные
- Сообщения
- 237
- Решения
- 18
- Реакции
- 71
- Баллы
- 70
Привет всем! Ошибка появляется в консоли при попытке отправить сообщение в любом месте форума. Понимаю, что связано со стилем, но какое-то приблизительное решение может быть в данной ситуации? Спасибо!
Код:
#0 [internal function]: Pelago\Emogrifier->handleXpathError(2, 'DOMXPath::query...', '/var/www/sites/...', 370, Array)
#1 src/vendor/pelago/emogrifier/Classes/Emogrifier.php(370): DOMXPath->query('//')
#2 src/vendor/pelago/emogrifier/Classes/Emogrifier.php(289): Pelago\Emogrifier->process(Object(DOMDocument))
#3 src/XF/Mail/Styler.php(36): Pelago\Emogrifier->emogrify()
#4 src/XF/Mail/Mailer.php(189): XF\Mail\Styler->styleHtml('<!DOCTYPE html>...', true, Object(XF\Language))
#5 src/XF/Mail/Mail.php(277): XF\Mail\Mailer->renderMailTemplate('conversation_re...', Array, Object(XF\Language), Object(XF\Entity\User))
#6 src/XF/Mail/Mail.php(327): XF\Mail\Mail->renderTemplate()
#7 src/XF/Mail/Mail.php(358): XF\Mail\Mail->getSendableMessage()
#8 src/XF/Service/Conversation/Notifier.php(115): XF\Mail\Mail->queue()
#9 src/XF/Service/Conversation/Notifier.php(65): XF\Service\Conversation\Notifier->_sendNotifications('reply', Array, Object(XF\Entity\ConversationMessage))
#10 src/XF/Service/Conversation/Replier.php(172): XF\Service\Conversation\Notifier->notifyReply(Object(XF\Entity\ConversationMessage))
#11 src/XF/Service/Conversation/Replier.php(151): XF\Service\Conversation\Replier->sendNotifications()
#12 src/XF/Service/ValidateAndSavableTrait.php(40): XF\Service\Conversation\Replier->_save()
#13 src/XF/Pub/Controller/Conversation.php(486): XF\Service\Conversation\Replier->save()
#14 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Conversation->actionAddReply(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Conversation', 'AddReply', 'json', Object(XF\Mvc\ParameterBag), 'conversations', Object(XF\Pub\Controller\Conversation), NULL)
#16 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#18 src/XF.php(329): XF\App->run()
#19 index.php(12): XF::runApp('XF\\Pub\\App')
#20 {main}
Код:
InvalidArgumentException: DOMXPath::query(): Invalid expression in selector >> body << in
/var/www/sites/jobius.com.ua/forum/src/vendor/pelago/emogrifier/Classes/Emogrifier.php on line 370
src/vendor/pelago/emogrifier/Classes/Emogrifier.php:1532
Код:
array(4) {
["url"] => string(40) "/forum/conversations/privet.14/add-reply"
["referrer"] => string(49) "https://domain.com/forum/conversations/privet.14/"
["_GET"] => array(0) {
}
["_POST"] => array(7) {
["message_html"] => string(9) "<p>11</p>"
["last_date"] => string(10) "1701268931"
["last_known_date"] => string(1) "0"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(31) "/forum/conversations/privet.14/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}