# |
May 23rd 2018, 14:34 |
jeremyharris |
smh haha |
# |
May 23rd 2018, 14:34 |
spencdev |
I was hoping people caught the _mistaks_ part |
# |
May 23rd 2018, 14:34 |
camdenbassett |
you could get a really high paying job if you never make mistakes |
# |
May 23rd 2018, 14:33 |
spencdev |
haha |
# |
May 23rd 2018, 14:33 |
jeremyharris |
then I want to hire you to do all my work |
# |
May 23rd 2018, 14:33 |
spencdev |
I don't test code because I don't make mistaks......... |
# |
May 23rd 2018, 14:33 |
camdenbassett |
@zmurphy, how exactly are you sending the form via ajax (eg, a plugin, custom javascript, etc); |
# |
May 23rd 2018, 14:32 |
jeremyharris |
tests will help too :P |
# |
May 23rd 2018, 14:32 |
jeremyharris |
^ |
# |
May 23rd 2018, 14:32 |
neon1024 |
Actually, I could add the typehints and see if it works couldn’t I? |
# |
May 23rd 2018, 14:31 |
neon1024 |
@zmurphy What is the value in the `_method` hidden form field? |
# |
May 23rd 2018, 14:31 |
neon1024 |
When you are creating a custom Data Type class, is it safe to typehint your method params? |
# |
May 23rd 2018, 14:30 |
zmurphy |
Anyone know any possible causes |
# |
May 23rd 2018, 14:30 |
zmurphy |
I'm having an issue where sending a form via ajax put request to my controller, but the request in the controller is reporting that it's a post request |
# |
May 23rd 2018, 13:40 |
neon1024 |
Perhaps it’s aimed more at unused variables within methods and happens to take method signatures as a false positive |
# |
May 23rd 2018, 13:39 |
neon1024 |
As it’s so core to PHP |
# |
May 23rd 2018, 13:39 |
neon1024 |
It seems odd that phpmd is upset that I have an unused param, when the parent method signature implements it |
# |
May 23rd 2018, 13:23 |
admad |
because it's PHP :slightly_smiling_face: |
# |
May 23rd 2018, 13:14 |
neon1024 |
Isn’t that just enforcing the api? Like an interface? |
# |
May 23rd 2018, 13:14 |
neon1024 |
Why is it that method signatures must match when the parent has an optional parameter? |
# |
May 23rd 2018, 12:31 |
admad |
bad5sect0r: you are most likely getting recursive error. Error occurring even when cake tries to generate error page for initial 400 error |
# |
May 23rd 2018, 12:05 |
spencdev |
If you look at the history in your debug log, and click the path and look at the log, it may show you there as well |
# |
May 23rd 2018, 12:03 |
spencdev |
Alright, because even with the debug set to false, a missing controller action should still be a 404 error. The 500 makes me believe that it's something deeper. |
# |
May 23rd 2018, 12:01 |
bad5ect0r |
I mean I can look through the logs but nothing immediately stands out |
# |
May 23rd 2018, 12:01 |
bad5ect0r |
Hmmm |
# |
May 23rd 2018, 11:57 |
spencdev |
My guess is that there is an error somewhere else, and every time an exception is thrown it's hitting the 500 before the 400. Have you looked through your logs? |
# |
May 23rd 2018, 11:54 |
bad5ect0r |
Not that I know of |
# |
May 23rd 2018, 11:54 |
bad5ect0r |
That's what my debug is set to. |
# |
May 23rd 2018, 11:54 |
bad5ect0r |
`'debug' => filter_var(env('DEBUG', true), FILTER_VALIDATE_BOOLEAN),` |
# |
May 23rd 2018, 11:54 |
spencdev |
Yeah, it should be a 404 error. Have you changed any error handling? |
# |
May 23rd 2018, 11:52 |
bad5ect0r |
And you're right, I thought I would expect a 404 error rather than internal server error... |
# |
May 23rd 2018, 11:52 |
bad5ect0r |
Looks like any error |
# |
May 23rd 2018, 11:52 |
bad5ect0r |
Missing controller is an easy one to cause |
# |
May 23rd 2018, 11:51 |
spencdev |
or 400 |
# |
May 23rd 2018, 11:51 |
bad5ect0r |
Pretty much any error |
# |
May 23rd 2018, 11:51 |
spencdev |
and the error just occurs when there is a missing controller exception, or any 500 error? |
# |
May 23rd 2018, 11:50 |
bad5ect0r |
On bootstrap.php I have it as true. I can see the little cake debug tool at the bottom when there is no internal server error |
# |
May 23rd 2018, 11:50 |
spencdev |
Is your debug set to false? |
# |
May 23rd 2018, 11:49 |
bad5ect0r |
I can do? |
# |
May 23rd 2018, 11:49 |
bad5ect0r |
Hello all. I've been having an annoying error with CakePHP lately. If I try to cause an error such as a missing controller action, rather than rendering those helpful error pages, it just says internal server error occured. I have no idea what I might have changed to cause this problem and now it's getting annoying when debugging. Any idea on what |
# |
May 23rd 2018, 11:10 |
dereuromark |
We really have to improve the CLI commands, they really are not at a modern standard yet, feels a bit like steps backward right now. I invite people to contribute ideas: https://github.com/cakephp/cakephp/issues/12123 |