- Issue created by @uv516
If you turn off your sites Aggregate JavaScript files in Performance it shoudl go back to normal
- ๐ฉ๐ฐDenmark uv516 Denmark
When I disable "Aggregate JavaScript files",the problem persists.
When I disable "Aggregate CSS files", the problem is gone!The "Aggregate JavaScript files" can be disabled or enabled: No effect on the problem.
isn't that a pretty significant problem?
- ๐ฎ๐ณIndia abhijeetsatpute
I faced a similar issue today in different file while upgrading from Drupal 9.5.11 to Drupal 10.1.6
Class "Drupal\\at_core\\Theme\\ThemeConfig" not found" at web/themes/contrib/adaptivetheme/at_core/includes/preprocess.inc at line 27
I had uninstalled at_tool โ module
For me it is resolved after installing the module. - ๐ฎ๐ณIndia abhijeetsatpute
I faced this issue today after upgrading to Drupal 10.1.6
Class "Drupal\\at_core\\Theme\\ThemeConfig" not found" at web/themes/contrib/adaptivetheme/at_core/includes/preprocess.inc on line no. 27.
I had uninstalled at_tool โ module.
For me it fixed after installing at_tool. - First commit to issue fork.
- ๐บ๐ธUnited States snowmountain
I also encountered this same situation. The home page had WSOD.
This happened after creating an example PayPal payment method.
Disabling css and js aggregation, then clearing cache, did not fix.
Disabling at_tool and at_theme_generator did fix.After re-enabling at_tool, the WSOD was still fixed. (AT theme generator was not re-enabled since it was no longer needed.)
Drupal version ..... 10.2.6
PHP version ............ 8.1.28
at_tool ................... 3.1.2
at_theme_generator 3.1.2
commerce_paypal .. 8.x-1.7
commerce ............. 8.x-2.39Error: Class "Drupal\at_core\Theme\ThemeConfig" not found in at_core_preprocess() (line 27 of .../adaptivetheme/at_core/includes/preprocess.inc).
- ๐ฉ๐ชGermany Christian.wiedemann
Christian.wiedemann โ made their first commit to this issueโs fork.
- Merge request !12Remove unused ThemeExtensionList import to fix class loading error during js aggregation. โ (Open) created by Christian.wiedemann
- ๐ฉ๐ชGermany Christian.wiedemann
Christian.wiedemann โ changed the visibility of the branch 3389969- to hidden.
- Status changed to Needs review
10 months ago 1:27pm 5 August 2024 - ๐ฉ๐ชGermany Christian.wiedemann
Hi, after some diggin I found that the unused use Statment leads to the class not found exception during js aggregation.
- ๐บ๐ธUnited States hpcalaf
One of our sites is experiencing a similar error on a regular intermittent basis. It results in the message "Website encountered error . . ." message
Versions
Drupal 10.4.6
PHP 8.2.28
AT_Tool 3.1.2
AT_Theme/AT_Core 7.1.1Hosting
Pantheon - (Test and Live Environment)We have observed this using a previous deprecated version of AT_Tool/AdaptiveTheme for over a year on Pantheon, but not in other environments and thought that this intermittently happening was as a result of the deprecated version.
Recently finding new versions of the AT_Tool/AdaptiveTheme we have upgraded to the latest 3.1.2/7.1.1 versions (previous running 2.0/5.1), but are now still seeing the error, but only under a very precise condition.
We use lando as a local development environment. In working in this development environment we NEVER see this error. After subsequent Lando Push to Pantheon Dev environmentds we NEVER see this error. However upon deploy to Pantheon Test or Live environments we see this error regularly, but intermittently pop-up.
We seem to be able to quiet the error by enabling or disabling a module. No specific module, but the process of doing this (may need to be repeated a couple of times) and seems to eventually quiet the message
Error: Class "Drupal\at_core\Theme\ThemeConfig" not found in at_core_preprocess() (line 27 of /code/web/themes/contrib/adaptivetheme/at_core/includes/preprocess.inc).
All pertinent referenced files and the referenced classes from the error seem to be in place.
Relating to the fix suggested. #14
This use statement does not appear in at_core/src/Theme/ThemeConfig.php of the 3.1 version
use Drupal\Core\Extension\ThemeExtensionList;
It does appear however in these files:
- web/themes/contrib/adaptivetheme/at_core/src/Layout/Layout.php
- web/themes/contrib/adaptivetheme/at_core/src/Layout/LayoutSubmit.php
Is it advised to remove from either or both of these files to quiet this error and avoid "Website encountered error" message?