Log message #4159369

# At Username Text
# Jul 16th 2018, 15:38 neon1024 “Can you show code?”
# Jul 16th 2018, 15:37 neon1024 Ususally, in my experience, these questions lead to you giving a solution, and then are swiftly followed by “Can you give example?”
# Jul 16th 2018, 15:37 neon1024 If you want people to Google for you, head over to https://www.mturk.com/
# Jul 16th 2018, 15:36 ricksaccous yeah that's more a front end issue @dwms
# Jul 16th 2018, 15:36 ricksaccous lol
# Jul 16th 2018, 15:35 neon1024 @ricksaccous I assume that @dwms wants to put a 360 degree panning picture on a website. I have no idea why they haven’t just googled for some javascript to do that yet, but there you are.
# Jul 16th 2018, 15:33 zmurphy File uploaded https://cakesf.slack.com/files/U391GK6ES/FBR5F6E2X/-.m / https://slack-files.com/T053DPNCM-FBR5F6E2X-1930261b6b - Anyone know why $this-andgt;_File would be null in FileEngine? It only happens with this one configuration, the others work fine so far.
# 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