🇮🇳India @sandyjain

Account created on 26 May 2015, about 9 years ago
#

Recent comments

🇮🇳India sandyjain

Hi @cilefen,

I missed updating here, but it is now fixed because of "composer/installers", It got removed withthe composer update command but then I manually added this and it worked for me.
Thank you for your help. Much appreciated.

🇮🇳India sandyjain

Hi,

This is what my composer looks like with working D9 (without any error). And upgrade status is 100% compatible
------------------

{
"name": "pantheon-upstreams/drupal-composer-managed",
"description": "Install Drupal 9 with Composer on Pantheon.",
"type": "project",
"license": "MIT",
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "path",
"url": "upstream-configuration"
}
],
"require": {
"drupal/admin_toolbar": "^3.0",
"drupal/adminimal_theme": "1.7",
"drupal/anchor_link": "^2.5",
"drupal/asset_injector": "^2.8",
"drupal/block_content_template": "^1.4",
"drupal/bootstrap4": "3.0.5",
"drupal/ckeditor_accordion": "2.0",
"drupal/ckeditor_bs_grid": "^2.0",
"drupal/ckeditor_div_manager": "2.1",
"drupal/ckeditor_font": "^1.2",
"drupal/ckeditor_resize": "^1.6",
"drupal/ckwordcount": "^2.0",
"drupal/colorbutton": "^1.3",
"drupal/config_pages": "^2.9",
"drupal/core-composer-scaffold": "9.5.11",
"drupal/core-project-message": "9.5.11",
"drupal/core-recommended": "9.5.11",
"drupal/ctools": "^3.7",
"drupal/draggableviews": "^2.0",
"drupal/easy_breadcrumb": "^2.0",
"drupal/entity_reference_revisions": "^1.9",
"drupal/entity_reference_views_select": "^1.4",
"drupal/extlink": "^1.6",
"drupal/fakeobjects": "^1.1",
"drupal/features": "3.13",
"drupal/feeds": "^3.0",
"drupal/feeds_ex": "^1.0",
"drupal/feeds_tamper": "^2.0",
"drupal/field_group": "^3.2",
"drupal/fontawesome": "^2.19",
"drupal/fontawesome_menu_icons": "2.0",
"drupal/fontyourface": "4.0",
"drupal/google_tag": "^1.4",
"drupal/jquery_ui_accordion": "2.0",
"drupal/layout_builder_styles": "2.0",
"drupal/lazy": "3.12",
"drupal/link_attributes": "^1.11",
"drupal/masquerade": "^2.0",
"drupal/media_library_form_element": "^2.0",
"drupal/media_library_theme_reset": "^1.1",
"drupal/menu_item_extras": "^2.16",
"drupal/metatag": "^2.0",
"drupal/notification": "^1.1",
"drupal/panelbutton": "^1.4",
"drupal/paragraphs": "^1.12",
"drupal/paragraphs_table": "^1.20",
"drupal/pathauto": "^1.8",
"drupal/permissions_filter": "1.3",
"drupal/redirect": "^1.6",
"drupal/redis": "^1.5",
"drupal/seeds_toolbar": "^2.0",
"drupal/shield": "^1.5",
"drupal/simple_sitemap": "^4.1",
"drupal/siteimprove": "2.0",
"drupal/stable": "2.0",
"drupal/tamper": "^1.0",
"drupal/token": "^1.12",
"drupal/twig_tweak": "3.2",
"drupal/ultimenu": "^2.3",
"drupal/upgrade_status": "4.0",
"drupal/video_embed_field": "^2.4",
"drupal/views_bulk_operations": "^4.1",
"drupal/views_year_filter": "^2.1",
"drupal/youtube": "^2.0",
"drush/drush": "~11.0",
"kint-php/kint": "^4.1",
"pantheon-systems/drupal-integrations": "^9 || ^10",
"pantheon-upstreams/upstream-configuration": "dev-main",
"phpoffice/phpspreadsheet": "^1.24",
"phpseclib/phpseclib": "^3.0"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"installer-paths": {
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library"
],
"web/modules/composer/{$name}": [
"type:drupal-module"
],
"web/profiles/composer/{$name}": [
"type:drupal-profile"
],
"web/themes/composer/{$name}": [
"type:drupal-theme"
],
"drush/Commands/contrib/{$name}": [
"type:drupal-drush"
],
"web/private/scripts/quicksilver/{$name}/": [
"type:quicksilver-script"
]
},
"composer-exit-on-patch-failure": true,
"patchLevel": {
"drupal/core": "-p2"
},
"drupal-scaffold": {
"allowed-packages": [
"pantheon-systems/drupal-integrations"
],
"locations": {
"web-root": "./web"
},
"file-mapping": {
"[project-root]/.editorconfig": false,
"[project-root]/pantheon.upstream.yml": false,
"[project-root]/.gitattributes": false,
"[web-root]/robots.txt": {
"append": "web/my-robots-additions.txt"
}
}
},
"patches": {
"drupal/metatag": {
"Feeds Integration (8.x)": " https://www.drupal.org/files/issues/2020-09-29/feeds-integration-3011202... ",
"Metatag Update 8109": "patches/custom/metatag_8109.patch"
}
},
"enable-patching" : true
},
"autoload": {
"classmap": [
"upstream-configuration/scripts/ComposerScripts.php"
]
},
"scripts": {
"pre-update-cmd": [
"DrupalComposerManaged\\ComposerScripts::preUpdate"
],
"post-update-cmd": [
"DrupalComposerManaged\\ComposerScripts::postUpdate"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"platform": {
"php": "8.1.0"
},
"allow-plugins": {
"composer/installers": true,
"cweagans/composer-patches": true,
"drupal/core-composer-scaffold": true,
"zaporylie/composer-drupal-optimizations": true,
"drupal/core-project-message": true,
"drupal/console-extend-plugin": true
}
}
}
------------------------

