• I’m having some trouble running the import script for b2. Whenever I do, I get this error:
    There doesn't seem to be a wp-config.php file. Double check that you updated wp-config-sample.php with the proper database connection information and renamed it to wp-config.php.
    But the config file is there. I’ve checked it a million times for spelling, I’ve deleted the old wp-config-sample.php file, I’ve even deleted thewp-config.php file and uploaded it again, but nothing has changed. What going on, and how can I fix it? @_@

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter anataya

    (@anataya)

    Oh, and I did edit all of the info in it properly; if I hadn’t, the blog wouldn’t be working (right?) and it’s doing fine. -.-;

    Thread Starter anataya

    (@anataya)

    And another thing, when I try ti import from blogger, I get this error:
    Warning: main(../wp-config.php): failed to open stream: No such file or directory in /home/element/public_html/jesuis/import-blogger.php on line 18
    Fatal error: main(): Failed opening required '../wp-config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/element/public_html/jesuis/import-blogger.php on line 18

    And accordingly, line 18 in that file contains this:
    require_once('../wp-config.php');
    So…?

    Thread Starter anataya

    (@anataya)

    Dammit, this threads been pushed so far away. Time for a bump.

    Can we have a URL for where you get the error regarding wp-config.php
    Any other details would be welcome too, so someone can take a shot at answering your question.
    Sorry for the delay 🙂

    Thread Starter anataya

    (@anataya)

    It’s right here:
    http://www.elementanime.net/jesuis/import-b2.php
    And it’s okay. ;3

    Thread Starter anataya

    (@anataya)

    OKay, I went through thatm, and at step two I got a bunch of errors. Note that I already have WordPress installed, and that I just want to bring the old entries over. Here’s what I got:
    First we’re going to add excerpt, post, and password functionality...
    Database error: [Duplicate column name 'post_excerpt']
    ALTER TABLE wp_posts ADD COLUMN post_excerpt text NOT NULL;
    Database error: [Duplicate column name 'post_status']
    ALTER TABLE wp_posts ADD post_status ENUM('publish','draft','private') NOT NULL, ADD comment_status ENUM('open','closed') NOT NULL, ADD ping_status ENUM('open','closed') NOT NULL, ADD post_password varchar(20) NOT NULL;
    That went well! Now let's clean up the b2 database structure a bit...
    Database error: [Can't DROP 'ID'. Check that column/key exists]
    ALTER TABLE wp_posts DROP INDEX ID
    One down, two to go...
    Database error: [Table 'element_wordpress.wp_settings' doesn't exist]
    ALTER TABLE wp_settings DROP INDEX ID
    So far so good.
    Database error: [Can't DROP 'post_karma'. Check that column/key exists]
    ALTER TABLE wp_posts DROP post_karma
    Almost there...
    Database error: [Can't DROP 'ID'. Check that column/key exists]
    ALTER TABLE wp_users DROP INDEX ID
    Welcome to the family. Have fun!

    And here’s the URL, if you can see it.
    http://www.elementanime.net/jesuis/wp-admin/import-b2.php?step=2

    Thread Starter anataya

    (@anataya)

    The blogger import seems to be working fine, BTW.

    Thread Starter anataya

    (@anataya)

    *sighs* bump…

    exact same error mesasge
    Step 2

    First we’re going to add excerpt, post, and password functionality...
    Database error: [Duplicate column name 'post_excerpt']
    ALTER TABLE wp_posts ADD COLUMN post_excerpt text NOT NULL;
    Database error: [Duplicate column name 'post_status']
    ALTER TABLE wp_posts ADD post_status ENUM('publish','draft','private') NOT NULL, ADD comment_status ENUM('open','closed') NOT NULL, ADD ping_status ENUM('open','closed') NOT NULL, ADD post_password varchar(20) NOT NULL;
    That went well! Now let's clean up the b2 database structure a bit...
    Database error: [Can't DROP 'ID'. Check that column/key exists]
    ALTER TABLE wp_posts DROP INDEX ID
    One down, two to go...
    Database error: [Table 'jmetropo_clio.wp_settings' doesn't exist]
    ALTER TABLE wp_settings DROP INDEX ID
    So far so good.
    Database error: [Can't DROP 'post_karma'. Check that column/key exists]
    ALTER TABLE wp_posts DROP post_karma
    Almost there...
    Database error: [Can't DROP 'ID'. Check that column/key exists]
    ALTER TABLE wp_users DROP INDEX ID
    Welcome to the family. Have fun!
    except nothing’s been imported!

    Hi,
    I come bearing bad news. I have recently converted my blog from b2 to wordpress, and to be honest the b2import script is worthless.
    I tried on so many occasions to use it and each time it failed to work correctly. In the end i used phpmyadmin to build queiries which pulled the data out of b2, then built other queries to import it into the corresponding tables in wordpress.
    Its a far simplier process (and quicker from my experience) to copy the data over manaully.
    Which makes no sense as wordpress is advertised as the ‘offical’ extension of b2 – and the import script sucks.

    Unfortunately I have had the same problem thus far as posted earlier when trying to run the import script for b2 to WP. I have not tried the partial fix mentioned yet but I hope to see something posted soon regarding how get the import script working properly. I am happy that the WP install still left the b2 installation intact (minded you renamed a few files if installing into the same location as b2), so in the meantime I will stick with b2.
    Would I wrong to say that I interpret the post above and what I experienced as the script attempts to DROP some tables and when it can’t, it then ALTERs the tables?

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘importing from b2’ is closed to new replies.