36degrees
Member
- Affected version
- v2.2.7 PL1
This popped up in our Server Error Log:
A second error recorded at the same time from the same file and line:
This appears to be a reference to
From looking at the code for the method, I can't see
Code:
ErrorException: [E_NOTICE] Undefined variable: option src/XF/Repository/Option.php:233
#0 src/XF/Repository/Option.php(233): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/bird/publ...', 233, Array)
#1 src/XF/EmailBounce/Processor.php(246): XF\Repository\Option->refreshEmailAccessTokenIfNeeded('emailBounceHand...')
#2 src/XF/SubContainer/Bounce.php(15): XF\EmailBounce\Processor::getDefaultBounceHandlerStorage(Object(XF\Cli\App))
#3 src/XF/Container.php(30): XF\SubContainer\Bounce->XF\SubContainer\{closure}(Object(XF\Container))
#4 src/XF/SubContainer/Bounce.php(43): XF\Container->offsetGet('storage')
#5 src/XF/Job/EmailBounce.php(20): XF\SubContainer\Bounce->storage()
#6 src/XF/Job/Manager.php(260): XF\Job\EmailBounce->run(8)
#7 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#8 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#9 src/XF/Cli/Command/RunJobs.php(59): XF\Job\Manager->runQueue(false, 8)
#10 src/vendor/symfony/console/Command/Command.php(255): XF\Cli\Command\RunJobs->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 src/vendor/symfony/console/Application.php(992): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 src/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(XF\Cli\Command\RunJobs), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 src/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 src/XF/Cli/Runner.php(111): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 cmd.php(15): XF\Cli\Runner->run()
#16 {main}
A second error recorded at the same time from the same file and line:
Code:
ErrorException: [E_NOTICE] Trying to get property 'option_id' of non-object src/XF/Repository/Option.php:233
This appears to be a reference to
$option
from inside the catch block if refreshing an OAuth access token fails:
PHP:
\XF::logException($e, false, "Failed to refresh OAuth access token for {$option->option_id}: ");
From looking at the code for the method, I can't see
$option
defined anywhere.