2

Magento 2.4.3

I need to move the Magento core files which were installed in app/code/Magento by accident to the vendor folder so they can be updated with composer. Any advice on how to do that? Could not find much on Google.

I aleady tried deleting the content of the vendor folder and running composer install or composer update. That does not install what I need, only the current vendor state will be restored.

Thanks!

1
  • Where did you get the files from GitHub? It would be best to install a fresh copy using composer and then copy all files back to this environment (please remember to keep a backup) Commented May 17, 2022 at 14:58

1 Answer 1

1

I think your best option would be creating a new project & install using composer https://devdocs.magento.com/guides/v2.4/install-gde/composer.html

After that, simply copy from your old project any relevant code in app/code & app/design folders & composer.json file

4
  • Some pages were built using the Magento PageBuilder, how would I move those? They are in the database ... Commented May 16, 2022 at 8:15
  • I was talking about code. You can use same database after that Commented May 16, 2022 at 9:13
  • Right, I will try :-) Commented May 16, 2022 at 9:17
  • Feel free to accept the answer if it helped Commented Jun 6, 2022 at 16:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.