user3462292
user3462292

Reputation: 1

Accidently deleted wp-admin/index.php file

I accidently deleted wp-admin/index.php file, but when I uploaded the file again (index.php) it's producing an error.

Warning: require_once(/home/kiddyfan/public_html/huatsms.com/wp-admin/admin.php) [function.require-once]: failed to open stream: No such file or directory in /home/kiddyfan/public_html/huatsms.com/wp-admin/index.php on line 10

Fatal error: require_once() [function.require]: Failed opening required '/home/kiddyfan/public_html/huatsms.com/wp-admin/admin.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kiddyfan/public_html/huatsms.com/wp-admin/index.php on line 10

What should I do? Could it be a permission setting?

Upvotes: 0

Views: 3868

Answers (1)

RRikesh
RRikesh

Reputation: 14381

Since it's a core file, you can get it again from the WordPress repository.

Download the version of WordPress you're using from the Release Archive.

Then overwrite your current wp-admin folder with the contents of the zip file you've downloaded. Or just your admin.php file.

Upvotes: 1

Related Questions