ZoneMinder新規インストール時に「ZoneMinder – Privacy」から先に進まない件

サーバ入れ替えに伴い、ZoneMinderを新規インストールしました。その際に「ZoneMinder – Privacy」でAPPLYを押してもエンドレスループしました。

エンドレスループした画面は以下。

その際に出ていたApacheログは以下。

[Sun Feb 21 20:53:02.940049 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_DATABASE - assumed 'ZM_LOG_LEVEL_DATABASE' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 102
[Sun Feb 21 20:53:02.940090 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_FILE - assumed 'ZM_LOG_LEVEL_FILE' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 107
[Sun Feb 21 20:53:02.940101 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_DEBUG - assumed 'ZM_LOG_DEBUG' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 136
[Sun Feb 21 20:53:02.940107 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_DEBUG_TARGET - assumed 'ZM_LOG_DEBUG_TARGET' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 137
[Sun Feb 21 20:53:02.940198 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_DATABASE - assumed 'ZM_LOG_LEVEL_DATABASE' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 102
[Sun Feb 21 20:53:02.940210 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_FILE - assumed 'ZM_LOG_LEVEL_FILE' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 107
[Sun Feb 21 20:53:02.940216 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_WEBLOG - assumed 'ZM_LOG_LEVEL_WEBLOG' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 112
[Sun Feb 21 20:53:02.940219 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_SYSLOG - assumed 'ZM_LOG_LEVEL_SYSLOG' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 117
[Sun Feb 21 20:53:02.940237 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_DEBUG - assumed 'ZM_LOG_DEBUG' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 136
[Sun Feb 21 20:53:02.940244 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_DEBUG_TARGET - assumed 'ZM_LOG_DEBUG_TARGET' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 137
[Sun Feb 21 20:53:02.940631 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_COOKIE_LIFETIME - assumed 'ZM_COOKIE_LIFETIME' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/session.php on line 11
[Sun Feb 21 20:53:02.940808 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_COOKIE_LIFETIME - assumed 'ZM_COOKIE_LIFETIME' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/session.php on line 39
[Sun Feb 21 20:53:02.940818 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  A non-numeric value encountered in /usr/share/zoneminder/www/includes/session.php on line 39
[Sun Feb 21 20:53:02.940823 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_COOKIE_LIFETIME - assumed 'ZM_COOKIE_LIFETIME' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/session.php on line 40
[Sun Feb 21 20:53:02.940826 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_COOKIE_LIFETIME - assumed 'ZM_COOKIE_LIFETIME' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/session.php on line 40
[Sun Feb 21 20:53:02.940830 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  A non-numeric value encountered in /usr/share/zoneminder/www/includes/session.php on line 40
[Sun Feb 21 20:53:02.945388 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_OPT_USE_AUTH - assumed 'ZM_OPT_USE_AUTH' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 296
[Sun Feb 21 20:53:02.945410 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_HASH_LOGINS - assumed 'ZM_AUTH_HASH_LOGINS' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 306
[Sun Feb 21 20:53:02.945415 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_TYPE - assumed 'ZM_AUTH_TYPE' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 321
[Sun Feb 21 20:53:02.945420 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_HASH_LOGINS - assumed 'ZM_AUTH_HASH_LOGINS' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 264
[Sun Feb 21 20:53:02.945423 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_RELAY - assumed 'ZM_AUTH_RELAY' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 264
[Sun Feb 21 20:53:02.945696 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_HASH_IPS - assumed 'ZM_AUTH_HASH_IPS' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 331
[Sun Feb 21 20:53:02.945715 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_OPT_USE_AUTH - assumed 'ZM_OPT_USE_AUTH' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 216
[Sun Feb 21 20:53:02.945726 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_RELAY - assumed 'ZM_AUTH_RELAY' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 216
[Sun Feb 21 20:53:02.947984 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LANG_DEFAULT - assumed 'ZM_LANG_DEFAULT' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/lang.php on line 46
[Sun Feb 21 20:53:02.952628 2021] [php7:notice] [pid 279548] [client 192.168.0.240:62176] WAR [System language file lang/ZM_LANG_DEFAULT.php does not exist.]
[Sun Feb 21 20:53:02.952719 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_BANDWIDTH_DEFAULT - assumed 'ZM_BANDWIDTH_DEFAULT' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/skins/classic/skin.php on line 22
[Sun Feb 21 20:53:02.952765 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_ENABLE_CSRF_MAGIC - assumed 'ZM_ENABLE_CSRF_MAGIC' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/index.php on line 226
[Sun Feb 21 20:53:02.952777 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_HASH_SECRET - assumed 'ZM_AUTH_HASH_SECRET' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/csrf/csrf-magic.php on line 55
[Sun Feb 21 20:53:02.952783 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_HASH_SECRET - assumed 'ZM_AUTH_HASH_SECRET' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/csrf/csrf-magic.php on line 105
[Sun Feb 21 20:53:02.952796 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_OPT_USE_AUTH - assumed 'ZM_OPT_USE_AUTH' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/index.php on line 251
[Sun Feb 21 20:53:02.952804 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_SHOW_PRIVACY - assumed 'ZM_SHOW_PRIVACY' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/index.php on line 267
[Sun Feb 21 20:53:02.952858 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_WEB_TITLE_PREFIX - assumed 'ZM_WEB_TITLE_PREFIX' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/skins/classic/includes/functions.php on line 97
[Sun Feb 21 20:53:02.952984 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_TELEMETRY_DATA - assumed 'ZM_TELEMETRY_DATA' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/skins/classic/views/privacy.php on line 66
[Sun Feb 21 20:53:02.955589 2021] [php7:notice] [pid 279548] [client 192.168.0.240:62176] WAR [Specified value ZM_TELEMETRY_DATA not in contents: Array\n(\n    [1] => Accept\n    [0] => Decline\n)]
[Sun Feb 21 20:53:02.955726 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_WEB_AJAX_TIMEOUT - assumed 'ZM_WEB_AJAX_TIMEOUT' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/skins/classic/js/skin.js.php on line 27
[Sun Feb 21 20:53:02.955735 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_WEB_REFRESH_NAVBAR - assumed 'ZM_WEB_REFRESH_NAVBAR' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/skins/classic/js/skin.js.php on line 28
[Sun Feb 21 20:53:02.955739 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  A non-numeric value encountered in /usr/share/zoneminder/www/skins/classic/js/skin.js.php on line 28
[Sun Feb 21 20:53:02.955803 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_WEB_ANIMATE_THUMBS - assumed 'ZM_WEB_ANIMATE_THUMBS' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/skins/classic/js/skin.js.php on line 55
[Sun Feb 21 20:53:02.955815 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_HASH_IPS - assumed 'ZM_AUTH_HASH_IPS' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/skins/classic/js/skin.js.php on line 83
[Sun Feb 21 20:53:02.955820 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_OPT_USE_AUTH - assumed 'ZM_OPT_USE_AUTH' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 216
[Sun Feb 21 20:53:02.955823 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_RELAY - assumed 'ZM_AUTH_RELAY' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 216
[Sun Feb 21 20:53:02.955828 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_OPT_USE_AUTH - assumed 'ZM_OPT_USE_AUTH' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 281
[Sun Feb 21 20:53:02.955832 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_RELAY - assumed 'ZM_AUTH_RELAY' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 282
[Sun Feb 21 20:53:02.955835 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_RELAY - assumed 'ZM_AUTH_RELAY' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 284
[Sun Feb 21 20:53:02.955838 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_RELAY - assumed 'ZM_AUTH_RELAY' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 287
[Sun Feb 21 20:53:02.955842 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_RELAY - assumed 'ZM_AUTH_RELAY' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 290
[Sun Feb 21 20:53:02.958641 2021] [php7:notice] [pid 279548] [client 192.168.0.240:62176] ERR [Unknown value for ZM_AUTH_RELAY ZM_AUTH_RELAY]
[Sun Feb 21 20:53:03.297556 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_DATABASE - assumed 'ZM_LOG_LEVEL_DATABASE' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 102, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.297584 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_FILE - assumed 'ZM_LOG_LEVEL_FILE' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 107, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.297592 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_DEBUG - assumed 'ZM_LOG_DEBUG' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 136, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.297595 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_DEBUG_TARGET - assumed 'ZM_LOG_DEBUG_TARGET' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 137, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.297647 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_DATABASE - assumed 'ZM_LOG_LEVEL_DATABASE' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 102, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.297655 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_FILE - assumed 'ZM_LOG_LEVEL_FILE' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 107, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.297659 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_WEBLOG - assumed 'ZM_LOG_LEVEL_WEBLOG' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 112, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.297663 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_SYSLOG - assumed 'ZM_LOG_LEVEL_SYSLOG' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 117, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.297668 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_DEBUG - assumed 'ZM_LOG_DEBUG' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 136, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.297672 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_DEBUG_TARGET - assumed 'ZM_LOG_DEBUG_TARGET' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 137, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.297976 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_COOKIE_LIFETIME - assumed 'ZM_COOKIE_LIFETIME' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/session.php on line 11, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.298133 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_COOKIE_LIFETIME - assumed 'ZM_COOKIE_LIFETIME' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/session.php on line 39, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.298144 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  A non-numeric value encountered in /usr/share/zoneminder/www/includes/session.php on line 39, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.298150 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_COOKIE_LIFETIME - assumed 'ZM_COOKIE_LIFETIME' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/session.php on line 40, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.298154 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_COOKIE_LIFETIME - assumed 'ZM_COOKIE_LIFETIME' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/session.php on line 40, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.298158 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  A non-numeric value encountered in /usr/share/zoneminder/www/includes/session.php on line 40, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.302252 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_MIN_STREAMING_PORT - assumed 'ZM_MIN_STREAMING_PORT' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/functions.php on line 106, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.302367 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_OPT_USE_AUTH - assumed 'ZM_OPT_USE_AUTH' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 296, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.302380 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_HASH_LOGINS - assumed 'ZM_AUTH_HASH_LOGINS' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 306, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.302385 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_TYPE - assumed 'ZM_AUTH_TYPE' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 321, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.302391 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_HASH_LOGINS - assumed 'ZM_AUTH_HASH_LOGINS' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 264, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.302395 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_RELAY - assumed 'ZM_AUTH_RELAY' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 264, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.302637 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_HASH_IPS - assumed 'ZM_AUTH_HASH_IPS' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 331, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.302651 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_OPT_USE_AUTH - assumed 'ZM_OPT_USE_AUTH' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 216, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.302656 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_RELAY - assumed 'ZM_AUTH_RELAY' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/auth.php on line 216, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.305289 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LANG_DEFAULT - assumed 'ZM_LANG_DEFAULT' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/lang.php on line 46, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.307597 2021] [php7:notice] [pid 279548] [client 192.168.0.240:62176] WAR [System language file lang/ZM_LANG_DEFAULT.php does not exist.], referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.307672 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_BANDWIDTH_DEFAULT - assumed 'ZM_BANDWIDTH_DEFAULT' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/skins/classic/skin.php on line 22, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.307711 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_ENABLE_CSRF_MAGIC - assumed 'ZM_ENABLE_CSRF_MAGIC' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/index.php on line 226, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.307735 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_HASH_SECRET - assumed 'ZM_AUTH_HASH_SECRET' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/csrf/csrf-magic.php on line 55, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.307742 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_AUTH_HASH_SECRET - assumed 'ZM_AUTH_HASH_SECRET' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/csrf/csrf-magic.php on line 105, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.307767 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_OPT_USE_AUTH - assumed 'ZM_OPT_USE_AUTH' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/index.php on line 251, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.307777 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_SHOW_PRIVACY - assumed 'ZM_SHOW_PRIVACY' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/index.php on line 267, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.307806 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_DATABASE - assumed 'ZM_LOG_LEVEL_DATABASE' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 102, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.307814 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_FILE - assumed 'ZM_LOG_LEVEL_FILE' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 107, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.307817 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_WEBLOG - assumed 'ZM_LOG_LEVEL_WEBLOG' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 112, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.307820 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_LEVEL_SYSLOG - assumed 'ZM_LOG_LEVEL_SYSLOG' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 117, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.307827 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_DEBUG - assumed 'ZM_LOG_DEBUG' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 136, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.307831 2021] [php7:warn] [pid 279548] [client 192.168.0.240:62176] PHP Warning:  Use of undefined constant ZM_LOG_DEBUG_TARGET - assumed 'ZM_LOG_DEBUG_TARGET' (this will throw an Error in a future version of PHP) in /usr/share/zoneminder/www/includes/logger.php on line 137, referer: http://192.168.0.230/zm/index.php?view=privacy
[Sun Feb 21 20:53:03.310910 2021] [php7:notice] [pid 279548] [client 192.168.0.240:62176] ERR [TypeError%3A%20canEdit%20is%20undefined], referer: http://192.168.0.230/zm/index.php?view=privacy

原因

最初のログからわかる通り「ZM_LOG_LEVEL_DATABASE」等の環境変数が無くてエラーになっています。その環境変数は「/usr/share/zoneminder/db/zm_create.sql」で作成され、MySQLの「zm」データベース「Config」テーブルに存在しているはずが、それが無いためにエラーとなっていました。

対策

ZoneMinderのDBを再作成します。

# 対象のDBを削除
sudo mysql
drop database zm
quit

# SQL文中にDB作成も入っているので、以下を流し込む
sudo mysql -uroot < /usr/share/zoneminder/db/zm_create.sql