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

MySQL error file error.log (40.4 KB)

Just created a blank site with Local and am only getting 503 errors.
There is an update available now, I will download that and see if that helps.

Compared the two wp-config files.

The only difference I can see that I think may be an issue could be that my site has this, while the new one doesn’t.

/**

  • WordPress Localized Language, defaults to English.
  • Change this to localize WordPress. A corresponding MO file for the chosen
  • language must be installed to wp-content/languages. For example, install
  • de.mo to wp-content/languages and set WPLANG to ‘de’ to enable German
  • language support.
    */
    define (‘WPLANG’, ‘’);

/**

  • For developers: WordPress debugging mode.
  • Change this to true to enable the display of notices during development.
  • It is strongly recommended that plugin and theme developers use WP_DEBUG
  • in their development environments.
    */
    define(‘WP_DEBUG’, true);

/**

  • Change this to true to run multiple blogs on this installation.
  • Then login as admin and go to Tools → Network
    */
    define(‘WP_ALLOW_MULTISITE’, true);

/* That’s all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(FILE) . ‘/’);

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . ‘wp-settings.php’);
define( ‘WP_HOME’, ‘C:\Users\Lewis\Local Sites\cracking-ace-local’ ); define( ‘WP_SITEURL’, ‘C:\Users\Lewis\Local Sites\cracking-ace-local’ );

It could be something else, but then I’m not a behind the scenes expert at all. I just like to have software that I can use.

Thanks for looking.

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

Ok. Reinstalled Local. I was able to create a new blank site, so that’s nice.
It’s quite slow. That may be due to my machine, and perhaps that is having an effect on my large imported sites too?

Still need to look into the Wordfence problems etc. As I say I’m not much of a techie, but these step by step instructions will hopefully do the trick.I just hope they work!

Since there are so many issues with this import could I do this as an alternative?

Use the newly created site and copy and paste the old blog posts into it.

How do I do this?

I’m not too concerned about plugins. If I need them perhaps I can re-add them to the fresh site. My main concern is that I want my articles available. I’m not too fussed about flashy plugins. I think most were for social stuff anyway which will be useless on my local install.

Now the new clean site is giving this error:

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

After a few attempts it let me in. I guess something hadn’t loaded properly yet.

How do I do an SQL dump?

Going a bit mad with this. I’ve deleted everything I can find related to Wordfence. Still getting a white blank page.

Adding the database to the fresh install gave the same result.

Could Bulletproof Security also be an issue?

I suppose it’s possible. Sometimes those security plugins freak out when the domain changes.

It might be another plugin or theme that is causing things to break. I’ve mostly only seen that Duplicate Key error with WordFence, but in theory anything could break in that same way.

That’s not a bad idea. If all you are interested in are the posts, you might try using WordPress’ built in exporter: Tools Export Screen « WordPress Codex – This creates an xml file of the various posts and allows you to import those posts using the Import screen: Tools Import Screen « WordPress Codex

This has sometimes been buggy depending on what kind of content is contained within the posts, but it might be worth a try.

As for the white screen – that’s usually a theme issue. Are you able to login to the wp-admin of the site? You might also be able to get more errors displaying by enabling WP_DEBUG in the wp-config.php file. See the codex for more information about that: Debugging in WordPress « WordPress Codex

Let us know if you get any more meaningful errors when enabling WP_DEBUG.

– Ben

This is part of the difficulty I’m having.
I don’t have access to WP Admin at all. I can’t get it on Local until the site works right, and I can’t get it online as I no longer have a domain.

I have online FTP access for perhaps one more week until my subscription expires. And I have the entire site downloaded to my laptop, so have file access there.
I have Local’s SSH.
I’d have thought that between those I should be able to do something!```````1

I can’t find a way to make an xml file without Wordpress. There was an option to generate one on the host cpanel, but I don’t think it worked due to not having a domain any more.

It only said urlset/

Forgot to mention. Where most tutorials say Wordpress would use code wp_ in databases. Mine seems to be using ffwjh_ instead. I don’t know why, or if it hurts, or if I need to change it.

So, I created a brand new site in Local by Flywheel. I did not choose any custom settings.
I went to adminer, and deleted all of the wp tables in local databases.
I then uploaded my database.

Then I looked for any of these and deleted them: Wordfence 7 Tables
wp_wfBadLeechers
wp_wfBlockedCommentLog
wp_wfBlockedIPLog
wp_wfBlocks (Legacy)
wp_wfBlocks7
wp_wfBlocksAdv
wp_wfConfig
wp_wfCrawlers
wp_wfFileChanges
wp_wfFileMods
wp_wfHits
wp_wfHoover
wp_wfIssues
wp_wfKnownFileList
wp_wfLeechers
wp_wfLockedOut
wp_wfLocs
wp_wfLogins
wp_wfNet404s
wp_wfNotifications
wp_wfPendingIssues
wp_wfReverseCache
wp_wfScanners
wp_wfSNIPCache
wp_wfStatus
wp_wfThrottleLog
wp_wfVulnScanners
According to this: https://www.wordfence.com/help/advanced/remove-or-reset/
No need to remove plugin files because none were added.

I also deleted:
ffwjh_bpspro_login_security
ffwjh_bpspro_seclog_ignore
ffwjh_bwps_lockouts
ffwjh_bwps_log

In case they would cause similar issues.

I then created an SQL command with this: https://wpmultisitedomainreplace.com/

And ran it.

I had a number of errors saying files don’t exist.

Error in query (1146): Table ‘local.ffwjh_blogs’ doesn’t exist
Error in query (1146): Table ‘local.ffwjh_site’ doesn’t exist
Error in query (1146): Table ‘local.ffwjh_sitemeta’ doesn’t exist
Error in query (1146): Table ‘local.ffwjh_1_options’ doesn’t exist
Error in query (1146): Table ‘local.ffwjh_1_options’ doesn’t exist
Error in query (1146): Table ‘local.ffwjh_2_options’ doesn’t exist
Error in query (1146): Table ‘local.ffwjh_3_options’ doesn’t exist

Restarted the site in Flywheel.

I clicked view site, and it took me to a page asking to install Wordpress. So I followed the wizard.
I got into admin but none of my articles are there. It’s just a blank install.

The only reason I can think of is that I have multiple databases and only imported the largest one. I don’t know why I have so many, but vaguely remember having issues at some point and some of them are useless.

Just used my FTP to browse my databases. All of the articles are in the large database that I uploaded, so that isn’t the issue. One of the other databases included the options table, so I am uploading that.

All of the databases have passwords online. I wonder if that might be a problem?