-
Notifications
You must be signed in to change notification settings - Fork 638
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
Project config deleted when installing #4113
Comments
If you are using a project.yaml that is not compatible with the Craft version you are installing for some reason, it will be copied over to The reasons why it is incompatible should be logged to either your |
I have the same problem. In the console.log file I can only find lines like the following concerning the project.yaml. According to 3291 this should be fixed.
|
Andris, seeing these fly by, it does seem to me that the project.yaml capability would help itself sort out by having its own log. Easy to arrange with Yii/Craft, and both persons having experiences and yourselves would benefit from the single-pointing and its clarity. Cheap win? This is a brave project, for you and for those who have reasons to be in from the start. Regret I can't be more helpful, as I've been deep in getting another complicated project finally out the door, 'in relative minutes', and in fact the way that's happening has been subtle but big win changes in architecture, but more than equal first, creating an unusual communication system. I think you might be interested in that, sometime when there time in either household. Best, and as we haven't spoken in a while (and I am thinking it's also good to see Wouter), |
@Moskydesign hard to comment on that without any specifics. In the original issue the project.yaml file was generated using a Craft version with schema version of 3.1.25, while the latest Craft version had 3.1.26. When installing via console, you do get a nice play-by-play of what's happening. As well as whether the project.yaml file is applied or is being copied away to the backups folder along with a reason. Can you run that again and check the output in the console, not log files? |
@narration-sd that's something to consider. And it might help with debugging down the line, too. |
@andris-sevcenko, the steps are the same as with @NixonGit . Only the schema version may have changed to 3.1.26.
However I did see this in the console output:
By debugging the install process I tracked it down to an issue with the ContactFormExtensions plugin. In the init function they set a notice because the contact form is not installed/activated and thats where it goes wrong.
But I'm not really sure that the fault is completely with the plug-in. The should of course check if whether the plug-in is installed via console before trying to set a notice. Besides that, isn't there a better way to define dependencies than checking this "manually' in each plug-in? I would think the installer can check plug-in dependencies and install them on the go, no idea if this is something thats build into Craft?
|
It depends on the perspective, I guess. Personally, I don't think they should be checking if a plugin is or is not installed, because it shouldn't matter. As long as they require it in the
That's a good question that I would defer to @brandonkelly, but I wouldn't take the order of the listed plugins as a guarantee of the order they are going to be installed.
We do have some plans on improving this aspect of Craft, but that's still a little ways off, so "eventually?" is the best answer I can offer at the time. |
Description
We currently have a Craft starter composer project that includes a project.yml that sets up some basic sections, settings etc. When running Craft setup via the CP or CLI the project.yml is being overwritten with a fresh one. In this intentional? Is using project.yml in this way supported/advised?
Steps to reproduce
Additional info
I've sent the files we are working with to support@.
The text was updated successfully, but these errors were encountered: