{"id":29342,"date":"2024-11-25T11:05:04","date_gmt":"2024-11-25T03:05:04","guid":{"rendered":"https:\/\/fwq.ai\/blog\/29342\/"},"modified":"2024-11-25T11:05:04","modified_gmt":"2024-11-25T03:05:04","slug":"%e5%b8%9d%e5%9b%bdcms%e5%b8%b8%e8%a7%81%e7%9a%84%e8%8b%b1%e6%96%87%e9%94%99%e8%af%af%e6%8f%90%e7%a4%ba%e6%9c%89%e5%93%aa%e4%ba%9b","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/29342\/","title":{"rendered":"\u5e1d\u56fdCMS\u5e38\u89c1\u7684\u82f1\u6587\u9519\u8bef\u63d0\u793a\u6709\u54ea\u4e9b"},"content":{"rendered":"<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/041\/5dc286bec883a389.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5e1d\u56fdCMS\u5e38\u89c1\u7684\u82f1\u6587\u9519\u8bef\u63d0\u793a\u6709\u54ea\u4e9b\u63d2\u56fe\" alt=\"\u5e1d\u56fdCMS\u5e38\u89c1\u7684\u82f1\u6587\u9519\u8bef\u63d0\u793a\u6709\u54ea\u4e9b\u63d2\u56fe\" \/><\/p>\n<p><strong>1\u3001\u767b\u9646\u540e\u53f0\u9519\u8bef\u63d0\u793a\uff1a(\u6b64\u63d0\u793a\u5728\u65b0\u624b\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u7ecf\u5e38\u88ab\u9047\u5230)&nbsp;<\/strong><\/p>\n<p>Fatal error: Unable to read \u2026. bytes \u2026&nbsp;<\/p>\n<p><strong>\u89e3\u7b54\uff1a<\/strong><\/p>\n<p>\u8bf7\u6309\u4e8c\u8fdb\u5236\u4e0a\u4f20\u6587\u4ef6\u3002 \u56e0\u4e3a\u8fd9\u4e2a\u63d0\u793a\u5c31\u662f\u6ca1\u6709\u6309\u4e8c\u8fdb\u5236\u4e0a\u4f20\uff0c\u5220\u9664\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6\uff0c\u91cd\u65b0\u4e0a\u4f20\u3002&nbsp;<\/p>\n<p><strong>2\u3001Fatal error: Maximum execution time of \u2026&nbsp;<\/strong><\/p>\n<p><strong>\u89e3\u7b54\uff1a<\/strong><\/p>\n<p>php\u8fd0\u884c\u8d85\u65f6\uff0c\u5230\u53c2\u6570\u8bbe\u7f6e\u90a3\u628a\u6bcf\u7ec4\u5907\u4efd(\u5237\u65b0)\u6570\u6539\u5c0f\uff0c\u4e5f\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u7684php.ini\u6587\u4ef6\u4e2d\u6539max_execution_t= \u7684\u503c\uff0c&nbsp;<br \/>\u5982\u679c\u6587\u4ef6\u5939\u6570\u636e\u6bd4\u8f83\u5927\uff0c\u5efa\u8bae\u4f60\u4ece\uff46\uff54\uff50\u4e0b\u8f7d\u5907\u4efd\u7684\u6570\u636e\u3002&nbsp;<\/p>\n<p>\u5bf9\u4e8e\u8d85\u65f6\u8bbe\u5b9a\uff0c\u8981\u4fee\u6539php.ini:&nbsp;<\/p>\n<pre>max_execution_t=&nbsp;\u65f6\u95f4<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u7136\u540e\u91cd\u8d77\u670d\u52a1\uff0c\u6216\u8005\u5728\u7a0b\u5e8f\u5199&nbsp;<\/p>\n<pre>set_time_limit(\u65f6\u95f4);&nbsp;\/\/0\u4e3a\u65e0\u9650\u5236<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>3\u3001Fatal error: Allowed memory size of \u2026. bytes exhausted (tried to allocate \u2026 bytes) in..&nbsp;<\/strong><\/p>\n<p><strong>\u89e3\u7b54\uff1a<\/strong><\/p>\n<p>\u4f60\u7684\u670d\u52a1\u5668\/\u7a7a\u95f4PHP\u8bbe\u7f6e\u95ee\u9898<\/p>\n<p>PHP\u5bf9Script\u8bb0\u5fc6\u4f53\u7a7a\u95f4\u9650\u5236\u7684\u7f18\u6545\u3002Default \u8bbe\u5b9a\u4e3a 8MB\uff0c\u800c\u6709\u4e9b\u4ee5\u524d\u7684 Script\uff0c\u4f1a\u8981\u6c42\u4f7f\u7528\u8d85\u8fc7 8MB \u7684\u5185\u5b58\u7a7a\u95f4\uff0c\u53ea\u8981\u52a0\u5927 8MB \u7684\u4f7f\u7528\u9650\u5236\u5373\u53ef\u3002&nbsp;<\/p>\n<p>\u52a0\u5927 8MB \u5185\u5b58\u4f7f\u7528\u9650\u5236\uff0c\u65b9\u6cd5\u6709\u4e8c\uff0c\u9009\u5176\u4e00\u5373\u53ef\uff1a&nbsp;<\/p>\n<p>\u65b9\u6cd5\u4e00\uff08\u63a8\u8350\uff09\uff1a\u4fee\u6539 php.ini \u91cc\u7684 memory_limit \u7684\u8bbe\u7f6e\u503c 8M \u6539\u4e3a 12M\uff1a<\/p>\n<pre>memory_limit&nbsp;=&nbsp;12M<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u65b9\u6cd5\u4e8c\uff1a\u5728\u6700\u4e0a\u5c42\u7684 PHP Script\uff0c\u52a0\u5165\u4e00\u884c&nbsp;<\/p>\n<pre>ini_set(\"memory_limit\",\"12M\");<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u6ce8\uff1a\u5982\u679c\u6269\u5927\u5230 12M \u4ecd\u7136\u76f8\u540c\u7684\u9519\u8bef\u53d1\u751f\uff0c\u5219\u518d\u52a0\u5927 12M \u9650\u5236\u3002&nbsp;<\/strong><\/p>\n<p><strong>4\u3001Fatal error: Cannot redeclare printerror() (previously declared in \u2026&nbsp;<\/strong><\/p>\n<p><strong>\u89e3\u7b54<\/strong>\uff1a<\/p>\n<p>\u6ca1\u6709\u590d\u5236\u65b0\u7248\u6388\u6743\u6587\u4ef6\u7684\u539f\u6545\u3002<\/p>\n<p>\u63a8\u8350\u6559\u7a0b\uff1a<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5e1d\u56fdCMS\u5e38\u89c1\u7684\u82f1\u6587\u9519\u8bef\u63d0\u793a\u6709\u54ea\u4e9b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u767b\u9646\u540e\u53f0\u9519\u8bef\u63d0\u793a\uff1a(\u6b64\u63d0\u793a\u5728\u65b0\u624b\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u7ecf\u5e38\u88ab\u9047\u5230)&nbsp; Fatal error: Unable to read \u2026. bytes \u2026&nbsp; \u89e3\u7b54\uff1a \u8bf7\u6309\u4e8c\u8fdb\u5236\u4e0a\u4f20\u6587\u4ef6\u3002 \u56e0\u4e3a\u8fd9\u4e2a\u63d0\u793a\u5c31\u662f\u6ca1\u6709\u6309\u4e8c\u8fdb\u5236\u4e0a\u4f20\uff0c\u5220\u9664\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6\uff0c\u91cd\u65b0\u4e0a\u4f20\u3002&nbsp; 2\u3001Fatal error: Maximum execution time of \u2026&nbsp; \u89e3\u7b54\uff1a php\u8fd0\u884c\u8d85\u65f6\uff0c\u5230\u53c2\u6570\u8bbe\u7f6e\u90a3\u628a\u6bcf\u7ec4\u5907\u4efd(\u5237\u65b0)\u6570\u6539\u5c0f\uff0c\u4e5f\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u7684php.ini\u6587\u4ef6\u4e2d\u6539max_execution_t= \u7684\u503c\uff0c&nbsp;\u5982\u679c\u6587\u4ef6\u5939\u6570\u636e\u6bd4\u8f83\u5927\uff0c\u5efa\u8bae\u4f60\u4ece\uff46\uff54\uff50\u4e0b\u8f7d\u5907\u4efd\u7684\u6570\u636e\u3002&nbsp; \u5bf9\u4e8e\u8d85\u65f6\u8bbe\u5b9a\uff0c\u8981\u4fee\u6539php.ini:&nbsp; max_execution_t=&nbsp;\u65f6\u95f4 \u767b\u5f55\u540e\u590d\u5236 \u7136\u540e\u91cd\u8d77\u670d\u52a1\uff0c\u6216\u8005\u5728\u7a0b\u5e8f\u5199&nbsp; set_time_limit(\u65f6\u95f4);&nbsp;\/\/0\u4e3a\u65e0\u9650\u5236 \u767b\u5f55\u540e\u590d\u5236 3\u3001Fatal error: Allowed memory size of \u2026. bytes exhausted (tried to allocate \u2026 bytes) in..&nbsp; \u89e3\u7b54\uff1a \u4f60\u7684\u670d\u52a1\u5668\/\u7a7a\u95f4PHP\u8bbe\u7f6e\u95ee\u9898 PHP\u5bf9Script\u8bb0\u5fc6\u4f53\u7a7a\u95f4\u9650\u5236\u7684\u7f18\u6545\u3002Default \u8bbe\u5b9a\u4e3a 8MB\uff0c\u800c\u6709\u4e9b\u4ee5\u524d\u7684 Script\uff0c\u4f1a\u8981\u6c42\u4f7f\u7528\u8d85\u8fc7 8MB \u7684\u5185\u5b58\u7a7a\u95f4\uff0c\u53ea\u8981\u52a0\u5927 8MB \u7684\u4f7f\u7528\u9650\u5236\u5373\u53ef\u3002&nbsp; \u52a0\u5927 8MB [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-29342","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=29342"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29342\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=29342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=29342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=29342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}