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

folder issue if wp-content created by wpackagist in the same time #31

Open
florent-cdl opened this issue Sep 2, 2021 · 4 comments
Open

Comments

@florent-cdl
Copy link

Hi,
My composer.json have "johnpbloch/wordpress-core-installer": "^2.0" but also a yoast "yoast/wordpress-seo": "^12.5" installer

So as installation of wordpress take time, yoast create a wp-content folder before wordpress-core-installer finished. So a wp-content folder already exists whan the wordpress install wants to create one.
I think johnpbloch install don't make the right choice when a folder already exists because it ended with wp-content/wp-content/theme
If I remove the plugins, installatyion is correct and I get wp-content/theme
Thank you
Florent

@tomjn
Copy link

tomjn commented Sep 2, 2021 via email

@florent-cdl
Copy link
Author

Hi Tom
Strange because if I don't include the plugins in composer.json the wp-content is created inside my wordpress folder

@tomjn
Copy link

tomjn commented Sep 2, 2021 via email

@johnpbloch
Copy link
Owner

An alternative to switching your folder layout is to stop using composer to manage your WordPress version. WP-CLI is fairly robust and can be used to enforce the WordPress version, and that can even be done using a composer script that runs on install/update.

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