{"id":59,"date":"2023-06-05T13:06:06","date_gmt":"2023-06-05T05:06:06","guid":{"rendered":"http:\/\/pro369.com\/blog\/?p=59"},"modified":"2023-06-05T13:06:06","modified_gmt":"2023-06-05T05:06:06","slug":"wordpress-%e5%87%ba%e7%8f%befatal-error-allowed-memory-size%e7%9a%84%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95%ef%bc%81","status":"publish","type":"post","link":"https:\/\/por.tw\/blog\/2023\/06\/05\/wordpress-%e5%87%ba%e7%8f%befatal-error-allowed-memory-size%e7%9a%84%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95%ef%bc%81\/","title":{"rendered":"WordPress \u51fa\u73feFatal error: Allowed memory size\u7684\u89e3\u6c7a\u65b9\u6cd5\uff01"},"content":{"rendered":"<p><span style=\"font-size: small;\"><span style=\"color: #800080;\"><strong>\u00a0\u5728WordPress\u90e8\u843d\u683c\u51fa\u73feFatal error: Allowed memory size\uff1f\u60a8\u767c\u751f\u9019\u6a23\u7684\u60c5\u6cc1\u8a72\u5982\u4f55\u8655\u7406\u89e3\u6c7a\uff1f<\/strong><\/span><\/span><\/p>\n<p>\u6700\u8fd1\u5e7e\u500b\u5b78\u54e1\uff0c\u5347\u7d1a\u5230 WordPress \u90fd\u51fa\u4e86\u9ede\u554f\u984c\uff0c\u4e0d\u7ba1\u662f\u7ba1\u7406\u4ecb\u9762(Dashboard)\uff0c\u6216\u8005\u767b\u5165\u51fa\u554f\u984c\uff0c\u770b\u4f86\u5e7e\u4e4e\u90fd\u662f\u8a18\u61b6\u9ad4\u4e0d\u5920\u7528\u3002<br \/>\n\u4e0d\u77e5\u9053<span style=\"font-size: small;\">WordPress\u65b0\u7248\u672c<\/span><span style=\"font-size: small;\">\u6539\u4e86\u90a3\u4e9b\uff0c\u8a18\u61b6\u9ad4\u7684\u9700\u6c42\u662f\u66f4\u5927\u4e86\uff0c\u9019\u908a\u63d0\u4f9b\u5e7e\u500b\u89e3\u6c7a\u7684\u65b9\u6cd5\u3002<\/span><\/p>\n<p><span style=\"color: #ff00ff;\"><strong>\u7576\u51fa\u73fe\u4ee5\u4e0b\u7684\u985e\u4f3c\u60c5\u6cc1\uff0c\u8981\u4f86\u8abf\u6574PHP\u7684\u8a18\u61b6\u9ad4\uff0c\u4f86\u57f7\u884c\u66f4\u591a\u7684\u7a0b\u5f0f<\/strong><\/span><\/p>\n<p>Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 98304 bytes) in<\/p>\n<p><span style=\"color: #008000;\"><strong>1.\u5982\u679c\u6709\u6b0a\u9650\u4fee\u6539php.ini\uff0c\u90a3\u9ebc\u8acb\u5c07memory_limit = 32M\u768432\u63d0\u9ad8\uff0c\u770b\u662f\u898164\u9084\u662f96\u6216\u8005128\u3002<br \/>\n<\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong>2.\u5982\u679c\u6c92\u6709\u6b0a\u9650\u4fee\u6539php.ini\uff0c\u53ef\u4ee5\u5728.htaccess\u88e1\u9762\u52a0\u4e0aphp_value memory_limit 32M\uff0c\u6216\u8005\u66f4\u9ad8\u7684\u6578\u5b57\u3002<br \/>\n<\/strong><\/span><br \/>\n<span style=\"color: #800000;\"><strong>3.\u4e5f\u53ef\u4ee5\u5b9a\u7fa9wp-config.php\uff0c\u65b0\u589e\u4e00\u500bdefine(\u2018WP_MEMORY_LIMIT\u2019, \u201932M\u2019);\uff0c\u6216\u8005\u66f4\u9ad8\u7684\u6578\u5b57\u3002<\/strong><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"post-excerpt\"><p>\u00a0\u5728WordPress\u90e8\u843d\u683c\u51fa\u73feFatal error: Allowed memory size\uff1f\u60a8\u767c\u751f\u9019\u6a23\u7684<\/p>\n<\/div>","protected":false},"author":1,"featured_media":529,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[34],"class_list":["post-59","post","type-post","status-publish","format-standard","has-post-thumbnail","category-3","tag-wordpress-"],"_links":{"self":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":0,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"wp:attachment":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}