Trouble with Database & Connect for WPE imports

At least it’s comforting to find many others with the same issue!
here’s my log.local-lightning.log (286.7 KB)

Seems the only error is:
{"thread":"main","class":"DevKitService","message":"Error: autoload.sql not found for site\n at DevKitService.<anonymous> (/Applications/Local.app/Contents/Resources/app.asar/main/devkit/DevKitService.js:1:13778)\n at Generator.next (<anonymous>)\n at _0x3027cb (/Applications/Local.app/Contents/Resources/app.asar/main/devkit/DevKitService.js:1:3111)","level":"error","timestamp":"2020-03-04T05:19:08.610Z"}

2 Likes

I’m getting a slightly different import error, but it may be related - the one where it just hangs forever. I’m on Windows 10. Adding a new site from scratch works fine. Here are the errors form my log file. I’m running Local as an administrator.

{"thread":"main","class":"DevKitService","level":"info","message":"\nsent 118,385 bytes  received 33,967,890 bytes  223,516.56 bytes/sec\ntotal size is 106,837,224  speedup is 3.13\n","timestamp":"2020-03-04T01:36:39.112Z"}
{"thread":"main","class":"DevKitService","level":"info","message":"Downloading latest excerpt from install ...\n","timestamp":"2020-03-04T01:36:39.235Z"}
{"thread":"main","class":"DevKitService","message":"Could not create directory '/home/[My Name]/.ssh'.\r\n","level":"warn","timestamp":"2020-03-04T01:36:39.406Z"}
{"thread":"main","class":"DevKitService","message":"Failed to add the host to the list of known hosts (/home/[My Name]/.ssh/known_hosts).\r\n","level":"warn","timestamp":"2020-03-04T01:36:39.651Z"}
{"thread":"main","class":"DevKitService","level":"info","message":"Database downloaded to .\\_wpeprivate\\autoload.sql\n","timestamp":"2020-03-04T01:36:46.257Z"}
{"thread":"main","class":"DevKitService","level":"info","message":"Cloning site-specific config via SSH Gateway...\n","timestamp":"2020-03-04T01:36:46.260Z"}
{"thread":"main","class":"DevKitService","level":"info","message":"\u001b[1;31m\rError: \u001b[0mUnable to clone site config: Unable to pull config: Unable to pull config files: Could not create directory '/home/[My Name]/.ssh'.\r\nFailed to add the host to the list of known hosts (/home/[My Name]/.ssh/known_hosts).\r\n\n","timestamp":"2020-03-04T01:36:57.466Z"}
{"thread":"main","reason":{"message":"ENOENT: no such file or directory, open 'C:\\Users\\[My Name]\\Local Sites\\testsite\\app\\public\\.wpengine-conf\\wp-config-site.php'","stack":"Error: ENOENT: no such file or directory, open 'C:\\Users\\[My Name]\\Local Sites\\testsite\\app\\public\\.wpengine-conf\\wp-config-site.php'"},"p":{},"level":"warn","message":"Unhandled Rejection.","timestamp":"2020-03-04T01:36:57.480Z"}
1 Like

Any help with this? I keep this same error Uh-oh! We ran into an issue when pulling from WP Engine
AND eventually when it says complete, my Blog’s name is totally different from what I pulled from (apart from being blank!).

Can’t pull effectively. My first use of Flywheel has been a disaster!

2 Likes

local-lightning.log (416.6 KB) local-lightning.log (416.6 KB)

1 Like

I had this problem as well, after I had the database connection issues. The chat support folks at WPEngine helped me figure it out.

(1) For the database connection problem, the Local dialog for “Connect” doesn’t seem to have the “Include database” option, so the database is not pulled by default. Once you create your local website, select to pull from the WPEngine server again (using the Pull from WP Engine icon in the lower right). This time, the pull dialog will have the “Include Database” option; select it before pulling, and your website will be pulled down correctly and the database connection information will be correct.

(2) At this point, you’ll be able to run your website locally, but will see the warning messages listed above. In my case, I needed to remove the mu-plugins folder from my folder structure. My support rep said that these plugins are not needed on the local version. That solution may not work for everybody, depending on the source of the PHP warning that you’re seeing.

Here’s the PHP warning message that appeared for me until I removed the mu-plugins folder:

This solution did not appear to help my situation. I re-pulled the database and removed the mu-plugins folder from the local folder and am still getting errors at the top of the page, and when I try to go to the wp-admin page…all I see are errors, not even the ability to log in.

local-lightning.log (688.6 KB)

Your PHP warning does not indicate a problem with mu-plugins (although other posters in the thread had the same mu-plugins warnings that I did).

It looks like you have a code error on line 613 of /Local Sites/kent-foundation-repair/app/public/wp-includes/class-wp-post-type.php. There appears to be a problem with the syntax of the foreach() statement.

My line 613 of that same file looks like this in my website (I don’t think we’ve modified the code for class-wp-post-type.php from the default):

/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public function register_taxonomies() {
	foreach ( $this->taxonomies as $taxonomy ) {   // THIS IS LINE 613
		register_taxonomy_for_object_type( $taxonomy, $this->name );
	}
}

Mine is exactly the same. I have not altered the standard WP code…which is why getting this error is weird and seems to be an issue with Local itself, not the code.

/**
 * Registers the taxonomies for the post type.
 *
 * @since 4.6.0
 */
public function register_taxonomies() {
	foreach ( $this->taxonomies as $taxonomy ) {
		register_taxonomy_for_object_type( $taxonomy, $this->name );
	}
}

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.