#silverstripe IRC Log

IRC log for 6 March 2017

All timestamps are in UTC.

1: [00:27:56] <Nightjar> thanks ss23 :)
2: [00:51:45] * isaac_ quit (Ping timeout: 260 seconds)
3: [01:01:17] * filisko quit (Ping timeout: 258 seconds)
4: [01:09:40] * kerozene is now known as kerosene
5: [01:10:10] * BackEndCoder quit (Excess Flood)
6: [01:12:41] * BackEndCoder has joined #silverstripe
7: [01:32:15] * Phlunk3 has joined #silverstripe
8: [02:02:10] * UncleCheese has joined #silverstripe
9: [02:10:25] * Azure quit (Quit: Oops.)
10: [02:51:53] * Nightjar quit (Quit: Leaving)
11: [03:01:36] * Azure has joined #silverstripe
12: [03:56:09] * DanaeNZ quit (Remote host closed the connection)
13: [04:15:07] <ss-helper> PHP register_shutdown_function on IIS 8.5 firing on same request - http://stackoverflow.com/questions/42617430/php-register-shutdown-function-on-iis-8-5-firing-on-same-request
14: [05:25:53] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
15: [05:50:51] * UncleCheese has joined #silverstripe
16: [05:54:20] * DanaeNZ has joined #silverstripe
17: [05:58:46] * DanaeNZ quit (Ping timeout: 246 seconds)
18: [06:46:48] * Shrike_Finland has joined #silverstripe
19: [06:55:50] * DanaeNZ has joined #silverstripe
20: [07:00:05] * DanaeNZ quit (Ping timeout: 240 seconds)
21: [07:56:42] * DanaeNZ has joined #silverstripe
22: [08:00:55] * DanaeNZ quit (Ping timeout: 246 seconds)
23: [08:23:50] * Shrike_Finland quit (Quit: Leaving.)
24: [08:34:11] * Shrike_Finland has joined #silverstripe
25: [08:57:30] * DanaeNZ has joined #silverstripe
26: [09:02:14] * DanaeNZ quit (Ping timeout: 256 seconds)
27: [09:03:28] * kinglozzer has joined #silverstripe
28: [09:03:44] * Shrike_Finland quit (Quit: Leaving.)
29: [09:05:22] * filisko has joined #silverstripe
30: [09:17:19] * kerosene quit (Ping timeout: 258 seconds)
31: [09:22:59] * Audlex has joined #silverstripe
32: [09:27:15] * kerosene has joined #silverstripe
33: [09:38:48] * UncleCheese quit (Quit: Textual IRC Client: www.textualapp.com)
34: [09:40:14] * UncleCheese has joined #silverstripe
35: [09:58:39] * DanaeNZ has joined #silverstripe
36: [10:02:48] * DanaeNZ quit (Ping timeout: 240 seconds)
37: [10:13:06] * Shrike_Finland has joined #silverstripe
38: [10:59:12] * DanaeNZ has joined #silverstripe
39: [11:03:27] * DanaeNZ quit (Ping timeout: 240 seconds)
40: [11:24:24] * Shrike_Finland quit (Quit: Leaving.)
41: [11:25:42] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
42: [11:25:56] * UncleCheese has joined #silverstripe
43: [11:26:27] * UncleCheese quit (Client Quit)
44: [11:26:40] * UncleCheese has joined #silverstripe
45: [11:27:15] * UncleCheese quit (Client Quit)
46: [11:27:28] * UncleCheese has joined #silverstripe
47: [11:28:03] * UncleCheese quit (Client Quit)
48: [11:28:17] * UncleCheese has joined #silverstripe
49: [11:28:52] * UncleCheese quit (Client Quit)
50: [11:29:05] * UncleCheese has joined #silverstripe
51: [11:29:40] * UncleCheese quit (Client Quit)
52: [11:30:27] * Audlex has left #silverstripe
53: [11:31:13] * Audlex has joined #silverstripe
54: [12:00:38] * DanaeNZ has joined #silverstripe
55: [12:05:10] * DanaeNZ quit (Ping timeout: 264 seconds)
56: [12:42:02] * ninty9notout has joined #silverstripe
57: [12:42:49] <ninty9notout> hey all
58: [12:43:12] <ninty9notout> need some advice with SS2
59: [12:43:23] <ninty9notout> having a bit of issue with the speed of the admin panel
60: [12:45:58] <ninty9notout> we've blackfired it and tracked it down to a couple of things, one of which looks like getsubtree and the subsequent getChildrenAsUL calls being made
61: [12:51:50] <ninty9notout> My question, before we spend more time looking at this, is has anyone else experienced this, and if so, what were the potential work arounds?
62: [12:53:30] <ss23> Assuming it's an old site, there are probably some dirty optimisations you can do
63: [12:53:56] <ss23> From memory, that call looks at the history of all of SiteTree, not just SiteTree_Live, so over time it'll slow down as you delete/add pages
64: [12:54:24] <ss23> Consider deleting old pages from the sitetree_versions table. It'll corrupt the data and make it all broken if you needed to revrt, but should help
65: [12:54:44] <ss23> I'dcopy the DB to local, test that it works once you've done that (and similar things on other _versions) and then if it does without issue, push it out. So make sure you test before doing it on prod
66: [13:30:33] * UndefinedOffset has joined #silverstripe
67: [14:01:51] * DanaeNZ has joined #silverstripe
68: [14:05:59] * BackEndCoder quit (Excess Flood)
69: [14:06:32] * DanaeNZ quit (Ping timeout: 256 seconds)
70: [14:07:47] * BackEndCoder has joined #silverstripe
71: [14:21:01] * Mike123 has joined #silverstripe
72: [15:02:35] * Audlex quit (Ping timeout: 240 seconds)
73: [15:02:50] * Mike123 quit (Ping timeout: 260 seconds)
74: [15:38:15] * BackEndCoder quit (Excess Flood)
75: [15:40:17] * BackEndCoder has joined #silverstripe
76: [15:50:35] * DarjusIT has joined #silverstripe
77: [15:51:41] <Zauberfisch> ninty9notout: oh wow, wouldn't want to be in your shoes
78: [15:51:45] <Zauberfisch> making a ss2 site fast
79: [15:52:56] <DarjusIT> Hi all, if make Product DO and give it variable ProductCode, when I make ClothesProduct extends Product, can I save from extensio to main directly like this $newClothesProduct->ProductCode = 'some code'; ?
80: [15:53:59] <Zauberfisch> ninty9notout: though, since ss2 doesn't receive any more security updates as far as I know, you could also just go and hack fix the core code. wouldn't be supprised if you could clean up getChildrenAsUL and make it faster
81: [15:54:21] <Zauberfisch> DarjusIT: no sure what your question is
82: [15:54:42] <Zauberfisch> DarjusIT: if you mean "do silverstripe DataObjects inherit database fields?", then the answer is yes
83: [15:55:55] * ninty9notout quit (Ping timeout: 260 seconds)
84: [15:56:53] <DarjusIT> Zauberfisch, I mean I have Object Product, and then I extend it with ClothesProduct, so Clothes inherit variables of Product DO, and then I need to save it throw Clothes DO? like this new Clothes(); $newClothes->ProductCode = 'some code'; $newClothes->write();
85: [15:57:20] <Zauberfisch> yes
86: [15:57:22] <Zauberfisch> that works
87: [15:57:33] <DarjusIT> nice thanks Zauberfisch
88: [16:04:05] * DanaeNZ has joined #silverstripe
89: [16:04:33] * DarjusIT quit (Quit: Leaving)
90: [16:08:38] * DanaeNZ quit (Ping timeout: 258 seconds)
91: [17:34:54] * kinglozzer quit ()
92: [18:05:30] * DanaeNZ has joined #silverstripe
93: [18:09:48] * DanaeNZ quit (Ping timeout: 240 seconds)
94: [18:25:12] * UncleCheese has joined #silverstripe
95: [18:52:52] * DarjusIT has joined #silverstripe
96: [18:54:08] <DarjusIT> Hi all, I newer tried so I think to ask before do, on using Dropzone in frontend form is any problems to have several Dropzone fields in one form?
97: [19:06:37] * DanaeNZ has joined #silverstripe
98: [19:11:29] * DanaeNZ quit (Ping timeout: 260 seconds)
99: [19:13:53] * gelignite has joined #silverstripe
100: [19:47:43] * DanaeNZ has joined #silverstripe
101: [20:27:39] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
102: [21:59:40] * r3v3rb has joined #silverstripe
103: [22:00:03] <r3v3rb> hello!
104: [22:05:01] * kerosene_ has joined #silverstripe
105: [22:05:02] * Nightjar has joined #silverstripe
106: [22:05:07] <DarjusIT> is this right? ->leftJoin('SiteTree AS SiteTree2', "`SiteTree`.`ParentID` = `SiteTree2`.`ID`")
107: [22:05:22] <Nightjar> No, quotes are wrong way around.
108: [22:05:35] <Nightjar> single for string, double for data (when talking SQL)
109: [22:05:54] * kerosene quit (Ping timeout: 260 seconds)
110: [22:06:15] <Nightjar> so you've got the string SiteTree 'dot' string ParentID
111: [22:06:42] <DarjusIT> Nightjar, you mean `SiteTree2`.`ID` = `SiteTree`.`ParentID` like this?
112: [22:07:37] <Nightjar> No, never backtick.
113: [22:07:43] <Nightjar> It's not SQL either.
114: [22:07:52] <Nightjar> Double quote for Data.
115: [22:08:02] <Nightjar> '"SiteTree"."ParentID"'
116: [22:08:32] <Nightjar> oh, you had backticks. Sorry, read them as single quotes.
117: [22:08:41] <Nightjar> Yeah, it won't work with backticks.
118: [22:09:02] <DarjusIT> so how to leftjoin to same table in SS? :/
119: [22:09:24] <Nightjar> No the query is mostly right, just the syntax is wrong.
120: [22:09:24] <DarjusIT> or just make DB::query not orm?
121: [22:10:05] <Nightjar> it should work if you fix the syntax errors.
122: [22:10:09] <Nightjar> I think.
123: [22:12:00] <DanaeNZ> So method_exists returns false for an object which has an extension with that method
124: [22:12:22] <DanaeNZ> Any way to check if a method exists including extension sources?
125: [22:21:14] <Nightjar> that's what method exists is for.
126: [22:21:53] <DanaeNZ> It was returning false though :\
127: [22:22:04] <Nightjar> So check the extension is applied properly
128: [22:22:08] <Nightjar> hasExtension
129: [22:22:33] <Nightjar> I seem to recall some magic rek'n stuff like that before
130: [22:23:02] <Nightjar> extensions are basically singletons that are applied to an instance at ... call time or soemthing weird.
131: [22:23:10] <DanaeNZ> I refactored my extension setup a little bit. Made an all encompassing one, then put in an extension hook there
132: [22:23:17] <Nightjar> err, construction perhaps.
133: [22:23:43] <Nightjar> In any case, they're not composing, as one would initially suspect.
134: [22:23:58] <Nightjar> iirc
135: [22:24:05] <DanaeNZ> The extension was being applied correctly
136: [22:24:12] <DanaeNZ> But I improved the setup a bit more
137: [22:24:16] <Nightjar> I think if you go to the meetup you can learn more
138: [22:24:34] <DanaeNZ> Yup I'm heading there
139: [22:24:38] <DanaeNZ> this evening
140: [22:24:43] <DanaeNZ> Skipping gym for it too
141: [22:24:59] <Nightjar> Who needs gym when there's free alsochol?
142: [22:25:03] <DanaeNZ> And pizza
143: [22:25:06] <DanaeNZ> Can't forget pizza
144: [22:25:09] <Nightjar> Even better.
145: [22:25:25] <Nightjar> Carbs are important.
146: [22:25:32] <DanaeNZ> I believe we're bringing along our management
147: [22:25:42] <DanaeNZ> They will totally appreciate the dev talks
148: [22:26:58] <Nightjar> I hear there are talks that might not be completely dev related
149: [22:27:10] <DanaeNZ> Ooo
150: [22:27:19] <DanaeNZ> Wow why am I starving
151: [22:27:23] <DanaeNZ> I had breakfast
152: [22:27:31] <DanaeNZ> Actually I can answer myself, too many simple carbs
153: [22:27:37] <Nightjar> I had breakfast like, just an hour ago
154: [22:27:41] <DanaeNZ> m8
155: [22:27:48] <DanaeNZ> Most days breakfast is my lunch
156: [22:27:54] <Nightjar> m80
157: [22:27:58] <DanaeNZ> But I bought cereal and I was excited
158: [22:28:05] <Nightjar> break fast is the most important meal after lent.
159: [22:28:23] <Nightjar> I used to get excited by cereal. Now I get sad.
160: [22:28:36] <Nightjar> Unless it's cocoapops
161: [22:29:22] <DanaeNZ> Mmmmmm
162: [22:35:39] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
163: [22:37:44] * UndefinedOffset quit (Quit: Leaving.)
164: [23:00:01] * ss-helper quit (Remote host closed the connection)
165: [23:00:15] * ss-helper has joined #silverstripe
166: [23:19:02] * DanaeNZ quit (Remote host closed the connection)
167: [23:26:27] * r3v3rb quit (Ping timeout: 240 seconds)
168: [23:27:27] * Nightjar quit (Ping timeout: 240 seconds)
169: [23:37:32] * DanaeNZ has joined #silverstripe
170: [23:48:46] * BackEndCoder quit (Excess Flood)
171: [23:49:01] * filisko quit (Ping timeout: 240 seconds)
172: [23:50:19] * BackEndCoder has joined #silverstripe

These logs were automatically created by ss-log on irc.freenode.net.