Title: WordPress caught an error with this plugin
Last modified: August 24, 2023

---

# WordPress caught an error with this plugin

 *  Resolved [dave8441](https://wordpress.org/support/users/dave8441/)
 * (@dave8441)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/wordpress-caught-an-error-with-this-plugin/)
 * Here is the error message I received:
 * An error of type E_ERROR was caused in line 453 of the file /home/doyles15/public_html/
   main/wp-content/plugins/w3-total-cache/Cache_File.php. Error message: Allowed
   memory size of 536870912 bytes exhausted (tried to allocate 2297230 bytes)
   I 
   have deactivated the plugin. How do I fix the error?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/wordpress-caught-an-error-with-this-plugin/#post-17000422)
 * Hello [@dave8441](https://wordpress.org/support/users/dave8441/)
 * I am sorry about the issue you are experiencing and I am happy to help!
 * The type E_ERROR: Allowed memory size of 536870912 means that 512 MB memory size
   is not sufficient and you need to increase the memory size and I would recommend
   increasing it to 1024 MB.
    1. **Login to your cPanel**
    2. **Go to the File Manager**.
    3. **Select the Web root (public_html/www)** directory and **click Go**.
    4. **Find the php.ini file in the public_html. Note!** If you do not have a php.
       ini in your public_html files, check with your hosting support staff to restore
       the php.ini to your public_html directory. **Open the php.ini with the code 
       editor.**
    5. **Find the following section in the php.ini file.`max_execution_time = 30
       max_input_time
       = 60memory_limit = 512MTry to increase the memory_limit value to 1024M. Save
       the changes.
    6. In order for your memory limit to take effect you will need to **make the php.
       ini recursive**.
 * Let me know if this helps!
 * Thanks!
 *  Thread Starter [dave8441](https://wordpress.org/support/users/dave8441/)
 * (@dave8441)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/wordpress-caught-an-error-with-this-plugin/#post-17009450)
 * Hi [@vmarko](https://wordpress.org/support/users/vmarko/),
 * Increasing the memory limit seems to have fixed the issue. Thanks for your help.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/wordpress-caught-an-error-with-this-plugin/#post-17012542)
 * Hello [@dave8441](https://wordpress.org/support/users/dave8441/)
 * You are most welcome!
 * We would really appreciate it if you could take a minute and post a review [here](https://wordpress.org/support/plugin/w3-total-cache/reviews/).
   This will help us to continue offering a top-notch product to users.
   Thanks!
 *  Thread Starter [dave8441](https://wordpress.org/support/users/dave8441/)
 * (@dave8441)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/wordpress-caught-an-error-with-this-plugin/#post-17012730)
 * Hi [@vmarko](https://wordpress.org/support/users/vmarko/),
 * The error message still occurred after I performed the above steps, so I contacted
   my hosting provider. They performed an additional step that resolved the problem.
   Here is their reply:
 * “WordPress, depending on which process is running, actually uses memory values
   set in two different places. The first is the PHP memory_limit, but the second,
   hidden value is the WP_MEMORY_LIMIT, which I’ve added a configuration for in 
   the wp-config.php file. If not set, this value is set to the WordPress default
   of 32 MB, which is often not enough”
 * Just wanted to share this info in case anyone else has the same issue.
 * Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WordPress caught an error with this plugin’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [dave8441](https://wordpress.org/support/users/dave8441/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/wordpress-caught-an-error-with-this-plugin/#post-17012730)
 * Status: resolved