Introduction
A PHP application running under your domain throws an error similar to the following.
PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 32768 bytes) in /home/cptest/public_html/wp-content/plugins/forminator/library/model/class-form-entry-model.php on line 1815
When this occurs, the PHP memory limit for the site must be increased. This article provides the steps needed to correct the error from cPanel.
Procedure
- Login into the user's cPanel.
- Open the "MultiPHP INI Editor" application in the "Software" panel.
- Click the "Basic Mode" tab.
- Select your domain from the drop-down menu.
- Locate the line for the "memory_limit" option.
- Set a higher value in the "memory_limit" textbox.
Please note that the exact value needed depends on the application. Some trial-and-error may be required. - Click the "Apply" button.
Comments
0 comments
Article is closed for comments.