bestmomo / filemanager

Add filemanager to Laravel 5
44 stars 11 forks source link

Error: The payload is invalid. #27

Open nhtua opened 8 years ago

nhtua commented 8 years ago

After setup follow the README instruction, I got this error 500 when filemanager.php has loaded data in ajax:

DecryptException in BaseEncrypter.php line 44: The payload is invalid.

    in BaseEncrypter.php line 44
    at BaseEncrypter->getJsonPayload('cc019cbd37973cc61e3a93015a3caaceffaf08b2') in Encrypter.php line 96
    at Encrypter->decrypt('cc019cbd37973cc61e3a93015a3caaceffaf08b2') in default.config.php line 29
    at include_once('/home/dev/project1/public/filemanager/connectors/php/default.config.php') in filemanager.php line 55

The popup windows shows tools and loading gif is continue spinning.

bestmomo commented 8 years ago

Looks like a CSRF token issue.

nhtua commented 8 years ago

yep! I has researched it and I see many people say it comes from missing _token. But what can I do?

bestmomo commented 8 years ago

Do you use the package with Laravel 5.3 ?

nhtua commented 8 years ago

Oh no, I use Laravel 5.2.23

bestmomo commented 8 years ago

Are you sure you have a good APP_KEY in .env file ?

vnoitkumar commented 7 years ago

Make sure that your App\Http\Kernel file has this (\App\Http\Middleware\EncryptCookies::class,) line in the middleware. Because I think your Csrf token is not Encrypted.