Runs out of memory trying to edit/insert an element

Created on 8 November 2024, 5 months ago

Problem/Motivation

New ddev installation of Drupal 10.3.7 & Webform 6.3.x-dev.

Steps to reproduce

Enable webform & webform_ui
Try to edit/install an element on a form. I used the "contact" form.
Get an error: Oops, something went wrong. Check your browser's developer console for more details.
In the ddev logs, I see

2024/11/07 21:12:02 [error] 2263#2263: *122 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 262144 bytes) in /var/www/html/vendor/twig/twig/src/Extension/SandboxExtension.php on line 130" while reading response header from upstream, client: 172.19.0.5, server: , request: "POST /admin/structure/webform/manage/contact/element/name/edit?_wrapper_format=drupal_dialog.off_canvas HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm.sock:", host: "test-wf.ddev.site", referrer: "https://test-wf.ddev.site/admin/structure/webform/manage/contact"

I don't know if this is an error in the module or Drupal. When I downgrade Drupal to 10.3.6, the error goes away and everything works.

πŸ› Bug report
Status

Active

Version

6.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kenrbnsn New Jersey

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

Comments & Activities

  • Issue created by @kenrbnsn
  • πŸ‡¨πŸ‡¦Canada geoffmen

    I get the same error with a fresh install, standard configuration, of drupal 10.3.7, when going to /node/add/page

    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in /var/alternc/html/g/geoffm/www/lesversetlaterre/drupal-10.3.7/vendor/twig/twig/src/Extension/SandboxExtension.php on line 130

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

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

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

  • πŸ‡¬πŸ‡§United Kingdom CarlHinton

    I am getting exactly the same

    [Fri Nov 15 06:53:33.475722 2024] [proxy_fcgi:error] [pid 262744] [client 212.5. 142.248:53404] AH01071: Got error 'PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /var/www/ carlhinton.com/vendor/twig/twig/src/Extension/SandboxExtension.php on line 130PH P message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (t ried to allocate 262144 bytes) in Unknown on line 0PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 byt es) in Unknown on line 0PHP message: PHP Fatal error: Allowed memory size of 26 8435456 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0', referer: https://www.carlhinton.com/admin/content/block

    A fix is needed

  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    It makes sense that πŸ’¬ Updating phpstan and twig via Composer generates a blank page when editing a node Active would cause this regression via the webform module.

    I am going to mark this as a duplicate and hopefully people will update core and skip this regression

Production build 0.71.5 2024