WP localでエラーが出る場合

「NONCE_SALT constant is missing from the wp-config.php file」というエラーは、WordPressの設定ファイル「wp-config.php」に「NONCE_SALT」定数が含まれていないことを示しています。

このエラーは、WordPressのセキュリティを強化するために使用される「NONCE_SALT(一時的なトークン)」の機能に関連しています。

Local Sites/サイト名/app/public/wp-config.php

などのwp-config.phpに下記を追加します。

/**#@+
 * Authentication unique keys and salts.
 *
 * Change these to different unique phrases! You can generate these using
 * the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}.
 *
 * You can change these at any point in time to invalidate all existing cookies.
 * This will force all users to have to log in again.
 *
 * @since 2.6.0
 */

//追加する
define('NONCE_SALT', 'ここに任意の文字列を入力');

【WordPress ローカル作業におけるエラー】NONCE_SALT constant is missing from the wp-config.php file. について | ギークの逆襲 🐟