{"id":8306,"date":"2025-07-10T12:41:45","date_gmt":"2025-07-10T03:41:45","guid":{"rendered":"https:\/\/code-plus.jp\/gp\/?p=8306"},"modified":"2026-01-08T11:17:05","modified_gmt":"2026-01-08T02:17:05","slug":"post-8306","status":"publish","type":"post","link":"https:\/\/code-plus.jp\/gp\/post-8306\/","title":{"rendered":"WordPress\u3067\u7a81\u7136\u51fa\u3066\u304f\u308bWarning\u3092\u975e\u8868\u793a\u306b\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>WordPress\u3067\u30b5\u30a4\u30c8\u3092\u904b\u55b6\u3057\u3066\u3044\u308b\u3068\u3001\u3042\u308b\u65e5\u7a81\u7136\u753b\u9762\u306e\u4e0a\u90e8\u306b\u300cWarning\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u4f55\u3082\u5909\u66f4\u3057\u3066\u3044\u306a\u3044\u306e\u306b\u6025\u306b\u51fa\u73fe\u3059\u308b\u305f\u3081\u3001\u591a\u304f\u306e\u904b\u55b6\u8005\u304c\u9a5a\u304d\u3001\u300c\u30b5\u30a4\u30c8\u304c\u58ca\u308c\u305f\uff01\u300d\u3068\u7126\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\r\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u7a81\u7136\u8868\u793a\u3055\u308c\u308bWarning\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3068\u3001\u5b89\u5168\u306b\u975e\u8868\u793a\u306b\u3059\u308b\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\r\n<h2 class=\"fz-xl\">Warning\u30a8\u30e9\u30fc\u304c\u7a81\u7136\u51fa\u73fe\u3059\u308b\u7406\u7531<\/h2>\r\n<h3 class=\"fz-lg\">1. \u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u4ed5\u69d8\u5909\u66f4<\/h3>\r\n<p>**\u30d8\u30c6\u30e0\u30eb\u3084\u30a8\u30c3\u30af\u30b9\u30b5\u30fc\u30d0\u30fc\u306a\u3069\u306e\u4e3b\u8981\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5f37\u5316\u306e\u305f\u3081\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u5236\u9650\u304c\u7a81\u7136\u53b3\u3057\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002**\u3053\u308c\u306b\u3088\u308a\u3001\u4eca\u307e\u3067\u554f\u984c\u306a\u304f\u52d5\u4f5c\u3057\u3066\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u53c2\u7167\u304c\u6025\u306bWarning\u3092\u5f15\u304d\u8d77\u3053\u3059\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<h3 class=\"fz-lg\">2. PHP\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u81ea\u52d5\u66f4\u65b0<\/h3>\r\n<p>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306b\u3088\u3063\u3066\u306f\u3001PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306bPHP8\u3067\u306f\u5909\u6570\u306e\u521d\u671f\u5316\u304c\u53b3\u683c\u306b\u306a\u3063\u305f\u305f\u3081\u3001\u4eca\u307e\u3067\u554f\u984c\u306a\u304b\u3063\u305f\u53e4\u3044\u30b3\u30fc\u30c9\u304cWarning\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\r\n<h3 class=\"fz-lg\">3. WordPress\u3084\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u81ea\u52d5\u66f4\u65b0<\/h3>\r\n<p>WordPress\u306e\u81ea\u52d5\u66f4\u65b0\u306b\u3088\u308a\u3001\u30c6\u30fc\u30de\u3084\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u306e\u4e92\u63db\u6027\u306b\u554f\u984c\u304c\u751f\u3058\u3001Warning\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\r\n<h3 class=\"fz-lg\">4. \u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u306e\u5909\u66f4<\/h3>\r\n<p>\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u30a8\u30e9\u30fc\u8868\u793a\u8a2d\u5b9a\uff08<code>display_errors<\/code>\uff09\u304c\u6709\u52b9\u306b\u306a\u308b\u3068\u3001\u4eca\u307e\u3067\u96a0\u308c\u3066\u3044\u305fWarning\u304c\u6025\u306b\u898b\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<h2 class=\"fz-xl\">wp-config.php\u3067\u5b89\u5168\u306bWarning\u3092\u975e\u8868\u793a\u306b\u3059\u308b\u65b9\u6cd5<\/h2>\r\n<p>\u6700\u3082\u78ba\u5b9f\u3067\u5b89\u5168\u306a\u65b9\u6cd5\u306f\u3001WordPress\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u300cwp-config.php\u300d\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\r\n<h3 class=\"fz-lg\">\u624b\u98061: wp-config.php\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\r\n<ol style=\"list-style-type:decimal;\">\r\n<li>FTP\u30bd\u30d5\u30c8\uff08FileZilla\u306a\u3069\uff09\u307e\u305f\u306f\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u30d5\u30a1\u30a4\u30eb\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u958b\u304f<\/li>\r\n<li>WordPress\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d5\u30a9\u30eb\u30c0\u306b\u30a2\u30af\u30bb\u30b9<\/li>\r\n<li>\u300cwp-config.php\u300d\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3064\u3051\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/li>\r\n<\/ol>\r\n<h3 class=\"fz-lg\">\u624b\u98062: \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f5c\u6210<\/h3>\r\n<p><b class=\"bold\">\u91cd\u8981\uff1a\u7de8\u96c6\u524d\u306b\u5fc5\u305awp-config.php\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/b><\/p>\r\n<h3 class=\"fz-lg\">\u624b\u98063: wp-config.php\u3092\u7de8\u96c6<\/h3>\r\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fwp-config.php\u3092\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u884c\u3092\u63a2\u3057\u307e\u3059\uff1a<\/p>\r\n<pre><code class=\"language-php\">define( &#39;WP_DEBUG&#39;, false );\r\n<\/code><\/pre>\r\n<p>\u3053\u306e\u884c\u3092\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\uff1a<\/p>\r\n<pre><code class=\"language-php\">\/\/ Warning\u3092\u975e\u8868\u793a\u306b\u3059\u308b\u8a2d\u5b9a\r\nif (!defined(&#39;WP_DEBUG&#39;) || !WP_DEBUG) {\r\n    \/\/ Warning\u3068notice\u3092\u975e\u8868\u793a\r\n    error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR);\r\n    ini_set(&#39;display_errors&#39;, 0);\r\n    ini_set(&#39;log_errors&#39;, 1);\r\n    \r\n    \/\/ \u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\uff08\u30a8\u30e9\u30fc\u306f\u8a18\u9332\u3055\u308c\u308b\uff09\r\n    ini_set(&#39;error_log&#39;, ABSPATH . &#39;error.log&#39;);\r\n}\r\n<\/code><\/pre>\r\n<h3 class=\"fz-lg\">\u624b\u98064: \u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/h3>\r\n<p>\u7de8\u96c6\u3057\u305fwp-config.php\u30d5\u30a1\u30a4\u30eb\u3092\u5143\u306e\u5834\u6240\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\r\n<h3 class=\"fz-lg\">\u624b\u98065: \u78ba\u8a8d<\/h3>\r\n<p>\u30b5\u30a4\u30c8\u3092\u8868\u793a\u3057\u3066\u3001Warning\u30a8\u30e9\u30fc\u304c\u6d88\u3048\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\r\n<h2 class=\"fz-xl\">\u3053\u306e\u65b9\u6cd5\u306e\u5229\u70b9<\/h2>\r\n<h3 class=\"fz-lg\">1. \u30a8\u30e9\u30fc\u30ed\u30b0\u304c\u6b8b\u308b<\/h3>\r\n<p>Warning\u306f\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u304c\u3001<code>error.log<\/code>\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u9332\u3055\u308c\u308b\u305f\u3081\u3001\u5f8c\u3067\u554f\u984c\u3092\u7279\u5b9a\u3057\u3066\u6839\u672c\u7684\u306b\u4fee\u6b63\u3067\u304d\u307e\u3059\u3002<\/p>\r\n<h3 class=\"fz-lg\">2. \u5b89\u5168\u6027\u304c\u9ad8\u3044<\/h3>\r\n<p>WordPress\u306e\u6a19\u6e96\u7684\u306a\u8a2d\u5b9a\u65b9\u6cd5\u306a\u306e\u3067\u3001\u30b5\u30a4\u30c8\u306e\u52d5\u4f5c\u306b\u60aa\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u305b\u3093\u3002<\/p>\r\n<h3 class=\"fz-lg\">3. \u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306b\u4f9d\u5b58\u3057\u306a\u3044<\/h3>\r\n<p>php.ini\u30d5\u30a1\u30a4\u30eb\u304c\u7de8\u96c6\u3067\u304d\u306a\u3044\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u3082\u4f7f\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\r\n<h3 class=\"fz-lg\">4. \u4e00\u6642\u7684\u306a\u5bfe\u51e6\u304c\u53ef\u80fd<\/h3>\r\n<p>\u6839\u672c\u7684\u306a\u4fee\u6b63\u3092\u884c\u3046\u307e\u3067\u306e\u9593\u3001\u30b5\u30a4\u30c8\u306e\u898b\u305f\u76ee\u3092\u6b63\u5e38\u306b\u4fdd\u3066\u307e\u3059\u3002<\/p>\r\n<h2 class=\"fz-xl\">\u6ce8\u610f\u70b9\u3068\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h2>\r\n<h3 class=\"fz-lg\">\u6839\u672c\u7684\u306a\u89e3\u6c7a\u3092\u76ee\u6307\u3059<\/h3>\r\n<p>\u3053\u306e\u65b9\u6cd5\u306f\u3042\u304f\u307e\u3067\u300c\u8868\u793a\u3092\u96a0\u3059\u300d\u3060\u3051\u3067\u3059\u3002\u6642\u9593\u304c\u3042\u308b\u3068\u304d\u306b\u4ee5\u4e0b\u306e\u5bfe\u7b56\u3092\u691c\u8a0e\u3057\u307e\u3057\u3087\u3046\uff1a<\/p>\r\n<ul style=\"list-style-type:bullet;\">\r\n<li>\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u66f4\u65b0<\/li>\r\n<li>\u30c6\u30fc\u30de\u306e\u66f4\u65b0  <\/li>\r\n<li>PHP\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u6700\u9069\u5316<\/li>\r\n<li>\u53e4\u3044\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4ee3\u66ff\u624b\u6bb5\u691c\u8a0e<\/li>\r\n<\/ul>\r\n<h3 class=\"fz-lg\">\u5b9a\u671f\u7684\u306a\u30ed\u30b0\u30c1\u30a7\u30c3\u30af<\/h3>\r\n<p><code>error.log<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u5b9a\u671f\u7684\u306b\u78ba\u8a8d\u3057\u3001\u91cd\u8981\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u306a\u3044\u304b\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\r\n<h3 class=\"fz-lg\">\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u91cd\u8981\u6027<\/h3>\r\n<p>\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6\u524d\u306b\u306f\u5fc5\u305a\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97\u3057\u3001\u4f55\u304b\u3042\u3063\u305f\u5834\u5408\u306b\u3059\u3050\u5fa9\u5143\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\r\n<h2 class=\"fz-xl\">\u307e\u3068\u3081<\/h2>\r\n<p>WordPress\u3067\u7a81\u7136\u8868\u793a\u3055\u308c\u308bWarning\u30a8\u30e9\u30fc\u306f\u3001\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u4ed5\u69d8\u5909\u66f4\u3084PHP\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u4e3b\u306a\u539f\u56e0\u3067\u3059\u3002wp-config.php\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u3067\u3001\u5b89\u5168\u306b\u30a8\u30e9\u30fc\u8868\u793a\u3092\u975e\u8868\u793a\u306b\u3067\u304d\u307e\u3059\u3002<\/p>\r\n<p>\u305f\u3060\u3057\u3001\u3053\u308c\u306f\u4e00\u6642\u7684\u306a\u5bfe\u51e6\u6cd5\u3067\u3059\u3002\u30b5\u30a4\u30c8\u306e\u9577\u671f\u7684\u306a\u5b89\u5b9a\u6027\u306e\u305f\u3081\u306b\u3001\u53ef\u80fd\u306a\u9650\u308a\u6839\u672c\u7684\u306a\u539f\u56e0\u3092\u7279\u5b9a\u3057\u3001\u4fee\u6b63\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\r\n<p><b class=\"bold\">\u30a8\u30e9\u30fc\u30ed\u30b0\u306f<code>error.log<\/code>\u3068\u3057\u3066\u8a18\u9332\u3055\u308c\u308b\u305f\u3081\u3001\u5f8c\u3067\u554f\u984c\u3092\u628a\u63e1\u3057\u3066\u9069\u5207\u306b\u5bfe\u51e6\u3067\u304d\u308b<\/b>\u70b9\u3082\u3001\u3053\u306e\u65b9\u6cd5\u306e\u5927\u304d\u306a\u30e1\u30ea\u30c3\u30c8\u3067\u3059\u3002<\/p>\r\n","protected":false},"excerpt":{"rendered":"WordPress\u3067\u30b5\u30a4\u30c8\u3092\u904b\u55b6\u3057\u3066\u3044\u308b\u3068\u3001\u3042\u308b\u65e5\u7a81\u7136\u753b\u9762\u306e\u4e0a\u90e8\u306b\u300cWarning\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u4f55\u3082\u5909\u66f4\u3057\u3066\u3044\u306a\u3044\u306e\u306b\u6025\u306b\u51fa\u73fe\u3059\u308b\u305f\u3081\u3001\u591a\u304f\u306e\u904b\u55b6\u8005\u304c\u9a5a\u304d\u3001\u300c\u30b5\u30a4\u30c8\u304c\u58ca\u308c\u305f\uff01\u300d\u3068[...]","protected":false},"author":1,"featured_media":8309,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[175,172,173,174,102,111],"class_list":{"0":"post-8306","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-wordpress","8":"tag-175","9":"tag-172","10":"tag-warning","11":"tag-174","12":"tag-wordpress","13":"tag-php"},"_links":{"self":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/8306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/comments?post=8306"}],"version-history":[{"count":6,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/8306\/revisions"}],"predecessor-version":[{"id":8329,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/posts\/8306\/revisions\/8329"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media\/8309"}],"wp:attachment":[{"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/media?parent=8306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/categories?post=8306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code-plus.jp\/gp\/wp-json\/wp\/v2\/tags?post=8306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}