XF 2.0 strange error

arnold

Member
I have this strange error in my admin section.
it appears that a lot of people have this problem, but i can't find what is wrong.

could someone help me out.

[edit] during registration of a new user, i get a strange error, saying there is a server error and the registration couldn't procces.
trying to register again, it says that the user name already exist.
very strange things are happening.
[/edit]

Code:
InvalidArgumentException: DOMXPath::query(): Invalid expression in selector >> body << in /home/zeewaterforum.info/public_html/forums/src/vendor/pelago/emogrifier/Classes/Emogrifier.php on line 370 src/vendor/pelago/emogrifier/Classes/Emogrifier.php:1532
Generated by: basonder14 Feb 6, 2019 at 5:01 PM
Stack trace
#0 [internal function]: Pelago\Emogrifier->handleXpathError(2, 'DOMXPath::query...', '/home/zeewaterf...', 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('watched_forum_t...', 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/Notifier/Post/AbstractWatch.php(128): XF\Mail\Mail->queue()
#9 src/XF/Service/AbstractNotifier.php(92): XF\Notifier\Post\AbstractWatch->sendEmail(Object(XF\Entity\User))
#10 src/XF/Service/AbstractNotifier.php(44): XF\Service\AbstractNotifier->notifyType(Object(XF\Notifier\Post\ForumWatch), Array, 1549468907.6046)
#11 src/XF/Service/AbstractNotifier.php(56): XF\Service\AbstractNotifier->notify(3)
#12 src/XF/Service/Thread/Creator.php(325): XF\Service\AbstractNotifier->notifyAndEnqueue(3)
#13 src/XF/Pub/Controller/Forum.php(577): XF\Service\Thread\Creator->sendNotifications()
#14 src/XF/Pub/Controller/Forum.php(735): XF\Pub\Controller\Forum->finalizeThreadCreate(Object(XF\Service\Thread\Creator))
#15 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', 'json', Object(XF\Mvc\ParameterBag), 'forums', Object(XF\Pub\Controller\Forum), NULL)
#17 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#19 src/XF.php(328): XF\App->run()
#20 index.php(13): XF::runApp('XF\\Pub\\App')
#21 {main}
Request state
array(4) {
  ["url"] => string(54) "/forums/forums/particulieren-bieden-aan.46/post-thread"
  ["referrer"] => string(84) "https://www.zeewaterforum.info/forums/forums/particulieren-bieden-aan.46/post-thread"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(12) {
    ["prefix_id"] => string(1) "8"
    ["title"] => string(18) "Red Dragon Speedy3"
    ["message_html"] => string(837) "<p>Opvoerpomp Royal exclusiv&nbsp;</p><p><br></p><p><span style="-webkit-text-size-adjust: 100%; background-color: transparent;">Red dragon Speedy3 - 230w</span></p><p><span style="background-color: transparent; -webkit-text-size-adjust: 100%;">Incl. 10V connection</span></p><p>24.000 liter per uur!</p><p><br></p><p><span style="background-color: transparent; -webkit-text-size-adjust: 100%;">Pomp is aangeschaft in april 2018 en draait momenteel nog op het systeem. Oplevering in overleg.</span></p><p><br></p><p><span style="background-color: transparent; -webkit-text-size-adjust: 100%;">Dit exemplaar voor €950,- (nieuwprijs €1210,-)</span></p><p><br></p><p><span style="background-color: transparent; -webkit-text-size-adjust: 100%;">Ophalen in Weesp of evt te verzenden. Graag een PB&nbsp;indien u interesse heeft.</span></p>"
    ["attachment_hash"] => string(32) "444cb147c70fda0bbeb2bd8a80dbf270"
    ["attachment_hash_combined"] => string(82) "{"type":"post","context":{"node_id":46},"hash":"444cb147c70fda0bbeb2bd8a80dbf270"}"
    ["watch_thread"] => string(1) "1"
    ["_xfSet"] => array(1) {
      ["watch_thread"] => string(1) "1"
    }
    ["poll"] => array(5) {
      ["question"] => string(0) ""
      ["new_responses"] => array(1) {
        [0] => string(0) ""
      }
      ["max_votes_type"] => string(6) "single"
      ["change_vote"] => string(1) "1"
      ["view_results_unvoted"] => string(1) "1"
    }
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(54) "/forums/forums/particulieren-bieden-aan.46/post-thread"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

[edit, extra error log from adding a user]
Code:
InvalidArgumentException: DOMXPath::query(): Invalid expression in selector >> body << in /home/zeewaterforum.info/public_html/forums/src/vendor/pelago/emogrifier/Classes/Emogrifier.php on line 370 src/vendor/pelago/emogrifier/Classes/Emogrifier.php:1532
Generated by: Unknown account Feb 6, 2019 at 5:29 PM
Stack trace
#0 [internal function]: Pelago\Emogrifier->handleXpathError(2, 'DOMXPath::query...', '/home/zeewaterf...', 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('user_email_conf...', 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(341): XF\Mail\Mail->getSendableMessage()
#8 src/XF/Service/User/AbstractConfirmationService.php(85): XF\Mail\Mail->send()
#9 src/XF/Service/User/AbstractConfirmationService.php(63): XF\Service\User\AbstractConfirmationService->sendConfirmationEmail()
#10 src/XF/Service/User/Registration.php(360): XF\Service\User\AbstractConfirmationService->triggerConfirmation()
#11 src/XF/Service/User/Registration.php(291): XF\Service\User\Registration->sendRegistrationContact()
#12 src/XF/Service/ValidateAndSavableTrait.php(40): XF\Service\User\Registration->_save()
#13 src/XF/Pub/Controller/Register.php(393): XF\Service\User\Registration->save()
#14 src/addons/Andy/RegisterEmail/XF/Pub/Controller/Register.php(10): XF\Pub\Controller\Register->actionRegister()
#15 src/XF/Mvc/Dispatcher.php(249): Andy\RegisterEmail\XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', 'json', Object(XF\Mvc\ParameterBag), '', Object(Andy\RegisterEmail\XF\Pub\Controller\Register), NULL)
#17 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#19 src/XF.php(328): XF\App->run()
#20 index.php(13): XF::runApp('XF\\Pub\\App')
#21 {main}
Request state
array(4) {
  ["url"] => string(25) "/forums/register/register"
  ["referrer"] => string(38) "https://www.zeewaterforum.info/forums/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(15) {
    ["username"] => string(0) ""
    ["48dc0e8b5a439b328c258bd0d0bfaaf09b1abb8d"] => string(10) "xxxxxx"
    ["0dfc67a0e8e2b156a6b3b139a68e62e0f2ba9e70"] => string(0) ""
    ["a4464b006885be398c50d5f9aed05cd56df0ab7b"] => string(15) "xxxx@xxxxx.nl"
    ["email"] => string(0) ""
    ["360305c539b5a44121b5876c90f0061eaef1ffd7"] => string(8) "********"
    ["g-recaptcha-response"] => string(356) "03AF6jDqVpRlQHTd3TNiV4irWDDdyMX7QGIDGKKxfGxta8BZnyxB93SfIFh1a4gwi-f0-YAlsRDkWMtS7rbKbnW0L-Ud5PIxWCwawjWi0b-Nctm0p8YhqzQr3Kjz8GR5ww83PwsSJr_qmEvw-rRbG8I5C5-5XmS4xj5ih7WwNhOJH973RNyl2OFituH8LhvaJ5jo6XHMCrTWyjOthu1m_Cf5UV5DV4jfj9CobO1lqmASSxm2HjcMYVRuRGbuQBwusfQb0DPPmboecCiaLxu4IO05cLcIK43Hsx-zSgrU450f7Sk-1-njDk1SE13YUeHmT5-SS9Pzra9XKZpDs3my0WNSYKXNTI-FDyYw"
    ["email_choice"] => string(1) "1"
    ["accept"] => string(1) "1"
    ["reg_key"] => string(16) "UxLNvp6Iqj-imFXG"
    ["6c204063325318f817cccd4c842415e33b7f101f"] => string(16) "Europe/Amsterdam"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(8) "/forums/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Last edited:
Top Bottom