# |
Apr 1st 2019, 09:12 |
patox44 |
how can I false check ssl when I create new client? This one doesn't work: `$http = new Client(['ssl_verify_peer' => false]);`. I know isn't recommended, but I got test api where ssl not works |
# |
Apr 1st 2019, 08:53 |
challgren |
Morning @neon1024 |
# |
Apr 1st 2019, 08:51 |
neon1024 |
Morning all :wave: |
# |
Apr 1st 2019, 08:22 |
roel |
Hello everyone, Currently I am using the Translate Behavior to save translations for my entities. When ever I save an entity which has no translations (yet), it will save that record with a `NULL` value in my "default" table and it will set the actual value in the translationsTable. I would like the value to be stored in the "default" table and only the translations in the translations table. Thanks in advance. |
# |
Apr 1st 2019, 03:16 |
hola |
hola |
# |
Mar 31st 2019, 20:47 |
challgren |
https://book.cakephp.org/3.0/en/plugins.html#loading-a-plugin |
# |
Mar 31st 2019, 20:38 |
challgren |
Use this->addPlugin in you're application.php |
# |
Mar 31st 2019, 20:21 |
abdualelah.mdy |
it shows Class 'Application' not found |
# |
Mar 31st 2019, 20:20 |
abdualelah.mdy |
i am using Application::addPlugin('AdminLTE', ['bootstrap' => true, 'routes' => true]); |
# |
Mar 31st 2019, 20:00 |
abdualelah.mdy |
no problem. anytime |
# |
Mar 31st 2019, 19:59 |
adithya |
will do, thanks for the heads up! |
# |
Mar 31st 2019, 19:57 |
abdualelah.mdy |
in your php file |
# |
Mar 31st 2019, 19:57 |
abdualelah.mdy |
included this line |
# |
Mar 31st 2019, 19:57 |
abdualelah.mdy |
use Cake\Auth\DefaultPasswordHasher; |
# |
Mar 31st 2019, 19:56 |
adithya |
thank you, yes im hashing them :slightly_smiling_face: |
# |
Mar 31st 2019, 19:55 |
abdualelah.mdy |
if((new DefaultPasswordHasher)->check(password from request,hashed password in table)){ |
# |
Mar 31st 2019, 19:53 |
abdualelah.mdy |
Are you hashing them? |
# |
Mar 31st 2019, 19:53 |
adithya |
I'm getting my email and password in an api, how do i check if they match? |
# |
Mar 31st 2019, 19:53 |
abdualelah.mdy |
Property _transportConfig does not exist |
# |
Mar 31st 2019, 19:52 |
abdualelah.mdy |
more problem unfortunately |
# |
Mar 31st 2019, 19:45 |
challgren |
You need that line |
# |
Mar 31st 2019, 19:45 |
challgren |
https://github.com/cakephp/app/blob/master/config/bootstrap.php#L43 |
# |
Mar 31st 2019, 19:45 |
abdualelah.mdy |
Class 'TransportFactory' not found |
# |
Mar 31st 2019, 19:43 |
challgren |
Thats the updated cakephp/app with that fixed |
# |
Mar 31st 2019, 19:43 |
challgren |
https://github.com/cakephp/app/blob/master/config/bootstrap.php#L152 |
# |
Mar 31st 2019, 19:41 |
abdualelah.mdy |
I changed to TransportFactory::setConfig(Configure::consume('EmailTransport')) but I have problem too |
# |
Mar 31st 2019, 19:40 |
abdualelah.mdy |
149 Email::setConfigTransport(Configure::consume('EmailTransport')); |
# |
Mar 31st 2019, 19:39 |
abdualelah.mdy |
Deprecated (16384): Email::setConfigTransport() is deprecated. Use TransportFactory::setConfig() instead. - C:\xampp\htdocs\bookedServer\config\bootstrap.php, line: 149 You can disable deprecation warnings by setting `Error.errorLevel` to `E_ALL and ~E_USER_DEPRECATED` in your config/app.php. [CORE\src\Core\functions.php, line 311] |
# |
Mar 31st 2019, 19:39 |
abdualelah.mdy |
I have this problem |
# |
Mar 31st 2019, 19:30 |
challgren |
No worries, anytime you get something like “cakedc/users 8.4.0 requires cakephp/cakephp ^3.7 ” it’s probably due to your composer.json containing a lower version |
# |
Mar 31st 2019, 19:30 |
abdualelah.mdy |
it is working now. my thanks again |
# |
Mar 31st 2019, 19:27 |
challgren |
And 3.8 will probably be out in a month or so. Beta 1 was already released yesterday |
# |
Mar 31st 2019, 19:26 |
challgren |
Mainly deprecations https://book.cakephp.org/3.0/en/appendices/3-7-migration-guide.html |
# |
Mar 31st 2019, 19:26 |
challgren |
3.6 and 3.7 are compatible so you really shouldnt need to fix much |
# |
Mar 31st 2019, 19:25 |
abdualelah.mdy |
thanks a lot<3 |
# |
Mar 31st 2019, 19:25 |
challgren |
composer require cakephp/cakephp:^3.7 |
# |
Mar 31st 2019, 19:24 |
abdualelah.mdy |
ok . but how ? |
# |
Mar 31st 2019, 19:24 |
challgren |
There’s older versions of cakedc/users but they havent received bug fixes/security updates so it would be best to upgrade your site to 3.7 |
# |
Mar 31st 2019, 19:23 |
abdualelah.mdy |
but how to install for my version |
# |
Mar 31st 2019, 19:23 |
challgren |
Then you need to upgrade to 3.7 to use cakedc/users |
# |
Mar 31st 2019, 19:22 |
abdualelah.mdy |
yes it is 3.6 |