W
W
WebDev2016-06-03 10:27:17
Laravel
WebDev, 2016-06-03 10:27:17

The MAC is invalid laravel?

I found the following error in the logs:

production.ERROR: exception 'Illuminate\Contracts\Encryption\DecryptException' with message 'The MAC is invalid.' in /var/www/html/bootstrap/cache/compiled.php:13119

When going to a certain address, it really gives such an error.
Ran php artisan cache-clear, it helped.
What is this mistake? What can be wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrzej Wielski, 2016-06-03
@kirill-93

Check the secret key, it should be 16 characters long.
Also run the command composer dump-autoload
This problem can be caused by anything. Perhaps you have changed the key and are trying to decrypt an old entry - in this case, the key will not work, which will cause an error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question