composer -V
Composer version 2.6.2 2023-09-03 14:09:15

🇮🇳India sandyjain

Hi,

"composer install" successfully runs but the core folder is not generated. Although, earlier core/lib/Drupal.php was showing const VERSION = '9.5.11'

🇮🇳India sandyjain

@larowlan,

It's after the update. But I doubt the core has been updated to D10.

🇮🇳India sandyjain

Hi @catch,

No there is not a single code that contains this "EntityBundleAccessCheck" in my custom/contrib folder.

Only these 3 files have -
\web\core\core.services.yml
\web\core\tests\Drupal\Tests\Core\Entity\EntityBundleAccessCheckTest.php
\web\core\lib\Drupal\Core\Entity\EntityBundleAccessCheck.php

🇮🇳India sandyjain

This is my composer.json

{
"name": "pantheon-upstreams/drupal-composer-managed",
"description": "Install Drupal 9 with Composer on Pantheon.",
"type": "project",
"license": "MIT",
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "path",
"url": "upstream-configuration"
}
],
"require": {
"drupal/admin_toolbar": "^3.0",
"drupal/adminimal_theme": "1.7",
"drupal/anchor_link": "^2.5",
"drupal/asset_injector": "^2.8",
"drupal/block_content_template": "^1.4",
"drupal/bootstrap4": "3.0.5",
"drupal/ckeditor_accordion": "2.0",
"drupal/ckeditor_bs_grid": "^2.0",
"drupal/ckeditor_div_manager": "2.1",
"drupal/ckeditor_font": "^1.2",
"drupal/ckeditor_resize": "^1.6",
"drupal/ckwordcount": "^2.0",
"drupal/colorbutton": "^1.3",
"drupal/config_pages": "^2.9",
"drupal/core-composer-scaffold": "10.1.4",
"drupal/core-project-message": "10.1.4",
"drupal/core-recommended": "10.1.4",
"drupal/ctools": "^3.7",
"drupal/draggableviews": "^2.0",
"drupal/easy_breadcrumb": "^2.0",
"drupal/entity_reference_revisions": "^1.9",
"drupal/entity_reference_views_select": "^1.4",
"drupal/extlink": "^1.6",
"drupal/fakeobjects": "^1.1",
"drupal/features": "3.13",
"drupal/feeds": "^3.0",
"drupal/feeds_ex": "^1.0",
"drupal/feeds_tamper": "^2.0",
"drupal/field_group": "^3.2",
"drupal/fontawesome": "^2.19",
"drupal/fontawesome_menu_icons": "2.0",
"drupal/fontyourface": "4.0",
"drupal/google_tag": "^1.4",
"drupal/jquery_ui_accordion": "2.0",
"drupal/layout_builder_styles": "2.0",
"drupal/lazy": "3.12",
"drupal/link_attributes": "^1.11",
"drupal/masquerade": "^2.0",
"drupal/media_library_form_element": "^2.0",
"drupal/media_library_theme_reset": "^1.1",
"drupal/menu_item_extras": "^2.16",
"drupal/metatag": "^2.0",
"drupal/notification": "^1.1",
"drupal/panelbutton": "^1.4",
"drupal/paragraphs": "^1.12",
"drupal/paragraphs_table": "^1.20",
"drupal/pathauto": "^1.8",
"drupal/permissions_filter": "1.3",
"drupal/redirect": "^1.6",
"drupal/redis": "^1.5",
"drupal/seeds_toolbar": "^2.0",
"drupal/shield": "^1.5",
"drupal/simple_sitemap": "^4.1",
"drupal/siteimprove": "2.0",
"drupal/stable": "2.0",
"drupal/tamper": "^1.0",
"drupal/token": "^1.12",
"drupal/twig_tweak": "3.2",
"drupal/ultimenu": "^2.3",
"drupal/upgrade_status": "4.0",
"drupal/video_embed_field": "^2.4",
"drupal/views_bulk_operations": "^4.1",
"drupal/views_year_filter": "^2.1",
"drupal/youtube": "^2.0",
"drush/drush": "~11.0",
"kint-php/kint": "^4.1",
"pantheon-systems/drupal-integrations": "^9 || ^10",
"pantheon-upstreams/upstream-configuration": "dev-main",
"phpoffice/phpspreadsheet": "^1.24",
"phpseclib/phpseclib": "^3.0"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"installer-paths": {
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library"
],
"web/modules/composer/{$name}": [
"type:drupal-module"
],
"web/profiles/composer/{$name}": [
"type:drupal-profile"
],
"web/themes/composer/{$name}": [
"type:drupal-theme"
],
"drush/Commands/contrib/{$name}": [
"type:drupal-drush"
],
"web/private/scripts/quicksilver/{$name}/": [
"type:quicksilver-script"
]
},
"composer-exit-on-patch-failure": true,
"patchLevel": {
"drupal/core": "-p2"
},
"drupal-scaffold": {
"allowed-packages": [
"pantheon-systems/drupal-integrations"
],
"locations": {
"web-root": "./web"
},
"file-mapping": {
"[project-root]/.editorconfig": false,
"[project-root]/pantheon.upstream.yml": false,
"[project-root]/.gitattributes": false,
"[web-root]/robots.txt": {
"append": "web/my-robots-additions.txt"
}
}
},
"patches": {
"drupal/metatag": {
"Feeds Integration (8.x)": " https://www.drupal.org/files/issues/2020-09-29/feeds-integration-3011202... ",
"Metatag Update 8109": "patches/custom/metatag_8109.patch"
}
},
"enable-patching" : true
},
"autoload": {
"classmap": [
"upstream-configuration/scripts/ComposerScripts.php"
]
},
"scripts": {
"pre-update-cmd": [
"DrupalComposerManaged\\ComposerScripts::preUpdate"
],
"post-update-cmd": [
"DrupalComposerManaged\\ComposerScripts::postUpdate"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"platform": {
"php": "8.1.0"
},
"allow-plugins": {
"composer/installers": true,
"cweagans/composer-patches": true,
"drupal/core-composer-scaffold": true,
"zaporylie/composer-drupal-optimizations": true,
"drupal/core-project-message": true,
"drupal/console-extend-plugin": true,
"phpstan/extension-installer": true
}
}
}

