How to Increase the Memory Limit
WP E-Signature is a robust document signing application that also happens to be powered by WordPress. 😊
Unlike most smaller WordPress plugins, WP E-Signature requires a minimum of 96MB memory to process your documents.
MPDF is the current library that our plugin uses to generate PDFs, which takes up a majority of the memory. Your PDFs are not saved on your FTP server (for security reasons), therefore our application generates a new PDF file upon demand…and each PDF generation request requires memory.
To learn more about MPDF memory you can check out this article:
OPTION 1: Edit wp-config.php file
Since version 2.5, WordPress was given a new WP_MEMORY_LIMIT variable. By default, the limit is set to 40MB (and 64MB when it is installed on a multisite).
This limit is hardcoded in a file in the WordPress install: default-constants.php which is located in the wp-includes directory.
In most cases, you don’t need to worry about it. However, sometimes WordPress installs disregard the memory_limit set for our platform and blindly takes WP_MEMORY_LIMIT that is set by wp-includes/default-constants.php (40MB). In this case you’ll need to do a couple of things:
To increase memory for your WordPress website you can follow these steps.
Login to your FTP and locate your “wp-config.php” file which will be in the root folder (or main folder) of where your website lives.
1. Add the following code snippet (or edit the code if it already exists in your wp-config.php file):
WordPress memory is oftentimes different than server allocation memory – it’s for this reason that you need to define this 96M memory limit regardless of server memory settings
OPTION 2: Update your PHP.ini file
If you have access to your PHP.ini file, locate the following line in PHP.ini
If your line shows 32M or 64M try 96M.
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)
OPTION 3: Update your .htaccess file
If editing your wp-config or PHP.ini file does not work, you can try editing your .htaccess file which is located in the root (or main) folder of your website via FTP.
Add (or edit) the following code snippet in your .htaccess file.
php_value memory_limit 96M
OPTION 4: Contact your host
If none of these three options resolves the memory allocation limit, please contact your web host and work with them directly to troubleshoot the issue.