• Support will be limited until May 8th, as I will be out of the office travelling. Thank you for your patience and understanding.

Bug Error: Call to a member function appendChild() on null src/vendor/pelago/emogrifier/src/Emogrifier.php:1419

Status
Not open for further replies.

BigIron

Customer
We've got a couple thousand of these errors in my AdminCP after configuring the digest.

Code:
Server error log

    Error: Call to a member function appendChild() on null src/vendor/pelago/emogrifier/src/Emogrifier.php:1419

    Generated by: Unknown account Jul 17, 2019 at 11:30 AM

Stack trace

#0 src/vendor/pelago/emogrifier/src/Emogrifier.php(1328): Pelago\Emogrifier->addStyleElementToDocument('.listInline.lis...')
#1 src/vendor/pelago/emogrifier/src/Emogrifier.php(526): Pelago\Emogrifier->copyUninlineableCssToStyleNode(Object(DOMXPath), Array)
#2 src/vendor/pelago/emogrifier/src/Emogrifier.php(377): Pelago\Emogrifier->process()
#3 src/XF/Mail/Styler.php(36): Pelago\Emogrifier->emogrify()
#4 src/XF/Mail/Mailer.php(187): XF\Mail\Styler->styleHtml('<p>The Northwes...', false, Object(XF\Language))
#5 src/addons/DBTech/Mail/Job/DigestEmail.php(174): XF\Mail\Mailer->renderMailTemplate('dbtech_mail_dig...', Array, Object(XF\Language), Object(SV\ReportImprovements\XF\Entity\User))
#6 src/XF/Job/AbstractUserCriteriaJob.php(59): DBTech\Mail\Job\DigestEmail->executeAction(Object(SV\ReportImprovements\XF\Entity\User))
#7 src/addons/DBTech/Mail/Job/DigestEmail.php(77): XF\Job\AbstractUserCriteriaJob->run(G)
#8 src/XF/Job/Manager.php(253): DBTech\Mail\Job\DigestEmail->run(G)
#9 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#10 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#11 job.php(42): XF\Job\Manager->runQueue(false, 8)
#12 {main}

Request state

array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(98) "https://www.domain.com/admin.php?templates/dbtech_mail_digest_settings_thread.6074/edit"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Some people have had success removing the Introduction text from the digest. As you can see, the error is not in this product but one of the libraries XF uses, so it’s unlikely a fix will be forthcoming soon.

I plan to report it as a bug in XF regardless, so they can kick it to the correct vendor.
 
The Northwest Firearms Digest is an email which is completely customizable to each users preference. Want to receive a list of new classified ads each day? It can do that. How about a list of the most popular threads only once a month? It can do that too. More information on these customizations can be found here.
 
Okay, so the issue is likely with the usage of HTML.

Can you try instead of "here" being a link, just use the plain text link?
 
Interesting. This will be helpful when reporting the issue to XF, thanks :)

I'll make a note to disable HTML support for that area to mitigate the issue, since XF has just done a release so it would be quite a while until any fix for this would actually make it to XF itself.
 
Just a heads up @Fillip H., I've left HTML out of the Introduction but received several of these errors when the digest was sent at 12:01AM.

Code:
Server error log

    Error: Call to a member function appendChild() on null src/vendor/pelago/emogrifier/src/Emogrifier.php:1419

    Generated by: Unknown account Jul 26, 2019 at 12:01 AM

Stack trace

