# |
Sep 20th 2019, 18:13 |
admad |
configuring the exception renderer through crud component isnt going to work anymore. It needs to be done in Application class |
# |
Sep 20th 2019, 18:12 |
slackebot |
HTML `Call to a member function config() on bool` |
# |
Sep 20th 2019, 18:12 |
noel |
No I've got that. I think it's that I'm missing the api exception renderer in AppController. But when I try to add it I'm getting a further error, which indicates that Crud is not defined. E.g. `$this->Crud->config(['listeners.api.exceptionRenderer' => 'App\Error\JsonApiExceptionRenderer']);` then the error is `Undefined property: CocktailsController::$Crud in /Users/noeldacosta/repo/crud-test/src/Controller/AppController.php ` followed by more |
# |
Sep 20th 2019, 18:10 |
admad |
you are probably missing proper "Accept" header in request |
# |
Sep 20th 2019, 18:07 |
noel |
Ok. Thanks I will. Looks like I've been doing it right. I'm getting an unspecified validation error via HTML when I try do the patch. Although the docs seem to indicate I should expect a JSON response containing specific validation errors. What am I missing? |
# |
Sep 20th 2019, 18:06 |
daniel.upshaw |
I seem to remember in the issues thread that disabling debug mode helped, so that could easily be what's causing it |
# |
Sep 20th 2019, 18:05 |
daniel.upshaw |
I think the next thing I want to try is excluding the debug URL in `permissions.php` if debugging is enabled |
# |
Sep 20th 2019, 18:01 |
admad |
consult the json api specs :slightly_smiling_face: |
# |
Sep 20th 2019, 18:00 |
noel |
Hi guys. From the JsonApi docs, it's not clear what URL to hit when updating? https://crud-json-api.readthedocs.io/en/latest/api-usage/updating-resources.html Should it be `http://example.com/countries` or http://example.com/countries/10`? |
# |
Sep 20th 2019, 17:56 |
ricksaccous |
test |
# |
Sep 20th 2019, 17:48 |
rochasmarcelo |
it's a very strange behavior |
# |
Sep 20th 2019, 17:03 |
daniel.upshaw |
I noticed that before logging in, the DebugKit box actually displays the login page |
# |
Sep 20th 2019, 17:03 |
daniel.upshaw |
Wow got it!! Good find. So I wonder if it is the DebugKit box?? |
# |
Sep 20th 2019, 15:57 |
admad |
@neon1024 that's been fixed in 4.0, param also defaults to null |
# |
Sep 20th 2019, 15:55 |
admad |
@luizcmarin unless you have enough experience with Cake I suggest you stick with stable release |
# |
Sep 20th 2019, 15:33 |
rochasmarcelo |
I tested with a new 'chrome user' profile and it worked |
# |
Sep 20th 2019, 15:33 |
rochasmarcelo |
It also could be some browser extension |
# |
Sep 20th 2019, 15:32 |
rochasmarcelo |
we could debug it more, it seems that google chrome is making additional requrest while typing the URL and posting |
# |
Sep 20th 2019, 15:15 |
luizcmarin |
Following the guidelines of https://book.cakephp.org/4.0/en/installation.html could not install or upgrade to cake 4. How to proceed? |
# |
Sep 20th 2019, 15:15 |
ron.rattie |
that's what she said |
# |
Sep 20th 2019, 15:08 |
henri.mjr |
i'm developing an escort site.. biggest project i've worked |
# |
Sep 20th 2019, 15:05 |
henri.mjr |
cleared cache and same thing.. i dunno what it was |
# |
Sep 20th 2019, 15:02 |
henri.mjr |
i've tried icognito and same thing |
# |
Sep 20th 2019, 15:01 |
ricksaccous |
@henri.mjr maybe browser caching? |
# |
Sep 20th 2019, 14:59 |
henri.mjr |
something with my chrome, worked fine in firefox |
# |
Sep 20th 2019, 14:46 |
henri.mjr |
witchcraft |
# |
Sep 20th 2019, 14:45 |
henri.mjr |
I don't get the missing controller message, apache gives me segmantation fault in the log, but only if the action name is the original: "add" if I rename it for anything else, it works. Strange that with the name "add" it worked until yesterday. |
# |
Sep 20th 2019, 14:43 |
daniel.upshaw |
Yay :slightly_smiling_face: |
# |
Sep 20th 2019, 14:43 |
neon1024 |
Then use starred items in the top right |
# |
Sep 20th 2019, 14:43 |
daniel.upshaw |
Perfect |
# |
Sep 20th 2019, 14:42 |
daniel.upshaw |
Thanks :slightly_smiling_face: |
# |
Sep 20th 2019, 14:42 |
neon1024 |
You could star the message |
# |
Sep 20th 2019, 14:40 |
henri.mjr |
Hello, I was working yesterday in an app and everything was OK, today I went back to work and I'm getting an empty response when I try to access a specific action, I renamed the action and it worked, but even accessing this action that no longer exists, I I get the empty response .. it looks like a cache, I've used cake cache clear_all but no luck .. What else can it be? |
# |
Sep 20th 2019, 14:39 |
neon1024 |
All I can think of |
# |
Sep 20th 2019, 14:39 |
neon1024 |
If it’s got an id it won’t be new |
# |
Sep 20th 2019, 14:39 |
neon1024 |
If the entity has no dirty fields it will not be saved, and thus skip all these bits |
# |
Sep 20th 2019, 14:37 |
jotpe |
status_id is a field of Table talks |
# |
Sep 20th 2019, 14:37 |
jotpe |
No it's Talkstable and I'm doing `if ($this->Talks->save($talk)) {` |
# |
Sep 20th 2019, 14:36 |
neon1024 |
Cake often kicks data off to the various tables, so if you’re in Posts but validating Tags, you should be in TagsTable |
# |
Sep 20th 2019, 14:35 |
jotpe |
yes |
# |
Sep 20th 2019, 14:35 |
neon1024 |
Are you in the right table? |