Okay
  Public Ticket #3192688
moving Amelia data to different WP database
Closed

Comments

  •  5
    Patrick McCormick started the conversation

    What are the complete instructions for moving Amelia data from one WP database to another?  My client has had to purchase multiple licenses just to be able to enable the plugin on a development domain as a single license re-used caused problems with his live site.

    Now that he has purchased the additional licensing needed, there is no export or import functions.  Duplicating the entire site is unacceptable since the entire theme and many plugins have been replaced in the development copy.

    What are the specific tables and records that must be moved in order to successfully duplicate data to a new database?

  •  1,339
    Marko replied


    Hello Patrick,

    Thank you for reaching out to us.

    We do not have access to your data and everything is stored on your server. We do not do migrations and your hosting prvoder should help you with migrations that is their area of expertise, the hosting provider deals with migrations because the databases are stored on their servers. We will help you as best we can.

    Other than cloning your website, there's a way to migrate only Amelia's database tables.

    There are around 47 tables with wp_amelia_ prefix that need to be moved. Please note that wp_ is the default database prefix, but on your end, it could be anything, so look for your_prefix_amelia_ tables.

    Besides that, you also need to go to wp_options and search for option_name "amelia_settings" - that returns one row, so you need to copy the option_value and paste it in the same field on the other site. Note that this contains all info from your old website, so you will need to replace the URLs in this cell.

    Hope this helps.

    If you have any more questions please open a new ticket for each question and we will gladly help you there.

    We wish you all the best.

    Have a nice day. 


    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  5
    Patrick McCormick replied

    My question did not require a scolding about where the data is stored.  MY first question specifically asks what the steps are for "moving Amelia data from one WP database to another".  Further, my hosting provider did not write this software and has no idea what the tables are or what other records in what other tables must be included.

    I don't need a lecture about how dumb you think I am.  I need CLEAR INSTRUCTIONS because your company has created a product that is missing critical import and export functions usually found in paid plugins.  The fact I need to do this at all is unforgivable and neither your condescension or lack of clarity are useful.

    WHAT ARE THE TABLES AND ROWS REQUIRED?  WHAT ARE THE CLEAR, CONCISE STEPS?

  •  1,339
    Marko replied

    Hello Patrick,

    Sorry if my explanation about moving all "wp_amelia" tables did not suffice, I'll provide more detail. I agree with you that import/export feature is rather important, and I'll make sure to remind our developers of that, so hopefully they'll prioritize it.

    Once you access your database, from where Amelia needs to be moved, you'll see a list of tables that start with "wp_amelia" (or your_prefix_amelia). You need to select all those tables, as shown in the screenshot below:

    7296824454.png

    Once you select them, scroll all the way down, and in the "With selected" drop-down click on "Export":

    5384527213.png

    A new screen will be presented which may look different, depending on the database manager you're using and its version, but in short - you don't need to select any specific options, just run a quick export by clicking on the Export button in the bottom:

    4556082631.png

    A new file will be saved to your computer with the name of the database, followed by the ".sql" file extension.

    Once you download that file, make sure that Amelia is installed on another site. After it's installed, access its database and check the prefix. If the prefix is the same, select all wp_amelia tables, as you did in the 1st step, and under "With selected" click on drop to delete all those tables.

    7904225308.png

    Then, confirm this action on the next screen, and once you're done you won't see any Amelia tables anymore.

    If the prefix is different, open the database_name.sql file and run "Find and Replace". Replace the old prefix (from the original database) with the new prefix and save that file.

    Back in the database of the new site, click on "Import" in the top menu:

    5887582069.png

    Select the database_name.sql file, scroll all the way down, and click on Import:

    Once that is done, all services, employees, appointments, and so on will be copied from site 1 to site 2. Now, for the settings - go back to the original database and access the "wp_options" database table (or your_prefix_options) and click on the Search button in the upper menu:

    Under option_name, type "amelia_settings" and hit Go at the bottom:

    6154582997.png

    This will return one row, so click on "Edit":

    7621826329.png

    When you edit it, under "option_value", you'll see a JSON input. This can be copied into the same location on another site, so select all the text in there:

    7545321849.png

    Copy it, and then access the same location on the new site (wp_options -> search for "amelia_settings" under option_name and then paste the copied data into option_value field).

    Once you save this, you'll need to modify the Redirect URI of Google and Outlook Calendar, so in the new site, access Amelia/Settings/Integrations/Google Calendar, and replace the domain of the old site with the domain of the new site. In our example, we need to replace "localhost/current":

    9290126214.png

     with "localhost/lite1":

    5010445071.png

    Switch to the Outlook Calendar tab, and do the same.

    If you configured Redirect URL after booking under Amelia/Settings/General Settings, you'll need to replace that as well, along with Successful Cancellation Redirect URL and Unsuccessful Cancellation Redirect URL found in Amelia Settings/Notification Settings.

    That would complete the data migration from one database (site) to another.

    Please let me know if you have any follow-up questions about this.

    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  5
    Patrick McCormick replied

    Thank you for this detailed process.  Until the export/import is implemented, could you please add this to the documentation for Amelia? 

    I'll be doing this transfer later today and will let you know how it goes.

  •  5
    Patrick McCormick replied

    Ran into an error.  Old database:      norvado_wp314       prefix:   wp41_       New database:    norvado_wp447       prefix:   wpgk_


    Performed find/replace for prefix change.  Dropped existing wpgk_amelia... tables and imported edited .sql file.  See attached error message.

    Message was:

    SQL query:

    --
    -- Constraints for table `wpgk_amelia_notifications_log`
    --
    ALTER TABLE `wpgk_amelia_notifications_log`  ADD CONSTRAINT `wpgk_amelia_notifications_log_ibfk_1` FOREIGN KEY (`notificationId`) REFERENCES `wpgk_amelia_notifications` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  ADD CONSTRAINT `wpgk_amelia_notifications_log_ibfk_2` FOREIGN KEY (`userId`) REFERENCES `wpgk_amelia_users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  ADD CONSTRAINT `wpgk_amelia_notifications_log_ibfk_3` FOREIGN KEY (`appointmentId`) REFERENCES `wpgk_amelia_appointments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,  ADD CONSTRAINT `wpgk_amelia_notifications_log_ibfk_4` FOREIGN KEY (`eventId`) REFERENCES `wpgk_amelia_events` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
    

    MySQL said: dot.gif

    #1452 - Cannot add or update a child row: a foreign key constraint fails (`norvado_wp447`.`#sql-a765_99bd93`, CONSTRAINT `wpgk_amelia_notifications_log_ibfk_3` FOREIGN KEY (`appointmentId`) REFERENCES `wpgk_amelia_appointments` (`id`) ON DELETE CASCADE ON UPDATE CAS)

    Please advise.

    Attached files:  Screen Shot 2022-12-26 at 12.50.58 PM.png

  •  5
    Patrick McCormick replied

    I was able to fix this error by disabling foreign key checks during import.

  •  5
    Patrick McCormick replied

    Looks like everything transferred successfully.  Going to push the new site live after midnight tonight.  Thanks for your help. Looking forward to import/export.

  •  1,339
    Marko replied

    Hello Patrick,

    We are glad to hear that everything worked, as for adding this to our documentation suggestion I have forwarded your suggestion to the appropriate sector so that it can be reviewed. 

    We wish you all the best and have a great holiday. 

    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  5
    Patrick McCormick replied

    Although it appeared to work, Amelia is not functioning correctly on the front end.  Please see this page:   https://norvado.com/phillips-fiber/

    My client says   "We see the new site has been moved to the live site. The Amelia calendar is not displaying/functioning correctly on the Phillips Fiber page though. It isn’t displaying like it used to, you now must select a technician to see the available dates/times, the form below the calendar doesn’t let me edit all fields, etc.

    I see the Amelia short code is in a short code wrapper in Breakdance. I tried adding the short code to the Rich Text container, but it displayed the calendar in the same way."

    The developer console shows errors relating to Amelia.

     

  •  5
    Patrick McCormick replied

    I just created a new admin account for you.  You need to set a password.

  •  5
    Patrick McCormick replied

    Please update ASAP.  The site is quite busy and I am receiving many complaints.  I would appreciate anything you can do to expedite this ticket.

  •  1,339
    Marko replied

    Hello Patrick,

    We have forwarded your ticket to our level 2 agents and as soon as we get some feedback from them we will contact you immediately.

    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1,339
    Marko replied

    Hello Patrick,

    Please provide me a temporary WP-admin (administrator) user for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. 

    We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course, we do not provide login data to third parties. 

    You can write credentials here just check PRIVATE Reply so nobody can see them except us.

    Looking forward to your reply. 

    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1,339
    Marko replied

    Hello Patrick,

    We have managed to reset the password and we are looking now for the issue. We will contact you here as soon as we find it.

    Talk to you soon. 

    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1,339
    Marko replied

    Hello Patrick,

    It turns out that this was just a caching issue. All should be fine now. If you find any more pages where the booking form is not showing correctly please contact us again and we will gladly take a look.

    We wish you all the best. 


    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  5
    Patrick McCormick replied

    It is not just a caching issue.  They still have problems in the back end.  Please see new ticket https://tmsplugins.ticksy.com/ticket/3196335/

    This situation has become extremely urgent.  We need it resolved ASAP.

    Please advise.

  •  1,339
    Marko replied

    Hello Patrick,

    As far as I can see, the ticket was assigned to my colleague and he replied to you today. Please continue further conversation with him on that ticket and he will gladly help.

    If you have any new questions please open a new separate ticket for each question and we will gladly help you there.

    We wish you all the best.

    Have a nice day. 


    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables