Support » Fixing WordPress » I lost my posts and comments after WordPress transfer

  • Resolved Karol Pelc


    Dear all,

    I would like to ask you for help.

    From 4 days I’m struggling with changing domain and server for my WordPress blog.

    I do exactly the same steeps as in Codex ( ). I used Search and Replace for WordPress Databases Script to safely change all instances. (

    The blog works. BUT. It’s looks like new one!

    All data are on the server, but WordPress don’t recognize them. Instead it’s looks that the blog will be just after installation. There is no post, comments, or even themes.

    I really done a lot of reading, but I did not find the same case, so I decide to ask you guys. I would be grateful for any help.

Viewing 15 replies - 1 through 15 (of 25 total)
  • Site url?

    And it should looks like my blog on my previous location: I copied the same files

    Did you restore the old database into the new one?

    I used Filezilla to transfer files to the new location. This is primary location, everything is in main folder public_html. I have also backup files from server.

    Thank you esmi. I see what you mean. There are some other files, which contain informations about url’s necessarly for MySQL system? I will use those instructions now:

    Thank you Esmi. Blog looks fine now. But I have another problem

    I could not get access to admin panel by using this link:

    Please check, whatever you will write there, is loosing direction, and simply directing you to Server provider.

    I tried to replace links by using “Replace for WordPress Databases Script” but after change I sill could not log in into administrator panel. Moreover, I lost formatting (website looks like without Theme at all) so I copied database again.

    Does anyone know how could I get access to Administrator panel ?

    Please check link:

    Possibly a java script file is infected and causing problems. It seems to be a stats counter file. Try to remove this file:
    <script type="text/javascript" src=""></script>

    There’s still something very wrong within that install. There’s no theme CSS.

    Esmi, look now The theme CSS is OK now.

    The problem is that theme CSS is not loading if I use “Replace for WP DB Script” and change url’s. So I changed them on old website server ( and than export database from phpMyAdmin, and import to;

    But still, I could not log into Admin panel. Please check:

    Thank you Krishna K. I think no files are infected, cause I scanned my database. But still I will try your method, but please tell me precisely, which file I should delete, and where can I find it.

    Do you mean: count.php ? I could not find this one.

    But I think the file I quoted is loaded with MALWARE, if this report can be believed:

    I think the problem is not complicated. But the trick is to know what’s could happened.

    After changing the links I could not log in to Admin panel on both addresses.

    Correct me if I’m wrong. The last think which I done on the old website before back-up SQL database, and copy files to new place, was change WordPress address (URI), according to WP CODEX website.

    They said:
    3. Go to the Administration > Settings > General panel.
    4. In the box for WordPress address (URI): change the address to the new location of your main WordPress core files.
    5. In the box for Site address (URL): change the address to the new location, which should match the WordPress (your public site) address (URI). (…)”

    but point 7 says:
    “7. (Do not try to open/view your blog now!)”

    I think this was last move, before I was unable to log in into Administrator panel.

    Maby If I restore what I made in settings from general panel, it will be OK. But I don’t know where to looks on those changes, and if this is good idea.

    What do you think ?

    Ohhh. Thank you a lot Krishna K. I just read your post. I will try to backUp this file.

    I just check your link . I think they just want to charge money. They don’t show which file have virus. To delete this java file I should pay $89.99. Check

    If this website is true, I think is detecting “Replace for WP DB Script” as Malware

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘I lost my posts and comments after WordPress transfer’ is closed to new replies.