I have the same problem with Drupal 10.2.2 and PHP 8.2.15.
carp-enter → created an issue.
Thanks @desierto and @ahmadhalah
#5 and #7 save my day.
Ubuntu and Apache2
carp-enter → created an issue.
Please don't ask me why, but now it works.
I didn't touch the composer.json anymore, only the updates that have occurred in the meantime were executed. M!16 now works for me too.
This is exactly how I proceeded, the MR!16 was also loaded. But it does not work.
I also moved the project to the staging environment, because pHP and database have a different version there. Also there it does not work.
@chike: I followed the advice, deleted the manually edited module and following the instructions "how to fix catch 22" installed the module with the composer in version dev-3331822-taxonomy-tree-once. Thanks for the tip.
The installation went without errors, I also checked the code of the new installation, everything correct.
Unfortunately the error is not fixed.
I downloaded the diff that can be found under the MR!16, swapped the 3 lines of code in the tree.js and traced the changes to the taxonomy_manager.libraries.yml.
Unfortunately it still does not work.
Solution at #6 is not working with Drupal 10.0.9, PHP 8.1.6 and MySQL 5.7.39
With the security update 10.0.8 the following files were updated:
- Upgrading drupal/core-composer-scaffold (10.0.7 => 10.0.8): Extracting archive
- Upgrading drupal/core-project-message (10.0.7 => 10.0.8): Extracting archive
- Upgrading wikimedia/composer-merge-plugin (v2.0.1 => v2.1.0): Extracting archive
- Upgrading phpstan/phpstan (1.10.13 => 1.10.14): Extracting archive
- Upgrading phpstan/extension-installer (1.2.0 => 1.3.0): Extracting archive
- Upgrading pear/pear-core-minimal (v1.10.11 => v1.10.13): Extracting archive
- Upgrading guzzlehttp/psr7 (2.4.4 => 2.4.5): Extracting archive
- Upgrading guzzlehttp/guzzle (7.5.0 => 7.5.1): Extracting archive
- Upgrading drupal/core (10.0.7 => 10.0.8): Extracting archive
- Upgrading phpspec/prophecy-phpunit (v2.0.1 => v2.0.2): Extracting archive
- Upgrading mglaman/phpstan-drupal (1.1.29 => 1.1.30): Extracting archive
- Upgrading drupal/coder (8.3.17 => 8.3.18): Extracting archive
- Upgrading drupal/core-dev (10.0.7 => 10.0.8)
- Upgrading drupal/core-recommended (10.0.7 => 10.0.8)
Patch 13 was also installed.
With the $last_katalog = \Drupal::service('current_route_match')->getParameter('katalog')
; you can read parameter of the actual route. In this Example I write the value of the parameter 'katalog' with a submit from a form:
$form_state->setRedirect('katalogsuche.generate', [
'katalog' => $form_state->getValue('kataloge'),
'katalognummern' => $form_state->getValue('katalognummern'),
]);
With
$last_katalog = \Drupal::service('current_route_match')->getParameter('katalog')
I read the value of the last submit outside the controller.
The error occurred in the following configuration.
Drupal 9.5.3, Client-side Hierarchical Select 4.0.0, PHP 8.1.11, Apache 2.4.46, MySQL 5.7.34
carp-enter → created an issue.