折腾:
【未解决】crifan.com的WordPress无法登录在wp-login登录页死循环
期间,去试试是否是wp-config.php中的各种配置
去编辑和确保
wp-config.php
中的url正确
wp-config.php
define('WP_HOME','https://www.crifan.com'); define('WP_SITEURL','https://www.crifan.com');
问题依旧。
试试:
define('FORCE_SSL_ADMIN', false);
结果:
问题依旧。
好像说是:
/* That's all, stop editing! Happy blogging. */
在此之前设置参数才有用??
之前设置参数,是在此之前的。没问题。
// define('WP_HOME','https://www.crifan.com'); // define('WP_SITEURL','https://www.crifan.com'); define('WP_HOME','https://crifan.com'); define('WP_SITEURL','https://crifan.com');
结果:
Warning: include_once(/data/wwwroot/www.crifan.com/wp-content/plugins/wp-super-cache/wp-cache-phase1.php): failed to open stream: No such file or directory in /data/wwwroot/www.crifan.com/wp-content/advanced-cache.php on line 20 Warning: include_once(): Failed opening '/data/wwwroot/www.crifan.com/wp-content/plugins/wp-super-cache/wp-cache-phase1.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /data/wwwroot/www.crifan.com/wp-content/advanced-cache.php on line 20 wp-login.php:84 GET https://crifan.com/wp-admin/js/password-strength-meter.min.js?ver=5.5.1 net::ERR_CERT_COMMON_NAME_INVALID 20:54:56.701 wp-login.php:85 GET https://crifan.com/wp-includes/js/underscore.min.js?ver=1.8.3 net::ERR_CERT_COMMON_NAME_INVALID 20:54:57.527 wp-login.php:91 GET https://crifan.com/wp-includes/js/wp-util.min.js?ver=5.5.1 net::ERR_CERT_COMMON_NAME_INVALID 20:54:57.528 wp-login.php:96 Uncaught ReferenceError: wp is not defined at wp-login.php:96 at wp-login.php:97 GET https://crifan.com/wp-admin/js/user-profile.min.js?ver=5.5.1 net::ERR_CERT_COMMON_NAME_INVALID
问题依旧。
此处看起来是:plugins中的cache没成功加载
是因为前面改了plugins文件夹名,目的是暂时禁止所有插件
所以看起来不是这个问题。
不过,还是改为:
// define('FORCE_SSL_ADMIN', false); define('WP_HOME','https://www.crifan.com'); define('WP_SITEURL','https://www.crifan.com');
结果:
至少看起来稍微正常了
由于之前给wp-config.php中开启了debug:
// define('WP_DEBUG', false); define('WP_DEBUG', true);
此时主页会显示很多警告:
Notice: wp_deregister_script的调用方法不正确。脚本和样式应在wp_enqueue_scripts、admin_enqueue_scripts和login_enqueue_scripts钩子之后再加入加载队列(enqueue)或注册(register)。 This notice was triggered by the l10n handle. 请查阅调试WordPress来获取更多信息。 (这个消息是在3.3.0版本添加的。) in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 5225 Notice: Undefined variable: control_ops in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/widgets/wid-banner.php on line 11 Deprecated: 在d_banner中为WP_Widget调用的构造函数已自版本4.3.0起废弃!请改用__construct()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4866 Notice: Undefined variable: control_ops in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/widgets/wid-slidebanner.php on line 11 Deprecated: 在d_slidebanner中为WP_Widget调用的构造函数已自版本4.3.0起废弃!请改用__construct()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4866 Notice: Undefined variable: control_ops in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/widgets/wid-readers.php on line 11 Deprecated: 在d_reader中为WP_Widget调用的构造函数已自版本4.3.0起废弃!请改用__construct()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4866 Notice: Undefined variable: control_ops in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/widgets/wid-postlist.php on line 11 Deprecated: 在d_postlist中为WP_Widget调用的构造函数已自版本4.3.0起废弃!请改用__construct()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4866 Notice: Undefined variable: control_ops in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/widgets/wid-comment.php on line 11 Deprecated: 在d_comment中为WP_Widget调用的构造函数已自版本4.3.0起废弃!请改用__construct()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4866 Notice: Undefined variable: control_ops in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/widgets/wid-tags.php on line 11 Deprecated: 在d_tag中为WP_Widget调用的构造函数已自版本4.3.0起废弃!请改用__construct()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4866 Notice: Undefined variable: control_ops in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/widgets/wid-textbanner.php on line 11 Deprecated: 在d_textbanner中为WP_Widget调用的构造函数已自版本4.3.0起废弃!请改用__construct()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4866 Deprecated: 自3.1.0版本起,已不建议给WP_Query传入一个参数!caller_get_posts已被废弃,请改用ignore_sticky_posts。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 5057 Notice: Undefined variable: wp_sh_class_name in /data/wwwroot/www.crifan.com/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1002 Notice: Undefined variable: wp_sh_class_name in /data/wwwroot/www.crifan.com/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1002 Warning: Use of undefined constant XML - assumed 'XML' (this will throw an Error in a future version of PHP) in /data/wwwroot/www.crifan.com/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1048
但是看不出如何修改
【未解决】WordPress警告:Warning Cannot modify header information headers already sent by output started at
算了,为了不影响用户访问网站,不让其看到这么多输出的调试信息
暂时把debug关了:
define('WP_DEBUG', false); // define('WP_DEBUG', true);
抽空继续折腾。