After core upgraded from Drupal 9.5.11 to Drupal 10.1.1,site gone down

Created on 27 January 2024, about 1 year ago
Updated 15 March 2024, about 1 year ago

The site went down, after successfully upgrading Drupal Core version from 9.5.11 to 10.1.1. It is showing the below error.

My System Requirement:

PHP Version: 8.1.17
Composer Version: 2.5.8
OS : Windows 10
Drush Version: 12.4.3

Errors that I'm getting in the portal.

Warning: class_implements(): Class Drupal\Core\Entity\EntityBundleAccessCheck does not exist and could not be loaded in Drupal\Core\DependencyInjection\Compiler\RegisterAccessChecksPass->process() (line 43 of C:\xampp\htdocs\developerPortal\docroot\web\core\lib\Drupal\Core\DependencyInjection\Compiler\RegisterAccessChecksPass.php).
Drupal\Core\DependencyInjection\Compiler\RegisterAccessChecksPass->process(Object) (Line: 80)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object) (Line: 767)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1335)
Drupal\Core\DrupalKernel->compileContainer() (Line: 934)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 20)
Drupal\Core\Installer\InstallerKernel->initializeContainer() (Line: 494)
Drupal\Core\DrupalKernel->boot() (Line: 426)
install_begin_request(Object, Array) (Line: 116)
install_drupal(Object) (Line: 48)
Additional uncaught exception thrown while handling exception.
User warning: Invalid placeholder (severity_level) with string: "%type: @message in %function (line %line of %file).
@backtrace
" in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 245 of C:\xampp\htdocs\developerPortal\docroot\web\core\lib\Drupal\Component\Render\FormattableMarkup.php).
Drupal\Component\Render\FormattableMarkup::placeholderFormat('%type: @message in %function (line %line of %file). @backtrace', Array) (Line: 99)
Drupal\Component\Render\FormattableMarkup->__toString() (Line: 204)
_drupal_exception_handler_additional(Object, Object) (Line: 186)
_drupal_exception_handler(Object)
Original
TypeError: in_array(): Argument #2 ($haystack) must be of type array, bool given in in_array() (line 43 of C:\xampp\htdocs\developerPortal\docroot\web\core\lib\Drupal\Core\DependencyInjection\Compiler\RegisterAccessChecksPass.php).

in_array('Drupal\Core\Access\AccessCheckInterface', , 1) (Line: 43)
Drupal\Core\DependencyInjection\Compiler\RegisterAccessChecksPass->process(Object) (Line: 80)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object) (Line: 767)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1335)
Drupal\Core\DrupalKernel->compileContainer() (Line: 934)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 20)
Drupal\Core\Installer\InstallerKernel->initializeContainer() (Line: 494)
Drupal\Core\DrupalKernel->boot() (Line: 426)
install_begin_request(Object, Array) (Line: 116)
install_drupal(Object) (Line: 48)
User warning: Invalid placeholder (severity_level) with string: "%type: @message in %function (line %line of %file).
@backtrace
" in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 245 of C:\xampp\htdocs\developerPortal\docroot\web\core\lib\Drupal\Component\Render\FormattableMarkup.php).
Drupal\Component\Render\FormattableMarkup::placeholderFormat('%type: @message in %function (line %line of %file). @backtrace', Array) (Line: 99)
Drupal\Component\Render\FormattableMarkup->__toString() (Line: 205)
_drupal_exception_handler_additional(Object, Object) (Line: 186)
_drupal_exception_handler(Object)
Additional
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "theme.manager". in Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition() (line 992 of C:\xampp\htdocs\developerPortal\docroot\vendor\symfony\dependency-injection\ContainerBuilder.php).

Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition('theme.manager') (Line: 568)
Symfony\Component\DependencyInjection\ContainerBuilder->doGet('theme.manager', 1) (Line: 531)
Symfony\Component\DependencyInjection\ContainerBuilder->get('theme.manager') (Line: 649)
Drupal::theme() (Line: 22)
_drupal_maintenance_theme() (Line: 322)
drupal_maintenance_theme() (Line: 1025)
install_display_output(Array, Array) (Line: 271)
_drupal_log_error(Array, 1) (Line: 182)
_drupal_exception_handler(Object)

💬 Support request
Status

Closed: outdated

Version

11.0 🔥

Component
Other 

Last updated about 5 hours ago

Created by

