What this problem looks like
WordPress defaults to 40M unless raised. Page builders, WooCommerce imports, backup plugins, and poorly coded extensions can exceed that quickly on shared hosting.
Raising memory is a short-term fix. The real goal is finding which request exhausts RAM so you can update, configure, or remove the offending plugin.
Step 1: Set WordPress memory limits in wp-config.php
Open wp-config.php in your site root, next to wp-admin and wp-content. Search for WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT first. If those lines already exist, change the values instead of adding duplicates. If none of them exist, add these constants above the stop editing line. WP_MAX_MEMORY_LIMIT applies in wp-admin where more RAM is needed.
define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' ); Step 2: Raise PHP memory_limit in hosting
WordPress cannot exceed the server PHP memory_limit. In cPanel go to MultiPHP INI Editor and set memory_limit to 256M. On nginx hosts, ask support or edit the pool configuration.
Step 3: Read the error for the plugin name
Memory errors often include the file path. Look for wp-content/plugins/plugin-name/ in debug.log or the on-screen fatal error. That names the extension to investigate first.
- Enable
WP_DEBUG_LOGif you only see a white screen. Search for existingWP_DEBUGconstants inwp-config.phpbefore adding duplicates. - Note whether the error happens on front end,
wp-admin, or cron. - Check if it started after importing products or running a backup.
Step 4: Isolate plugins and reduce batch jobs
Rename wp-content/plugins to plugins.disabled via File Manager, SFTP, or FTP. If memory errors stop, rename plugins.disabled back to plugins, then activate plugins one at a time in wp-admin until the error returns. For imports, reduce batch size in WooCommerce or migration tools.
Step 5: Consider hosting upgrade for heavy sites
Shops with large catalogs and page builders may need more than shared hosting RAM. A VPS or managed WordPress plan with 512M or 1G PHP memory prevents recurring exhaustion on busy admin screens.
When to stop DIY and hire help
If memory errors return after raising limits to 512M, a plugin is likely leaking RAM or your host cap is too low for your stack. BugShield diagnoses memory issues at a confirmed price without hourly billing surprises.