Notice: wp_register_script was called <strong>incorrectly</strong>

Hey @Turnspike – Thanks for those logs!

I think what is happening is that something is crashing MySQL during the import process, and then when Local tries to use wpcli to do various configuration updates, it is unable to because MySQL is offline.

I can’t say for sure the exact thing that is crashing, but I do notice these lines in the Local log:

Jan 26, 2019, 2:44 PM GMT - warn: [ImporterGeneric] /app/sql/web160-a-wor-387.sql result
{ stderr:
   'ERROR 1062 (23000) at line 1072 in file: \'/app/sql/web160-a-wor-387.sql\': Duplicate entry \'\\x00\\xEF\\xBF\\xBD\\xEF\\xBF\\xBD\\xEF\\xBF\\xBD\\xEF\\xBF\\xBD\\xEF\\xBF\\xBD\' for key \'PRIMARY\'' }

I’ve often seen MySQL crash with that Duplicate entry error when migrating sites that have Wordfence tables in the database. It basically has to do with the primary key of those tables being a binary blob of data which is fine inside the database, but when it’s exported and then re-imported on the target machine, it causes errors. Wordfence has this help doc for more info: https://www.wordfence.com/help/advanced/remove-or-reset/

But basically to overcome that error, you’ll need to remove those tables. In a SQL dump you can find and delete any sql statements that relate to the *_wf* tables.

Given that there are error dialogs regarding VirtualBox as well, I would recommend trying the following to get this site setup successfully:

  1. Backup any working Local sites by right-clicking and selecting “Export”
  2. Ensure that you have backed up the files for any sites that aren’t working
  3. Completely uninstall Local using these instructions: Uninstall VB for Windows
  4. Re-install Local and verify that you can create new, plain WordPress sites

From here, Local should be working correctly, if it isn’t then there is something deeper going wrong that needs to be addressed. If Local seems to be working, then you can turn your attention to getting the site setup. Give a try and dragging and dropping the backup to import it, but from the wp-config.php differences, it looks like it may be a multisite installation, which will likely be more difficult to fix.

You might want to review this forum post: Multisite Migration Live to Local for more info on migrating a multisite to Local.

Let me know how resetting Local works, and if you are able to create new, plain WordPress sites. Also let me know what you find out when trying to import the site into the reset setup of Local.

– Ben