Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If this memory exhausted error occurs during image uploads, there is a workaround: decrease the image dimensions. I got this errors for 2448x1836 pixels, and after decreased the dimensions to 1024x768 pixels, it works fine at 32M PHP memory.