Log message #4191055

# At Username Text
# Jun 27th 2019, 13:28 admad response instance should never be modified before calling $next(). While it will work for now it will break in 4.0
# Jun 27th 2019, 13:16 slackebot calls $next() first then applies the headers) am I simply approaching this wrong and shouldn't unset the header in my Controller? or is there a clean way to unset the header? so far overriding the middleware to set the headers before $next() or using a "global" instance (SecurityHeadersMiddleware::instance() and change it there) have worked for me, but I'm not convinced I should be doing that
# Jun 27th 2019, 13:16 cake-aml hi I'm trying to set X-Frame-Options to 'sameorigin' in my application, but I want to manually disable it in a specific Controller. I tried using the setXFrameOptions method in SecurityHeadersMiddleware + manually unsetting the header in that controller's beforeFilter ($this->response = $this->response->withoutHeader('x-frame-options')) the problem is that the SecurityHeadersMiddleware always sets the Headers after the controller (__invoke
# Jun 27th 2019, 10:09 neon1024 @david last time I hit this issue it was because I had misconfigured my Nginx setup
# Jun 27th 2019, 09:55 vossen.steven array notation isnt needed if only one word though
# Jun 27th 2019, 09:54 vossen.steven __('Some word: {0}, ['word'])
# Jun 27th 2019, 09:54 egalles mmm ok, thanks
# Jun 27th 2019, 09:54 vossen.steven should be {0} instead of %s
# Jun 27th 2019, 09:53 egalles when I do that, the text in view shows me: Some word: %s
# Jun 27th 2019, 09:53 egalles hi there, looking for translate some texts, it's that the correct way ? __('Some word: %s,'word'); ¿?
# Jun 27th 2019, 09:40 david any idea?
# Jun 27th 2019, 09:40 david when using ADmad/cakephp-i18n, if I do not set the language, like: http://mydomain.com It is redirecting me to http://mydomain.com//es (notice the double slash before the language slug). It's the first time I have this problem, I always use this plugin and I'm sure I'm doing something wrong this time, but I can't figure what is.
# Jun 27th 2019, 09:37 david morning
# Jun 27th 2019, 09:12 slackebot CORE/Cake/Routing/Dispatcher.php line 200 → Controller->render() CORE/Cake/Routing/Dispatcher.php line 167 → Dispatcher->_invoke(SuivisController, CakeRequest) APP/webroot/index.php line 117 → Dispatcher->dispatch(CakeRequest, CakeResponse) ``` I don't understand why... (CakePHP 2.10.13)
# Jun 27th 2019, 09:12 a.didier Hello, when i put `App::uses('HttpSocket', 'Network/Http');` in my Component all my app crash with this error message `Cannot use object of type stdClass as array` The stack trace say this : ``` CORE/Cake/View/View.php line 971 → include() CORE/Cake/View/View.php line 933 → View->_evaluate(string, array) CORE/Cake/View/View.php line 473 → View->_render(string) CORE/Cake/Controller/Controller.php line 968 → View->render(null, null)
# Jun 27th 2019, 08:59 challgren @admad do you know of any CVE’s with cake 2.10.13+?
# Jun 27th 2019, 08:47 challgren I wonder if dereuromark already fixed his upgrade plugin
# Jun 27th 2019, 08:44 challgren I was planning on update to the final release and push to prod
# Jun 27th 2019, 08:44 challgren Ok, cause I was all gun hoe about it being ready for 3.8 and now I got work to do
# Jun 27th 2019, 08:44 admad @challgren I'll bring that up with the team and try to do better in future :slightly_smiling_face:
# Jun 27th 2019, 08:43 challgren Ok back to 3.8.0 why didn’t the validation deprecation change happen during the RC?
# Jun 27th 2019, 08:41 madbbb @admad thank you! It is really sends event to global listener))) I didn't notice that trait returns local event manager
# Jun 27th 2019, 08:41 slackebot <challgren>
# Jun 27th 2019, 08:41 neon1024 ;)
# Jun 27th 2019, 08:41 neon1024 Careful, or we’ll throw a random u in there too!
# Jun 27th 2019, 08:40 challgren England spells it cancelled
# Jun 27th 2019, 08:40 neon1024 I don’t get that one
# Jun 27th 2019, 08:39 challgren Well you know why in England canceled has 2 l’s, its because we gave them that extra L :P
# Jun 27th 2019, 08:39 neon1024 Although with Boris Johnson on the horizon, we’ll screw that up as well :face_palm:
# Jun 27th 2019, 08:39 neon1024 Besides, *cough* Trump
# Jun 27th 2019, 08:39 admad x)
# Jun 27th 2019, 08:39 neon1024 Careful @challgren without England your country wouldn’t exist
# Jun 27th 2019, 08:38 admad Yeah not like England is gonna win that either :P
# Jun 27th 2019, 08:38 challgren And we’ll beat the English just like we did many many years ago :P
# Jun 27th 2019, 08:38 neon1024 Yeah, if England beat Norway, it might be ENG v USA
# Jun 27th 2019, 08:37 challgren @neon1024 USA USA!!!
# Jun 27th 2019, 08:37 neon1024 I’ll watch the Womens Football World Cup instead ;)
# Jun 27th 2019, 08:37 neon1024 @admad I don’t see England making the semi-finals
# Jun 27th 2019, 08:36 admad You should worry about Sunday xP
# Jun 27th 2019, 08:36 slackebot config/app.php. in [/Users/challgren/Projects/electric/vendor/cakephp/cakephp/src/Core/functions.php, line 311] `
# Jun 27th 2019, 08:36 challgren Arhhhhhhhh `Deprecated Error: You are using a deprecated argument order for Cake\Validation\Validator::allowEmptyString. You should reverse the order of your `when` and `message` arguments so that they are `message, when`. - /Users/challgren/Projects/electric/vendor/cakephp/cakephp/src/Validation/Validator.php, line: 855 You can disable deprecation warnings by setting `Error.errorLevel` to `E_ALL and ~E_USER_DEPRECATED` in your