{"id":5008,"date":"2024-03-29T11:42:14","date_gmt":"2024-03-29T02:42:14","guid":{"rendered":"https:\/\/taitan916.info\/blog\/?p=5008"},"modified":"2024-03-29T11:56:33","modified_gmt":"2024-03-29T02:56:33","slug":"post-5008","status":"publish","type":"post","link":"https:\/\/taitan916.info\/blog\/archives\/5008","title":{"rendered":"PHP8\u7cfb\u3067\u300cWarning: Constant xxxxx already defined in\u300d\u30a8\u30e9\u30fc\u306e\u5bfe\u5fdc\u65b9\u6cd5"},"content":{"rendered":"<p>PHP8\u7cfb&amp;WordPress6.4.3\u3067\u300cWarning: Constant xxxxx already defined in\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30ed\u30b0\u304c\u898b\u53d7\u3051\u3089\u308c\u305f\u3002\u300c\/wordpress\/wp-content\/db.php\u300d\u300c\/wordpress\/wp-config.php\u300d\u306b\u3066\u767a\u751f\u3057\u3066\u3044\u308b\u6a21\u69d8\u3002\u4ee5\u4e0b\u306b\u5bfe\u5fdc\u65b9\u6cd5\u3092\u30e1\u30e2\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u539f\u56e0<\/h2>\n<p>\u5b9a\u6570\u304c\u4e8c\u91cd\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b(\u5b9a\u7fa9\u6e08\u307f\u306e\u5b9a\u6570\u3092\u65b0\u305f\u306b\u5b9a\u7fa9\u3057\u305f)\u5834\u5408\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u3068\u306a\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u5bfe\u5fdc\u65b9\u6cd5<\/h2>\n<p><a href=\"https:\/\/www.php.net\/manual\/ja\/function.defined.php\" target=\"_blank\" rel=\"noopener\">defined<\/a>\u3067\u5b9a\u6570\u304c\u5b9a\u7fa9\u6e08\u307f\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002\u5177\u4f53\u7684\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f62\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">if( !defined('xxxxxxxxx') ){\r\n    define('xxxxxxxxx', true );\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<h2>\u30a8\u30e9\u30fc\u8a73\u7d30\u3068\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066<\/h2>\n<h3>\/wordpress\/wp-content\/db.php<\/h3>\n<h4>\u30a8\u30e9\u30fc\u8a73\u7d30<\/h4>\n<p>\u4ee5\u4e0b\u30a8\u30e9\u30fc\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u3066\u3044\u305f\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Warning: Constant EZSQL_VERSION already defined in \/wordpress\/wp-content\/db.php on line 43\r\nWarning: Constant OBJECT already defined in \/wordpress\/wp-content\/db.php on line 48\r\nWarning: Constant OBJECT_K already defined in \/wordpress\/wp-content\/db.php on line 53\r\nWarning: Constant ARRAY_A already defined in \/wordpress\/wp-content\/db.php on line 58\r\nWarning: Constant ARRAY_N already defined in \/wordpress\/wp-content\/db.php on line 63<\/pre>\n<h4>\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb<\/h4>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8ffd\u3063\u3066\u307f\u308b\u3068\u300c\/wordpress\/wp-includes\/wp-db.php\u300d\u5185\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u305f\u3002<\/p>\n<p>\u3069\u3046\u3082<a href=\"https:\/\/blog.at-human.com\/2021\/06\/wp-original-tables\/\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8<\/a>\u3092\u898b\u3066\u307f\u308b\u3068wp-db.php\u306e\u65b9\u304c\u30b3\u30a2\u30d5\u30a1\u30a4\u30eb\u3067db.php\u306f\u62e1\u5f35\u6a5f\u80fd\u30d5\u30a1\u30a4\u30eb\u306b\u3042\u305f\u308b\u3089\u3057\u3044\u3002\u3068\u306f\u3044\u3048db.php\u3092\u4f5c\u6210\u3057\u305f\u899a\u3048\u304c\u7121\u3044\u3093\u3060\u3051\u3069\u2026\u2026\u3002<\/p>\n<h3>\/wordpress\/wp-config.php<\/h3>\n<h4>\u30a8\u30e9\u30fc\u8a73\u7d30<\/h4>\n<p>\u4ee5\u4e0b\u30a8\u30e9\u30fc\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u3066\u3044\u305f\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Warning: Constant WP_POST_REVISIONS already defined in \/wordpress\/wp-config.php on line 91<\/pre>\n<p>\u3053\u3061\u3089\u306f<a href=\"https:\/\/ja.wordpress.org\/support\/article\/revisions\/\" target=\"_blank\" rel=\"noopener\">\u30ea\u30d3\u30b8\u30e7\u30f3\u6570\u3092\u6307\u5b9a<\/a>\u3059\u308b\u305f\u3081\u306bwp-config.php\u3067\u5b9a\u7fa9\u3057\u305f\u899a\u3048\u304c\u3042\u308b\u3002<\/p>\n<h4>\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb<\/h4>\n<p>\u300c\/wordpress\/wp-includes\/default-constants.php\u300d\u5185\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u305f\u3002<\/p>\n<h4>\u6ce8\u610f\u70b9<\/h4>\n<p>\u30ea\u30d3\u30b8\u30e7\u30f3\u6570\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u306fwp-config.php\u5185\u306e\u4ee5\u4e0b\u90e8\u5206\u3088\u308a\u4e0a\u3067\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u3042\u308a\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/** Absolute path to the WordPress directory. *\/\r\nif ( !defined('ABSPATH') )\r\n    define('ABSPATH', dirname(__FILE__) . '\/');\r\n\/** Sets up WordPress vars and included files. *\/\r\nrequire_once(ABSPATH . 'wp-settings.php');<\/pre>\n<p>\u4e0a\u8a18\u90e8\u5206\u3088\u308a\u4e0b\u3067\u5b9a\u7fa9\u3057\u3066\u3057\u307e\u3046\u3068\u5148\u306bdefault-constants.php\u5074\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3057\u307e\u3046\u3088\u3046\u3067\u30ea\u30d3\u30b8\u30e7\u30f3\u6570\u304c\u6307\u5b9a\u3067\u304d\u306a\u304b\u3063\u305f(var_dump\u3067\u78ba\u8a8d\u6e08\u307f)\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u6240\u611f<\/h2>\n<p>WordPress\u306b\u95a2\u3057\u3066Notice\u4ee5\u5916\u306e\u30a8\u30e9\u30fc\u306f\u5168\u3066\u5bfe\u5fdc\u3067\u304d\u305f\u306e\u3067\u6e80\u8db3\u3002\u5c1a\u3001WordPress\u306e\u30a8\u30e9\u30fc\u5bfe\u5fdc\u6642\u306fwp-config.php\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3001\u81ea\u5206\u306e\u307f\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u306b\u3059\u308b\u3068\u826f\u3044\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">if ( $_SERVER[\"REMOTE_ADDR\"] == \"\u81ea\u8eab\u306e\u63a5\u7d9aIP\u30a2\u30c9\u30ec\u30b9\" ){\r\n    define('WP_DEBUG', true);\r\n}else{\r\n    define('WP_DEBUG', false);\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>PHP8\u7cfb&amp;WordPress6.4.3\u3067\u300cWarning: Const ... <\/p>\n","protected":false},"author":1,"featured_media":1093,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2,24,41],"tags":[],"class_list":["post-5008","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","category-wordpress","category-cms"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/5008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/comments?post=5008"}],"version-history":[{"count":5,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/5008\/revisions"}],"predecessor-version":[{"id":5026,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/5008\/revisions\/5026"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media\/1093"}],"wp:attachment":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media?parent=5008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/categories?post=5008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/tags?post=5008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}