I got an error when trying to update from disqus 8.x-1.0-rc1 to disqus 8.x-1.0-rc2

thank you

CommentFileSizeAuthor
error updating disqus rc2.png12.65 KBzheleong
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zheleong created an issue. See original summary.

omlx’s picture

I got this error when I upgrade it through drush:

rror: Call to undefined method Drupal\block\Entity\Block::hasField() in /var/www/drupal/modules/disqus/disqus.module on line 190 #0 [internal function]: disqus_entity_update(Object(Drupal\block\Entity\Block), 'block')
#1 /var/www/drupal/core/lib/Drupal/Core/Extension/ModuleHandler.php(402): call_user_func_array('disqus_entity_u...', Array)
#2 /var/www/drupal/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(371): Drupal\Core\Extension\ModuleHandler->invokeAll('entity_update', Array)
#3 /var/www/drupal/core/lib/Drupal/Core/Entity/EntityStorageBase.php(470): Drupal\Core\Config\Entity\ConfigEntityStorage->invokeHook('update', Object(Drupal\block\Entity\Block))
#4 /var/www/drupal/core/lib/Drupal/Core/Entity/EntityStorageBase.php(395): Drupal\Core\Entity\EntityStorageBase->doPostSave(Object(Drupal\block\Entity\Block), true)
#5 /var/www/drupal/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(259): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\block\Entity\Block))
#6 /var/www/drupal/core/lib/Drupal/Core/Entity/Entity.php(364): Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object(Drupal\block\Entity\Block))
#7 /var/www/drupal/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(637): Drupal\Core\Entity\Entity->save()
#8 /var/www/drupal/core/modules/block/block.module(156): Drupal\Core\Config\Entity\ConfigEntityBase->save()
#9 [internal function]: block_rebuild()
#10 /var/www/drupal/core/lib/Drupal/Core/Extension/ModuleHandler.php(402): call_user_func_array('block_rebuild', Array)
#11 /var/www/drupal/core/includes/common.inc(1133): Drupal\Core\Extension\ModuleHandler->invokeAll('rebuild')
#12 /var/www/drupal/modules/fontyourface/fontyourface.install(248): drupal_flush_all_caches()
#13 phar:///usr/local/bin/drush/commands/core/drupal/update.inc(60): fontyourface_update_8005(Array)
#14 phar:///usr/local/bin/drush/commands/core/drupal/batch.inc(163): drush_update_do_one('fontyourface', 8005, Array, Object(DrushBatchContext))
#15 phar:///usr/local/bin/drush/commands/core/drupal/batch.inc(111): _drush_batch_worker()
#16 phar:///usr/local/bin/drush/includes/batch.inc(98): _drush_batch_command('8097')
#17 phar:///usr/local/bin/drush/commands/core/drupal/update.inc(174): drush_batch_command('8097')
#18 phar:///usr/local/bin/drush/commands/core/core.drush.inc(1221): _update_batch_command('8097')
#19 phar:///usr/local/bin/drush/includes/command.inc(366): drush_core_updatedb_batch_process('8097')
#20 phar:///usr/local/bin/drush/includes/command.inc(217): _drush_invoke_hooks(Array, Array)
#21 phar:///usr/local/bin/drush/includes/command.inc(185): drush_command('8097')
#22 phar:///usr/local/bin/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#23 phar:///usr/local/bin/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#24 phar:///usr/local/bin/drush/includes/startup.inc(325): drush_main()
#25 phar:///usr/local/bin/drush/drush(114): drush_startup(Array)
#26 /usr/local/bin/drush(10): require('phar:///usr/loc...')
#27 {main}
Error: Call to undefined method Drupal\block\Entity\Block::hasField() in disqus_entity_update() (line 190 of /var/www/drupal/modules/disqus/disqus.module).
Drush command terminated abnormally due to an unrecoverable error.                     [error]
PHP Fatal error:  Uncaught Error: Call to undefined method Drupal\block\Entity\Block::hasField() in /var/www/drupal/modules/disqus/disqus.module:190
Stack trace:
#0 [internal function]: disqus_entity_update(Object(Drupal\block\Entity\Block), 'block')
#1 /var/www/drupal/core/lib/Drupal/Core/Extension/ModuleHandler.php(402): call_user_func_array('disqus_entity_u...', Array)
#2 /var/www/drupal/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(371): Drupal\Core\Extension\ModuleHandler->invokeAll('entity_update', Array)
#3 /var/www/drupal/core/lib/Drupal/Core/Entity/EntityStorageBase.php(470): Drupal\Core\Config\Entity\ConfigEntityStorage->invokeHook('update', Object(Drupal\block\Entity\Block))
#4 /var/www/drupal/core/lib/Drupal/Core/Entity/EntityStorageBase.php(395): Drupal\Core\Entity\EntityStorageBase->doPostSave(Object(Drupal\block\Entity\Block), true)
#5 /var/www/drupal/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(259): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\block\Entity\Block))
#6 /var in /var/www/drupal/modules/disqus/disqus.module on line 190
Drush command terminated abnormally due to an unrecoverable error.                     [error]
Error: Uncaught Error: Call to undefined method Drupal\block\Entity\Block::hasField()
in /var/www/drupal/modules/disqus/disqus.module:190
Stack trace:
#0 [internal function]: disqus_entity_update(Object(Drupal\block\Entity\Block),
'block')
#1 /var/www/drupal/core/lib/Drupal/Core/Extension/ModuleHandler.php(402):
call_user_func_array('disqus_entity_u...', Array)
#2 /var/www/drupal/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(371):
Drupal\Core\Extension\ModuleHandler->invokeAll('entity_update', Array)
#3 /var/www/drupal/core/lib/Drupal/Core/Entity/EntityStorageBase.php(470):
Drupal\Core\Config\Entity\ConfigEntityStorage->invokeHook('update',
Object(Drupal\block\Entity\Block))
#4 /var/www/drupal/core/lib/Drupal/Core/Entity/EntityStorageBase.php(395):
Drupal\Core\Entity\EntityStorageBase->doPostSave(Object(Drupal\block\Entity\Block),
true)
#5 /var/www/drupal/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(259):
Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\block\Entity\Block))
#6 /var in /var/www/drupal/modules/disqus/disqus.module, line 190
The external command could not be executed due to an application error.                [error]

gaurav.kapoor’s picture

Status: Active » Closed (cannot reproduce)