# |
Jan 18th 2019, 18:28 |
drouard.noelie |
I was advised to try an echo in the index.php file, and after the line I sent, it still makes an error 500 |
# |
Jan 18th 2019, 18:28 |
drouard.noelie |
I don't really know, we are still on that error 500 issue |
# |
Jan 18th 2019, 18:27 |
ricksaccous |
did you get that figured out? |
# |
Jan 18th 2019, 18:27 |
drouard.noelie |
yes |
# |
Jan 18th 2019, 18:27 |
ricksaccous |
are you the same guy that had trouble with routing the server yesterday? |
# |
Jan 18th 2019, 18:27 |
drouard.noelie |
xD |
# |
Jan 18th 2019, 18:27 |
drouard.noelie |
sorry it was I |
# |
Jan 18th 2019, 18:26 |
drouard.noelie |
yeah, there is nothing in it |
# |
Jan 18th 2019, 18:25 |
ricksaccous |
or nginx error log |
# |
Jan 18th 2019, 18:25 |
ricksaccous |
did you check your apache error log |
# |
Jan 18th 2019, 18:25 |
ricksaccous |
are your tmp/cache/log folders writable |
# |
Jan 18th 2019, 18:22 |
Guest96497 |
Can you help me please? :/ |
# |
Jan 18th 2019, 18:21 |
Guest96497 |
we have nothing in any error_log file, we don't know what's going on at all |
# |
Jan 18th 2019, 18:20 |
Guest96497 |
yes webroot sorry |
# |
Jan 18th 2019, 18:20 |
yamcomnet |
webroo -> webroot |
# |
Jan 18th 2019, 18:19 |
Guest96497 |
hello. I have a 500 error after this line in webroo/index.php $server->emit($server->run()); on the production server |
# |
Jan 18th 2019, 18:18 |
ricksaccous |
;) |
# |
Jan 18th 2019, 18:18 |
yamcomnet |
Thanks Guys!! |
# |
Jan 18th 2019, 18:18 |
yamcomnet |
Cake is too smart for me |
# |
Jan 18th 2019, 18:18 |
jhall |
nice |
# |
Jan 18th 2019, 18:17 |
yamcomnet |
thats the issue :) |
# |
Jan 18th 2019, 18:17 |
yamcomnet |
@ricksaccous Wau! |
# |
Jan 18th 2019, 18:16 |
ricksaccous |
those are the things that might cause that |
# |
Jan 18th 2019, 18:16 |
ricksaccous |
are you sending application/json in request header? |
# |
Jan 18th 2019, 18:16 |
ricksaccous |
@yamcomnet are you requesting as .json? |
# |
Jan 18th 2019, 18:15 |
jhall |
might help |
# |
Jan 18th 2019, 18:15 |
jhall |
https://book.cakephp.org/3.0/en/views/json-and-xml-views.html |
# |
Jan 18th 2019, 18:13 |
yamcomnet |
detects automatically and then tries to render view under json folder automatically when i use $this->render( |
# |
Jan 18th 2019, 18:12 |
jhall |
ah |
# |
Jan 18th 2019, 18:12 |
yamcomnet |
cake is looking rendered template under json |
# |
Jan 18th 2019, 18:12 |
jhall |
could it be based on the type you are setting in the ajax call? |
# |
Jan 18th 2019, 18:11 |
yamcomnet |
{ "message": "Template file \u0022Components\\json\\ajax_products.ctp\u0022 is missing.", "url": "\/components\/store-products", "code": 500, "file": "Components\\json\\ajax_products.ctp", "line": 1565 } |
# |
Jan 18th 2019, 18:11 |
yamcomnet |
ajax request is responded by json |
# |
Jan 18th 2019, 18:10 |
yamcomnet |
no affect. this must be some skeleton appication functionality |
# |
Jan 18th 2019, 18:06 |
jhall |
I do this in one of my controllers. |
# |
Jan 18th 2019, 18:04 |
jhall |
oh are you overriding the response type anywhere? |
# |
Jan 18th 2019, 18:04 |
yamcomnet |
for some reason it formats response as json |
# |
Jan 18th 2019, 18:03 |
jhall |
I have done something like this |
# |
Jan 18th 2019, 18:02 |
jhall |
you can use $this->render(); to render any template you want and then that would be your result in the success of the ajax call |
# |
Jan 18th 2019, 18:00 |
yamcomnet |
basically render normal view instead of ajax view |
# |
Jan 18th 2019, 18:00 |
yamcomnet |
"message": "Template file \u0022Components\\json\\ajax_products.ctp\u0022 is missing.", |