# |
Mar 3rd 2018, 19:08 |
alysson-azevedo |
Ok, |
# |
Mar 3rd 2018, 19:04 |
savant |
mind adding that to the docs via a pull request? |
# |
Mar 3rd 2018, 19:04 |
alysson-azevedo |
I see. Thanks. Maybe https://book.cakephp.org/3.0/en/development/configuration.html#environment-variables should be updated |
# |
Mar 3rd 2018, 19:03 |
savant |
yeah: https://github.com/cakephp/app/blob/master/config/bootstrap.php#L47 |
# |
Mar 3rd 2018, 19:02 |
alysson-azevedo |
Do i need to load some plugin to .env work? |
# |
Mar 3rd 2018, 19:02 |
alysson-azevedo |
Hi. I created a .env file and defined my var `export APP_NAME="app_test"`. But on cake console, `env('APP_NAME')` returns null |
# |
Mar 3rd 2018, 18:43 |
hmic |
:D |
# |
Mar 3rd 2018, 18:43 |
hmic |
i'm counting 42 |
# |
Mar 3rd 2018, 18:42 |
hmic |
theres more on irc actually :p |
# |
Mar 3rd 2018, 18:41 |
savant |
there is the slack web client i think many use |
# |
Mar 3rd 2018, 18:41 |
savant |
people join slack when they need help, then leave :slightly_smiling_face: |
# |
Mar 3rd 2018, 18:41 |
dereuromark |
17 users online? only? that aint much |
# |
Mar 3rd 2018, 18:34 |
savant |
You can invite someone to the CakePHP slack via the invite app: http://cakesf.herokuapp.com/ |
# |
Mar 3rd 2018, 17:44 |
dereuromark |
birdy: only with my behavior, otherwise you have data integrity problems. the default cake way here is problematic |
# |
Mar 3rd 2018, 17:05 |
sayed |
@savant Yes, the goal is to remove the file and reset the field storing the file name |
# |
Mar 3rd 2018, 15:33 |
dusicacakic |
@savant Thanks, I try to fix that |
# |
Mar 3rd 2018, 15:32 |
savant |
yeah @dusicacakic you have an invalid `Security.salt` value in your bootstrap.php |
# |
Mar 3rd 2018, 15:31 |
birdy247 |
:+1: |
# |
Mar 3rd 2018, 15:31 |
hmic |
birdy247: if they are optional |
# |
Mar 3rd 2018, 15:31 |
birdy247 |
Does it make sense to make strings defulted to null in the DB? |
# |
Mar 3rd 2018, 15:30 |
slackebot1 |
Dispatcher::dispatch() - CORE\Cake\Routing\Dispatcher.php, line 167 [main] - APP\webroot\index.php, line 117 |
# |
Mar 3rd 2018, 15:30 |
slackebot1 |
AuthComponent::identify() - CORE\Cake\Controller\Component\AuthComponent.php, line 772 AuthComponent::login() - CORE\Cake\Controller\Component\AuthComponent.php, line 612 UsersController::login() - APP\Controller\UsersController.php, line 21 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE\Cake\Controller\Controller.php, line 491 Dispatcher::_invoke() - CORE\Cake\Routing\Dispatcher.php, line 193 |
# |
Mar 3rd 2018, 15:30 |
dusicacakic |
Security::_crypt() - CORE\Cake\Utility\Security.php, line 326 Security::hash() - CORE\Cake\Utility\Security.php, line 115 BlowfishPasswordHasher::check() - CORE\Cake\Controller\Component\Auth\BlowfishPasswordHasher.php, line 45 BaseAuthenticate::_findUser() - CORE\Cake\Controller\Component\Auth\BaseAuthenticate.php, line 138 FormAuthenticate::authenticate() - CORE\Cake\Controller\Component\Auth\FormAuthenticate.php, line 78 |
# |
Mar 3rd 2018, 15:30 |
dusicacakic |
Version 2.10.8 |
# |
Mar 3rd 2018, 15:30 |
savant |
hi |
# |
Mar 3rd 2018, 15:29 |
hmic |
hi savant, btw! |
# |
Mar 3rd 2018, 15:29 |
hmic |
just check what's in your bootstrap.php there should be a Configure::write() with a key like crypt.secret or similar. probably thats invalid |
# |
Mar 3rd 2018, 15:28 |
savant |
and the exact cakephp version you are running? |
# |
Mar 3rd 2018, 15:28 |
savant |
Can you show the whole error message |
# |
Mar 3rd 2018, 15:28 |
dusicacakic |
Yes,the part of error,version 2.x, |
# |
Mar 3rd 2018, 15:28 |
savant |
and what version of cakephp are you running? |
# |
Mar 3rd 2018, 15:27 |
savant |
Is that the exact error you are seeing? |
# |
Mar 3rd 2018, 15:25 |
dusicacakic |
Security::_crypt() - CORE\Cake\Utility\Security.php, line 326 Security::hash() - CORE\Cake\Utility\Security.php, line 115 BlowfishPasswordHasher::check() - CORE\Cake\Controller\Component\Auth\BlowfishPasswordHasher.php, line 45 BaseAuthenticate::_findUser() - ... |
# |
Mar 3rd 2018, 15:17 |
savant |
@dusicacakic ^ |
# |
Mar 3rd 2018, 15:10 |
savant |
if you click on where it says “Warning (512)” it should show it |
# |
Mar 3rd 2018, 15:10 |
savant |
Can you show the stacktrace for that? |
# |
Mar 3rd 2018, 14:52 |
dusicacakic |
Hi.I have error when I try to login-> Warning (512): Invalid salt. Do you have some links to find how to resolve this problem? |
# |
Mar 3rd 2018, 14:16 |
savant |
@sayed what is your end goal there? to remove the file? |
# |
Mar 3rd 2018, 11:48 |
sayed |
So if anyone has some better suggestions, i would love to hear them ! |
# |
Mar 3rd 2018, 11:48 |
sayed |
so basically i am trying to reset the file value of the entity to null. This is not working as expected so i used the `'restoreValueOnFailure' => false,` option as a workaround for now. |
# |
Mar 3rd 2018, 11:47 |
sayed |
The field is expecting a file and i am trying to set it to null on a update action and i can’t delete the entity |