{"id":921,"date":"2019-08-27T03:50:47","date_gmt":"2019-08-27T03:50:47","guid":{"rendered":"https:\/\/www.jetorbit.com\/panduan\/?p=921"},"modified":"2025-05-30T07:50:13","modified_gmt":"2025-05-30T00:50:13","slug":"cara-menaikan-memory-limit-pada-wordpress","status":"publish","type":"post","link":"https:\/\/www.jetorbit.com\/panduan\/cara-menaikan-memory-limit-pada-wordpress\/","title":{"rendered":"Cara Menaikan Memory Limit Pada WordPress"},"content":{"rendered":"\n<p>Di CMS WordPress, anda terkadang menemukan Fatal Error seperti berikut<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in xxxxxx<\/pre>\n\n\n\n<p>Error ini muncul karena batas memory yang digunakan telah mencapai batasnya dan wordpress membutuhkan memory yang lebih tinggi.<\/p>\n\n\n\n<p>Berikut cara untuk menaikan memory limit di wordpress.<\/p>\n\n\n\n<p><strong>Menaikan memory limit melalui wordpress<\/strong><\/p>\n\n\n\n<p>Masuk ke dalam folder installasi wordpress anda.<\/p>\n\n\n\n<p>Buka dan edit file\u00a0<strong>wp-config.php<\/strong><\/p>\n\n\n\n<p>Setelah itu tambahkan line berikut ini\u00a0dibawah<em>\u00a0<\/em>code <strong>&#8220;define(&#8216;DB_COLLATE&#8217;, &#8221;);&#8221;<\/strong><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"define('WP_MEMORY_LIMIT', '256M');\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">define<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&#39;WP_MEMORY_LIMIT&#39;<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #CE9178\">&#39;256M&#39;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p>Save file tersebut dan silahkan coba akses kembali website anda.<\/p>\n\n\n\n<p>Jika anda baru dalam wordpress, silahkan baca <a href=\"https:\/\/www.jetorbit.com\/langkah-membuat-website-dengan-wordpress\/\">panduan membuat website dengan wordpress<\/a> kami. Jika anda mengalami error 500 pada wordpress anda, bisa baca panduan kami <a href=\"https:\/\/www.jetorbit.com\/panduan\/menyelesaikan-masalah-error-500-pada-wordpress\/\">cara mengatasi error 500&nbsp;<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Di CMS WordPress, anda terkadang menemukan Fatal Error seperti berikut Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in xxxxxx Error ini muncul karena batas memory yang digunakan telah mencapai batasnya dan wordpress membutuhkan memory yang lebih tinggi. Berikut cara untuk menaikan memory limit di wordpress. Menaikan memory limit [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":2809,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[151,152],"class_list":["post-921","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-memory-limit-wordpress","tag-menaikan-memory-limit-wordpress"],"_links":{"self":[{"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/posts\/921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/comments?post=921"}],"version-history":[{"count":2,"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/posts\/921\/revisions"}],"predecessor-version":[{"id":9931,"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/posts\/921\/revisions\/9931"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/media\/2809"}],"wp:attachment":[{"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/media?parent=921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/categories?post=921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jetorbit.com\/panduan\/wp-json\/wp\/v2\/tags?post=921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}