• Hi guys, I am a bit desperate. Someone hacked my site. Changed the index.html file and it was working alright. Right after that I updated all plugins and WordPress itself. All the pages and media and info are gone if you look from WordPress back end. But I can see all media, files and folders in my server.
    Also seems that WordPress didn’t install properly (for example I can not choose what page is the front page in Settings), I tried to reinstall it again but I still have the the same problem.

    Can anyone please help? I am a bit desperate

    Thanks guys in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    If your site was hacked I recommend contacting your host to solve this issue because there could be some tricky things at play here (hopefully just a mis-configured wp-config.php file and nothing bad).

    Some possible reasons why you can see media files and folders on the server but cannot see the same media files when logged into WordPress could be:

    • The wp-config.php file that tells WordPress which database to connect to has been mis-configured or changed, and is connecting to an empty WordPress database.
    • If your site was hacked perhaps the person who gained access has moved or changed some files around, have you looked inside all the folders in your root directory? are there any other WordPress installations in there?

    There could be other reasons, but its probably something of this nature because the problem you describe is certainly odd. When you type in mywebsite.com/wp-login.php it has to be using the wp-config.php file in the same directory so to double check where your database is have a look inside the wp-config.php file, make sure these details match up with the details in phpMyAdmin.

    Thread Starter Carlosadell

    (@carlosadell)

    I will check all these things tomorrow morning. The weirdest thing is, just after changing the index.html file in the root folder, it was working perfectly. And it′s been only after updating plugins and WordPress when stopped working properly.
    I will try to reinstall WordPress without loosing any of the actual content of the website and see if this works.

    Thanks for your great response mate, I will for sure double check everything ASAP and get back to you again.

    Thanks heaps for helping

    No Worries ??

    Also double check that the index.html file, it should be index.php. Maybe there is a caching plugin installed that produces .html files, in this case i would refer to the documentation for that plugin, but my first guess would be to delete the .html files and let WordPress run naturally by executing the default .php scripts. – that was the short version, im tired too, goodluck!

    let us know how you go.

    Thread Starter Carlosadell

    (@carlosadell)

    Hi again!

    I just reinstalled WordPress again by replacing all the folders but WP-CONTENT and the file wpconfig and nothing at all happened. Also deactivated all plugins to see if there was any issue with any of them and this doesn’t seem to fix the issue neither.

    The ww-config.php file seems to be alright although I am not so sure as never dealt with this before.

    Also the files seem to be in the right place. Seems that wordpress can’t find the right information which seems to be there as I can see the files and the databases…

    I have no idea what to do next, I am happy to give access to the site if anyone can give us a hand.

    Thanks in advance for your help!

    Thread Starter Carlosadell

    (@carlosadell)

    Maybe I could reinstall wordpress from scratch and then upload my wp-config.php and wpcontent folder?

    This is a strange problem.

    Have you have confirmed that your wp-config.php file indeed has the correct settings, and is indeed connecting to CORRECT database.?

    After confirming that you are using the correct details in config, have you confirmed that the database that WordPress is connecting to, indeed has posts and other data in the database?

    All the pages and media and info are gone if you look from WordPress back end. But I can see all media, files and folders in my server.

    Are you saying that your database has been whipped? again please have a close look at your database using phpMyAdmin to see if there is data there or not.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Data is in server but WordPress won't find anything’ is closed to new replies.