• I have wordpress installed on my local machine. I was working on a theme yesterday. I also have some other themes that I created before.

    I finished my work last night. Turned off the comp. Went to sleep. Turned it back on today. I pulled up https://localhost/… here we go… there is a another theme I used to work on last month. I switched to it to look at something yesterday when I was working on the current theme. It was just a few seconds look. Anyway…

    I got in to admin panel. I switched it back to the current theme I was working on. Viewed the site… Oh Well… All the pages and posts are gone. My new theme I created in tact but all the content(PAGES ANS POSTS) I created has just disappeared. They do not show in my wordpress admin panel.

    I went into phpmyadmin to see if the content was there. Oh my god… no pages.. no posts…

    I found a few articles online which they mention about the same problem but there is no instruction how they fixed it. I tried a few things in wp-config and phpmyadmin config.inc but I cannot determine the cause of the problem.

    Here some details:
    ZE Community Server 4.5 with phpmyadmin, mysql and Apache extensions
    Windows XP professional
    Zend Studio 7.0

    phpmyadmin config.inc.php
    $cfg[‘Servers’][$i][‘verbose’] = ”;
    $cfg[‘Servers’][$i][‘host’] = ‘localhost’;
    $cfg[‘Servers’][$i][‘port’] = ”;
    $cfg[‘Servers’][$i][‘socket’] = ”;
    $cfg[‘Servers’][$i][‘connect_type’] = ‘tcp’;
    $cfg[‘Servers’][$i][‘extension’] = ‘mysqli’;
    $cfg[‘Servers’][$i][‘auth_type’] = ‘cookie’;
    $cfg[‘Servers’][$i][‘user’] = ‘root’;
    $cfg[‘Servers’][$i][‘password’] = ”;
    $cfg[‘Servers’][$i][‘nopassword’] = true;
    $cfg[‘Servers’][$i][‘AllowNoPassword’] = true;

    wp-settings are:
    Default on admin panel.. https://localhost/?p=123
    define(‘DB_NAME’, ‘wordpress’);
    define(‘DB_USER’, ‘wordpress’);
    define(‘DB_PASSWORD’, ‘abc123’);
    define(‘DB_HOST’, ‘localhost’);

    PLEASE HELP Thank you in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Do you have a recent database backup?

    Thread Starter omercan

    (@omercan)

    Not after I created the content for the new theme in the last 2 days.

    I have no idea what your new theme contains but it is entirely possible that it wiped your database. Without a backup, there’s not a lot you can do except start entering content again. However, in your shoes, I’d go through the theme – removing any direct, or indirect, sql queries – before activating again and deactivate all plugins in case the culprit was a bad plugin.

    Thread Starter omercan

    (@omercan)

    I created 10 pages and 1 posts. Out of 10 pages, only 1 of them has a custom form which gets the information from the form and emails it. There is no database function involved.

    Well, it took me 4 days to create them and I have no copies of them anywhere. I can’t believe all the data is just gone without a reason. They have to be somewhere.

    Thread Starter omercan

    (@omercan)

    This is a major bug in wordpress. That kind of data loss should not happen just switching from one theme to another.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pages and Posts Disappeared’ is closed to new replies.