# |
Jan 10th 2020, 09:52 |
challgren |
Upgrading to CakePHP 3.x :P |
# |
Jan 10th 2020, 09:51 |
val |
what is the best approach for overriding JsonView class in 2.x? |
# |
Jan 10th 2020, 09:51 |
francisdoydora |
it's currently set to false |
# |
Jan 10th 2020, 09:49 |
challgren |
app.php App.fullBaseUrl setting |
# |
Jan 10th 2020, 09:48 |
challgren |
Are you setting the domain? |
# |
Jan 10th 2020, 09:44 |
francisdoydora |
hi @ndm, any idea why ```'fullBase' => true``` and ```'_full' => true``` in my email template is no longer working when I use the email queue plugin? Thanks! |
# |
Jan 10th 2020, 09:24 |
ndm |
@val Probably `\Cake\View\JsonView`, really depends on how you generate your JSON output. |
# |
Jan 10th 2020, 09:22 |
ndm |
The authentication plugin has a cookie authenticator which supports that out of the box (https://book.cakephp.org/authentication/2/en/authenticators.html#cookie-authenticator-aka-remember-me), configure it, send the `remember_me` field and you're done. For the old auth component there's community plugins, like for example https://github.com/Xety/Cake3-CookieAuth |
# |
Jan 10th 2020, 09:13 |
naino |
Hi, has anyone implemented "remember me" functionnality? I would like my users to stay logged in without session timeout. Is there an easy way to achieve that with Cake? Thanks. |
# |
Jan 10th 2020, 08:39 |
rudy1976s |
I am using cake 3.7 and Queuesadilla plugin: is there abyone experienced is such plugin ? I have a couple of question related |
# |
Jan 10th 2020, 08:39 |
rudy1976s |
good morning ! |
# |
Jan 10th 2020, 08:31 |
javier.villanueva |
what is the best way to validation a boolean (tinyint) field to not allow null? |
# |
Jan 10th 2020, 08:30 |
javier.villanueva |
morning all |
# |
Jan 10th 2020, 08:02 |
val |
Hi, what class/method is responsible for converting entity object to json in 3.x? |
# |
Jan 10th 2020, 07:53 |
francisdoydora |
could you help me with the viewVars I set, it's no longer working :( |
# |
Jan 10th 2020, 07:52 |
francisdoydora |
@challgren |
# |
Jan 10th 2020, 07:35 |
francisdoydora |
but the viewVars I set aren't working |
# |
Jan 10th 2020, 07:34 |
francisdoydora |
okay got everything to work now |
# |
Jan 10th 2020, 07:31 |
challgren |
What's your queue.maxworkers config value? |
# |
Jan 10th 2020, 07:18 |
francisdoydora |
same :( |
# |
Jan 10th 2020, 07:17 |
challgren |
Try `bin/cake queue end all` |
# |
Jan 10th 2020, 07:15 |
challgren |
Ok then yeah manually clear the queue_processes table |
# |
Jan 10th 2020, 07:14 |
francisdoydora |
so it says no processes found but when I enter runworker it says too many workers running T_T |
# |
Jan 10th 2020, 07:14 |
francisdoydora |
```noydoy@a7d0feccc362:/var/www/html/juniorhigh$ bin/cake queue kill all No processes found noydoy@a7d0feccc362:/var/www/html/juniorhigh$ bin/cake queue runworker Entity save failure. Found the following errors (server.validateCount: "Too many workers running. Check your `Queue.maxworkers` config."). noydoy@a7d0feccc362:/var/www/html/juniorhigh$ ``` |
# |
Jan 10th 2020, 07:10 |
challgren |
i think its `bin/cake queue kill all` |
# |
Jan 10th 2020, 07:10 |
challgren |
queue_processes |
# |
Jan 10th 2020, 07:10 |
francisdoydora |
thank you so much, I'll look for the command :) |
# |
Jan 10th 2020, 07:10 |
challgren |
I think its queue_workers |
# |
Jan 10th 2020, 07:10 |
challgren |
I think theres a command but I cant recall |
# |
Jan 10th 2020, 07:09 |
challgren |
Look in your db and clear the stale workers |
# |
Jan 10th 2020, 07:09 |
francisdoydora |
okay fixed the issue, now this appears ```Entity save failure. Found the following errors (server.validateCount: "Too many workers running. Check your `Queue.maxworkers` config.").``` |
# |
Jan 10th 2020, 07:07 |
challgren |
That will be your issue |
# |
Jan 10th 2020, 07:07 |
francisdoydora |
no not the same user |
# |
Jan 10th 2020, 07:05 |
challgren |
are you running the command as the same user as apache? |
# |
Jan 10th 2020, 07:05 |
challgren |
Your permissions are munged |
# |
Jan 10th 2020, 07:05 |
francisdoydora |
this error appears @challgren :( |
# |
Jan 10th 2020, 07:05 |
francisdoydora |
```Warning Error: SplFileInfo::openFile(/var/www/html/juniorhigh/tmp/cache/persistent/myapp_cake_core_translations_cake_en__u_s): failed to open stream: Permission denied in [/var/www/html/juniorhigh/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 405]``` |
# |
Jan 10th 2020, 07:04 |
challgren |
That command is what needs to be executed/running to process the queue |
# |
Jan 10th 2020, 07:04 |
francisdoydora |
@challgren I didn't :( will try it out now. thanks! :) |
# |
Jan 10th 2020, 07:03 |
challgren |
@francisdoydora did you run `bin/cake queue runworker` |
# |
Jan 10th 2020, 07:01 |
francisdoydora |
Hi @dereuromark, I was wondering if you could help me out in implementing queue. I've already followed the instructions here https://github.com/dereuromark/cakephp-queue/tree/master/docs#installation and I've setup the app.php file like this https://github.com/dereuromark/cakephp-queue/tree/master/docs#installation. But when I ran the send email method, it didn't send out an email. |