• Resolved Apokalupsis

    (@apokalupsis)


    Didn’t get very far.

    Tried to change the domain name via the Migration assistant (I’m moving from one server to another, 2 different domain names).

    This is the error I got:

    Catchable fatal error: Object of class __PHP_Incomplete_Class could not be converted to string in /home/apok/public_html/wp-content/plugins/wordpress-move/libs/functions-database-backup.php on line 201

    Which is really weird, because line 201 shows just a comment to me:

    * Imports the database backup.

    http://wordpress.org/extend/plugins/wordpress-move/

Viewing 9 replies - 1 through 9 (of 9 total)
  • I actually fixed this bug for 1.2 but never got a chance to release it yet.

    Please replace the following in libs/functions-database-backup.php on line 200:

    elseif ( ! is_object( $option ) )

    with this:

    elseif ( is_string( $option ) )

    Thread Starter Apokalupsis

    (@apokalupsis)

    OK, that worked.

    Changing the domain name was the first step I did and as a result I couldn’t do complete the process (as it would just take me to the remote site).

    I think there was confusion about WHEN to do this. In the online instructions, it seems like it should be the first thing…but if moving to another server w/ a different domain…it is apparently supposed to be last?

    I restored the db and am starting over.

    Yes, I’m revamping the UI for 1.2 to be more clear. Lots of people told me the same thing 🙂

    You can both change your domain name and migrate at the same time if you use one of the Simple Migration or Advanced Migration methods. (Your new domain name should be pointing your new server)

    Thread Starter Apokalupsis

    (@apokalupsis)

    I started the process on the dev server through simple migration.

    It successfully logged into the other server (according to the log) and it successfully created the backup files.

    It said that it transferred those files to the remote server just fine. But it didn’t.

    Here’s a partial of the log:

    Connecting to mysite.com:21… Success!
    Logging in as {username} using password… Success!
    Starting uploading files…
    DBBackup-13200066371.sql is being uploaded… Success!
    Backup-13200066381.zip is being uploaded… Success!
    Backup-13200066382.zip is being uploaded… Success!
    Backup-13200066383.zip is being uploaded… Success!
    …..
    Uploading files is completed without an error…
    Closing the FTP connection…

    Creating and uploading backups have been completed. You can now go to your new installation and run the migration assistant in Complete Migration mode.

    ————————————————–

    Looked good. I even verified that the files were in the backup dir of the dev server (they were).

    However, when I went to the remote server to complete the process…this is what I got:

    “There are no backup files to use to complete the migration. Please start the migration using WordPress Move on the server you want to migrate from. “

    I verified this…there are no actual files in the backup directory.

    I suppose I could manually download them all, the manually upload them to the remote server…but it doesn’t seem like I am supposed to w/ this script.

    Any ideas on how to fix this?

    Thread Starter Apokalupsis

    (@apokalupsis)

    You can both change your domain name and migrate at the same time if you use one of the Simple Migration or Advanced Migration methods. (Your new domain name should be pointing your new server)

    But will this then mean that the db on the dev server will be changed? I’d like to keep it as-is if possible. I suppose I could always do like before and restore the db if necessary.

    The way I did it above, was to just use Simple Migration (w/o changing the domain name). I assume I can change the domain name on the remote site via the Rename process.

    For the FTP part it’s using PemFTP, the library that comes with WordPress. On some servers, it fails to upload while it says it was a success. Not sure really if that problem of PemFTP will ever be fixed but it works just fine on *almost* all servers.

    Nope, your database on the dev server will stay as-is if you choose to change your domain name during the migration. It replaces instances of your old domain with the new one on the fly while creating the backup of your database.

    Sure, what you’re doing is essentially the same thing.

    Thread Starter Apokalupsis

    (@apokalupsis)

    I manually moved them. There was 1 file it didn’t extract.


    DBBackup-13200092711.sql is being imported… Success!
    Backup-13200092721.zip is being extracted… Failed!

    Migration has been completed but with 1 error.

    Is there a way to try this again, but with only this one file?

    That one file was 22k. I don’t know what it was either.

    The site does appear to be running ok and I can’t find what may be missing.

    The site: http://www.auvtkd.com

    Thread Starter Apokalupsis

    (@apokalupsis)

    re: xfer of files.

    Apparently, the files WERE transferred to the remote server…but they were moved to the root directory of the account itself (it’s a shared server). It did not xfer them to the backup directory.

    Yes there is: Delete all the backup files, except the one that failed, and choose Complete Migration in the Migration Assistant. It is very likely that the file is corrupted for some reason.

    I’m still working on this plugin and trying to make the whole process as simple as possible. I’m happy to hear that the site is running fine and therefore the migration was successful.

    By the way, thanks for the update about the transfer of files, much appreciated!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: WordPress Move] Fatal error at start’ is closed to new replies.