Generated theme isn't compatible with 10

Created on 23 April 2023, about 1 year ago
Updated 29 April 2024, about 2 months ago

Problem/Motivation

When I installed this in a new build of Drupal 10.0.8, I first got this error building a subtheme. Then it turned out that the subtheme wasn't compatible with 10. This didn't make sense to me because both the base theme and the AT Tool module are said to be compatible with 10. What did I do wrong?

Error message
Deprecated function: file_get_contents(): Passing null to parameter #2 ($use_include_path) of type bool is deprecated in Drupal\at_theme_generator\Theme\ThemeGenerator->rewritePageLayoutCSS() (line 340 of modules/contrib/at_tool/at_theme_generator/src/Theme/ThemeGenerator.php).
Drupal\at_theme_generator\Theme\ThemeGenerator->rewritePageLayoutCSS() (Line: 47)
Drupal\at_theme_generator\Theme\ThemeGeneratorTypes->starterkitGenerator() (Line: 422)
Drupal\at_theme_generator\Form\GeneratorForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 595)
Drupal\Core\Form\FormBuilder->processForm('at_generator_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 163)
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: 686)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

5.1

Component

Theme Generator (dep, see AT Tools module)

Created by

🇺🇸United States bogdog400

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

Comments & Activities

  • Issue created by @bogdog400
  • First commit to issue fork.
  • 🇩🇰Denmark Uv516 Denmark

    I have problems too. I haven't got any error, but the sub themes can not see at_core, and the sub themes "are not" combatible with Drupal 10.
    Solution:
    1) Install theme Stable [composer require 'drupal/stable:^2.0']
    2) Don't activate Stable
    3) Create sub theme with AT Theme Generator
    4) The sub theme has core_version_requirement: '^8 || ^9'. Edit the line to core_version_requirement: '^8 || ^9 || ^10'
    That's how far I've come to solve the problem.

    See https://www.drupal.org/project/adaptivetheme/issues/3331762 💬 Not able to install a subtheme in Drupal 10 Active

  • First commit to issue fork.
  • @sakthi_dev opened merge request.
  • Status changed to Needs review about 1 year ago
  • 🇮🇳India sakthi_dev

    Please review.

  • 🇨🇦Canada MarcPare

    I have applied Uv516 suggestion to my Adaptive sub theme on the latest Drupal 10.1.2 installation.

    The line to modify can be found in the sub theme folder --> file "[subthemename_theme.info.yml" It works!

    It would be nice if there was a patch for this as straight out of the box, it does not look like Adaptive Theme supports the latest Drupal 10.1.2

    Great base theme!

  • 🇬🇧United Kingdom Peter Buchanan

    I've been very happy using the adaptive theme for all my web sites, is there a planned date when it will work with Drupal 10? If not can anyone recommend an alternative theme?

  • i am in same trouble ...used adaptive theme for all my site now I cant update to 10

  • Status changed to Fixed 2 months ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • HOW CAN IT BE FIXED IF THE GENERATED THEME FROM DRUPAL 9 HAS THE CODE THAT IS NO COMPATIBLE WITH DRUPAL 10``` HOW CAN YOU CLAIM ISSUE IS FIXED?

Production build 0.69.0 2024