XF 2.1 Users without emails

Which XF version is this and what email is it trying to send exactly?

The full stack trace from within the error log may help identify it if you post that here.
 
We are currently on 2.1.2 and here is the error log if that helps.

Server error log
  • Exception: Email to [unknown] failed setup: Trying to send email to user without email (ID: 13)
  • src/XF/Mail/Mail.php:83
  • Generated by: Unknown account
  • Apr 1, 2020 at 8:00 AM
Stack trace
#0 src/addons/Andy/InactiveMembers/XF/Cron/InactiveMembers.php(194): XF\Mail\Mail->setToUser(Object(SV\ConversationEssentials\XF\Entity\User))
#1 [internal function]: Andy\InactiveMembers\XF\Cron\InactiveMembers::runInactiveMembers(Object(XF\Entity\CronEntry))
#2 src/XF/Job/Cron.php(34): call_user_func(Array, Object(XF\Entity\CronEntry))
#3 src/XF/Job/Manager.php(253): XF\Job\Cron->run(G)
#4 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#5 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#6 job.php(42): XF\Job\Manager->runQueue(false, 8)
#7 {main}

Request state
array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(74) "https://www.avnirvana.com/threads/rew-windows-64-bit-installer.4597/page-7"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
That particular one is coming from an add-on. The add-on itself should be filtering out users that do not have an email address.

There are some core cases you might run into but they are fixed in XF 2.1.8.

But you can see from the stack trace that this particular one is coming from add-on called “Inactive Users”.
 
Top Bottom