I’m importing a custom site (not Wordpress site) from Local by Flywheel to Local. I’ve already had success importing a Wordpress website, but this custom site transfer doesn’t work.
It all goes okay with the transferring of files and SQL, until the warning comes up:
“Uh-oh! Unable to import site ---- Error: Unable to get ‘home’ option from WordPress.”
Eventually, unsurprisingly the site doesn’t show in Local.
Why is this error coming up? Especially as I told Local what custom environment i wanted at the beginning, so it should know this isn’t Wordpress.
I can see in the log “ImporterLocalExport”,“message”:“wp-config.php does not exist. Can’t update DB info.”," - doesn’t make any sense, why would it think this is Wordpress?
Here’s the end part of the log when the issues arise:
{"thread":"main","class":"ImporterLocalExport","message":"wp-config.php does not exist. Can't update DB info.","level":"warn","timestamp":"2020-03-31T13:30:28.502Z"}
{"thread":"main","class":"Process","process":"nginx","pid":14316,"level":"info","message":"Killing process","timestamp":"2020-03-31T13:30:29.032Z"}
{"thread":"main","class":"Process","process":"mailhog","pid":6468,"level":"info","message":"Killing process","timestamp":"2020-03-31T13:30:29.040Z"}
{"thread":"main","class":"Process","process":"phpCgi","pid":20572,"level":"info","message":"Killing process","timestamp":"2020-03-31T13:30:29.049Z"}
{"thread":"main","class":"Process","process":"phpCgi","pid":10600,"level":"info","message":"Killing process","timestamp":"2020-03-31T13:30:29.061Z"}
{"thread":"main","class":"Process","process":"mariadb","pid":21132,"level":"info","message":"Killing process","timestamp":"2020-03-31T13:30:29.075Z"}
{"thread":"main","class":"ImporterLocalExport","level":"info","message":"Removing C:\\Users\\mark\\AppData\\Local\\Temp\\local-by-flywheel-JfQDN-U_sZ","timestamp":"2020-03-31T13:30:29.088Z"}
{"stack":"Error: Unable to get 'home' option from WordPress.\n at ChangeSiteDomainService.<anonymous> (C:\\Users\\mark\\AppData\\Local\\Programs\\Local\\resources\\app.asar\\main\\sites\\ChangeSiteDomainService.js:1:4635)\n at Generator.next (<anonymous>)\n at _0x3e7547 (C:\\Users\\mark\\AppData\\Local\\Programs\\Local\\resources\\app.asar\\main\\sites\\ChangeSiteDomainService.js:1:1738)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (internal/process/task_queues.js:85:5)","level":"warn","message":"Unable to import site.","timestamp":"2020-03-31T13:30:29.090Z"}
{"thread":"main","class":"DeleteSiteService","message":"Deleting C:\\Users\\mark\\AppData\\Roaming\\Local\\run\\D7TfLfmQe","level":"info","timestamp":"2020-03-31T13:30:36.045Z"}
{"thread":"main","class":"HostsFileService","level":"info","message":"Updating hosts with","timestamp":"2020-03-31T13:35:02.808Z"}
{"thread":"main","class":"HostsFileService","stdout":"Updating hosts file at C:\\WINDOWS\\System32\\drivers\\etc\\hosts\nUpdated hosts file at C:\\WINDOWS\\System32\\drivers\\etc\\hosts\n","stderr":"","level":"info","message":"Updated hosts.","timestamp":"2020-03-31T13:35:07.195Z"}