Memory Limit Exhausted

If you see an error that looks like "Fatal error: Allowed memory size of X bytes exhausted", your WordPress site has hit its PHP memory limit. WordPress is built on PHP, and complex themes or heavy plugins (like WooCommerce or page builders) require significant memory to function.

How to Increase Your Memory Limit

At Hosticky, we provide generous resource allocations. However, WordPress sets its own internal limit by default (often just 40MB or 64MB). Here is how you can increase it to utilize your full hosting power.

Method 1: Edit wp-config.php (Recommended)

Open your wp-config.php file and insert this line right before "That's all, stop editing!":

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

If you run a heavy WooCommerce store, you might even want to set it to 512M.

Method 2: Edit .htaccess

If the above doesn't work, you can force the PHP limit via your .htaccess file. Add this line:

php_value memory_limit 256M

Method 3: MultiPHP INI Editor

Log into your Hosticky control panel, search for MultiPHP INI Editor, select your domain, and change the memory_limit directive to 256M or 512M.

If you continue to hit memory limits even at 512M, you likely have a rogue plugin with a memory leak. Deactivate plugins one by one to find the resource hog.

آیا این پاسخ به شما کمک کرد؟ 0 کاربر این را مفید یافتند (0 نظرات)