After updating Drupal from version 10.1.6 to 10.2.1, we encountered a fatal error upon visiting the status page. The error message is as follows:
Fatal error: Could not check compatibility between Drupal\Core\Block\Plugin\Block\PageTitleBlock::blockForm($form, Drupal\Core\Block\Plugin\Block\FormStateInterface $form_state) and Drupal\Core\Block\BlockBase::blockForm($form, Drupal\Core\Form\FormStateInterface $form_state), because class Drupal\Core\Block\Plugin\Block\FormStateInterface is not available in /var/www/html/docroot/core/lib/Drupal/Core/Block/Plugin/Block/PageTitleBlock.php on line 112
Steps to reproduce:
Reference: https://www.drupal.org/docs/updating-drupal/updating-drupal-core-via-com...
composer update drush/drush
composer update "drupal/core-*" --with-all-dependencies
drush updatedb
drush cr
Comments
Comment #2
prashant.cCould you please add some steps to reproduce here, that would be helpful?
Comment #3
gaurav_drupalComment #4
gaurav_drupalComment #5
cilefen commentedIt seems like that interface file is missing.
Comment #6
longwaveIt appears that you have patched
PageTitleBlocksomehow, but then also missed out a use statement, because there is noblockForm()method defined in the core version ofPageTitleBlock; there also isn't a line 112: https://git.drupalcode.org/project/drupal/-/blob/10.2.1/core/lib/Drupal/...Comment #8
cilefen commented