- Issue created by @socalerich
- 🇮🇳India Shreya_98
We will get Drupal 10 version for this module by updating core_version_requirement in yml file.
- First commit to issue fork.
- Status changed to Needs review
over 1 year ago 1:03pm 10 August 2023 - 🇺🇸United States socalerich
Thanks for addressing this! I was successfully able to patch the dev version of the module and it did add the D10 version to info.yml, but I won't be able to use this until it gets merged into an update.
- 🇺🇸United States socalerich
I was able to use the Drupal Lenient plugin to allow downloading the dev version of the plugin with Composer. I then used your patch to patch the .yml file to allow for Drupal 10. I was successfully able to instll the module, but now when I go to actually use it on a field of one of my content types, I get this error:
Error: Call to undefined function render() in template_preprocess_hierarchical_term_formatter() (line 26 of modules/contrib/hierarchical_term_formatter/hierarchical_term_formatter.theme.inc). call_user_func_array('template_preprocess_hierarchical_term_formatter', Array) (Line: 285) Drupal\Core\Theme\ThemeManager->render('hierarchical_term_formatter', Array) (Line: 433) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204) Drupal\Core\Render\Renderer->render(Array) (Line: 477) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 79) __TwigTemplate_39dbe5e99910153f6ec373ccd2955309->doDisplay(Array, Array) (Line: 394) Twig\Template->displayWithErrorHandling(Array, Array) (Line: 367) Twig\Template->display(Array) (Line: 379) Twig\Template->render(Array, Array) (Line: 40) Twig\TemplateWrapper->render(Array) (Line: 53) twig_render_template('themes/custom/hercules/templates/field--node--resource-library.html.twig', Array) (Line: 372) Drupal\Core\Theme\ThemeManager->render('field', Array) (Line: 433) Drupal\Core\Render\Renderer->doRender(Array) (Line: 446) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204) Drupal\Core\Render\Renderer->render(Array) (Line: 477) Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 111) __TwigTemplate_986735d7250b7b5a2293d9419a4d746f->doDisplay(Array, Array) (Line: 394) Twig\Template->displayWithErrorHandling(Array, Array) (Line: 367) Twig\Template->display(Array) (Line: 379) Twig\Template->render(Array, Array) (Line: 40) Twig\TemplateWrapper->render(Array) (Line: 53) twig_render_template('themes/contrib/bootstrap/templates/node/node.html.twig', Array) (Line: 372) Drupal\Core\Theme\ThemeManager->render('node', Array) (Line: 433) Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204) Drupal\Core\Render\Renderer->render(Array, ) (Line: 238) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 239) Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 128) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object) call_user_func(Array, Object, 'kernel.view', Object) (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 168) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 692) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- 🇺🇸United States socalerich
So I used the patch from this issue and everything seems to work now.
https://www.drupal.org/project/hierarchical_term_formatter/issues/3287889 📌 Automated Drupal 10 compatibility fixes Fixed
- Status changed to Closed: duplicate
over 1 year ago 7:33pm 30 August 2023