Skip to content

Help fixing a messed-up M2.4 installation

So, I recently inherited a M2.4.4 installation from an “agency”. Long story short, pretty much everything was botched. I managed to fix the file permissions, module conflicts etc and I am now at the point where I want to update to 2.4.5 (to begin with). And here where things go south…

When running a simple composer update, everything breaks and no cli command works anymore, giving the following error:

Interface “MagentoFrameworkObjectManagerResetAfterRequestInterface” not found

I tried removing composer.lock and installing everything using composer install but that gives the same result.

At this point I get the feeling that this “agency” just modified/added/replaced code inside the vendor folder and the composer.json and composer.lock files are just for show.

How do I even begin to fix this? Keep in mind that this is a live site and although I have a staging copy, starting from scratch is not really an option. I know that whatever is in the vendor folder works so is there a way to work backwards from that?

Any help is much appreciated.