Problem/Motivation
Queue worker gives the next error on site-install.
Error: Call to a member function isAdjusted() on null in brightcove/src/Entity/BrightcovePlayer.php on line 240 #0 brightcove/src/Plugin/QueueWorker/BrightcovePlayerQueueWorker.php(64): Drupal\brightcove\Entity\BrightcovePlayer::createOrUpdate(Object(Brightcove\Object\Player\Player), Object(Drupal\Core\Entity\Sql\SqlContentEntityStorage), 'default')
#1 core/lib/Drupal/Core/Cron.php(167): Drupal\brightcove\Plugin\QueueWorker\BrightcovePlayerQueueWorker->processItem(Array)
#2 core/lib/Drupal/Core/Cron.php(133): Drupal\Core\Cron->processQueues()
#3 core/lib/Drupal/Core/ProxyClass/Cron.php(75): Drupal\Core\Cron->run()
#4 core/includes/install.core.inc(1812): Drupal\Core\ProxyClass\Cron->run()
#5 core/includes/install.core.inc(672): install_finished(Array)
#6 core/includes/install.core.inc(550): install_run_task(Array, Array)
#7 core/includes/install.core.inc(121): install_run_tasks(Array)
Error: Call to a member function isAdjusted() on null in Drupal\brightcove\Entity\BrightcovePlayer::createOrUpdate() (line 240 of brightcove/src/Entity/BrightcovePlayer.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | brightcove-no-player-config-2884674-4.patch | 2.32 KB | douggreen |
| #2 | 2884674-2.patch | 890 bytes | l0ke |
Comments
Comment #2
l0keAdd simple condition before processing.
Comment #3
douggreen commentedI get this error too. The code assumes that whenever there's a studio_configuration, that there is also a player. If this assumption is right, then we should track down why there is no player. If it's not true, then there are more places in the code that need to check for a missing player.
Comment #4
douggreen commentedComment #5
jan.mashat commented@l0ke @douggreen
Does the patch cover this, or are there "more places in the code that need to check for a missing player"?
Comment #6
yce commentedShould be fixed by https://www.drupal.org/project/brightcove/issues/3186027, closing.