• abdessatar01

    (@abdessatar01)


    Hello,

    I am encountering a serious issue with my self-hosted WordPress site .

    Recently, my WordPress admin password was changed without any warning or reset email. I did not request a password reset, and I did not receive any security alert emails.

    After I regained access, the site looked like a fresh WordPress installation:
    • Theme reverted to default
    • Homepage disappeared
    • Elementor/Blocksy layout is gone

    However, when I check the database via phpMyAdmin, I can still see my original pages and content in the wp_posts table, and SQL shows 8 published pages.

    The admin Pages screen only shows 2 pages, and the front end displays only the default blog page.

    I have:
    • Checked the database — content exists
    • Tried restoring backups
    • Checked PHP versions in hosting

    I suspect unauthorized access to my hosting account, WordPress files, or database.

    Could someone help me understand:
    1. Why my pages aren’t showing even though they exist in the database?
    2. How to properly restore the homepage and layout?
    3. Whether unauthorized modifications could cause this behavior?
    4. What steps I can take to recover the site?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello @abdessatar01

    The way WordPress works, is that in the wp-config.php file located in the root directory of your site, it defines how WordPress will access your database, and which database tables will use in the database based on a prefix.

    So, I suggest you to check the wp-config.php file to corroborate everything is correct there. Check the values “DB_NAME” and “DB_HOST” should match with what you see in phpMyAdmin (these values can be seen near the top left corner of the page).

    Then, check the “$table_prefix” value. The prefix should match the ones that you see in phpMyAdmin. For example, if in phpMyAdmin, the Posts table is named “wp_bb_posts”, the “$table_prefix” value should be “wp_bb_”.

    Kind regards,
    Jair.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.