Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #234077

    I was recently asked to migrate a client’s website from our multisite network to a single site on his own server. I searched through some different topics and came up with a lot of complaints about theme owners having to painstakingly rebuild pages, import media files, etc from the ground up. I noticed one post that Kriesi made that made it extremely simple to launch the site on his new server in about 10 minutes. This is a little tutorial to get it done.

    1. After you have set up WordPress on your new host, install your theme (in my case – Enfold)
    2. Install any associated plugins needed
    3. Go to the dashboard of the site where you are migrating from and add ?avia_export at the end of the url. It will look something like this – http://yourdomain.com/wp-admin/?avia_export
    4.This will this generate a base64 encoded option set that you can to the dummy.php file in themes/includes/admin/dummy.php of your theme. Replace the existing content with the new.
    5. Go to tools on your existing site and export all content as an xml file. Once on your computer, rename dummy.xml.
    6. On your new install, go to themes/includes/admin and replace the dummy.xml file with the file you just created.
    7. Log into the dashboard of your new install, click the theme options navigation link (in my case, “Enfold”) in the back-end and click the import dummy data button. This will import all the images/content/layouts, etc.
    8. Click the back-end navigation option for settings > permalinks and adjust your permalinks as needed.
    9. Importing the dummy data imports your layerslider images, but you may have to go into your sliders and adjust any image links IF your paths are different. In my case I went from multisite to single site so I had to adjust the link prefix accordingly.

    That’s it!

    #234295

    Hi David!

    Thank you. Nice tutorial. Noted. :)

    You can also use the WP MigrateDB or WP MigrateDB PRO to transfer the website.

    Best regards,
    Ismael

    #897687

    Hi does this method still work for the 2017 version? I’m not having much success. It says downloading but when it stops theres no content.

    #897904

    Hi ridick6,

    Could you open a new thread and include admin login details in private please? Also, what have you tried so far?

    Best regards,
    Rikard

    #898248

    Hi Rikard,

    Did you want admin login for production or development? Dev is local. I used Duplicator plugin to migrate a live site using Enfold to mylocal MAMP environment. I got all the content into wordpress but none of the Enfold CSS files are rendering, not even the Enfold dashboard options screen CSS and when i try edit a page i get this error “Failed to load plugin url: http://localhost:8888/wp-content/themes/enfold/config-layerslider/LayerSlider/static/admin/js/ls-admin-tinymce.js”. Whats strange about this error is the missing parent directory. it should be “http://localhost:8888/rgw/”. The site has a particularly huge image database (3GB) so I tried just migrating everything but the uploads directory (and manually adding it) but still end up getting the same errors.

    Then I tried WP Migrate DB and it gave me these errors :

    Error

    Static analysis:

    1 errors were found during analysis.

    Missing expression. (near “ON” at position 25)

    SQL query: Edit Edit

    SET FOREIGN_KEY_CHECKS = ON;

    MySQL said: Documentation
    #2006 – MySQL server has gone away
    Open new phpMyAdmin window
    Warning in ./libraries/dbi/DBIMysqli.php#202
    Error while sending QUERY packet. PID=61963

    Backtrace

    ./libraries/dbi/DBIMysqli.php#202: mysqli_query(
    ,
    string ‘# # End of data contents of table iehls_aiowps_global_meta # ——————————————————– # # Delete any existing table iehls_aiowps_login_activity # DROP TABLE IF EXISTS iehls_aiowps_login_activity‘,
    integer 0,
    )
    ./libraries/DatabaseInterface.php#267: PMA\libraries\dbi\DBIMysqli->realQuery(
    string ‘# # End of data contents of table iehls_aiowps_global_meta # ——————————————————– # # Delete any existing table iehls_aiowps_login_activity # DROP TABLE IF EXISTS iehls_aiowps_login_activity‘,
    ,
    integer 0,
    )
    ./libraries/import.lib.php#64: PMA\libraries\DatabaseInterface->tryQuery(string ‘# # End of data contents of table iehls_aiowps_global_meta # ——————————————————– # # Delete any existing table iehls_aiowps_login_activity # DROP TABLE IF EXISTS iehls_aiowps_login_activity‘)
    ./libraries/import.lib.php#224: PMA_executeQuery(
    string ‘# # End of data contents of table iehls_aiowps_global_meta # ——————————————————– # # Delete any existing table iehls_aiowps_login_activity # DROP TABLE IF EXISTS iehls_aiowps_login_activity‘,
    string ‘# # End of data contents of table iehls_aiowps_global_meta # ——————————————————– # # Delete any existing table iehls_aiowps_login_activity # DROP TABLE IF EXISTS iehls_aiowps_login_activity‘,
    array,
    )
    ./libraries/plugins/import/ImportSql.php#169: PMA_importRunQuery(
    string ”,
    string ”,
    array,
    )
    ./import.php#536: PMA\libraries\plugins\import\ImportSql->doImport(array)

    Haven’t been able to find any fixes other than importing the data to the local environment using the wordpress exporter but that took forever and didn’t import the menus or plugins and settings. So when I stumbled upon this I gave it a shot but no cigar.

    The only other option I have left is WP Staging but I’d prefer to keep my dev site local.

    Thanks,
    Nick

    #900105

    Hi,

    The “iehls_aiowps_login_activity” table in the database is not created by the theme nor it is a default WP table. You should probably delete it if it’s not important then migrate the database again.

    Best regards,
    Ismael

    #1149940

    Hi,
    I am trying to perform the indicated steps, I also have the ENFO template but step 7 I am not able to do it, exactly where do I have to import dummy data?

    Thanks.
    Hugo

    #1150398

    Hi,


    @Hugo_R
    : You can import one of the demo data from the Dashboard > Enfold > Demo Import panel. Select your preferred demo from the list — click import, wait for the import process to finish and you’re done. For more info about demo import and the theme in general, please visit the documentation.

    // https://kriesi.at/documentation/enfold/import-demos/

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.