Error 500: Argument 1 passed to Carbon\CarbonInterval::setLocalTranslator()

The Issue

After update some users are facing the following issue:

Argument 1 passed to Carbon\CarbonInterval::setLocalTranslator() must implement interface Symfony\Component\Translation\TranslatorInterface, instance of Carbon\Translator given ...

Solution

If you run into an error similar to this,

1. You have simply to replace all your website files by the latest version of the script, except the "/.env" file and the "/storage/" folder. Note: You have to save your language files if you have change them, to restore them after the update.

2. If you have already done the solution #1, then, delete your /vendor/ folder and re-upload it.

Important:

If your server or hosting provider uses some kind of file caching (SuperCacher, OPCache, Cloudflare cache etc) you will need to clear that cache after updating, otherwise some changes from the update might not work properly.

Done.