Importing site from production will start on localhost instead of given Local site domain (example.local)

Issue Summary

Downloaded a backup from getflywheel.com and imported it into localwp. Filled in Local site domain (example.local) in step 1, but when I continue (preferred setup) and go to WP Admin it will open localhost:10004. It does work, without a problem, but it entirely skips the Local site domain given which I prefer.

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?
    Yes, I tried multiple sites I’m hosting. Nothing special, no multi wordpress sites or whatever.

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?
    Yes, if created a new Wordpress website in localwp it will work without any trouble.

I also tried exporting my site from an other computer. Same issue happens, but in this situation it prompts this (informational) alert “Heads-up! We ran into an issue when chaning the Local site domain. See logs for more details.”

Replication

Situation 1. Download back from production (getflywheel.com)

  1. Go to getflywheel.com, login and click on your site
  2. Click Backups from menu
  3. Click on 3 dots on the right, download latest version
  4. Check your mail and download

Situation 2. Download export from localwp from other computer

  1. Run your local website
  2. Right click and Export
  3. Export site

Continue from both step 1 or 2

  1. Open Localwp
  2. Ctrl + I or go to File → Import site
  3. First step change site name to “Example”
  4. Click Advanced options and check if Local site domain is “example.local”
  5. Choose “Preferred” and click Import site
  6. Check Site host and click WP Admin.

This will lead you to localhost:10004 instead of example.local

System Details

  • Which version of Local is being used?
    v6.7.0

  • What Operating System (OS) and OS version is being used?

Ubuntu 22.04

  • Attach the Local Log. See this Help Doc for instructions on how to do so:

localwp_logs_import_from_getfylwheel:

{“thread”:“renderer”,“component”:“ImportSiteAnalyzePage”,“level”:“info”,“message”:“Message from import-site-analyze-worker:”,“timestamp”:“2023-04-05T10:51:28.863Z”}
{“thread”:“main”,“class”:“ImporterGeneric”,“level”:“debug”,“message”:“Extracted to”,“timestamp”:“2023-04-05T10:51:37.310Z”}
{“thread”:“main”,“class”:“SiteProvisionerService”,“message”:“Creating site folders…”,“level”:“info”,“timestamp”:“2023-04-05T10:51:37.367Z”}
{“thread”:“main”,“class”:“SiteProvisionerService”,“message”:“Copying service config templates…”,“level”:“info”,“timestamp”:“2023-04-05T10:51:37.368Z”}
{“thread”:“main”,“class”:“ConfigTemplatesService”,“message”:“Compiling service configs…”,“level”:“info”,“timestamp”:“2023-04-05T10:51:37.375Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“dataPath”:“%%site.runData%%/mysql/data”,“level”:“info”,“message”:“Initializing MySQL datadir…”,“timestamp”:“2023-04-05T10:51:37.406Z”}
{“thread”:“main”,“class”:“ConfigTemplatesService”,“message”:“Compiling service configs…”,“level”:“info”,“timestamp”:“2023-04-05T10:51:41.232Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mailhog”,“pid”:32109,“level”:“verbose”,“message”:“Spawned”,“timestamp”:“2023-04-05T10:51:41.270Z”}
{“thread”:“main”,“class”:“Process”,“process”:“phpFpm”,“pid”:32115,“level”:“verbose”,“message”:“Spawned”,“timestamp”:“2023-04-05T10:51:41.278Z”}
{“thread”:“main”,“class”:“Process”,“process”:“nginx”,“pid”:32116,“level”:“verbose”,“message”:“Spawned”,“timestamp”:“2023-04-05T10:51:41.286Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“pid”:32118,“level”:“verbose”,“message”:“Spawned”,“timestamp”:“2023-04-05T10:51:41.293Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Setting up MySQL user…”,“level”:“info”,“timestamp”:“2023-04-05T10:51:41.294Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2023-04-05T10:51:41.418344Z 0 [System] [MY-010116] [Server] %%resourcesPath%%/lightning-services/mysql-8.0.16+6/bin/linux/bin/mysqld (mysqld 8.0.16) starting as process 32118”,“timestamp”:“2023-04-05T10:51:41.728Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2023-04-05T10:51:41.418883Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.”,“timestamp”:“2023-04-05T10:51:41.729Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2023-04-05T10:51:41.719255Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.”,“timestamp”:“2023-04-05T10:51:41.729Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2023-04-05T10:51:41.728022Z 0 [System] [MY-010931] [Server] %%resourcesPath%%/lightning-services/mysql-8.0.16+6/bin/linux/bin/mysqld: ready for connections. Version: ‘8.0.16’ socket: ‘%%site.runData%%/mysql/mysqld.sock’ port: 10005 MySQL Community Server - GPL.”,“timestamp”:“2023-04-05T10:51:41.730Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:51:42.318Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Creating MySQL database…”,“level”:“info”,“timestamp”:“2023-04-05T10:51:42.337Z”}
{“thread”:“main”,“class”:“WordPressInstaller”,“message”:“Init WordPressInstaller”,“level”:“info”,“timestamp”:“2023-04-05T10:51:42.350Z”}
{“thread”:“main”,“class”:“WordPressInstaller”,“message”:“maybeGetLatestVersion()”,“level”:“info”,“timestamp”:“2023-04-05T10:51:42.351Z”}
{“thread”:“main”,“class”:“WordPressInstaller”,“latestOfflineWpVersion”:“6.2”,“level”:“info”,“message”:“Latest offline version info”,“timestamp”:“2023-04-05T10:51:42.351Z”}
{“thread”:“main”,“class”:“WordPressInstaller”,“version”:“6.2”,“download”:“https://downloads.wordpress.org/release/wordpress-6.2.tar.gz",“level”:“info”,“message”:"Latest version info”,“timestamp”:“2023-04-05T10:51:42.731Z”}
{“thread”:“main”,“class”:“WordPressInstaller”,“message”:“Writing salts to wp-config.php”,“level”:“info”,“timestamp”:“2023-04-05T10:51:44.157Z”}
{“thread”:“main”,“class”:“ImporterGeneric”,“message”:“Importing SQL with mysql source”,“level”:“info”,“timestamp”:“2023-04-05T10:51:44.157Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:51:44.166Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:51:44.183Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:51:44.199Z”}
{“thread”:“main”,“class”:“ImporterGeneric”,“level”:“info”,“message”:“Importing /home/eelcoverbrugge/Local Sites/example/app/sql/backup.sql”,“timestamp”:“2023-04-05T10:51:44.214Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:51:44.611Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:51:44.626Z”}
{“thread”:“main”,“class”:“ImporterGeneric”,“level”:“info”,“message”:“Updated wp-config.php.”,“timestamp”:“2023-04-05T10:51:44.638Z”}
{“thread”:“main”,“class”:“SearchReplacerWPDatabaseDomain”,“level”:“info”,“message”:“Changing database domain for 2SqtprKdk”,“timestamp”:“2023-04-05T10:51:44.667Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:51:44.675Z”}
{“thread”:“main”,“class”:“SearchReplacerWPDatabaseDomain”,“level”:“info”,“message”:“Changing database domain for 2SqtprKdk”,“timestamp”:“2023-04-05T10:51:47.791Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:51:47.801Z”}
{“thread”:“main”,“class”:“ImporterGeneric”,“level”:“info”,“message”:“Removing /tmp/local-by-flywheel-glI6tb_DjR”,“timestamp”:“2023-04-05T10:51:50.147Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:51:50.177Z”}

localwp_logs_import_from_export_other_computer:

{“thread”:“worker”,“worker”:“analyzeImportWorker”,“level”:“info”,“message”:“checkLocalExport”,“timestamp”:“2023-04-05T10:55:44.788Z”}
{“thread”:“worker”,“worker”:“analyzeImportWorker”,“level”:“info”,“message”:“Analyzing Zip: Listing Contents for Local Export Check”,“timestamp”:“2023-04-05T10:55:44.789Z”}
{“thread”:“worker”,“worker”:“analyzeImportWorker”,“level”:“debug”,“message”:“Analysis of zip: Local Export”,“timestamp”:“2023-04-05T10:55:44.789Z”}
{“thread”:“worker”,“worker”:“analyzeImportWorker”,“level”:“info”,“message”:“checkWpMigrate”,“timestamp”:“2023-04-05T10:55:44.790Z”}
{“thread”:“worker”,“worker”:“analyzeImportWorker”,“level”:“info”,“message”:“Analyzing Zip: Listing Contents for WP Migrate Export Check”,“timestamp”:“2023-04-05T10:55:44.790Z”}
{“thread”:“worker”,“worker”:“analyzeImportWorker”,“level”:“info”,“message”:“checkBackupBuddy”,“timestamp”:“2023-04-05T10:55:44.790Z”}
{“thread”:“worker”,“worker”:“analyzeImportWorker”,“level”:“info”,“message”:“checkGenericArchive”,“timestamp”:“2023-04-05T10:55:44.791Z”}
{“thread”:“worker”,“worker”:“analyzeImportWorker”,“level”:“info”,“message”:“Analyzing Archive: Listing Contents for Generic Archive Check”,“timestamp”:“2023-04-05T10:55:44.791Z”}
{“thread”:“renderer”,“component”:“ImportSiteAnalyzePage”,“level”:“info”,“message”:“Message from import-site-analyze-worker:”,“timestamp”:“2023-04-05T10:55:44.795Z”}
{“thread”:“main”,“class”:“ImporterLocalExport”,“level”:“debug”,“message”:“Extracted to”,“timestamp”:“2023-04-05T10:55:53.297Z”}
{“thread”:“main”,“class”:“ImporterLocalExport”,“level”:“debug”,“message”:“Extracted to”,“timestamp”:“2023-04-05T10:55:53.354Z”}
{“thread”:“main”,“class”:“SiteProvisionerService”,“message”:“Creating site folders…”,“level”:“info”,“timestamp”:“2023-04-05T10:55:53.360Z”}
{“thread”:“main”,“class”:“SiteProvisionerService”,“message”:“Copying service config templates…”,“level”:“info”,“timestamp”:“2023-04-05T10:55:53.363Z”}
{“thread”:“main”,“class”:“ConfigTemplatesService”,“message”:“Compiling service configs…”,“level”:“info”,“timestamp”:“2023-04-05T10:55:53.377Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“dataPath”:“%%site.runData%%/mysql/data”,“level”:“info”,“message”:“Initializing MySQL datadir…”,“timestamp”:“2023-04-05T10:55:53.440Z”}
{“thread”:“main”,“class”:“SiteProvisionerService”,“message”:“Creating site folders…”,“level”:“info”,“timestamp”:“2023-04-05T10:55:53.629Z”}
{“thread”:“main”,“class”:“SiteProvisionerService”,“message”:“Copying service config templates…”,“level”:“info”,“timestamp”:“2023-04-05T10:55:53.631Z”}
{“thread”:“main”,“class”:“ConfigTemplatesService”,“message”:“Compiling service configs…”,“level”:“info”,“timestamp”:“2023-04-05T10:55:53.639Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“dataPath”:“%%site.runData%%/mysql/data”,“level”:“info”,“message”:“Initializing MySQL datadir…”,“timestamp”:“2023-04-05T10:55:53.671Z”}
{“thread”:“main”,“class”:“ConfigTemplatesService”,“message”:“Compiling service configs…”,“level”:“info”,“timestamp”:“2023-04-05T10:55:57.369Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mailhog”,“pid”:32766,“level”:“verbose”,“message”:“Spawned”,“timestamp”:“2023-04-05T10:55:57.414Z”}
{“thread”:“main”,“class”:“Process”,“process”:“phpFpm”,“pid”:32772,“level”:“verbose”,“message”:“Spawned”,“timestamp”:“2023-04-05T10:55:57.423Z”}
{“thread”:“main”,“class”:“Process”,“process”:“nginx”,“pid”:32773,“level”:“verbose”,“message”:“Spawned”,“timestamp”:“2023-04-05T10:55:57.431Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“pid”:32777,“level”:“verbose”,“message”:“Spawned”,“timestamp”:“2023-04-05T10:55:57.440Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Setting up MySQL user…”,“level”:“info”,“timestamp”:“2023-04-05T10:55:57.441Z”}
{“thread”:“main”,“class”:“ConfigTemplatesService”,“message”:“Compiling service configs…”,“level”:“info”,“timestamp”:“2023-04-05T10:55:57.570Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mailhog”,“pid”:32794,“level”:“verbose”,“message”:“Spawned”,“timestamp”:“2023-04-05T10:55:57.609Z”}
{“thread”:“main”,“class”:“Process”,“process”:“phpFpm”,“pid”:32800,“level”:“verbose”,“message”:“Spawned”,“timestamp”:“2023-04-05T10:55:57.616Z”}
{“thread”:“main”,“class”:“Process”,“process”:“nginx”,“pid”:32801,“level”:“verbose”,“message”:“Spawned”,“timestamp”:“2023-04-05T10:55:57.622Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“pid”:32803,“level”:“verbose”,“message”:“Spawned”,“timestamp”:“2023-04-05T10:55:57.631Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Setting up MySQL user…”,“level”:“info”,“timestamp”:“2023-04-05T10:55:57.631Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2023-04-05T10:55:57.558393Z 0 [System] [MY-010116] [Server] %%resourcesPath%%/lightning-services/mysql-8.0.16+6/bin/linux/bin/mysqld (mysqld 8.0.16) starting as process 32777”,“timestamp”:“2023-04-05T10:55:57.902Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2023-04-05T10:55:57.559069Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.”,“timestamp”:“2023-04-05T10:55:57.902Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2023-04-05T10:55:57.891556Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.”,“timestamp”:“2023-04-05T10:55:57.903Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2023-04-05T10:55:57.901984Z 0 [System] [MY-010931] [Server] %%resourcesPath%%/lightning-services/mysql-8.0.16+6/bin/linux/bin/mysqld: ready for connections. Version: ‘8.0.16’ socket: ‘%%site.runData%%/mysql/mysqld.sock’ port: 10005 MySQL Community Server - GPL.”,“timestamp”:“2023-04-05T10:55:57.903Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2023-04-05T10:55:57.746381Z 0 [System] [MY-010116] [Server] %%resourcesPath%%/lightning-services/mysql-8.0.16+6/bin/linux/bin/mysqld (mysqld 8.0.16) starting as process 32803”,“timestamp”:“2023-04-05T10:55:58.065Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2023-04-05T10:55:57.747010Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.”,“timestamp”:“2023-04-05T10:55:58.066Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2023-04-05T10:55:58.055960Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.”,“timestamp”:“2023-04-05T10:55:58.066Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2023-04-05T10:55:58.065423Z 0 [System] [MY-010931] [Server] %%resourcesPath%%/lightning-services/mysql-8.0.16+6/bin/linux/bin/mysqld: ready for connections. Version: ‘8.0.16’ socket: ‘%%site.runData%%/mysql/mysqld.sock’ port: 10010 MySQL Community Server - GPL.”,“timestamp”:“2023-04-05T10:55:58.066Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:55:58.464Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Creating MySQL database…”,“level”:“info”,“timestamp”:“2023-04-05T10:55:58.485Z”}
{“thread”:“main”,“class”:“ImporterLocalExport”,“message”:“Importing SQL with mysql source”,“level”:“info”,“timestamp”:“2023-04-05T10:55:58.497Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:55:58.505Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:55:58.521Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:55:58.538Z”}
{“thread”:“main”,“class”:“ImporterLocalExport”,“level”:“info”,“message”:“Importing /home/eelcoverbrugge/Local Sites/example/app/sql/local.sql”,“timestamp”:“2023-04-05T10:55:58.554Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:55:58.653Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Creating MySQL database…”,“level”:“info”,“timestamp”:“2023-04-05T10:55:58.663Z”}
{“thread”:“main”,“class”:“ImporterLocalExport”,“message”:“Importing SQL with mysql source”,“level”:“info”,“timestamp”:“2023-04-05T10:55:58.674Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:55:58.682Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:55:58.698Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:55:58.715Z”}
{“thread”:“main”,“class”:“ImporterLocalExport”,“level”:“info”,“message”:“Importing /home/eelcoverbrugge/Local Sites/example/app/sql/local.sql”,“timestamp”:“2023-04-05T10:55:58.730Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:56:00.463Z”}
{“thread”:“main”,“class”:“ImporterLocalExport”,“message”:“wp-config.php does not exist. Can’t update DB info.”,“level”:“warn”,“timestamp”:“2023-04-05T10:56:00.473Z”}
{“thread”:“main”,“class”:“SearchReplacerWPDatabaseDomain”,“level”:“info”,“message”:“Changing database domain for NVGI65QS_”,“timestamp”:“2023-04-05T10:56:00.506Z”}
{“thread”:“main”,“class”:“ImporterLocalExport”,“level”:“warn”,“message”:“Unable to update site domainCannot read properties of undefined (reading ‘replace’)”,“stack”:“TypeError: Cannot read properties of undefined (reading ‘replace’)\n at SearchReplacerWPConfigDomain.replaceConstant (%%appPath%%/main/sites/wp/SearchReplacerWPConfigDomain.js:1:1432)\n at SearchReplacerWPConfigDomain. (%%appPath%%/main/sites/wp/SearchReplacerWPConfigDomain.js:1:1759)\n at Generator.next ()\n at %%appPath%%/main/sites/wp/SearchReplacerWPConfigDomain.js:1:330\n at new Promise ()\n at __awaiter (%%appPath%%/main/sites/wp/SearchReplacerWPConfigDomain.js:1:75)\n at SearchReplacerWPConfigDomain.run (%%appPath%%/main/sites/wp/SearchReplacerWPConfigDomain.js:1:1551)\n at ChangeSiteDomainService. (%%appPath%%/main/sites/ChangeSiteDomainService.js:1:5017)\n at Generator.next ()\n at %%appPath%%/main/sites/ChangeSiteDomainService.js:1:330”,“timestamp”:“2023-04-05T10:56:00.514Z”}
{“thread”:“main”,“class”:“ImporterLocalExport”,“level”:“info”,“message”:“Removing /tmp/local-by-flywheel-CJKgfyjcZD”,“timestamp”:“2023-04-05T10:56:00.514Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:56:00.526Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:56:00.627Z”}
{“thread”:“main”,“class”:“ImporterLocalExport”,“message”:“wp-config.php does not exist. Can’t update DB info.”,“level”:“warn”,“timestamp”:“2023-04-05T10:56:00.637Z”}
{“thread”:“main”,“class”:“SearchReplacerWPDatabaseDomain”,“level”:“info”,“message”:“Changing database domain for XU-PO5quek”,“timestamp”:“2023-04-05T10:56:00.670Z”}
{“thread”:“main”,“class”:“ImporterLocalExport”,“level”:“warn”,“message”:“Unable to update site domainCannot read properties of undefined (reading ‘replace’)”,“stack”:“TypeError: Cannot read properties of undefined (reading ‘replace’)\n at SearchReplacerWPConfigDomain.replaceConstant (%%appPath%%/main/sites/wp/SearchReplacerWPConfigDomain.js:1:1432)\n at SearchReplacerWPConfigDomain. (%%appPath%%/main/sites/wp/SearchReplacerWPConfigDomain.js:1:1759)\n at Generator.next ()\n at %%appPath%%/main/sites/wp/SearchReplacerWPConfigDomain.js:1:330\n at new Promise ()\n at __awaiter (%%appPath%%/main/sites/wp/SearchReplacerWPConfigDomain.js:1:75)\n at SearchReplacerWPConfigDomain.run (%%appPath%%/main/sites/wp/SearchReplacerWPConfigDomain.js:1:1551)\n at ChangeSiteDomainService. (%%appPath%%/main/sites/ChangeSiteDomainService.js:1:5017)\n at Generator.next ()\n at %%appPath%%/main/sites/ChangeSiteDomainService.js:1:330”,“timestamp”:“2023-04-05T10:56:00.678Z”}
{“thread”:“main”,“class”:“ImporterLocalExport”,“level”:“info”,“message”:“Removing /tmp/local-by-flywheel-duN7eBJ04c”,“timestamp”:“2023-04-05T10:56:00.678Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:56:00.685Z”}
{“thread”:“main”,“service”:{},“serviceBinVersion”:{},“message”:“Database responded to ping.”,“level”:“debug”,“timestamp”:“2023-04-05T10:56:00.748Z”}

@eelraad

Is your router mode set to Localhost or Site Domains?

1 Like

Thanks for your quick response. Router mode is set to “localhost” en this is the only option for me:

Hi @eelraad

Why is it the only option for you? If you click on Site Domains does it not change?

Dont know, I can’t change Change domain. Option is greyed out, even when I just created a brand new wordpress site locally:

I also removed localwp completely and reinstalled, nothing changed.

Hi @eelraad In the screenshot you sent above you were in the right spot. You need to select Site Domains so the Green check mark appears next to that instead of Localhost.

It works! I overseed the option in the dropwdown, mostly it says something like “Select an option” or whatever. In first it was complaining about port 80 being occupied, but after a restart and making sure that port 80 wasn’t been used it all worked. Works with a new site, but also with my imports. Thanks!

Glad to hear it @eelraad! Happy Developing :green_heart:

I was bumping into this port issue where localwp would notify me that port 80 is already occupied when launching my site. Apparently apache was using port 80 already, which I didn’t install on my own since this was a fresh install of ubunutu. So I had to stop apache “sudo apachectl stop” in order to continue, but on every reboot the same problem happend.

I now solved this by preventing apache from starting on boot by “sudo update-rc.d apache2 disable”. This permanently solved my problem.

1 Like

Thanks for sharing your solve and workflow @eelraad!

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