Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hangra's avatar

PackageManifest.php - Undefined index: name

Hi, I'm trying to update my application. The deployment two days ago worked fine. Now however (I did some updates to the code), I get the following error when I run php artisan cache:clear, composer update or any other command:

In PackageManifest.php line 122: Undefined index: name

Could you please help me to fix this issue?

0 likes
5 replies
epheser's avatar
epheser
Best Answer
Level 1

Hey, i had the same problem. In my case downgrading the composer version fixed the problem. They updated Composer 4 times within 2 days - i think they had a problem with their newest updates. In my case version 1.10.1 was the version to go with.

I hope it'll work.

3 likes
jdavidbakr's avatar

I think this is Composer version 2.0 - it looks like they have released that as the default version now, which appears to be incompatible with the current PackageManifest file.

1 like
hangra's avatar

Thank you! I could fix the problem with composer self-update --stable.

1 like
Grizzly's avatar

Here the problem was solved by updating all packages (be carful though, doing this could break a lot of stuff)

Please or to participate in this conversation.