Wordpress Deprecated: define(): Declaration of case-insensitive constants 已弃用
Wordpress Deprecated: define(): Declaration of case-insensitive constants is deprecated
我遇到了以下问题,但我不知道如何解决它,我也尝试在定义上发表评论,但它没有解决问题。
错误:
Deprecated: define(): Declaration of case-insensitive constants is deprecated in /storage/.../public_html/wp-content/plugins/themehunk-customizer/featuredlite/inc/constant.php on line 3
Deprecated: define(): Declaration of case-insensitive constants is deprecated in /storage/.../public_html/wp-content/plugins/themehunk-customizer/featuredlite/inc/constant.php on line 4
我的疑问可能是 wordpress 使用的版本问题以及加载网站的主机?
似乎您正在使用 PHP 7.3 并且从 PHP 7.3.0 开始不推荐使用定义 case-insensitive 常量。
我没有看到任何解决方法,但您可以将 PHP 降级到 7.2 以使其正常工作。
检查 "wp-config" 文件中的 "WP_DEBUG" 条目是否为 "false"。
在 PHP 7.3 中:不赞成使用第三个参数 true 调用 define()
see here
我遇到了以下问题,但我不知道如何解决它,我也尝试在定义上发表评论,但它没有解决问题。
错误:
Deprecated: define(): Declaration of case-insensitive constants is deprecated in /storage/.../public_html/wp-content/plugins/themehunk-customizer/featuredlite/inc/constant.php on line 3
Deprecated: define(): Declaration of case-insensitive constants is deprecated in /storage/.../public_html/wp-content/plugins/themehunk-customizer/featuredlite/inc/constant.php on line 4
我的疑问可能是 wordpress 使用的版本问题以及加载网站的主机?
似乎您正在使用 PHP 7.3 并且从 PHP 7.3.0 开始不推荐使用定义 case-insensitive 常量。
我没有看到任何解决方法,但您可以将 PHP 降级到 7.2 以使其正常工作。
检查 "wp-config" 文件中的 "WP_DEBUG" 条目是否为 "false"。
在 PHP 7.3 中:不赞成使用第三个参数 true 调用 define() see here