admin管理员组文章数量:1388072
When I go to /wp-admin/ I get a 404 not found error. This just started tonight. I don't have any plugins that change the login or the wp-admin page. my site is / This is all the log says.
[27-Apr-2020 12:34:36 UTC] PHP Warning: define() expects at least 2 parameters, 1 given in /var/www/main/wp-config.php on line 104
[27-Apr-2020 12:34:39 UTC] PHP Warning: define() expects at least 2 parameters, 1 given in /var/www/main/wp-config.php on line 104
[27-Apr-2020 12:34:41 UTC] PHP Warning: define() expects at least 2 parameters, 1 given in /var/www/main/wp-config.php on line 104
[27-Apr-2020 12:34:46 UTC] PHP Warning: define() expects at least 2 parameters, 1 given in /var/www/main/wp-config.php on line 104
[27-Apr-2020 12:35:33 UTC] PHP Warning: define() expects at least 2 parameters, 1 given in /var/www/main/wp-config.php on line 104
[27-Apr-2020 12:35:39 UTC] PHP Warning: define() expects at least 2 parameters, 1 given in /var/www/main/wp-config.php on line 104
[27-Apr-2020 12:35:40 UTC] PHP Warning: define() expects at least 2 parameters, 1 given in /var/www/main/wp-config.php on line 104
When I go to /wp-admin/ I get a 404 not found error. This just started tonight. I don't have any plugins that change the login or the wp-admin page. my site is https://sturtz.ml/ This is all the log says.
[27-Apr-2020 12:34:36 UTC] PHP Warning: define() expects at least 2 parameters, 1 given in /var/www/main/wp-config.php on line 104
[27-Apr-2020 12:34:39 UTC] PHP Warning: define() expects at least 2 parameters, 1 given in /var/www/main/wp-config.php on line 104
[27-Apr-2020 12:34:41 UTC] PHP Warning: define() expects at least 2 parameters, 1 given in /var/www/main/wp-config.php on line 104
[27-Apr-2020 12:34:46 UTC] PHP Warning: define() expects at least 2 parameters, 1 given in /var/www/main/wp-config.php on line 104
[27-Apr-2020 12:35:33 UTC] PHP Warning: define() expects at least 2 parameters, 1 given in /var/www/main/wp-config.php on line 104
[27-Apr-2020 12:35:39 UTC] PHP Warning: define() expects at least 2 parameters, 1 given in /var/www/main/wp-config.php on line 104
[27-Apr-2020 12:35:40 UTC] PHP Warning: define() expects at least 2 parameters, 1 given in /var/www/main/wp-config.php on line 104
- Can someone please help me, I need to get into my wp-admin – Nate Commented Apr 27, 2020 at 1:11
- 1 I suggest you rename plugins folder and create an empty plugin folder. Your site takes long but still cannot load. – 西門 正 Code Guy - JingCodeGuy Commented Apr 27, 2020 at 1:38
1 Answer
Reset to default 1Since you rename the original plugin folder and create a blank plugin then it works. If in case log file is not immediately reflecting the error or it is not obvious for identifying the error. Moving the disabled plugin one by one to the new empty plugin folder is another way to find out which plugin(s) cause the issue.
One or more of the plugins generate php error which I believe. I suggest you turn on the debug with output file to trace. You may do the following steps to debug.
- Update your wp-config.php by adding the following statement
// turn on debug mode
define( 'WP_DEBUG', true );
// the path to file, WP_DEBUG must be TRUE to use
define( 'WP_DEBUG_LOG', 'path_to_log/debug.log' );
rename back the plugin folder
run the site once
go to see the debug.log to find out the error portion
If you haven't done anything, most likely, your host update PHP version I guess. There are many factors, just see the debug log to find out.
For more about debug, you may visit Debug WordPress
本文标签: 404 errorWPadmin giving 404
版权声明:本文标题:404 error - WP-admin giving 404 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744521069a2610457.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论