#0 src/vendor/pelago/emogrifier/src/Emogrifier.php(1328): Pelago\Emogrifier->addStyleElementToDocument('.listInline.lis...')
#1 src/vendor/pelago/emogrifier/src/Emogrifier.php(526): Pelago\Emogrifier->copyUninlineableCssToStyleNode(Object(DOMXPath), Array)
#2 src/vendor/pelago/emogrifier/src/Emogrifier.php(377): Pelago\Emogrifier->process()
#3 src/XF/Mail/Styler.php(36): Pelago\Emogrifier->emogrify()
#4 src/XF/Mail/Mailer.php(187): XF\Mail\Styler->styleHtml('<p>The Northwes...', false, Object(XF\Language))
#5 src/addons/DBTech/Mail/Job/DigestEmail.php(169): XF\Mail\Mailer->renderMailTemplate('dbtech_mail_dig...', Array, Object(XF\Language), Object(SV\ElasticSearchEssentials\XF\Entity\User))
#6 src/XF/Job/AbstractUserCriteriaJob.php(59): DBTech\Mail\Job\DigestEmail->executeAction(Object(SV\ElasticSearchEssentials\XF\Entity\User))
#7 src/addons/DBTech/Mail/Job/DigestEmail.php(77): XF\Job\AbstractUserCriteriaJob->run(G)
#8 src/XF/Job/Manager.php(253): DBTech\Mail\Job\DigestEmail->run(G)
#9 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#10 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#11 job.php(42): XF\Job\Manager->runQueue(false, 8)
#12 {main}

Request state

array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(34) "https://www.northwestfirearms.com/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Just a heads up @Fillip H., I've left HTML out of the Introduction but received several of these errors when the digest was sent at 12:01AM.

Code:
Server error log

    Error: Call to a member function appendChild() on null src/vendor/pelago/emogrifier/src/Emogrifier.php:1419

    Generated by: Unknown account Jul 26, 2019 at 12:01 AM

Stack trace

#0 src/vendor/pelago/emogrifier/src/Emogrifier.php(1328): Pelago\Emogrifier->addStyleElementToDocument('.listInline.lis...')
#1 src/vendor/pelago/emogrifier/src/Emogrifier.php(526): Pelago\Emogrifier->copyUninlineableCssToStyleNode(Object(DOMXPath), Array)
#2 src/vendor/pelago/emogrifier/src/Emogrifier.php(377): Pelago\Emogrifier->process()
#3 src/XF/Mail/Styler.php(36): Pelago\Emogrifier->emogrify()
#4 src/XF/Mail/Mailer.php(187): XF\Mail\Styler->styleHtml('<p>The Northwes...', false, Object(XF\Language))
#5 src/addons/DBTech/Mail/Job/DigestEmail.php(169): XF\Mail\Mailer->renderMailTemplate('dbtech_mail_dig...', Array, Object(XF\Language), Object(SV\ElasticSearchEssentials\XF\Entity\User))
#6 src/XF/Job/AbstractUserCriteriaJob.php(59): DBTech\Mail\Job\DigestEmail->executeAction(Object(SV\ElasticSearchEssentials\XF\Entity\User))
#7 src/addons/DBTech/Mail/Job/DigestEmail.php(77): XF\Job\AbstractUserCriteriaJob->run(G)
#8 src/XF/Job/Manager.php(253): DBTech\Mail\Job\DigestEmail->run(G)
#9 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#10 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#11 job.php(42): XF\Job\Manager->runQueue(false, 8)
#12 {main}

Request state

array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(34) "https://www.northwestfirearms.com/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
I've posted the bug report: https://xenforo.com/community/threads/server-error-from-pelago-emogrifier-when-sending-email.168250/

Chris has asked for more information. Are you able to assist him? Thanks!
 
You can look back at my earlier report on this issue for another intro text example. I definitely did not use HTML. Might be of help.
It would be helpful if you could post it in the thread @ XenForo.com as I'm reasonably certain Chris D doesn't read these forums, that'd show him it's not an isolated case as well :)
 
Hello @BigIron,

We hope your ticket regarding DragonByte Mail has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Hello @BigIron,

As we have not heard back from you, your ticket regarding DragonByte Mail has now been closed.

If your ticket has not been resolved, please feel free to start a new support ticket and link back to this ticket.

If you have time, please leave a review on XenForo.com's Resource Manager.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

DragonByte Mail

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,148
Customer rating
0.00 star(s) 0 ratings
Back
Top