Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter codeprole

    (@codeprole)

    Even with just one author I get the same “can’t open the page” error.

    Is there an open source debugging tool for PHP that would allow me to run the import-mt.php process and watch it to see where it is breaking down? I’m doing this all locally so I should be able to step through the code as it is running provided I have a decent IDE. Is there an eclipse plugin for PHP?

    cp

    Thread Starter codeprole

    (@codeprole)

    Okay. I commented out the line that read:

    users_form($j);

    and re-ran the import-mt.php script. This time I get a new page that lists the two authors in this blog (one has never posted anything) and I clicked on the “submit” button presented. After a short pause I get the following message:

    Safari can’t open the page.
    Safari can’t open the page “https://localhost/~mark/public_html/wordpress/wp-admin/import-php?step=2”
    because it could not load any data from this location.”

    Nuts.

    Got any more lines of code I can comment out?

    thx

    Thread Starter codeprole

    (@codeprole)

    The machine I am working on has PHP 4.3.11 installed, so no it isn’t a PHP 5 issue.

    What would be nice is an import script that produced output so you could see what it was doing. Individual entries work, but the whole file doesn’t. Some kind of debugging output would be VERY helpful.

    I suppose my only alternative is to upgrade to a MySQL version of Movable Type, and try a database to database script to get to Word Press.

    Thread Starter codeprole

    (@codeprole)

    Hmm. Over two days since I posted my question, and detailed the trials and errors I was having and not a single response.

    WordPress is not impressing me at all right now. If you guys want to take business away from Movable Type then you need to have a clear, clean, easy import mechanism that ACTUALLY WORKS.

    Thread Starter codeprole

    (@codeprole)

    The plot thickens…

    I put together a quick “all posts” RSS template on my MT site. Something like this:


    <?xml version="1.0" encoding="iso-8859-1"?>
    <items>
    <MTEntries lastn="1000" sort_order="ascend">
    <item about="<$MTEntryLink$>">
    <title><$MTEntryTitle encode_xml="1"$></title>
    <description><$MTEntryBody encode_xml="1"$></description>
    <link><$MTEntryLink$></link>
    <subject><$MTEntryCategory encode_xml="1"$></subject>
    <creator><$MTEntryAuthor encode_xml="1"$></creator>
    <date><$MTEntryDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></date>
    </item>
    </MTEntries>
    </items>

    Allowing MT to rebuild that page generated a RSS format of all my entries. I tried putting the output file from this feed into the import-rss.php and still no luck.

    I even ran iconv against the RSS output file and changed the encoding parameter at the top to be UTF-8.

    I guess I’m going to have to import my entries by hand.

    Thread Starter codeprole

    (@codeprole)

    Editting the import.txt file so that it contains just a single entry allows the import to complete successfully. Sending the import.txt file through with two entries also works. Three… good. Four… fails.

    Is the memory requirement for this so tight that I can only import 4 entries at a time? How do I increase the memory allocated? I’ve got well over 600 entries to convert. I am not looking forward to running import-mt.php 600+ times.

    TIA,
    codeProle

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