Log message #4101004

# At Username Text
# Dec 5th 2017, 13:45 stevenscg Warning: Warning (2): Narrowing occurred during type inference. Please file a bug report on bugs.php.net in [/var/www/html/vendor/cakephp/cakephp/lib/Cake/Core/App.php, line 567]
# Dec 5th 2017, 13:45 stevenscg Error: Fatal Error (64): Cannot use 'object' as class name as it is reserved in [/var/www/html/vendor/cakephp/cakephp/lib/Cake/Core/Object.php, line 18]
# Dec 5th 2017, 13:45 stevenscg Hi all. I have some apps that are stuck on 2.10.x for a while. I thought I'd try them on PHP 7.2.0. Ran into a Fatal Error and a Warning:
# Dec 5th 2017, 12:27 dereuromark try utf8mb4 then. also make sure you convert properly
# Dec 5th 2017, 12:03 jojomartius no that doesnt help :(
# Dec 5th 2017, 12:02 jojomartius but maybe that happens because the session database doesnt support utf16mb :)
# Dec 5th 2017, 12:01 jojomartius @dereuromark sorry, didnt mean username i meant the displayname of the user, so its not infrastructual :P
# Dec 5th 2017, 11:49 neon1024 I’d much prefer they 404 in Nginx
# Dec 5th 2017, 11:49 neon1024 Does anyone have Nginx config for serving files handy? My /files urls are hitting CakePHP
# Dec 5th 2017, 11:48 alaovich my default redirectUrl it s without slash
# Dec 5th 2017, 11:47 alaovich i have a problem with redirectUrl whene i dont have ?redirect=%2Fbknd%2F params
# Dec 5th 2017, 11:46 alaovich thanks :)
# Dec 5th 2017, 11:45 dereuromark See http://www.dereuromark.de/2012/12/29/cakephp-and-seo/#slash-or-no-slash:-no-slash!
# Dec 5th 2017, 11:44 dereuromark I used to https://github.com/dereuromark/cakephp-trailing-slash for a project requirement, but it was a bad idea, better to do the opposite and make the server remove it via 301 redirect.
# Dec 5th 2017, 11:44 dereuromark alaovich: I wouldnt, exactly the opposite I would do (using nginx/apache)
# Dec 5th 2017, 11:43 alaovich how i can force trailling slash in cakephp?
# Dec 5th 2017, 11:43 dereuromark still shouldnt be :) IMO, that only causes trouble somewhere along the way.
# Dec 5th 2017, 11:43 neon1024 Then your username can be :poop:
# Dec 5th 2017, 11:42 neon1024 utf8mb4 <3
# Dec 5th 2017, 11:42 dereuromark tip: i would never allow any non asci characters for such infrastructural things ;)
# Dec 5th 2017, 11:41 dereuromark you mean utf8mb4?
# Dec 5th 2017, 11:40 jojomartius Dear all... i've a session issue with utf16 characters ;) i reccently updated my database column from latin1 to utf16 (mysql) to support characters like "ﺞ" which is something arabic ;) its no problem to check the users name when im logged in, but if i login with a user that has a name like this, the system fails with "could not create session", all other users without that characters are working fine, any ideas?
# Dec 5th 2017, 10:38 alaovich 'loginAction' => [ 'prefix' => 'bknd', 'controller' => 'Administrators', 'action' => 'login' ],
# Dec 5th 2017, 10:38 alaovich this is my login action
# Dec 5th 2017, 10:35 hmic you can define a route that matches admin, if you think thats what you want
# Dec 5th 2017, 10:33 hmic because you said so
# Dec 5th 2017, 10:33 alaovich the problem is the result of $this->Auth->redirectUrl() is /admin without slash
# Dec 5th 2017, 10:33 hmic which is correct
# Dec 5th 2017, 10:33 hmic not admin
# Dec 5th 2017, 10:33 hmic your prefix triggers at admin/
# Dec 5th 2017, 10:33 hmic add the /
# Dec 5th 2017, 10:32 alaovich mydomain.com/admin/ work correctly but mydomain.com/admin no :/
# Dec 5th 2017, 10:32 alaovich I have problem with prefix routing
# Dec 5th 2017, 10:31 alaovich Hi!
# Dec 5th 2017, 10:20 glenntaylor Ahh, thanks for the explanation @neon1024 !
# Dec 5th 2017, 10:18 rajaslack I want to use MySQL locking reads @hmic(IRC)
# Dec 5th 2017, 10:16 neon1024 @glenntaylor It’s just how the framework works. Presumably, your production box doesn’t have debug set to true, which means that the orm cache is much more robust. As in debug mode it expires every 30 seconds I think
# Dec 5th 2017, 09:58 glenntaylor Awesome, thanks ono-t. What causes that?
# Dec 5th 2017, 09:51 ono-t bin/cake orm_cache clear;
# Dec 5th 2017, 09:39 glenntaylor Hey guys, got a Cake 3 app with a Users / Projects belongsToMany definition… On my local machine it correctly identifies user_id and project_id in the join table but I’ve just moved it to the production environment to find it’s putting project_id in user_id and vice versa, has anybody got any ideas why this might happen?
# Dec 5th 2017, 09:22 damian I'm using $this->setDataSource('master'); and $this->setDataSource('default'); respectively for swapping between master and default.