{"id":200,"date":"2025-06-20T17:06:13","date_gmt":"2025-06-20T16:06:13","guid":{"rendered":"https:\/\/www.cold-vibes.org\/?p=200"},"modified":"2025-06-20T17:06:14","modified_gmt":"2025-06-20T16:06:14","slug":"allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-20480-bytes-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.cold-vibes.org\/index.php\/2025\/06\/20\/allowed-memory-size-of-134217728-bytes-exhausted-tried-to-allocate-20480-bytes-in-wordpress\/","title":{"rendered":"Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in WordPress"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><\/h1>\n\n\n\n<p>This error means is that your site requires more memory than the default allocated memory provided by your server.<\/p>\n\n\n\n<p>Solve this by increasing the PHP memory limit.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"update-wp-config\">Update WP-Config<\/h2>\n\n\n\n<p>Edit the&nbsp;<strong>wp-config.php<\/strong>&nbsp;file on your WordPress site.<\/p>\n\n\n\n<p>Copy this to the bottom of the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_MEMORY_LIMIT', '256M' );<\/code><\/pre>\n\n\n\n<p>This tells WordPress to increase the PHP memory limit to 256MB.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"update-htaccess\">Update .HTACCESS<\/h2>\n\n\n\n<p>Edit the&nbsp;<strong>.htaccess<\/strong>&nbsp;file on your WordPress site.<\/p>\n\n\n\n<p>Paste the following code before the line that says&nbsp;<code>#END WORDPRESS<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php_value memory_limit 256M<\/code><\/pre>\n\n\n\n<p>This tells WordPress to increase the PHP memory limit to 256MB.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"update-php-ini\">Update PHP.INI<\/h2>\n\n\n\n<p>Alternatively you can update PHP.INI to increase the memory limit. Find your PHP.ini file and look for this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ; Maximum amount of memory a script may consume                                                                                                                                                                                              ; https:\/\/php.net\/memory-limit                                                                                                                                                                                                               memory_limit = 256M <\/code><\/pre>\n\n\n\n<p>After updating, restart Apache.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This error means is that your site requires more memory than the default allocated memory provided by your server. Solve this by increasing the PHP memory limit. Update WP-Config Edit the&nbsp;wp-config.php&nbsp;file on your WordPress site. Copy this to the bottom of the file: This tells WordPress to increase the PHP memory limit to 256MB. Update [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17],"tags":[],"class_list":["post-200","post","type-post","status-publish","format-standard","hentry","category-it"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.cold-vibes.org\/index.php\/wp-json\/wp\/v2\/posts\/200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cold-vibes.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cold-vibes.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cold-vibes.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cold-vibes.org\/index.php\/wp-json\/wp\/v2\/comments?post=200"}],"version-history":[{"count":1,"href":"https:\/\/www.cold-vibes.org\/index.php\/wp-json\/wp\/v2\/posts\/200\/revisions"}],"predecessor-version":[{"id":201,"href":"https:\/\/www.cold-vibes.org\/index.php\/wp-json\/wp\/v2\/posts\/200\/revisions\/201"}],"wp:attachment":[{"href":"https:\/\/www.cold-vibes.org\/index.php\/wp-json\/wp\/v2\/media?parent=200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cold-vibes.org\/index.php\/wp-json\/wp\/v2\/categories?post=200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cold-vibes.org\/index.php\/wp-json\/wp\/v2\/tags?post=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}