Adaptive theme child theme not compatible with drupal 10

Created on 16 April 2024, 2 months ago
Updated 24 April 2024, 2 months ago

I migrated to drupal 10 and the child theme of adaptive theme I used in drupal 8 and 9 is not working properly. The menu is not displaying at all and other parts are missing.

Are you sure there is no need to update child theme when you migrate to drupal 10?

🐛 Bug report
Status

Active

Version

5.3

Component

Theme Settings

Created by

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

Comments & Activities

  • Issue created by @tokosefi
  • when I enable it I get these errors

    The website encountered an unexpected error. Try again later.
    
    Twig\Error\SyntaxError: Unexpected "spaceless" tag (expecting closing tag for the "for" tag defined near line 28). in Twig\Parser->subparse() (line 31 of themes/radiestezija/templates/navigation/toolbar.html.twig).
    Twig\TokenParser\ForTokenParser->parse() (Line: 170)
    Twig\Parser->subparse() (Line: 83)
    Twig\Parser->parse() (Line: 490)
    Twig\Environment->parse() (Line: 518)
    Twig\Environment->compileSource() (Line: 131)
    Drupal\Core\Template\TwigEnvironment->compileSource() (Line: 350)
    Twig\Environment->loadTemplate() (Line: 312)
    Twig\Environment->load() (Line: 39)
    twig_render_template() (Line: 348)
    Drupal\Core\Theme\ThemeManager->render() (Line: 480)
    Drupal\Core\Render\Renderer->doRender() (Line: 493)
    Drupal\Core\Render\Renderer->doRender() (Line: 240)
    Drupal\Core\Render\Renderer->render() (Line: 475)
    Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 103)
    __TwigTemplate_8a7abf7970e86e62dced9c305c283572->doDisplay() (Line: 394)
    Twig\Template->displayWithErrorHandling() (Line: 367)
    Twig\Template->display() (Line: 379)
    Twig\Template->render() (Line: 38)
    Twig\TemplateWrapper->render() (Line: 39)
    twig_render_template() (Line: 348)
    Drupal\Core\Theme\ThemeManager->render() (Line: 480)
    Drupal\Core\Render\Renderer->doRender() (Line: 240)
    Drupal\Core\Render\Renderer->render() (Line: 158)
    Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 627)
    Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 153)
    Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
    Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
    call_user_func() (Line: 111)
    Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 186)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
    Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
    Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
    Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 106)
    Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
    Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
    Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
    Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
    Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
    Drupal\Core\DrupalKernel->handle() (Line: 19)
  • ican share my childtheme so somebody can look at it
    please help

  • i replaced all reoccurences of nameless tags, there were 4 files affected

    so now the theme shows up but the main menu block is not rendering and also the admin toolbar module is not showing dropdown

    and here are the errors....I updated all modules to latest in drupal 10

    Deprecated function: Creation of dynamic property Drupal\at_core\Layout\Layout::$layout_path is deprecated in Drupal\at_core\Layout\Layout->__construct() (line 27 of themes/contrib/adaptivetheme/at_core/src/Layout/Layout.php).
    Drupal\at_core\Layout\Layout->__construct('radiestezija', 'page-layout') (Line: 73)
    Drupal\at_core\Layout\LayoutCompatible->getCompatibleLayout() (Line: 64)
    at_tool_library_info_alter(Array, 'radiestezija', NULL) (Line: 545)
    Drupal\Core\Extension\ModuleHandler->alter('library_info', Array, 'radiestezija') (Line: 378)
    Drupal\Core\Asset\LibraryDiscoveryParser->parseLibraryInfo('radiestezija', 'themes/radiestezija') (Line: 130)
    Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension('radiestezija') (Line: 87)
    Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('radiestezija') (Line: 66)
    Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('radiestezija') (Line: 149)
    Drupal\Core\Cache\CacheCollector->get('radiestezija') (Line: 44)
    Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension('radiestezija') (Line: 81)
    at_core_page_attachments_alter(Array, NULL, NULL) (Line: 458)
    Drupal\Core\Theme\ThemeManager->alterForTheme(Object, 'page_attachments', Array, NULL, NULL) (Line: 467)
    Drupal\Core\Theme\ThemeManager->alter('page_attachments', Array) (Line: 320)
    Drupal\Core\Render\MainContent\HtmlRenderer->invokePageAttachmentHooks(Array) (Line: 285)
    Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 627)
    Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 284)
    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: 186)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
    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: 28)
    Drupal\Core\StackMiddleware\ContentLength->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: 36)
    Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
    Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
    Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

    and this

    Deprecated function: Creation of dynamic property Drupal\at_core\Layout\Layout::$layout_cid is deprecated in Drupal\at_core\Layout\Layout->__construct() (line 28 of themes/contrib/adaptivetheme/at_core/src/Layout/Layout.php).
    Drupal\at_core\Layout\Layout->__construct('radiestezija', 'page-layout') (Line: 73)
    Drupal\at_core\Layout\LayoutCompatible->getCompatibleLayout() (Line: 64)
    at_tool_library_info_alter(Array, 'radiestezija', NULL) (Line: 545)
    Drupal\Core\Extension\ModuleHandler->alter('library_info', Array, 'radiestezija') (Line: 378)
    Drupal\Core\Asset\LibraryDiscoveryParser->parseLibraryInfo('radiestezija', 'themes/radiestezija') (Line: 130)
    Drupal\Core\Asset\LibraryDiscoveryParser->buildByExtension('radiestezija') (Line: 87)
    Drupal\Core\Asset\LibraryDiscoveryCollector->getLibraryDefinitions('radiestezija') (Line: 66)
    Drupal\Core\Asset\LibraryDiscoveryCollector->resolveCacheMiss('radiestezija') (Line: 149)
    Drupal\Core\Cache\CacheCollector->get('radiestezija') (Line: 44)
    Drupal\Core\Asset\LibraryDiscovery->getLibrariesByExtension('radiestezija') (Line: 81)
    at_core_page_attachments_alter(Array, NULL, NULL) (Line: 458)
    Drupal\Core\Theme\ThemeManager->alterForTheme(Object, 'page_attachments', Array, NULL, NULL) (Line: 467)
    Drupal\Core\Theme\ThemeManager->alter('page_attachments', Array) (Line: 320)
    Drupal\Core\Render\MainContent\HtmlRenderer->invokePageAttachmentHooks(Array) (Line: 285)
    Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 627)
    Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 284)
    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: 186)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
    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: 28)
    Drupal\Core\StackMiddleware\ContentLength->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: 36)
    Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
    Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
    Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

    CAN SOMEBODY HELP PLEASE I am stuck with all my sites

  • 🇮🇳India ravi kant Jaipur

    @tokosefi
    Have you updated the base theme before update sub-theme?

  • but I want to switch to adaptive theme 1 not 2

  • I even tried to generate a new subtheme

    and I uninstalled both modules again that I use composer to install

    and I manually put the modules under /theme and /modules

    I generated a new theme and I get same errors and admin menu is missing and also main menu is missing in the theme plus I get these errors

    Deprecated function: Creation of dynamic property Drupal\at_core\Layout\Layout::$layout_path is deprecated in Drupal\at_core\Layout\Layout->__construct() (line 27 of themes/adaptivetheme/at_core/src/Layout/Layout.php).
    Drupal\at_core\Layout\Layout->__construct('radies', 'page-layout') (Line: 73)
    Drupal\at_core\Layout\LayoutCompatible->getCompatibleLayout() (Line: 39)
    Drupal\at_core\Layout\LayoutLoad->__construct('radies', Array) (Line: 334)
    at_core_preprocess_page(Array, 'page', Array)
    call_user_func_array('at_core_preprocess_page', Array) (Line: 261)
    Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 480)
    Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 240)
    Drupal\Core\Render\Renderer->render(Array) (Line: 475)
    Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 107)
    __TwigTemplate_10d9620d8bf1c192a8e6d0e3ac2e18a9->doDisplay(Array, Array) (Line: 394)
    Twig\Template->displayWithErrorHandling(Array, Array) (Line: 367)
    Twig\Template->display(Array) (Line: 379)
    Twig\Template->render(Array) (Line: 38)
    Twig\TemplateWrapper->render(Array) (Line: 39)
    twig_render_template('themes/adaptivetheme/at_core/templates/layout/html.html.twig', Array) (Line: 348)
    Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 480)
    Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 240)
    Drupal\Core\Render\Renderer->render(Array) (Line: 158)
    Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 627)
    Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 153)
    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: 186)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
    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: 28)
    Drupal\Core\StackMiddleware\ContentLength->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: 36)
    Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
    Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
    Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
  • PEOPLE I DO NOT RECOMMEND USING VERSION 10...it is BUGGY.....i tried several scenarios.....i get errors....blocks not showing up....
    I THINK IT IS TIME WE FIND ANOTHER THEME because the maintainers cant fix the code....and seems the support is not that active here

  • 🇺🇸United States bobburns

    @tokosefi

    I use it and it works. There is a patch for the $layout_path is deprecated etc it is

    protected $layout_path;

    et cetera for any deprecation that shows up. See eg https://www.drupal.org/project/adaptivetheme/issues/3440936 🐛 Deprecated function (still) RTBC

    Use the project/adaptivetheme and at_tool NOT project/at_theme and at_tools - that is not maintained - notice the "s"

    Notice adapative theme is now at 6.0 and at_tool is 3.0

    There are two adaptive theme projects and if you mix them you get the issues you describe

    Install the proper ones then generate a new theme by slightly changing the name and abandon the old theme, uninstall it and delete it from your files

  • but I did I installed adaptive theme 1 and at tool
    do my files point to at_theme?

    I am really confused by this theme, it is the most bug infested module ever...

    i generated new subtheme but the main menu is missing and also the top menu where admin toolbad menu is.... so it is a complete mess

Production build 0.69.0 2024