Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ABSPATH detection on Windows #1175

Closed
andrewfrench opened this issue Oct 11, 2018 · 1 comment
Closed

Fix ABSPATH detection on Windows #1175

andrewfrench opened this issue Oct 11, 2018 · 1 comment
Assignees

Comments

@andrewfrench
Copy link
Contributor

Describe the bug
WordPress in a subdirectory on Windows causes the ABSPATH value to erroneously contain a . character instead of the correct path.

To Reproduce
On Windows,

  • Create a WordPress project where WP is located in a directory like: docroot/wp/ and has no existing wp-config.php
  • ddev config
  • docroot/wp-config.php has an incorrect ABSPATH value

Expected behavior
ABSPATH should be set to something like dir(__FILE__) . "/wp", not dir(__FILE__) . "/."

Version and configuration information (please complete the following information):

  • Windows
  • ddev v1.3.0
@andrewfrench andrewfrench self-assigned this Oct 11, 2018
@andrewfrench andrewfrench added this to the v1.4.0 milestone Oct 11, 2018
@rfay
Copy link
Member

rfay commented Oct 12, 2018

We might as well add the test stanza for WP-in-subdir (#1167) in this one. Once again we're skunked by not having Windows tests for a new feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants