AT Theme generator - error: GeneratorForm.php,

Created on 1 March 2024, 4 months ago
Updated 20 June 2024, 8 days ago

Hello I have problem to run AT THEME Generator.

My theme, module, PHP

AdaptiveTheme - 8.x-5.2
AT Tool 2.0 - 2.0.4
Drupal - 10.2.3
PHP - 8.2.15

Install this

Stable 2.0.0 - composer require 'drupal/stable:^2.0'
Classy 1.0.2 - I think I dont need it - composer require 'drupal/classy:^1.0'
AT Tool 2.0: v 2.0.4. : composer require 'drupal/at_tool:^2.0'
Composer automatic install adaptivetheme 5.2.0

Applied this patch comment 6
https://www.drupal.org/project/at_tool/issues/3416105#comment-15437381 🐛 Theme "at_tools" missing RTBC

Get this error in appearance after clearing cache:

Warning: include("my site path"/modules/at_tool/at_theme_generator/src/Form/GeneratorForm.php): Failed to open stream: No such file or directory in include() (line 576 of vendor/composer/ClassLoader.php).
Warning: include("my site path"/modules/at_tool/at_theme_generator/src/Form/GeneratorForm.php): Failed to open stream: No such file or directory in include() (line 576 of vendor/composer/ClassLoader.php).
Warning: include(): Failed opening '"my site path"/modules/at_tool/at_theme_generator/src/Form/GeneratorForm.php' for inclusion (include_path='"my site path"/vendor/pear/archive_tar:"my site path""my site path"/vendor/pear/pear-core-minimal/src:"my site path"/vendor/pear/pear_exception:.:/usr/share/php') in include() (line 576 of vendor/composer/ClassLoader.php).
Warning: include("my site path"/modules/at_tool/at_theme_generator/src/Form/GeneratorForm.php): Failed to open stream: No such file or directory in include() (line 576 of vendor/composer/ClassLoader.php).
Warning: include("my site path"/modules/at_tool/at_theme_generator/src/Form/GeneratorForm.php): Failed to open stream: No such file or directory in include() (line 576 of vendor/composer/ClassLoader.php).
Warning: include(): Failed opening '"my site path"/modules/at_tool/at_theme_generator/src/Form/GeneratorForm.php' for inclusion (include_path='"my site path"/vendor/pear/archive_tar:"my site path"/vendor/pear/console_getopt:"my site path"/vendor/pear/pear-core-minimal/src:"my site path"/vendor/pear/pear_exception:.:/usr/share/php') in include() (line 576 of vendor/composer/ClassLoader.php).

After click on AT Theme generator in appearance get WSOD with this error

The website encountered an unexpected error. Try again later.

InvalidArgumentException: Class "\Drupal\at_theme_generator\Form\GeneratorForm" does not exist. in Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition() (line 24 of core/lib/Drupal/Core/DependencyInjection/ClassResolver.php).

Drupal\Core\Controller\HtmlFormController->getFormObject(Object, '\Drupal\at_theme_generator\Form\GeneratorForm') (Line: 58)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
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: 32)
Drupal\big_pipe\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)

Please help. Thank you.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇸🇰Slovakia voloda86

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

Comments & Activities

  • Issue created by @voloda86
  • Issue was unassigned.
  • 🇧🇪Belgium EricVL

    Did you first uninstalled the module before you applied the path and then installed the module again?
    Maybe a stupid question but never the less...

  • 🇸🇰Slovakia voloda86
    • I uninstall module in UI, next remove it with composer.
    • Than install with composser (composer require 'drupal/at_tool:^2.0')
    • enable in UI.
    • Than apply the patch.

    Try to use your idea:

    • I uninstall module in UI, next remove it with composer.
    • Than install with composser (composer require 'drupal/at_tool:^2.0')
    • apply patch: https://www.drupal.org/project/at_tool/issues/3416105#comment-15437381 🐛 Theme "at_tools" missing RTBC
    • Enable At tools and AT Theme generator in UI

    Getting the same errors.

  • 🇮🇳India rushiraval

    @voloda86

    Please following step. It working fine for me

    Install

    • composer require drupal/stable:^2.0
    • composer require 'drupal/at_tool:^2.0'

    This will install

    • drupal/stable (2.0.0)
    • drupal/adaptivetheme (5.4.0)
    • drupal/at_tool (2.0.5)

    then Enable AT Tool and AT Theme Generator from UI.

    It works fine for me for on Drupal : 10.2.5 ( PHP : 8.2.7)

  • we need a better developer MattBloomfelt I think has no idea what is going on

Production build 0.69.0 2024