🇮🇳India sandyjain

I have tried these but those are also giving errors-


vendor/bin/drush cr

[warning] class_implements(): Class Drupal\Core\Entity\EntityBundleAccessCheck does not exist and could not be loaded RegisterAccessChecksPass.php:43

Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, bool given in C:\xampp\htdocs\wilmington\plc-d9-wilmington\vendor\drupal\core\lib\Drupal\Core\DependencyInjection\Compiler\RegisterAccessChecksPass.php:43

vendor/bin/drush updb

Fatal error: Declaration of Drupal\dblog\Logger\DbLog::log($level, $message, array $context = []) must be compatible with Drupal\Core\Logger\RfcLoggerTrait::log($level, Stringable|string $message, array $context = []): void in C:\xampp\htdocs\wilmington\plc-d9-wilmington\web\core\modules\dblog\src\Logger\DbLog.php on line 55
[warning] Drush command terminated abnormally.

🇮🇳India sandyjain

Hi @larowlan,
Thanks for correcting the issue category.

When I ran "composer remove drupal/console" it got removed but after that it if I run - "composer require drupal/core-recommended:10.0.11 drupal/core-composer-scaffold:10.0.11 drupal/core-project-message:10.0.11 --update-with-all-dependencies"
It successfully run but on frontend it is showing this error.

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 /code/vendor/drupal/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterAccessChecksPass.php).
Drupal\Core\DependencyInjection\Compiler\RegisterAccessChecksPass->process(Object) (Line: 73)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object) (Line: 721)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1318)
Drupal\Core\DrupalKernel->compileContainer() (Line: 922)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 20)
Drupal\Core\Installer\InstallerKernel->initializeContainer() (Line: 482)
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 /code/vendor/drupal/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: 198)
_drupal_exception_handler_additional(Object, Object) (Line: 180)
_drupal_exception_handler(Object)
Original
TypeError: in_array(): Argument #2 ($haystack) must be of type array, bool given in in_array() (line 43 of /code/vendor/drupal/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: 73)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object) (Line: 721)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1318)
Drupal\Core\DrupalKernel->compileContainer() (Line: 922)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 20)
Drupal\Core\Installer\InstallerKernel->initializeContainer() (Line: 482)
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 /code/vendor/drupal/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: 199)
_drupal_exception_handler_additional(Object, Object) (Line: 180)
_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 935 of /code/vendor/symfony/dependency-injection/ContainerBuilder.php).

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

Production build 0.69.0 2024