-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
composer update: Undefined index: splits #890
Comments
Can I ask why you thought it was acceptable to just break the old endpoint without clearly announcing a migration date? The blog posts I've read (and indeed read at the end of last year) just state an aspiration to move over at some point in the future.
All my CI jobs started failing today due to this, further exacerbated by the upgrade process being painful for those of us who've updated to PHP 8.1 in the meantime (not supported by |
The need for updating to Flex 1.17+ was announced both in September 2021 and in November 2021 on the Symfony blog. and this was asked again multiple times on Twitter in the meantime. |
Yes, vague warnings were posted on the blog and social media. Without any sort of "sunset date", deprecation timeline or actionable plan that communicated when the change needed to be made. Come on, you absolutely can do better than that. All the Symfony core releases have a proper release lifecycle with documented, well-communicated EOL dates. When functionality is deprecated, the version number where it is deprecated and the version number for its scheduled removed is explicitly documented in your blog posts too. |
https://symfony.com/blog/upgrade-flex-on-your-symfony-projects advised to update ASAP.
That was 4 months ago, by just updating (running the mentioned command) you should be good. |
"earliest convenience" and "we have not decided yet when we will shut down the current Flex server" != "ASAP" in my mind, at all.
As I mentioned, it's not quite that simple, I had to pin |
We are on version 1.9.10 and it's getting the same error, the given solution is not working. |
Try running |
There is your problem, you've pinned the version to |
Is there a newsletter or some kind of channel where we can subscribe to for such critical / breaking updates? Please let me know. |
Thank you this helped |
Unfortunately none of advice from that issue worked for me. I simply did I am stuck, any ideas, please? |
@K4T You might have a global installation of flex. |
@wouterj thanks for creating an issue (i was lost debuging my vendor 😂 ) and showing the solution 🙏 |
@nicolas-grekas Upgrading to symfony/flex v1.18.5 fixes this issue for me => https://symfony.com/blog/upgrade-flex-on-your-symfony-projects |
@sfi-fgarnier this is totally expected. The endpoint used by old Flex versions is being shutdown, as announced 6 months ago. That's why this pinned issue links to the blog post. |
Why is |
@MetalArend That's an issue that was fixed in the newest versions of Flex. So upgrading is the solution here. |
@fabpot Aha, good to know. We've just updated. Thanks! For some others coming here for the solution, make sure to run |
I guess another problem for many projects will be that they still use php < 8.0, so they won't be able to upgrade for flex 2.x yet :/ |
@smatyas to solve the issue, upgrading to Flex 1.18+ is enough. |
@stof that will indeed solve the error message issue, but it makes silently install 5.x symfony/* deps for a 4.4 symfony project, which is even worse. We ended up setting those packages one-by-one with 4.4.* in the required block of the composer.json to mitigate the problem. That's what the extra.symfony.require - 4.4.* solved before, until the version.json was working, if I get it right. I'm not saying it's a bad thing, this situation will make us upgrade those remaining projects finally :) |
@smatyas if you run a full |
My
Any ideas? Should I just add My
EDIT: Adding |
If it helps, I had the following error running And after running what @nicolas-grekas commented it worked well: |
@emodric In your case, upgrading to the latest Ibexa DXP release will fix the issue. Just remember to apply changes from ibexa/website-skeleton because we recently switched to serverless Flex approach. |
I updated my symfony/flex to v1.13.4 since that's the highest I can upgrade to. I keep getting this error even though I ran all the commands stated in this issue. When I run Any guesses why the error keeps popping up? |
@amine-betari I see that your folder is named ezplatform. Please look at the comment of @webhdx: #890 (comment) (Ibexa DXP is the new name of ezplatform) |
Thanks for all the extra information - I've included some specialized troubleshooting info in the main description :) |
@Lexus123 I've tagged Bolt |
Some people might need to wipe out their local flex dir before being able to update.
|
composer update symfony/flex not worked for me
Trying downgrade to flex 1.17, Using symfony 6, PHP 7.4 |
|
Tried with options too, not solve |
@cirovargas btw, your previous comment was showing an error happening during |
@stof this is a prod env deploy, i run update on local (updated composer.lock) and submit to deploy |
|
And that was the last missing piece of the puzzle on my side... removing vendors. |
On my prod deploy i do a fresh install, |
I think a better migration path would have been to keep the existing server for a slightly longer period of time but make all the required files 404 so the error was actually at the correct location, maybe even with a static page at the 404 location linking to the blog post. This would have given a simple, easy to find solution. I don't think many people's first port of call is to check the Symfony blog when they get composer errors. |
We've been displaying error messages for the last couple of months whenever you run |
Apart from all the announcements and warnings that have been put in place, please note that 6 months have passed since the release of Symfony Flex 1.17. It is always a good idea to update your tooling more often than once a year (and as it's not production code, it's much more safe to do so). |
We had this issue even after updating symfony/flex. In our case the problem was in gitlab runner configuration.
|
We have issued same problem today, spent around 2 hours to get rid of this. The reason was very obvious, but found very late. We use gitlab ci-cd and configuration for it(.gitlab-ci.yml) had cache parameter that forced docker-container to use symfony/flex 1.12. Removing this parameter and changing required symfony/flex to ^1.18.5 in composer.json solved issues. P.s read comment above |
To help with searchability, some affected users may see this error instead:
|
while trying to fix this issue, i've updated flex version. to 1.17 and to 1.18.5. both gives me new error:
any ideas? |
Updating flex version solved my issue with splits error. Thank you! |
This comment was marked as off-topic.
This comment was marked as off-topic.
@ericmorand What do you mean? There is no breaking change here. Read the full story. |
I think the issue can be closed or limited to maintainers only. It is clear why it happened and what to do in order to fix it. |
This error is caused by a very outdated Symfony Flex version. Please update it using this command:
Make sure it installs at least 1.17 (or higher). See https://symfony.com/blog/upgrade-flex-on-your-symfony-projects (from November 2021) for more information.
If you have installed Flex globally, run the command as
composer global update
instead ofcomposer update
to apply to the global plugin.If you're using eZ Publish / Ibexa DXP
See this comment by @webhdx:
If you're using Bolt CMS 4
See this comment by @bobdenotter:
If you can't install Flex 1.17
Try seeing which dependency or constraint blocks you (and try submitting a fix in their repository), using:
The text was updated successfully, but these errors were encountered: