Issue Summary
When pulling a site from WPEngine to Local on Windows (possibly where the files have been previously developed on a Mac), the operation fails to complete due to permissions errors and the site gives a 403 error
Troubleshooting Questions
-
Does this happen for all sites in Local, or just one in particular?
Yes -
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
Yes
Replication
- pull site from WPEngine
- start site
- => 403 error - access denied
- files are not even viewable or editable by the operating system eg .htaccess
System Details
-
Which version of Local is being used?
6.6.0+6321 -
What Operating System (OS) and OS version is being used?
Windows 11 Home -
Attach the Local Log.
(will attach shortly)
this error pops up at the end
[Window Title]
Error
[Main Instruction]
Uh-oh! Unable to change site domain to host.
[Content]
Error: Command failed: “C:\Program Files (x86)\Local\resources\extraResources\lightning-services\php-8.1.9+8\bin\win64\php.exe” “C:\Program Files (x86)\Local\resources\extraResources\bin\wp-cli\wp-cli.phar” --path=“S:\work\bitbucket\client\mysite\website\app\public” --require=“C:\Program Files (x86)\Local\resources\extraResources\bin\wp-cli\local-wpcli-error-reporting.php” --skip-plugins --skip-themes --url=mysite.wpengine.com “search-replace” --all-tables-with-prefix “http://mysite.wpengine.com” “http://mysite.local”
at ChildProcess.exithandler (node:child_process:407:12)
at ChildProcess.emit (node:events:527:28)
at maybeClose (node:internal/child_process:1092:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)
[OK]