XF 2.1 User ID - How do I Find User


Well-known member
I am running an error on one of my add ons and it gives me the User ID, how do I find the actual user for this ID?

Thanks but that did not work for me and I just get this. so this might well be why it is running an error to start off with.

Oops! We ran into some problems.

This is the actual error that it runs each week. I will also post this error on the add on.

    Exception: Email to [unknown] failed setup: Trying to send email to user without email (ID: 2780) src/XF/Mail/Mail.php:83

    Generated by: Unknown account Sep 23, 2019 at 2:52 AM

Stack trace

#0 src/addons/Hampel/WhatsNewDigest/Mail/Mailer.php(30): XF\Mail\Mail->setToUser(Object(Snog\Flags\XF\Entity\User))
#1 src/addons/Hampel/WhatsNewDigest/Cron/SendDigest.php(74): Hampel\WhatsNewDigest\Mail\Mailer->getMail(Object(Snog\Flags\XF\Entity\User), false)
#2 src/addons/Hampel/WhatsNewDigest/Cron/SendDigest.php(16): Hampel\WhatsNewDigest\Cron\SendDigest::sendDigest('weekly')
#3 [internal function]: Hampel\WhatsNewDigest\Cron\SendDigest::sendWeeklyDigest(Object(XF\Entity\CronEntry))
#4 src/XF/Job/Cron.php(35): call_user_func(Array, Object(XF\Entity\CronEntry))
#5 src/XF/Job/Manager.php(253): XF\Job\Cron->run(G)
#6 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#7 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#8 job.php(42): XF\Job\Manager->runQueue(false, 8)
#9 {main}

Request state

array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(28) "https://www.triumphtalk.com/"
  ["_GET"] => array(0) {
  ["_POST"] => array(0) {
Top Bottom