Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The payload is invalid. #27

Open
nhtua opened this issue Sep 13, 2016 · 6 comments
Open

Error: The payload is invalid. #27

nhtua opened this issue Sep 13, 2016 · 6 comments

Comments

@nhtua
Copy link

nhtua commented Sep 13, 2016

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
Copy link
Owner

Looks like a CSRF token issue.

@nhtua
Copy link
Author

nhtua commented Sep 13, 2016

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

@bestmomo
Copy link
Owner

Do you use the package with Laravel 5.3 ?

@nhtua
Copy link
Author

nhtua commented Sep 13, 2016

Oh no, I use Laravel 5.2.23

@bestmomo
Copy link
Owner

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

@vnoitkumar
Copy link

vnoitkumar commented Sep 30, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants