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.
Problem/Motivation
A major source of install and runtime issues with Open Outreach (as with most or all most-used Drupal 7 distros) is too-low values PHP values of either available memory (memory_limit) or page execution time (max_execution_time).
While we highlight appropriate values in documentation, many site installers will install without reading the documentation.
Proposed resolution
Implement hook_requirements() to set a warning if there is insufficient memory available or insufficient page execution time.
Follow relevant code in D8: drupal_check_memory_limit(), simpletest_requirements().
Comment | File | Size | Author |
---|---|---|---|
#1 | memory-requirements-1891554-1.patch | 2.99 KB | nedjo |
Comments
Comment #1
nedjoHere's a patch that provides a requirements check for memory_limit. I haven't included max_execution_time because it's harder to say what the minimum is (obviously it's dependent on memory_limit) and it may differ at runtime vs. install time.
Comment #2
nedjoAdded in http://drupalcode.org/project/openoutreach.git/commit/67734fb.
Comment #4
nedjoDowngraded from warning to info, since Open Outreach will function at less than the recommended memory limit.