# |
Jun 28th 2019, 13:35 |
val |
Hi again, is there a good reason why CakePHP Acl Plugin could not be downgraded to 2.x version? |
# |
Jun 28th 2019, 13:28 |
neon1024 |
@rquadling You’re the fourth highest contributor! |
# |
Jun 28th 2019, 13:28 |
neon1024 |
@rquadling I think the core team are looking after it, but I’m not aware of any specific lead developer |
# |
Jun 28th 2019, 12:53 |
madbbb |
https://book.cakephp.org/3.0/en/orm/database-basics.html#query-logging |
# |
Jun 28th 2019, 12:53 |
val |
Hi, how can I get the log of last 200 queries in Cake 3.x (like in Cake 2.x) without DebugKit? |
# |
Jun 28th 2019, 11:51 |
rquadling |
Hello all. Is anyone taking the lead on cakephp/phinx? |
# |
Jun 28th 2019, 11:51 |
rquadling |
Hello all. Is anyone taking the lead on cakephp/phinx? |
# |
Jun 28th 2019, 11:24 |
admad |
@neon1024 you really need ask? :slightly_smiling_face: |
# |
Jun 28th 2019, 10:51 |
jeremy.payne |
Figured out I had to use `addNested` instead of `addNestedMany`. |
# |
Jun 28th 2019, 10:49 |
madbbb |
@steinkel please give me some time. the app is so massive. |
# |
Jun 28th 2019, 10:42 |
steinkel |
@madbbb could you gist code somewhere I can download and check here? |
# |
Jun 28th 2019, 10:41 |
neon1024 |
In 3.7.7 |
# |
Jun 28th 2019, 10:41 |
neon1024 |
Worth noting that Cells still have `$this->request` instead of `$this->getRequest()` |
# |
Jun 28th 2019, 10:40 |
neon1024 |
Ah, you use the viewBuilder :) |
# |
Jun 28th 2019, 10:39 |
madbbb |
@steinkel I didn't mention this setting in my config at all |
# |
Jun 28th 2019, 10:39 |
neon1024 |
I’d like to conditionally switch templates in a single cell method |
# |
Jun 28th 2019, 10:37 |
neon1024 |
When referring to cell templates for the purposes of `$this->render()` what is the correct path string? |
# |
Jun 28th 2019, 10:37 |
slackebot |
figure out what. Any idea? |
# |
Jun 28th 2019, 10:37 |
slackebot |
$metaValidator ); return $this; }``` My `POST` data looks like this (`dd($this->request->getData())`) ``` array:2 [ "saveCount" => 0, "meta" => array:2 [ "state" => "draft", "effort" => 0 ] ]``` Calling the validator like this in the Controller: ``` $validator = new ArticleValidator(); dd($validator->errors($this->request->getData())); ``` From the error, it's having issues with the `meta` array but I can't |
# |
Jun 28th 2019, 10:37 |
jeremy.payne |
Hi again, I'm getting a `"_nested" => "The provided value is invalid"` error and I'm not sure why. I have the following validator class constructor ```public function __construct() { $this->requirePresence([ 'saveCount' ]); $metaValidator = new Validator(); $metaValidator->requirePresence([ 'state', ]); $this->addNestedMany( 'meta', |
# |
Jun 28th 2019, 10:32 |
steinkel |
did you configure Auth to kick in before that via `checkAuthIn` |
# |
Jun 28th 2019, 10:30 |
madbbb |
but I still don't understand why beforefilter wasn't called in this case |
# |
Jun 28th 2019, 10:28 |
steinkel |
I've see the other case when you're editing a long form, causing the session to expire, in this case using a keepalive (via ajax) would do the trick |
# |
Jun 28th 2019, 10:25 |
steinkel |
when you clean your session storage, you could call the RememberMe feature to re-login with your cookie |
# |
Jun 28th 2019, 10:24 |
madbbb |
I had similar auth error on CakePHP 3.5 and it was fixed in 3.6 or 3.7. It did redirect and threw flash error message "you are not authorised to access this area" but you could. I can't find the issue on GitHub but it was fixed. So I was happy to upgrade to a new version to get rid of this error, but now I have another |
# |
Jun 28th 2019, 10:20 |
madbbb |
yes and when I clean my session storage |
# |
Jun 28th 2019, 10:19 |
steinkel |
this happens because of a session timeout? |
# |
Jun 28th 2019, 10:18 |
steinkel |
right, in the second request you don't have session key and cookie is triggered |
# |
Jun 28th 2019, 10:18 |
madbbb |
The problem is only on first post request, if I refresh the page again everything work as expected |
# |
Jun 28th 2019, 10:15 |
steinkel |
another item to check would be when you check for Auth, `checkAuthIn` parameter value in AuthComponent |
# |
Jun 28th 2019, 10:12 |
steinkel |
ok, could you describe the use case a bit? I understand you're removing the session key to trigger the cookie auth, this happens in the same request or are you doing a redirect after the session cleanup? |
# |
Jun 28th 2019, 10:07 |
steinkel |
checking |
# |
Jun 28th 2019, 10:06 |
madbbb |
8.4.0 |
# |
Jun 28th 2019, 10:04 |
steinkel |
I mean the plugin version |
# |
Jun 28th 2019, 10:03 |
madbbb |
CakePHP 3.7.9 |
# |
Jun 28th 2019, 10:00 |
steinkel |
hi which version are you using @madbbb |
# |
Jun 28th 2019, 09:53 |
slackebot |
the problem is? |
# |
Jun 28th 2019, 09:53 |
madbbb |
I have CakeDC/Users plugin with AuthComponent RememberMe functionality. The problem is when I clean my session storage to fire cookie rememberme authorisation my app works on GET request, but on POST requests beforefilter not fired. So I put an exception in first line of called controller method and as you can see on POST requests \Cake\Controller\Controller->startupProcess() doesn't run at all. Can you please guide me on how to find where |
# |
Jun 28th 2019, 09:44 |
madbbb |
morning! |
# |
Jun 28th 2019, 09:33 |
imonsei |
admad, can't thank you enough for your help the other day. really helped point my brain in the right direction :) |
# |
Jun 28th 2019, 09:15 |
neon1024 |
@admad Predictions for Sunday? |