Allowed memory size of 2147483648 bytes exhausted

Created on 10 March 2021, over 3 years ago
Updated 23 September 2023, 9 months ago

First time using Bootstrap Barrio. I have successfully created and installed my Barrio Subtheme, but when trying to save my subtheme options in UI (/admin/appearance/settings/my_subtheme), a PHP error page shows this message :

Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in C:\xampp\htdocs\D9\core\lib\Drupal\Core\Plugin\DefaultPluginManager.php on line 173

Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

And after refreshing this page several times, I can get back to /admin/appearance/settings/my_subtheme but nothing has been saved...

Line 173 of \core\lib\Drupal\Core\Plugin\DefaultPluginManager.php says :
$definitions = $this->getCachedDefinitions();

I do not encounter this error when updating options in any other theme, ie /admin/appearance/settings/seven.

Right now, I cannot customize my subtheme through UI and it is quite frustrating.
What am I missing here? Some help would be very welcome, thank you by advance!

More info:
- Using Bootstrap CDN.
- CDN files are loaded at the bottom of my pages with Bootstrap 4.5.0 as mentionned in the subtheme's .libraries.yml file.
- Testing my site locally on XAMPP with PHP 7.3.15
- In my Apache php.ini, "memory_limit" is set to a value of "2G". I have tried "256MB" and "512MB" but ran in a WSOD on all my site, even after clearing the cache or updating database through Composer... So I have reverted back to "2G".
- All my dependencies are up to date (after "composer update").

πŸ’¬ Support request
Status

Closed: works as designed

Version

5.5

Component

User interface

Created by

πŸ‡«πŸ‡·France thelmnt

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • I believe my subtheme settings had the wrong type when I initially installed and set the new subtheme as default.

    Correcting the type after the fact also requires uninstalling the subtheme and parent theme, then install again and I was able to save settings.

    Otherwise you will continue to see the memory exhaustion, even with the correct settings file.

  • Status changed to Closed: works as designed 9 months ago
  • πŸ‡΅πŸ‡ͺPeru hatuhay Lima
Production build 0.69.0 2024