User Mentions Improvements error

MarcusJonesy

New Member
Reactions
1
Hello

I have the following error. It looks like its related to User Mentions Improvements but also linked to Bob's Pickem resource. Any ideas?


Code:
    TypeError: Argument 1 passed to SV\UserMentionsImprovements\XF\Repository\XF22\UserAlert::alert() must be an instance of XF\Entity\User, null given, called in /home/absolute/public_html/community/src/addons/XenAddons/Pickem/Repository/Reminder.php on line 88 src/addons/SV/UserMentionsImprovements/XF/Repository/XF22/UserAlert.php:14

    Generated by: Unknown account Nov 20, 2020 at 12:05 AM

Stack trace

#0 src/addons/XenAddons/Pickem/Repository/Reminder.php(88): SV\UserMentionsImprovements\XF\Repository\XF22\UserAlert->alert(NULL, 0, 0, 'pkm_week', 92, 'reminder2')
#1 src/addons/XenAddons/Pickem/Cron/Reminders.php(13): XenAddons\Pickem\Repository\Reminder->processAlertReminders()
#2 [internal function]: XenAddons\Pickem\Cron\Reminders::processPickemReminders(Object(XF\Entity\CronEntry))
#3 src/XF/Job/Cron.php(34): call_user_func(Array, Object(XF\Entity\CronEntry))
#4 src/XF/Job/Manager.php(258): XF\Job\Cron->run(G)
#5 src/XF/Job/Manager.php(200): XF\Job\Manager->runJobInternal(Array, G)
#6 src/XF/Job/Manager.php(84): XF\Job\Manager->runJobEntry(Array, G)
#7 job.php(43): XF\Job\Manager->runQueue(false, 8)
#8 {main}

Request state

array(4) {
  ["url"] => string(18) "/community/job.php"
  ["referrer"] => string(80) "*********"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Delete
 
@MarcusJonesy this is a logic bug in Bob's add-on. He is missing a check for trying to send to a deleted user. While my add-on is in the stack-trace, that is a XenForo type signature.

I've passed this along to bob. I expect it will be a simple fix for him.
 

Users who are viewing this thread

Back
Top