A Beginner’s Guide to Fixing WordPress PHP Limit Warnings

Seeing those yellow warnings in your WordPress dashboard about memory limits or execution time? 🤔 It’s a common headache that can slow down your site or cause errors. Think of it like your website needing a bit more breathing room to run properly.Here are two simple ways to fix it.

Fixing WordPress PHP limits

Method 1: Edit Your wp-config.php File

This method involves adding a few lines of code to a core WordPress file.

Quick Heads-Up: Always back up your website before editing core files. Better safe than sorry!

  1. Access Your Files: Log in to your hosting account (using cPanel’s File Manager or an FTP client like FileZilla).
  2. Find the File: Navigate to your site’s main folder (usually public_html) and locate the wp-config.php file.
  3. Add the Code: Right-click to edit the file. Scroll down until you see the line that says: /* That's all, stop editing! Happy publishing. */.
  4. Paste the following code snippet right before that line:

define( 'WP_MEMORY_LIMIT', '256M' );

@ini_set( 'max_execution_time', '60' );

@ini_set( 'max_input_vars', '2000' );

You can adjust the numbers (256, 60, 2000) to match the recommendations in your warning message.

  1. Save & Close: Save your changes and close the file. Check your WordPress dashboard to see if the warnings have vanished.

Method 2: Use cPanel’s MultiPHP INI Editor (The Easy Way)

If your host uses cPanel, this is the simplest and safest method—no code required.

  1. Log in to cPanel.
  2. Find the Tool: Under the “Software” section, click on “MultiPHP INI Editor”.

  1. Select Your Domain from the dropdown menu.
  2. Update the Values: You’ll see a list of settings. Find and update these three:
    • memory_limit: Change to 256M
    • max_execution_time: Change to 60 (or 120)
    • max_input_vars: Change to 2000 (or 3000)
  3. Click “Apply” to save your changes.

This usually fixes the problem instantly.


Still Stuck?

If the warnings persist, your hosting provider might have these settings locked. Don’t worry, the solution is simple: contact your host’s support team.

Just send them a quick message asking them to increase the memory_limit, max_execution_time, and max_input_vars for your domain. They can usually handle it in a few minutes.

RELATED ARTICLES