HELP: Files in Wrong Location and Hosting Server could not locate my Blog Content

Akinyande ayo

BANNED
Joined
Feb 5, 2017
Messages
2,654
Reaction score
1,080
I deleted files located at public_html and this affected the blog (XXX.com), which was located in this directory( others are addons and located as public_html/yyyyyyyyyy.com). I contacted my host and they restored the files but only the homepage of the blog XXX.com was showing, the inner pages are showing this error :
"Warning: require_once(/home/wificall/wp-load.php): failed to open stream : No such file or directory in /home/wificall/public_html/admin.php on line 31
Fatal error: require_once(): failed opening required 'home/wificall/wp-load.php' (include_path ='.: opt/Cpanel/ea-php56/root/usr/share/pear') in home/wificall/admin.php on line 31"

Since then, I've been finding it difficult to overcome this issue and the blog is down for many days now. Note: all contents of XXX.com are loaded in WordPress dashboard.
Any suggestion on what to do please, my faith is on BHW as i'm really tensed.
 
The message already states the problem. In the wp-admin/admin.php near line 30 you will find a require once and a path to the file. Maybe instead of the "dirname" etc. you just enter the full path to the file wp-load.php.

Maybe it will help.
 
The message already states the problem. In the wp-admin/admin.php near line 30 you will find a require once and a path to the file. Maybe instead of the "dirname" etc. you just enter the full path to the file wp-load.php.

Maybe it will help.

thanks but the suggestion u made is not clear to me.
 
Do you have access to the files thru the command line etc. or can you edit files on the sytem? You will have to check some filelocations a maybe you have to change a PHP-file.
 
yes, I have access to the files and can edit them but don't know the file that's wrong directory
 
Well in the directory of your site xxx is a subfolder wp-admin. There you can find the file called admin.php. In your Case it seems the file is located under public_html. In line 31 of the file a function is called require_one() with the path to a wp-load.php. Check if file is there, if not change it to the actual location of the file.
Depending on your skills it could be faster to save the database and reinstall everything.
 
If you are using latest cpanel then open the file manager and open the directory where you have deleted the files. In the upper menu you will find a option called view trash click it and here you will find your deleted files. Just select them and restore them.
 
Back
Top