Apache Error occurs under certain conditions

Created on 29 October 2024, 24 days ago

Hello, I am facing the following problem:

The following conditions cause an Apache error and the site to go down:

1. The Webform has a limit on submissions per user.
2. The Webform contains Computed Twig elements.

If User-A submits a Webform and the limit is reached, when another user edits User A's post (e.g. admin), the site becomes unresponsive after clicking the save button.

The following is recorded in the Apache Error log:

Parent: child process 14024 exited with status 3221225725 -- Restarting

This occurs in both Windows XAMPP and Linux environments.

The following does not cause the problem:

  1. The submitter (User A) edits his own submission.
  2. The limit on submissions per user is not set.
  3. Computed Twig elements are not included.

Below is a simple YAML source to reproduce the problem.

radio_button:
  '#type': radios
  '#title': 'Radio Button'
  '#options':
    1: '1'
    2: '2'
    3: '3'
  '#options_display': side_by_side
twig:
  '#type': computed_twig
  '#title': Twig
  '#template': '{{ "Hello" }}'
  '#store': true

I am using webform module 6.2.7 on Drupal 10.2.10 .

Any help would be appreciated.

πŸ› Bug report
Status

Active

Version

6.2

Component

Code

Created by

πŸ‡―πŸ‡΅Japan Ryo Ichiyama

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

Comments & Activities

  • Issue created by @Ryo Ichiyama
  • In seeking to reproduce this I got this at the last step:

    Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/docroot/modules/contrib/metatag/src/MetatagManager.php on line 289
    
    Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in Unknown on line 0
    
    Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in Unknown on line 0
    

    Is it possible what you are seeing is this memory exhaustion?

  • By uninstalling metatag, the problem no longer occurs. Let's confirm that.

  • πŸ‡―πŸ‡΅Japan Ryo Ichiyama

    Thank you very much for your verification.

    The error log of my Linux server did not contain any information related to the metatag module, but after uninstalling the metatag module, it started working normally!

    For reference, the error log of the Linux server is as follows.

    (70007)The timeout specified has expired: AH01075: Error dispatching request to : (polling), referer: https://MYDOMAIN/admin/webform/manage/MYURLALIAS/submission/980/edit

    And as you can see in your log, the memory usage of Apache & PHP-FPM increases.

    If this is not a problem with the Webform module, I will close this case. What do you think?

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    Can you please confirm the version of Metatag that is being used, which Metatag submodules are being used, and whether you're also using Schema.org Metatag and its submodules?

  • Metatag 2.0.2 is the only metatag-related module installed on the site where memory exhausted.

  • πŸ‡―πŸ‡΅Japan Ryo Ichiyama

    Thanks for your reply.

    I have the following modules installed on my site:

    • Metatag 2.0.2
    • Metatag: Mobile & UI Adjustments

    Schema.org Metatag module is not installed.

Production build 0.71.5 2024