Unable to login to admin dashboard, appear to be missing wp-admin/includes/misc.php


When I try to login to the admin dashboard, I am receiving this error message:

Warning: require_once(mysite/wp-admin/includes/misc.php): failed to open stream: No such file or directory in mysite/wp-admin/includes/admin.php on line 41

Fatal error: require_once(): Failed opening required ‘mysite/wp-admin/includes/misc.php’ (include_path=”.:/opt/cpanel/ea-php72/root/usr/share/pear”) in mysite/wp-admin/includes/admin.php on line 41

I’m not sure how the file came to be deleted, but would it be possible to add misc.php from the install file?

Thanks in advance.

in progress 0
Thomas 4 months 2021-05-09T20:12:46-05:00 0 Answer 0 views 0

Answer ( 1 )


    I don’t think misc.php is missing. Change require_once(mysite/wp-admin/includes/misc.php) to require_once( ABSPATH . '/wp-admin/includes/misc.php' )

Leave an answer