最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

404 error - WP-admin giving 404

programmeradmin4浏览0评论

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

Share Improve this question edited Apr 27, 2020 at 12:38 Nate asked Apr 27, 2020 at 0:48 NateNate 2111 silver badge12 bronze badges 2
  • 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
Add a comment  | 

1 Answer 1

Reset to default 1

Since 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.

  1. 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' );
  1. rename back the plugin folder

  2. run the site once

  3. 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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论