Thursday, June 16, 2016

Common laravel issues and fix

1.ErrorException in Encrypter.php line 81:
https://laracasts.com/discuss/channels/general-discussion/mcrypt-encrypt-key-of-size-12-not-supported-by-this-algorithm

==> resolve
C:\wamp\www\app>php artisan key:generate
Application key [HaQQ7Mcdfr1KpJ17Khs2P5vrrWWJifUf] set successfully.


2. Maximum function nesting level of '100' reached, aborting!
I fixed this my add this line to bootstrap/autoload.php in LV 5.1

ini_set('xdebug.max_nesting_level', -1);

https://laracasts.com/discuss/channels/general-discussion/l5-maximum-function-nesting-level-of-100-reached-aborting?page=4


3.TokenMismatchException in VerifyCsrfToken.php line 67:
http://laravel.io/forum/01-30-2015-laravel5-tokenmismatchexception-in-verifycsrftoken
<input type="hidden" name="_token" value="{{ csrf_token() }}">

No comments:

Post a Comment