vinkla / wordplate

A boilerplate for WordPress, built with Composer and designed with sensible defaults.
2.11k stars 155 forks source link

.env not found following 7.0 upgrade #222

Closed vincentreitz closed 5 years ago

vincentreitz commented 5 years ago

Hello,

Just upgraded to wordplate 7.0 and it seems make default path to base path broke .env lookup.

When I try to create new wordplate project, same error is showing

Did I missed something ?

vinkla commented 5 years ago

👋 @Avock did you follow the upgrade guide for version 7.0?

vincentreitz commented 5 years ago

Oh no, didn't see it :/ Only read the release notes.

But before opening an issue, I checked wp-config file of this project which haven't moved for 2 years and tried to create new project that also failed.

vinkla commented 5 years ago

Oh no, didn't see it :/ Only read the release notes.

Sorry for the inconvenience. I've added the link to the upgrade guide now.

But before opening an issue, I checked wp-config file of this project which haven't moved for 2 years and tried to create new project that also failed.

Hmm, I'm running two WordPlate applications using 7.0 without any issues. Do you get any error messages?

vincentreitz commented 5 years ago

Yes, I do composer create-project wordplate/wordplate

Then I update the .env file with one of working 6.* wordplate version.

And I get :

Error establishing a database connection

The wp-config.php not following the upgrade guide

Thanks for your time and help :)

vinkla commented 5 years ago

You're right! I've pushed the button a little too early. I've retagged version 7.0 and with the following update:

https://github.com/wordplate/wordplate/blob/57ee8c59b44f3214aefd54d11a005551ab3d6832/public/wp-config.php#L39-L41

Again, thanks for reporting this!