πŸ‡ΊπŸ‡ΈUnited States @jeffery.grantham

Account created on 22 April 2021, about 3 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States jeffery.grantham

I should've already closed this issue. Using the composer syntax "composer reinstall drupal/core" resolved this issue for me. If you still have this issue, try creating a new codebase installation and moving your "sites" folder into it. You should be able to use your composer.json from the existing codebase in the new one followed by a simple "composer update" command to create the new copy.

πŸ‡ΊπŸ‡ΈUnited States jeffery.grantham

I was able to resolve my issue without the codebase patch in the end. I had to reinstall a couple of packages.

composer reinstall symfony/psr-http-message-bridge psr/log

Once the packages were reinstalled, I was able to complete the original task.

πŸ‡ΊπŸ‡ΈUnited States jeffery.grantham

Global packages shouldn't be an issue, as I was able to update all sites that I manage but this one site to D10 from D9. After removing all the global packages and being sure that no ~/.config/composer folder is left behind to potentially confuse the server.

πŸ‡ΊπŸ‡ΈUnited States jeffery.grantham

Longwave - Your comments did remind me that I've got a few globally installed packages via composer global require. I'm going through my configuration now to be sure I don't have another version of PSR Log installed.

cilefen - Yes, I read it.

πŸ‡ΊπŸ‡ΈUnited States jeffery.grantham

Unfortunately, that is not the case. Please see the included composer show psr/log output.

name     : psr/log
descrip. : Common interface for logging libraries
keywords : log, psr, psr-3
versions : * 3.0.0
type     : library
license  : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
homepage : https://github.com/php-fig/log
source   : [git] https://github.com/php-fig/log.git fe5ea303b0887d5caefd3d431c3e61ad47037001
dist     : [zip] https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001 fe5ea303b0887d5caefd3d431c3e61ad47037001
path     : /var/www/html/magnolia/vendor/psr/log
names    : psr/log

support
source : https://github.com/php-fig/log/tree/3.0.0

autoload
psr-4
Psr\Log\ => src

requires
php >=8.0.0
πŸ‡ΊπŸ‡ΈUnited States jeffery.grantham

Yes, drupal/core-recommended is part of the project. Here is the composer show drupal/core-recommended output.

name     : drupal/core-recommended
descrip. : Core and its dependencies with known-compatible minor versions. Require this project INSTEAD OF drupal/core.
keywords :
versions : * 10.1.5
type     : metapackage
license  : GNU General Public License v2.0 or later (GPL-2.0-or-later) (OSI approved) https://spdx.org/licenses/GPL-2.0-or-later.html#licenseText
homepage :
source   : [git] https://github.com/drupal/core-recommended.git 2c5cf420ddb06f3e9b624d168b724ca1c7c326e2
dist     : [zip] https://api.github.com/repos/drupal/core-recommended/zipball/2c5cf420ddb06f3e9b624d168b724ca1c7c326e2 2c5cf420ddb06f3e9b624d168b724ca1c7c326e2
path     : null
names    : drupal/core-recommended

support
source : https://github.com/drupal/core-recommended/tree/10.1.5

requires
asm89/stack-cors ~v2.1.1
composer/semver ~3.3.2
doctrine/annotations ~1.14.3
doctrine/deprecations ~v1.1.1
doctrine/lexer ~2.1.0
drupal/core 10.1.5
egulias/email-validator ~4.0.1
guzzlehttp/guzzle ~7.7.0
guzzlehttp/psr7 ~2.5.0
masterminds/html5 ~2.8.0
mck89/peast ~v1.15.4
pear/archive_tar ~1.4.14
pear/console_getopt ~v1.4.3
pear/pear-core-minimal ~v1.10.13
pear/pear_exception ~v1.0.2
psr/cache ~3.0.0
psr/container ~2.0.2
psr/event-dispatcher ~1.0.0
psr/http-client ~1.0.2
psr/http-factory ~1.0.2
psr/log ~3.0.0
ralouphie/getallheaders ~3.0.3
sebastian/diff ~4.0.5
symfony/console ~v6.3.0
symfony/dependency-injection ~v6.3.0
symfony/deprecation-contracts ~v3.3.0
symfony/error-handler ~v6.3.0
symfony/event-dispatcher ~v6.3.0
symfony/event-dispatcher-contracts ~v3.3.0
symfony/http-foundation ~v6.3.0
symfony/http-kernel ~v6.3.0
symfony/mime ~v6.3.0
symfony/polyfill-ctype ~v1.27.0
symfony/polyfill-iconv ~v1.27.0
symfony/polyfill-intl-grapheme ~v1.27.0
symfony/polyfill-intl-idn ~v1.27.0
symfony/polyfill-intl-normalizer ~v1.27.0
symfony/polyfill-mbstring ~v1.27.0
symfony/polyfill-php83 ~v1.27.0
symfony/process ~v6.3.0
symfony/psr-http-message-bridge ~v2.2.0
symfony/routing ~v6.3.0
symfony/serializer ~v6.3.0
symfony/service-contracts ~v3.3.0
symfony/string ~v6.3.0
symfony/translation-contracts ~v3.3.0
symfony/validator ~v6.3.0
symfony/var-dumper ~v6.3.0
symfony/var-exporter ~v6.3.0
symfony/yaml ~v6.3.0
twig/twig ~v3.6.0

conflicts
webflo/drupal-core-strict *
πŸ‡ΊπŸ‡ΈUnited States jeffery.grantham

I get a result of 500 (internal server error) in the view that uses this module.

Uncaught 
Object { message: "\nAn AJAX HTTP error occurred.\nHTTP Result Code: 500\nDebugging information follows.\nPath: /admin/structure/views/view/directory_of_services/preview/keywords_search\nStatusText: 500 Service unavailable (with message)\nResponseText: The website encountered an unexpected error. Please try again later.", name: "AjaxError", stack: "@https://www.example.com/core/misc/ajax.js?v=10.1.5:196:32\n@https://www.example.com/core/misc/ajax.js?v=10.1.5:1889:3\n" }
ajax.js:196:32

Any and all help is appreciated.

πŸ‡ΊπŸ‡ΈUnited States jeffery.grantham

I was able to resolve the issue by making a small and direct change to the LoggerChannel.php file in core. Attached is the patch generated. The change simply updated the calls to match PSR.

πŸ‡ΊπŸ‡ΈUnited States jeffery.grantham

@cilefen I'm calling drush from the project's top-level directory. vendor/bin/drush -l foldername cr The issue is not drush itself, but the fact that the logger keeps throwing a PHP fatal error that prevents anything else from happening.

πŸ‡ΊπŸ‡ΈUnited States jeffery.grantham

My own operating environment is using CentOS 7 with PHP 8.1 and httpd (apache). I did not have a module installed for php-psr so I'm still stuck. Here's my related forum post.

https://www.drupal.org/forum/support/upgrading-drupal/2023-10-24/upgrade... β†’

On the forum post, you'll find my composer.json file's contents.

Production build 0.69.0 2024