XF 2.2 Error related to unsubscribe email handling when disabled

Jake B.

Well-known member
We're getting the following on a XenForo install every time the cron runs:

PHP:
[LIST]
[*]ErrorException: [E_WARNING] Undefined array key "unsubscribeEmailHandling"
[*]src/XF/Cron/EmailUnsubscribe.php:21
[/LIST]
#0 src/XF/Cron/EmailUnsubscribe.php(21): XF::handlePhpError(2, '[E_WARNING] Und...', '/usr/share/ngin...', 21)
#1 src/XF/Cron/EmailUnsubscribe.php(9): XF\Cron\EmailUnsubscribe::canProcessUnsubscribeEmails()
#2 src/XF/Job/Cron.php(37): XF\Cron\EmailUnsubscribe::process(Object(XF\Entity\CronEntry))
#3 src/XF/Job/Manager.php(260): XF\Job\Cron->run(8)
#4 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#5 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#6 job.php(43): XF\Job\Manager->runQueue(false, 8)
#7 {main}

We do not currently have unsubscribe handling enabled or configured
 
This was a new option in one of the previous 2.2 releases.

To get an undefined array key error, that would suggest your upgrade wasn't completed and/or install data wasn't imported as expected.
 
I believe this was a new install of 2.2.15, haven't seen any other issues though (other than the other report i made about it incorrectly reporting that it's an oudated version of PHP)

I'll try a master data rebuild and see what happens
 
Okay, after doing that the option exists now. Not sure how it wouldn't have imported correctly initially though but that seems to have fixed the issue
 
Back
Top Bottom