Log message #4219583

# At Username Text
# Dec 19th 2019, 16:00 noel on the plus side it has found the cake favicon :)
# Dec 19th 2019, 15:59 noel Aargh.. it's been so long since I deployed anything... forgot how :S I'm getting ```Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.``` using apache. I've chowned the group for webroot and its contents to `root:apache` but it's still borked. Any ideas?
# Dec 19th 2019, 15:59 kaliel ok i found the issue, when building the route : ```$builder ->connect('/cars/{id}', ['controller' => 'Cars', 'action' => 'view']) ->setPatterns(['id' => '\d+']) ->setPass(['id']);``` Cake automatically generate a route for `/cars/` taht exects and ID
# Dec 19th 2019, 15:59 jotpe @gianmarxgagliardi $this->Form->control() will generate a complete form controls (div, label, input): https://book.cakephp.org/3/en/views/helpers/form.html#creating-form-controls
# Dec 19th 2019, 15:44 gianmarxgagliardi Unfortunately `$this->Form->select` makes the `label` disappear. even if I explicitly set it
# Dec 19th 2019, 15:43 gianmarxgagliardi You can do a `$this->Form->control` with a positive range of values. Unfortunately `$this->Form->select` makes the `label` disappear. After which would it be possible to set the default field empty?
# Dec 19th 2019, 15:39 kaliel @neon1024 i tried both, but the doc say to use {} https://book.cakephp.org/4/en/development/routing.html#reserved-route-elements
# Dec 19th 2019, 15:39 neon1024 Perhaps I should migrate my RC1 app to 4.0.0
# Dec 19th 2019, 15:39 neon1024 Ah, seems to have been updated :thinking_face:
# Dec 19th 2019, 15:38 neon1024 @kaliel Well I used `:id` as my routing token. I don’t know if that’s of relevance or not
# Dec 19th 2019, 15:30 jotpe Hm. Need to install first by myself to test...
# Dec 19th 2019, 15:29 kaliel router adds an ID from nowhere
# Dec 19th 2019, 15:29 kaliel same thing :`*/src/Routing/Route/Route.php* (line *588*)` ```[ 'controller' => 'cars', 'action' => 'view', 'id' => (int) 1, 'plugin' => null, '_ext' => null ]```
# Dec 19th 2019, 15:28 jotpe Try http://local.test/cars/
# Dec 19th 2019, 15:25 kaliel am i doing something wrong ?
# Dec 19th 2019, 15:24 kaliel ```$builder->connect('/cars', ['controller' => 'Cars', 'action' => 'index']); $builder ->connect('/cars/{id}', ['controller' => 'Cars', 'action' => 'view']) ->setPatterns(['id' => '\d+']) ->setPass(['id']);``` And when i go on local.test://cars, this match the second route :S
# Dec 19th 2019, 15:23 kaliel i got an issue on routes with cake 4
# Dec 19th 2019, 15:17 dereuromark deployment composer command: https://sandbox.dereuromark.de/pages/best-practices#deployment
# Dec 19th 2019, 15:16 neon1024 No need to put all those development dependacies onto the box
# Dec 19th 2019, 15:16 neon1024 You’d want `composer install --no-dev`
# Dec 19th 2019, 15:15 neon1024 You don’t want to write a new lock file on the server right?
# Dec 19th 2019, 15:15 neon1024 Remote server, you should be running `composer install`
# Dec 19th 2019, 15:15 noel @neon1024 I'm just trying to run `composer update`
# Dec 19th 2019, 15:14 em php-dom is same that php-xml, isn’t it ?
# Dec 19th 2019, 15:14 ndm `minYear`/`maxYear`
# Dec 19th 2019, 15:13 neon1024 Or is this local development?
# Dec 19th 2019, 15:13 neon1024 Why are you installing a unit testing framework onto a remote server?
# Dec 19th 2019, 15:12 noel Hi All. I'm trying to get cake installed on a CentOS 8 server... running into an issue with `phpunit`. My understanding is that `phpunit` is deprecated? It's failing on the following php extension ```phpunit/phpunit 6.5.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.``` There is no "php-dom" release for Centos 8, not even on `REPL`. Any ideas?
# Dec 19th 2019, 15:12 em yes, there are no new logs in php-fpm logs …
# Dec 19th 2019, 15:10 neon1024 So `Form->control()` doesn’t support min and max for year? ` ```echo $this->Form->control('notify_at', ['label' => false, 'min' => date('Y'), 'max' => date('Y', strtotime('+5 years'))]);``` `
# Dec 19th 2019, 15:10 neon1024 Or your php-fpm logs, if you’re using php-fpm
# Dec 19th 2019, 15:10 neon1024 Did you check your web server logs?
# Dec 19th 2019, 15:02 em I just migrated to 4.0.0, i have error reporting enabled, debug is on as well. But there are no errors are shown on screen, error logs are empty as well. I’m getting whitescreen. Does anyone had such issue ?
# Dec 19th 2019, 14:38 damiano thanks
# Dec 19th 2019, 14:38 damiano awesome
# Dec 19th 2019, 14:37 kaliel $this->viewBuilder()->disableAutoLayout()
# Dec 19th 2019, 14:37 damiano opk
# Dec 19th 2019, 14:37 damiano yeah i am using the ErrorController
# Dec 19th 2019, 14:37 kaliel if you want to disable layout from controller u have to use viewbuilder
# Dec 19th 2019, 14:37 damiano or in the error500.ctp file ?
# Dec 19th 2019, 14:36 damiano do you mean in the controller action right?