{"id":1170,"date":"2019-12-04T05:40:01","date_gmt":"2019-12-04T05:40:01","guid":{"rendered":"https:\/\/theemailshop.co.uk\/forum\/?post_type=epkb_post_type_1&amp;p=1170"},"modified":"2019-12-04T05:40:01","modified_gmt":"2019-12-04T05:40:01","slug":"php-error-allowed-memory-size-of-x-bites-exhausted-2","status":"publish","type":"epkb_post_type_1","link":"https:\/\/theemailshop.co.uk\/community\/knowledge-base\/php-error-allowed-memory-size-of-x-bites-exhausted-2\/","title":{"rendered":"PHP error- allowed memory size of x bites exhausted"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">If you have an error like &#8220;<\/span><span style=\"font-weight: 400;\">Allowed memory size of&#8230; in file \/directory\/folder\/yourscript.php<\/span><span style=\"font-weight: 400;\">&#8220;, then it\u2019s possible to choose .htaccess technique to solve the issue. If an error still exists after applying this .htaccess code, then its best to contact our professionals for more help.<\/span><span style=\"font-weight: 400;\"><\/span><\/p>\n<p><span style=\"font-weight: 400;\">Put this code in the .htaccess file of the main domain, and if the error persists even after using the code, then enter this in a directory where you get an error, like example.com\/directory\/folder\/<\/span><b>.<\/b><span style=\"font-weight: 400;\">htaccess&nbsp;<\/span><span style=\"font-weight: 400;\">and then put the code in the \/directory folder.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">RLimitMem max<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have an error like &#8220;Allowed memory size of&#8230; in file \/directory\/folder\/yourscript.php&#8220;, then it\u2019s possible to choose .htaccess technique [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"epkb_post_type_1_category":[59,33],"epkb_post_type_1_tag":[312,29,122,313],"class_list":["post-1170","epkb_post_type_1","type-epkb_post_type_1","status-publish","hentry","epkb_post_type_1_category-others","epkb_post_type_1_category-siteworx-control-panel","epkb_post_type_1_tag-allowed-memory","epkb_post_type_1_tag-cpanel","epkb_post_type_1_tag-php","epkb_post_type_1_tag-size-x-bite"],"_links":{"self":[{"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1\/1170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1"}],"about":[{"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/types\/epkb_post_type_1"}],"author":[{"embeddable":true,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/comments?post=1170"}],"version-history":[{"count":0,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1\/1170\/revisions"}],"wp:attachment":[{"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/media?parent=1170"}],"wp:term":[{"taxonomy":"epkb_post_type_1_category","embeddable":true,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1_category?post=1170"},{"taxonomy":"epkb_post_type_1_tag","embeddable":true,"href":"https:\/\/theemailshop.co.uk\/community\/wp-json\/wp\/v2\/epkb_post_type_1_tag?post=1170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}