🇮🇳India muthukris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Issue created by @muthukris
  • 🇮🇳India muthukris

    My composer.json files go here....

    {
    "name": "drupal/recommended-project",
    "description": "Project template for Drupal projects with a relocated document root",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": " https://www.drupal.org/project/drupal ",
    "support": {
    "docs": " https://www.drupal.org/docs/user_guide/en/index.html ",
    "chat": " https://www.drupal.org/node/314178 "
    },
    "repositories": [
    {
    "type": "composer",
    "url": "https://packages.drupal.org/8"
    }
    ],
    "require": {
    "aws/aws-sdk-php": "^3.297",
    "composer/installers": "^2.2",
    "drupal/admin_toolbar": "^3.4",
    "drupal/asset_injector": "^2.19",
    "drupal/autologout": "^1.4",
    "drupal/backup_migrate": "*",
    "drupal/bartik": "^1.0",
    "drupal/better_exposed_filters": "^6.0",
    "drupal/bootstrap": "^3.29",
    "drupal/bootstrap_barrio": "^5.5",
    "drupal/captcha": "^2.0",
    "drupal/chosen": "^4.0",
    "drupal/config_filter": "^2.6",
    "drupal/config_ignore": "^3.2",
    "drupal/config_split": "^2.0",
    "drupal/content_access": "^2.0",
    "drupal/core-composer-scaffold": "^10.1",
    "drupal/core-project-message": "^10.1",
    "drupal/core-recommended": "^10.1",
    "drupal/csp": "^1.22",
    "drupal/csv_serialization": "^4.0",
    "drupal/ctools": "^4.0",
    "drupal/default_content": "^2.0@alpha",
    "drupal/devel": "^5.1",
    "drupal/devel_kint_extras": "^1.1",
    "drupal/field_group": "^3.4",
    "drupal/field_permissions": "^1.3",
    "drupal/fontyourface": "^4.0",
    "drupal/jquery_ui_slider": "^2.0",
    "drupal/lang_dropdown": "^2.1",
    "drupal/menu_link_attributes": "^1.3",
    "drupal/menu_link_modal": "^2.1",
    "drupal/menu_per_role": "^1.5",
    "drupal/redirect": "^1.9",
    "drupal/redirect_after_login": "^3.0",
    "drupal/remove_http_headers": "^2.1",
    "drupal/search_api": "^1.31",
    "drupal/simplesamlphp_auth": "^4.0",
    "drupal/smtp": "^1.2",
    "drupal/swagger_ui_formatter": "^4.0",
    "drupal/token": "^1.13",
    "drupal/twig_tweak": "^3.2",
    "drupal/upgrade_status": "^4.0",
    "drupal/views_autocomplete_filters": "^2.0",
    "drupal/views_bootstrap": "^5.4",
    "drupal/views_data_export": "^1.4",
    "drupal/viewsreference": "^2.0@beta",
    "drush/drush": "^12.4",
    "mnsami/composer-custom-directory-installer": "^2.0",
    "oomphinc/composer-installers-extender": "^2.0"
    },
    "conflict": {
    "drupal/drupal": "*"
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "config": {
    "allow-plugins": {
    "composer/installers": true,
    "drupal/core-composer-scaffold": true,
    "drupal/core-project-message": true,
    "phpstan/extension-installer": true,
    "dealerdirect/phpcodesniffer-composer-installer": true,
    "cweagans/composer-patches": true,
    "oomphinc/composer-installers-extender": true,
    "simplesamlphp/composer-module-installer": true,
    "mnsami/composer-custom-directory-installer": true
    },
    "sort-packages": true
    },
    "extra": {
    "drupal-scaffold": {
    "locations": {
    "web-root": "web/"
    }
    },
    "installer-paths": {
    "web/core": [
    "type:drupal-core"
    ],
    "web/libraries/{$name}": [
    "type:drupal-library"
    ],
    "web/modules/contrib/{$name}": [
    "type:drupal-module"
    ],
    "web/profiles/contrib/{$name}": [
    "type:drupal-profile"
    ],
    "web/themes/contrib/{$name}": [
    "type:drupal-theme"
    ],
    "drush/Commands/contrib/{$name}": [
    "type:drupal-drush"
    ],
    "web/modules/custom/{$name}": [
    "type:drupal-custom-module"
    ],
    "web/profiles/custom/{$name}": [
    "type:drupal-custom-profile"
    ],
    "web/themes/custom/{$name}": [
    "type:drupal-custom-theme"
    ]
    },
    "drupal-core-project-message": {
    "include-keys": [
    "homepage",
    "support"
    ],
    "post-create-project-cmd-message": [
    " ",
    " Congratulations, you’ve installed the Drupal codebase ",
    " from the drupal/recommended-project template! ",
    " ",
    "",
    "Next steps:",
    " * Install the site: https://www.drupal.org/docs/installing-drupal ",
    " * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html ",
    " * Get support: https://www.drupal.org/support ",
    " * Get involved with the Drupal community:",
    " https://www.drupal.org/getting-involved ",
    " * Remove the plugin that prints this message:",
    " composer remove drupal/core-project-message"
    ]
    }
    },
    "require-dev": {
    "cweagans/composer-patches": "^1.7"
    }
    }

  • “You have requested a non-existent service "theme.manager”.

    Some code in that site is not compatible with Drupal 10. Did you follow the official upgrade guide? It includes instructions for checking compatibility.

  • 🇮🇳India muthukris

    Yes, I did follow the drupal 9 to 10 official upgrade guide. Installed upgrade status module and fixed contrib module Incompatibility as per the upgrade status module instruction. though I fixed contrib compatibility issue, there was some unexpected compatibility issues while I ran the composer update.

  • Can you confirm you rebuild the container with drush cr or by running update.php?

    You should search the codebase for "theme.manager" as the problematic code will contain that string.

  • Status changed to Closed: outdated about 1 year ago
Production build 0.71.5 2024