WP E-Signature is a robust document signing application… that 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 PDF’s, which takes up majority of the memory. Your PDF’s 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.

You can verify this by running a simple PHP script. You’ll need to create a file info.php in a root directory of your website (if you happen to have the website on CloudAccess the proper directory is: httpdocs) and put there:

To learn more about mpdf memory you can checkout this article:

OPTION 1: Edit wp-config.php file

Since version 2.5, WordPress was given aĀ new WP_MEMORY_LIMIT variable. So, by default the limit is set to 40MB (and 64MB when it is installed on aĀ multisite).

This limit is hard coded 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Ā 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):

define('WP_MEMORY_LIMIT', '96M');
define('WP_MAX_MEMORY_LIMIT', '96M');

2. Change lines 22-26 of wp-includes/default-constants.php to the following snippet:

if ( is_multisite() ) {
define('WP_MEMORY_LIMIT', '256M');
else {
define('WP_MEMORY_LIMIT', '256M');

WordPress memory is often times different than server allocation memory ā€“ itā€™s for this reason that you need to define this 96M memory limit regardless of server memory settings