{"id":25313,"date":"2012-10-22T06:09:49","date_gmt":"2012-10-22T10:09:49","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=25313"},"modified":"2018-09-21T08:22:53","modified_gmt":"2018-09-21T12:22:53","slug":"fatal-error-allowed-memory-size-of-x-bytes-exhausted-tried-to-allocate-y-bytes","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/fatal-error-allowed-memory-size-of-x-bytes-exhausted-tried-to-allocate-y-bytes.html","title":{"rendered":"Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)"},"content":{"rendered":"<ul class=\"list\">\r\n\r\n\t<li>It means that the memory used by the PHP script exceeded the value of the <strong>memory_limit<\/strong> configuration option. Note, this may or may not agree with what the operating system thinks the memory usage of the script is at the time of the error.<\/li>\r\n\r\n\t<li><strong>X<\/strong> gives you the value of the <strong>memory_limit<\/strong> configuration option. You can also assume that the server has at least enough virtual memory to handle the limit, but that&#8217;s about it.<\/li>\r\n\r\n\t<li><strong>Y<\/strong> is the size of the excessive memory that finally caused the error.<\/li>\r\n<\/ul>\r\n\r\n<p class=\"attention\">We strongly recommend you to contact your hosting provider and ask them to fix the issue for you.<\/p>\r\n\r\n<p>There are two methods to solve this problem:<\/p>\r\n\r\n<ul>\r\n\t<li><p>If you have access to your PHP.ini file, change the line in PHP.ini If your line shows 16M try 32M:\r\n<code>memory_limit = 32M ; Maximum amount of memory a script may consume (32MB)<\/code><\/p><\/li>\r\n\r\n\t<li><p>If you don&#8217;t have access to PHP.ini try adding this to an .htaccess file:\r\n<code>php_value memory_limit 32M<\/code><\/p><\/li>\r\n\r\n<\/ul>\r\n\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/cart.php?addOffer=587\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-1-(500-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>This tutorial will explain how to deal with &#8220;Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)&#8221;.<\/p>\n","protected":false},"author":7,"featured_media":25314,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1019,944],"tags":[1395,691,1394,1393,1396],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/25313"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=25313"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/25313\/revisions"}],"predecessor-version":[{"id":82850,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/25313\/revisions\/82850"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/25314"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=25313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=25313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=25313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}