Memory limit error when on "Details" page

Created on 25 April 2022, over 2 years ago
Updated 5 July 2024, 6 months ago

Problem/Motivation

In the dashboard, when clicking the "Details" link of an email sent via content_moderation_notifications module, the following error occurs :

PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 737574912 bytes) in web/modules/contrib/mail_safety/src/Controller/MailSafetyController.php on line 38

The user (AccountProxy object) passed in the mail context eats all the memory resources when printed.

Steps to reproduce

  • Enable both modules : mail_safety & content_moderation_notifications
  • Trigger email sending via content_moderation_notifications
  • From mail_safety dashboard, click the "Details" link of the previously sent email

Proposed resolution

Remove user from being printed. See proposed patch.

πŸ› Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

πŸ‡«πŸ‡·France NicociN

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.

Production build 0.71.5 2024