デバッグモードで Undefined variable 表示
-
下記の環境でプラグインを導入したところ、デバッグモードで Undefined variable の警告が表示されました。
- サーバプラン … スタンダード
- WordPress バージョン … 5.0.3
- PHP バージョン … 7.2.14(モジュール版)
デバッグログ
PHP Notice: Undefined variable: uid in /home/USERNAME/www/WP_DIRECTORY/wp-content/plugins/ts-webfonts-for-sakura/ts-webfonts-for-sakura.php on line 67
コードを見たところ、変数 $uid が定義されていない状態で真偽判定しているのが原因のようです。
- The topic ‘デバッグモードで Undefined variable 表示’ is closed to new replies.