Hi everyone,
I’m facing a serious problem with my Magento website, and I’d really appreciate any help or advice you can offer.
A few days ago, Liquidweb, my hosting deleted files from the main directory of my site (/home/wwwdos9/public_html/shopmami) instead of just clearing the cache files. The rm -rf command was mistakenly run on the main directory. Since then, the site has been throwing errors, specifically the following one: "Autoload error: Vendor autoload is not found. Please run 'composer install' under application root directory."
Unfortunately, the available automated backup was overwritten just before I realized the issue, so I don’t have a recent backup of the site. The hosting support team has tried to help me, but we haven’t had much success.
Here are some additional details about the environment:
My questions are:
I’m open to any suggestions or recommendations. I’m really stuck at this point and would greatly appreciate your help.
Thanks in advance!
Your code should always be versioned using tools such as Git. Do you have your codebase versioned in git?
No
That is a big lesson learned then.
In this case, your best bet is backup. Without versioning the code, composer could rebuild vendor, but everything in your app/code is gone and who knows what you had there.
Everything is in app/code, not a single file has been lost.
I don't understand, didn't you say rm -rf was run on the main directory and no backup was available? How do you have the content of the app/code now? I don't really understand what you have and what you lost at this point
Liquidweb, my hosting provider, was supposed to delete the cache, but instead, they mistakenly ran a deletion command on the root directory /home/wwwdos9/public_html/shopmami for a few seconds. After that, as if nothing had happened, they proceeded to delete the cache. At that time, I was asleep, and the backup made that day is from after the file deletion. The problem is that we don’t know exactly which files were deleted.