Log message #4159361

# At Username Text
# Jul 16th 2018, 15:33 ricksaccous what is 360ph?
# Jul 16th 2018, 15:31 dwms help
# Jul 16th 2018, 15:31 dwms to put a 360ph picture with cakephp on the website, how?
# Jul 16th 2018, 15:31 dwms help me
# Jul 16th 2018, 15:30 zmurphy Finally got the flock() error to reoccur. It's happening on line 157 of FileEngine.php
# Jul 16th 2018, 15:12 Martin` but the tree behavior does not has a feature to automatic order by name, I was wondering that
# Jul 16th 2018, 14:48 Martin` still running
# Jul 16th 2018, 14:48 Martin` and a reorder takes a while :P
# Jul 16th 2018, 14:45 Martin` tree is ordered by name
# Jul 16th 2018, 14:44 Martin` I think it is stupid to fully reorder a tree when you add a few items, it is better to just add them to the right positions in tree :)
# Jul 16th 2018, 14:44 dereuromark depends on what parent you give it, but yeah I would think so
# Jul 16th 2018, 14:40 Martin` dereuromark: ah but by default it is added at the bottom?
# Jul 16th 2018, 14:36 itmpls nice - i think i botched it when I tried that. thanks :slightly_smiling_face:
# Jul 16th 2018, 14:36 ricksaccous that sounds better heh
# Jul 16th 2018, 14:35 neon1024 I would use a plugin route -> https://book.cakephp.org/3.0/en/development/routing.html#plugin-routing
# Jul 16th 2018, 14:35 ricksaccous i think
# Jul 16th 2018, 14:35 ricksaccous $routes->connect('/:controller/:action', ['plugin' => 'Foo']); I think if it's not prefixed it will be hard if it is then just put that in
# Jul 16th 2018, 14:28 itmpls ?
# Jul 16th 2018, 14:28 itmpls where i want all /users routes to feed into that plugin/controller and respective action
# Jul 16th 2018, 14:28 itmpls how can I change this into a more dynamic route? $routes->connect('/users/register', ['plugin' => 'Foo', 'controller' => 'Foo', 'action' => 'register']);
# Jul 16th 2018, 14:26 dereuromark depends on where you add it in the tree. but if you add it in the right position it will be ordered
# Jul 16th 2018, 14:10 Martin` When I add something to a tree in cakephp 3 is it automatic sorted, or is it still needed to reorder after adding things? I see my old colleage did make a cronjob that reorders stores when a store is added
# Jul 16th 2018, 14:10 zmurphy Weird, I can't get the error to trigger anymore. Not sure what was up. It was happening every other page load on friday
# Jul 16th 2018, 14:00 neon1024 Stack trace will answer this for you.
# Jul 16th 2018, 14:00 neon1024 Hence the error
# Jul 16th 2018, 14:00 neon1024 As that object is null
# Jul 16th 2018, 14:00 neon1024 But, no, we can’t help you without knowing what object the `flock()` method is being called on
# Jul 16th 2018, 13:59 neon1024 I only know Flock as the command line locking tool
# Jul 16th 2018, 13:57 zmurphy I've added some caching to one of my queries and now on occasion I get the error `Call to a member function flock() on null` when using the query. Does anyone know what might cause or solve this?
# Jul 16th 2018, 13:56 Bigman thanks for anwsers
# Jul 16th 2018, 13:48 neon1024 Maybe just tell us what you’re trying to achieve and perhaps we can suggest a solution which doesn’t involve this issue
# Jul 16th 2018, 13:47 slackebot !xy
# Jul 16th 2018, 13:47 slackebot Command sent from Slack by neon1024:
# Jul 16th 2018, 13:46 admad it hasn't in this regard. The hack shown in comment is still possible. You need to have $rootView as cell method argument and then again pass on $rootView as view variable to the cell template
# Jul 16th 2018, 13:44 Bigman and the issue is posted 4 years ago ?? maybe cake changed
# Jul 16th 2018, 13:43 Bigman because it isnt work
# Jul 16th 2018, 13:42 neon1024 You’ve asked a question to which you already know the answer?
# Jul 16th 2018, 13:37 Bigman ??
# Jul 16th 2018, 13:37 Bigman it's possible to use " $this->cell('MyCell', ['rootView' => $this]); "
# Jul 16th 2018, 13:37 Bigman into this https://github.com/cakephp/cakephp/issues/5188
# Jul 16th 2018, 13:36 admad you can't. Cell are self contained.