Fixed Opt-out email notifications - server error

BassMan

Well-known member
Affected version
XF 2.0 RC2
When I try to opt-out from email notifications (after clicking the link in email) I get this in front view and also in ACP as server error:

InvalidArgumentException: Unknown notify type 'no_email' in src/XF/Repository/ForumWatch.php at line 56

  1. XF\Repository\ForumWatch->setWatchState() in src/XF/EmailStop/Forum.php at line 39
  2. XF\EmailStop\Forum->stopOne() in src/XF/Service/User/EmailStop.php at line 190
  3. XF\Service\User\EmailStop->stopContent() in src/XF/Service/User/EmailStop.php at line 122
  4. XF\Service\User\EmailStop->stop() in src/XF/Pub/Controller/EmailStop.php at line 20
  5. XF\Pub\Controller\EmailStop->actionIndex() in src/XF/Mvc/Dispatcher.php at line 249
  6. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
  7. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
  8. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1863
  9. XF\App->run() in src/XF.php at line 328
  10. XF::runApp() in index.php at line 13
 
Back
Top Bottom