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

Gaurav_drupal created an issue. See original summary.

prashant.c’s picture

Could you please add some steps to reproduce here, that would be helpful?

gaurav_drupal’s picture

Issue summary: View changes
gaurav_drupal’s picture

Issue summary: View changes
cilefen’s picture

Category: Bug report » Support request
Priority: Major » Normal

It seems like that interface file is missing.

longwave’s picture

Status: Active » Postponed (maintainer needs more info)

It appears that you have patched PageTitleBlock somehow, but then also missed out a use statement, because there is no blockForm() method defined in the core version of PageTitleBlock; there also isn't a line 112: https://git.drupalcode.org/project/drupal/-/blob/10.2.1/core/lib/Drupal/...

Version: 10.2.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

cilefen’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)