{"id":2917,"date":"2019-08-18T21:07:49","date_gmt":"2019-08-18T12:07:49","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=2917"},"modified":"2019-08-18T21:07:51","modified_gmt":"2019-08-18T12:07:51","slug":"post-2917","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2019\/08\/18\/post-2917\/","title":{"rendered":"WordPress\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u3068hash_algos() \u304c\u30a8\u30e9\u30fc\u306b\u306a\u308b"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">PHP\u3092PHP7.3\u306b\u4e0a\u3052\u305f\u3068\u3053\u308d\u3001Wordpress\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u3001\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u305f\u3002<\/p>\n\n\n\n<pre>\nFatal error: Uncaught Error: Call to undefined function hash_algos() in \/usr\/xxxxxx\/xxxxxx\/wp-admin\/includes\/file.php:1166 Stack trace: #0 \n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8a72\u5f53\u30d5\u30a1\u30a4\u30eb\u306e\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u307f\u308b\u3068\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u305f\u3002<\/p>\n\n\n\n<pre>\n        if ( ! function_exists( 'sodium_crypto_sign_verify_detached' ) || ! in_\\\narray( 'sha384', array_map( 'strtolower', hash_algos() ) ) ) {\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u300chash_alogs()\u300d\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3060\u3002\u8abf\u3079\u3066\u307f\u305f\u3089\u3001php73-hash-7.3.X \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u3002FreeBSD\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u3001php73-hash\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001apache\u3092\u518d\u8d77\u52d5\u3057\u305f\u3002<\/p>\n\n\n\n<pre>\n# pkg install php73-hash\nUpdating FreeBSD repository catalogue...\nFreeBSD repository is up to date.\nAll repositories are up to date.\nThe following 1 package(s) will be affected (of 0 checked):\n\nNew packages to be INSTALLED:\n\tphp73-hash: 7.3.8\n\nNumber of packages to be installed: 1\n\n152 KiB to be downloaded.\n\nProceed with this action? [y\/N]: y\n[1\/1] Fetching php73-hash-7.3.8.txz: 100%  152 KiB 155.8kB\/s    00:01    \nChecking integrity... done (0 conflicting)\n[1\/1] Installing php73-hash-7.3.8...\n[1\/1] Extracting php73-hash-7.3.8: 100%\nMessage from php73-hash-7.3.8:\n\nThis file has been added to automatically load the installed extension:\n\/usr\/local\/etc\/php\/ext-20-hash.ini\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3059\u3050\u306bWordpress\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u8a66\u3059\u3068\u3001\u300c\u5225\u306e\u66f4\u65b0\u304c\u9032\u884c\u4e2d\u3067\u3059\u3002\u300d\u3068\u51fa\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308b\u3002\u3053\u308c\u306f\u3001\u524d\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u3088\u308b\u30ed\u30c3\u30af\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u305f\u3081\u300215\u5206\u7d4c\u3066\u3070\u3001DB\u306e\u30ed\u30c3\u30af\u304c\u89e3\u9664\u3055\u308c\u308b\u306e\u3067\u3001\u6642\u9593\u304c\u7acb\u3063\u3066\u304b\u3089\u8a66\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u3092PHP7.3\u306b\u4e0a\u3052\u305f\u3068\u3053\u308d\u3001Wordpress\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u3001\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u305f\u3002 Fatal error: Uncaught Error: Call to undefined function hash [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[51,48,37],"class_list":["post-2917","post","type-post","status-publish","format-standard","hentry","category-tech-memo","tag-freebsd","tag-php","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/2917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=2917"}],"version-history":[{"count":1,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/2917\/revisions"}],"predecessor-version":[{"id":2918,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/2917\/revisions\/2918"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=2917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=2917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=2917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}