#silverstripe IRC Log

IRC log for 17 February 2016

All timestamps are in UTC.

1: [00:32:25] <helenclarko> spronk: they opened a new video ezy where I live. I was like WTF, people still rent videos?
2: [00:44:04] * DanaeNZ quit (Remote host closed the connection)
3: [00:49:42] * DanaeNZ has joined #silverstripe
4: [00:55:08] <DanaeNZ> curse this rain!
5: [00:55:18] <spronk> hmm
6: [00:55:20] <spronk> i want some nippys
7: [00:55:20] <spronk> bit
8: [00:55:24] <spronk> i have no idea where to get some :(
9: [00:55:29] <DanaeNZ> noooo
10: [00:55:32] <DanaeNZ> petrol station
11: [00:55:36] <spronk> hm
12: [00:55:39] <spronk> do mobil sell?
13: [00:55:41] <DanaeNZ> if there is a Z
14: [00:55:44] <DanaeNZ> dunno
15: [00:55:49] <DanaeNZ> Z is a sure thing
16: [00:56:27] <spronk> hmm
17: [00:56:28] <spronk> two blocks away
18: [00:56:47] <DanaeNZ> is it worth the risk
19: [00:56:53] <DanaeNZ> the risk of not finding nippy's
20: [00:56:55] <spronk> 500m
21: [00:56:58] <spronk> thats not really very much
22: [00:56:58] <spronk> :p
23: [00:57:04] <spronk> well
24: [00:57:09] <spronk> they will have something else as an alternative i gues
25: [01:01:40] * zippy has joined #silverstripe
26: [01:15:55] * Scott17021 quit (Quit: This computer has gone to sleep)
27: [01:34:05] * Tanger has joined #silverstripe
28: [01:34:27] <zippy> hi
29: [01:37:49] <Firesphere> Hello
30: [01:39:29] <helenclarko> good.
31: [01:50:32] * Scott17021 has joined #silverstripe
32: [01:51:15] <Firesphere> What's good?
33: [01:51:31] * spronk is
34: [01:51:33] <spronk> ;D
35: [01:52:26] <helenclarko> the interaction between yourself and zippy.
36: [01:52:35] <helenclarko> T'was good!
37: [02:15:23] <DanaeNZ> did you get a nippy's spronk?
38: [02:15:28] <spronk> noep
39: [02:15:34] <DanaeNZ> did you burn it down?
40: [02:15:35] <spronk> went and got a real coffeeee
41: [02:15:40] <DanaeNZ> jealous
42: [02:15:49] <DanaeNZ> milk in coffees makes my tummy say no
43: [02:16:00] <DanaeNZ> i just want a cappa
44: [02:16:05] <spronk> D:
45: [02:16:11] <spronk> might get some petrolgas from the mobile to inspect their nips :D
46: [02:17:39] <spronk> god that makes me feel dirty.
47: [02:18:11] <spronk> getting petrolgas from mobil. JIESUS SPRONK WAT R U DOIN SHTAHP!
48: [02:23:56] <helenclarko> South Island only has limited nips.
49: [02:24:02] <helenclarko> No honeycomb
50: [02:24:04] <spronk> eh?
51: [02:24:05] <helenclarko> :(
52: [02:24:05] <spronk> oh
53: [02:24:09] <spronk> they ahve honeycomb in NI?
54: [02:24:43] <helenclarko> ^^^ Thats what I said when I found it.
55: [02:24:51] <spronk> interesting
56: [02:25:18] <spronk> i havne't seen banana down here iether
57: [02:25:27] <spronk> or that fruchocs thing on their website, but i've seen all the other flavours
58: [02:25:33] <helenclarko> We get Chocolate, Iced coffee and sometimes strawberry
59: [02:25:42] <spronk> and mocha and vanilla
60: [02:26:20] <helenclarko> OOOOOoooooo I havent seen vanilla or Banana.
61: [02:26:33] <helenclarko> Love me some Vanilla
62: [02:26:35] * spronk tries to remember where he was that had vnailla
63: [02:26:41] <spronk> i wasn't all that impressed with nips
64: [02:26:43] <spronk> 'vanilla
65: [02:26:52] <spronk> was a bit too alcohol-y
66: [02:27:15] <spronk> what is fucking amazing, however, is the puhoi valley caramel and white cocolate milk
67: [02:27:35] <helenclarko> I enjoyed the Lewis Road Vanilla. Very Egg Noggy. I havent really done egg nogg
68: [02:27:52] <spronk> the nippy's stuff is similar but probably not quite as sweet
69: [02:28:03] <helenclarko> puhoi valley caramel and white cocolate milk!!! WHAT IS THIS!
70: [02:28:07] <spronk> ja
71: [02:28:08] <spronk> its fucking
72: [02:28:09] <spronk> a
73: [02:28:12] <spronk> ma
74: [02:28:12] <spronk> zing
75: [02:28:24] <spronk> http://puhoivalley.co.nz/our-products/our-milks/caramel-white-chocolate-milk/
76: [02:28:30] <spronk> can get at newworlds and paknslaves
77: [02:29:39] <zippy> wooo I think we used some of that to make some desert thing
78: [02:29:49] <zippy> also, been impressed with My Food Bag
79: [02:29:53] <spronk> oh?
80: [02:29:53] <zippy> just throwing that out there..
81: [02:30:04] <spronk> i looked at it and thought it was ridic expensive
82: [02:30:12] <DanaeNZ> i wanna try it
83: [02:30:22] <DanaeNZ> it's all apparently way better than lewis road creamery
84: [02:30:26] <zippy> oh and Stripe has New Zealand as private beta
85: [02:30:42] <DanaeNZ> Stripe?
86: [02:30:45] <DanaeNZ> Strype?
87: [02:30:45] <spronk> puhoi choc and lewis road choc i found were pretty similar. LR probably my pick of the two
88: [02:30:52] <DanaeNZ> Payment gateway?
89: [02:30:55] <spronk> but lewis road has nothing to compete with that delicious caramel and white chocolate omfgness
90: [02:30:57] <DanaeNZ> if so than yay
91: [02:31:12] <spronk> zippy what impresses you about MFB?
92: [02:31:25] <zippy> The noms and sizes
93: [02:31:33] <DanaeNZ> I am always tempted to get MFB
94: [02:31:40] <DanaeNZ> I think a couple people here get it
95: [02:31:49] <zippy> 2 adults and 2 kids, we have enough left over for my lunch next day, and the food is pretty damn good
96: [02:31:55] <spronk> $162.50 per bag for 2 adult + 2 younger children...
97: [02:31:59] <zippy> I thought it was expensive as well
98: [02:32:08] <spronk> $6.50 per plate :|
99: [02:32:10] <spronk> holy fuck
100: [02:32:19] <zippy> but, i've been pretty impressed with it, it's pretty good
101: [02:32:23] <spronk> hmm
102: [02:32:24] <spronk> see
103: [02:32:36] <spronk> when they first came out i did a comparison with what you got vs supermarket prices, and it was like 40% more
104: [02:32:49] <zippy> oh yea supermarket cheaper for sure
105: [02:32:57] <spronk> and if you say a big fuck you to the superduopoly and go grocering, it's more like 50% more
106: [02:33:38] <zippy> as long as you factor in the "look through recipes" and then work out what you need then go and buy it and come back
107: [02:33:55] <spronk> mm
108: [02:34:54] <zippy> you can always try it for the week
109: [02:35:22] <zippy> forgo the hooks and crack for a few days
110: [02:35:27] <zippy> *hookers
111: [02:35:30] <spronk> we tend to do a sorta.. 2-3 "regular" meals per week that last two days of dinners or a dinner and a lunch, and then various meal-from-whatever-is-on-specials based on looking at the circularrrs
112: [02:35:51] <spronk> been trying to reduce ingredient costs lately
113: [02:35:55] <spronk> protip, holy fuck slowcooker
114: [02:36:24] <zippy> it's pretty good because you make quite a few salads and you make so many dressings and sauces, it's almost like learning to cook
115: [02:36:26] <spronk> $10 of tough as fuck meat turns into more tasty than $20 of expensive cut noms
116: [02:36:30] <spronk> :D
117: [02:36:35] <spronk> yeah
118: [02:36:40] <spronk> that aspect does seem pretty cool
119: [02:36:48] <spronk> alternatively, just go watch Good EAts
120: [02:37:04] <spronk> pretty sure that show taught me 95% of what i know about food
121: [02:37:05] <ss23> eat pizza every day
122: [02:37:06] <ss23> o/
123: [02:37:25] * spronk dissects ss23 and finds that his innards are made from cheese and dough
124: [02:37:37] <ss23> :(
125: [02:37:46] <ss23> They're well preserved though!
126: [02:37:50] <spronk> ;D
127: [02:39:00] <helenclarko> [15:37:42] <ss23> They're well preserved dough!
128: [02:39:14] <helenclarko> See what I did there.
129: [02:39:20] <helenclarko> SEE IT!
130: [02:39:27] * spronk looks closely
131: [02:39:34] * spronk sees it
132: [02:40:21] * helenclarko points to dough for those who missed it.
133: [02:40:27] <ss23> XD
134: [02:40:39] <Firesphere> I doughnt see anything
135: [02:40:41] <zippy> spronk: going along on saturday?
136: [02:40:46] <spronk> hmm?
137: [02:40:48] <spronk> whats on saturday?
138: [02:42:03] <zippy> NZ AU, the final test match..
139: [02:42:10] <spronk> ohhhh
140: [02:42:12] <spronk> nah
141: [02:42:25] <spronk> wanted to
142: [02:42:34] <spronk> but i wasn't allowed. :(
143: [02:42:50] <spronk> "cricket is boring"
144: [02:42:54] <spronk> >_<
145: [02:42:54] <helenclarko> spronk: I know that feeling.
146: [02:43:05] <helenclarko> She never wants to do anything fun...
147: [02:43:12] <spronk> "why would you want to spend a whole day watching cricket *eye roll*"
148: [02:43:44] * spronk ponders the other side of that question, why *wouldn't* you!?
149: [02:44:00] <helenclarko> "I guess my idea of fun and your idea of fun are not the same thing"
150: [02:44:18] <spronk> hahahah
151: [02:44:32] <zippy> I get that every night..
152: [02:44:58] <helenclarko> in bed right?
153: [02:45:04] <helenclarko> Oh that came out wrong.
154: [02:45:08] <spronk> buuuuuuuuuuuuuuuuurn
155: [02:45:08] <helenclarko> or did it.
156: [02:45:09] <ss23> A sign was up the other day
157: [02:45:17] <ss23> "Know of spar etickets? CAll *number*"
158: [02:45:22] <ss23> Were they talking about the cricket?
159: [02:46:22] * neilf__ has joined #silverstripe
160: [02:47:29] <helenclarko> zippy: you going then?
161: [02:48:15] <helenclarko> is it sold out?
162: [02:49:04] <spronk> hmm
163: [02:49:05] <spronk> y u stop working soundcloud
164: [02:49:38] <zippy> helenclarko: na, im nelson
165: [02:51:14] <helenclarko> zippy: In nelson too?
166: [02:51:26] <zippy> ?
167: [02:51:35] <helenclarko> Im not, but I have family there
168: [02:51:42] <helenclarko> and wifi patty is there.
169: [02:53:22] <zippy> yea antmas
170: [02:53:32] <zippy> people that change their names.....
171: [02:53:41] <zippy> im getting to old to keep up!
172: [02:54:09] <helenclarko> I had that too. Its the whole new year new me thing.
173: [02:54:42] <helenclarko> I cant do it.
174: [02:56:32] <Hailwood> Hey folks, anyone have decent knowledge on how SS decides where the action a form needs to run is?
175: [02:57:11] <zippy> Hailwood: you set that when you setup your form
176: [02:58:23] <Hailwood> Basically I have a model admin that renders a custom interface, on the model admin I have a SettingsForm method that returns a form, I also have a saveSettings method on the model admin. My form has FormAction::create('saveSettings', ...
177: [02:58:36] <Hailwood> but the saveSettings method is never called
178: [02:58:40] <Hailwood> ^ zippy
179: [03:03:07] <Hailwood> zippy, instead I'm finding that to get the method to call I need my SettingsForm method to look like... https://gist.github.com/hailwood/f92d4d0f7702179d6c95
180: [03:03:37] <Hailwood> And yeah I've added SettingsForm and saveSettings to the allowed_actions
181: [03:05:39] <zippy> Hailwood: hm, I wonder how you'd get on if you extracted it out for a class that extends Form
182: [03:05:45] <zippy> that'd clean up your ModelAdmin as well
183: [03:13:10] <zippy> https://soundcloud.com/fuckmylife/fuck-you-too
184: [03:14:03] <helenclarko> zippy: Intersting.
185: [03:14:30] <zippy> deadmau5 account...
186: [03:16:41] * stecman has joined #silverstripe
187: [03:18:49] <DanaeNZ> i wanna walk home
188: [03:18:52] <DanaeNZ> but it's raining
189: [03:18:53] <DanaeNZ> ugh
190: [03:21:27] <Hailwood> zippy, What it actually is, this is part of a base model admin, that I have a bunch that extend it
191: [03:22:16] <Hailwood> soon the extending model admins they basically just specify three methods, one to return the fields, one to return to the actions, and one to process to action
192: [03:22:38] * spronk quit (Quit: I may need a longer sleep timer...)
193: [03:23:57] * stecman quit (Quit: Page closed)
194: [03:24:03] <Hailwood> But regardless, I always thought you could put the method to handle the submission on the request handler (which in this case is the model admin)?
195: [03:26:05] <Hailwood> zippy, e.g. https://gist.github.com/hailwood/87ed7d1f7ade6f8ef97a
196: [03:27:33] <zippy> Hailwood: did you look into how the swipestripe does the config via model admin?
197: [03:29:59] <Hailwood> zippy, Yeah, thats where a lot of my code has come from for this
198: [03:30:53] * helenclarko quit (Read error: Connection reset by peer)
199: [03:33:42] <Hailwood> zippy, The only thing I can think of here is it could be spazzing because my SettingsForm method is on the main ModelAdmin, but the saveSettings method is on the extending ModelAdmin so perhaps something is going wrong with a hasMethod check somewhere
200: [03:35:06] <zippy> hmm
201: [03:35:11] <zippy> not too sure sorry....
202: [03:35:29] <Firesphere> Ehhhh, why do I get an error I need to be an operator?
203: [03:35:37] <Firesphere> I didn't do anything
204: [03:35:48] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
205: [03:58:47] * Phlunk3 quit (Quit: Leaving)
206: [04:14:44] * r_hector has joined #silverstripe
207: [04:18:49] * DanaeNZ quit (Remote host closed the connection)
208: [04:31:33] <ss23> If I have a resampled URL, how do I figure out the "real" asset?
209: [04:31:47] <ss23> e.g. assets/Uploads/_resampled/ResizedImage600600-pikachu-full.png -> assets/Uploads/pikachu-full.png
210: [04:40:57] * DanaeNZ has joined #silverstripe
211: [04:41:03] <Stomach> remove this bit `_resampled/ResizedImage600600-`
212: [04:41:04] <Stomach> :D
213: [04:43:26] <ss23> :P
214: [04:43:29] <ss23> Programatically!
215: [04:43:41] <ss23> I guess I can regex it
216: [04:43:55] <Stomach> yeah thats what I would have thought
217: [04:44:06] <ss23> something like s/\_resampled\/ResizedImage[0-9]*\-/g
218: [04:44:08] <ss23> something like s/\_resampled\/ResizedImage[0-9]*\-//g
219: [04:44:09] <ss23> that sorry
220: [04:44:12] <ss23> But it's a little ugly IMO
221: [04:45:01] <Stomach> something like _resampled\/(.)*-
222: [04:45:21] <Stomach> _resampled\/[a-zA-Z0-9]*-
223: [04:45:33] <Stomach> _resampled\/[\w]*-
224: [04:46:09] <Stomach> preg_replace("/_resampled\/[\w]*-/", "", $resampledUrl);
225: [04:46:10] <Stomach> boom
226: [04:46:37] <ss23> It's not a solution I like, but I'll atke it
227: [04:47:10] <Stomach> lol :D
228: [04:51:09] <Stomach> why do you have that url but not the original
229: [04:51:14] <Stomach> whos site are you scraping ss23
230: [04:51:20] <ss23> My own!
231: [04:51:34] <ss23> Parsing my own HTML to try see which assets are used on which pages
232: [04:51:40] <ss23> I call it... AssetFinder
233: [04:51:48] <Stomach> thats... a good name
234: [04:51:49] <ss23> Displays, on every asset in the CMS, where that asset is used
235: [04:54:01] * DanaeNZ quit (Remote host closed the connection)
236: [04:54:29] * camfindlay quit (Quit: camfindlay)
237: [05:00:11] <ss23> Scott17021 just pointed out that it comes built into 3.2
238: [05:00:58] * Stomach quit (Ping timeout: 240 seconds)
239: [05:23:14] <Hailwood> Hey guys, I'm playing around with hooks, can someone tell me if this should function the way I want? https://gist.github.com/hailwood/f0863d195dba5ad501f6
240: [05:24:00] <Hailwood> onBeforeUpdateQuantity = allows an extension to cause it to bail, onUpdateQuantity allows an extension to set the quantity to something else onAfterUpdateQuantity allows the extension to do whatever it wants when the quantity changes
241: [05:24:19] <Hailwood> That's my goal anyway
242: [05:32:05] * Stomach has joined #silverstripe
243: [05:35:10] * Scott17021 quit (Quit: This computer has gone to sleep)
244: [05:56:24] * Hailwood quit (Remote host closed the connection)
245: [06:20:06] <nontgor> Hailwood: Having a quick glance that looks ok.
246: [06:42:37] * DanaeNZ has joined #silverstripe
247: [06:47:00] * DanaeNZ quit (Ping timeout: 248 seconds)
248: [06:56:58] * Pyromanik has joined #silverstripe
249: [07:11:29] * Mike123 has joined #silverstripe
250: [07:11:47] <Mike123> Hi :)
251: [07:12:01] <ss23> Hi :)
252: [07:24:28] <Pyromanik> Hi :)
253: [07:27:19] * wmk has joined #silverstripe
254: [07:35:00] <Pyromanik> Morgen wmk :)
255: [07:35:11] <wmk> gmorning Pyromanik
256: [08:09:33] <Pyromanik> urgh, fk windows :<
257: [08:09:49] * zippy has joined #silverstripe
258: [08:09:58] <Pyromanik> wanna update git repo between 2 machines. No easy way except waiting 4 hours for it to copy, then pasting it into other machine :<
259: [08:10:41] <wmk> sounds like a huge repo
260: [08:10:49] <Pyromanik> Just a silverstripe site.
261: [08:10:50] <wmk> or slow connection
262: [08:10:58] <Pyromanik> but windows + flash memory...
263: [08:11:46] <Pyromanik> I need to update an install with composer. But machine it's on is too slow to manage to run the thing, so no point in updating it there.
264: [08:11:54] <Pyromanik> NFI how I managed to dev the site on it :<
265: [08:15:23] <Firesphere> Hello world
266: [08:15:27] <Firesphere> Goodevening to you all
267: [08:15:31] <Pyromanik> world hellos
268: [08:16:01] <Pyromanik> find a place yet Firesphere ?
269: [08:19:33] <Firesphere> Definitely!
270: [08:19:37] <Firesphere> Check my website ;)
271: [08:19:38] <Pyromanik> nice!
272: [08:20:05] <Pyromanik> .net?
273: [08:20:06] <Pyromanik> no
274: [08:20:10] <Pyromanik> .dot?
275: [08:20:20] <Firesphere> https://casa-laguna.net
276: [08:20:42] <Pyromanik> oh, backwards ><
277: [08:20:59] * Pyromanik had laguna-casa.net
278: [08:21:11] <Firesphere> Really?
279: [08:21:21] <Firesphere> Casa Laguna means "House at the water"
280: [08:21:35] <Firesphere> Laguna Casa means "Water in the house" :|
281: [08:21:45] <Pyromanik> Yeh but I commonly hear it the other way around, for some reason
282: [08:22:03] <Pyromanik> Maybe because direct translation would be something like "Lake house"
283: [08:22:07] <Pyromanik> which is a thing in america.
284: [08:22:14] <Pyromanik> so far as I understand
285: [08:22:35] <Pyromanik> so uh...
286: [08:22:36] <Firesphere> Correct, it's indeed Lake House.
287: [08:22:53] <Pyromanik> you're not in the place yet, where are you now?
288: [08:23:07] <Firesphere> Name comes from the original location is/was in the river neighborhood. :)
289: [08:23:15] <Firesphere> I currently live at an AirBnB
290: [08:23:22] <Pyromanik> ah
291: [08:23:24] <Pyromanik> cool
292: [08:23:33] <Firesphere> Have it until end february, so got some time to fix stuff :)
293: [08:23:39] <Pyromanik> got anything planned Thursday night?
294: [08:23:50] <Pyromanik> (tomorrow_
295: [08:24:03] <Firesphere> Me?
296: [08:24:07] <Pyromanik> mmm
297: [08:24:08] <Firesphere> Not really, why?
298: [08:24:09] * Stomach quit (Quit: zzz)
299: [08:24:20] <Pyromanik> Might have a spare ticket, but it'll be short notice.
300: [08:24:31] <Pyromanik> for Scottish Military Tattoo
301: [08:25:07] <Pyromanik> I've offered it to another friend, but he hasn't replied yet :|
302: [08:25:19] <Pyromanik> So if it cuts too close, there'll be a spare one
303: [08:25:37] <Pyromanik> If you're interested at all
304: [08:25:54] <Firesphere> You serious?
305: [08:26:00] <Pyromanik> yep.
306: [08:26:00] <Firesphere> OW FUCK YEAH!
307: [08:26:15] <Pyromanik> cool, I'll let you know. Do I have your number?
308: [08:26:20] <Pyromanik> PM it :>
309: [08:26:40] <Firesphere> Just a sec, I don't know it by heart exactly yet :)
310: [08:27:03] <zippy> https://www.youtube.com/watch?v=ab8GtuPdrUQ ?
311: [08:27:05] <Firesphere> I can't promise, I have to check, but aw fuck yeah!
312: [08:28:46] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
313: [08:28:59] <Pyromanik> I can't promise either, so sorry if I can't.
314: [08:31:42] <Firesphere> No problem :)
315: [08:32:00] * DanaeNZ has joined #silverstripe
316: [08:33:50] * Shrike_Finland has joined #silverstripe
317: [08:36:23] * Stomach has joined #silverstripe
318: [08:36:32] * DanaeNZ quit (Ping timeout: 250 seconds)
319: [08:41:13] * Pyromanik quit (Quit: Leaving)
320: [08:42:29] * zippy has joined #silverstripe
321: [08:59:34] * arnhoe has joined #silverstripe
322: [09:04:57] * Stomach quit (Quit: zzz)
323: [09:12:32] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
324: [09:32:27] * Tanger quit (Quit: Tanger)
325: [09:32:43] * lerni has joined #silverstripe
326: [09:34:30] * liori quit (Remote host closed the connection)
327: [09:45:05] * Shrike_Finland quit (Quit: Leaving.)
328: [09:52:43] * jbrungar quit (*.net *.split)
329: [09:52:47] * ajmitch quit (*.net *.split)
330: [09:52:55] * ajmitch has joined #silverstripe
331: [09:52:55] * ajmitch quit (Changing host)
332: [09:52:55] * ajmitch has joined #silverstripe
333: [09:53:17] * jbrungar has joined #silverstripe
334: [09:56:45] * Shrike_Finland has joined #silverstripe
335: [10:03:37] * neilf__ quit (*.net *.split)
336: [10:08:10] * ajmitch quit (*.net *.split)
337: [10:08:12] * Kingy^ quit (*.net *.split)
338: [10:08:13] * nontgor quit (*.net *.split)
339: [10:08:22] * ajmitch has joined #silverstripe
340: [10:08:22] * ajmitch quit (Changing host)
341: [10:08:22] * ajmitch has joined #silverstripe
342: [10:08:26] * Kingy[a] has joined #silverstripe
343: [10:08:38] * nontgor has joined #silverstripe
344: [10:12:58] * neilf__ has joined #silverstripe
345: [10:16:26] * DimiStripe has joined #silverstripe
346: [10:22:45] * MattyBalaam has joined #silverstripe
347: [10:25:00] * liori has joined #silverstripe
348: [10:28:50] * adrexia_phone has joined #silverstripe
349: [10:29:00] * DimiStripe_alt has joined #silverstripe
350: [10:30:24] <ss-helper> Re: Heuristic underlying TRUSTED_PROXY may be flawed. - https://groups.google.com/d/msg/silverstripe-dev/wt_8xWiopeI/a6ufFWIBAQAJ
351: [10:31:36] * adrexia_phone quit (Remote host closed the connection)
352: [10:39:29] * Shrike_Finland quit (Quit: Leaving.)
353: [10:47:02] <MattyBalaam> I was wondering if anyone has experience of resizing png images while keeping filesize small? I have used https://tinypng.com/ to shrink pngs and they are a lot smaller than those created with the backend of Silverstripe
354: [10:49:25] * Kingy[a] quit (*.net *.split)
355: [10:49:31] * [Fate] quit (*.net *.split)
356: [10:49:39] * TheVoid quit (*.net *.split)
357: [10:49:41] * TombL quit (*.net *.split)
358: [10:50:08] * Kingy[a] has joined #silverstripe
359: [10:50:14] <MattyBalaam> I have tried setting the GDBackend and ImagickBackend settings to 1, but they do not seem to affect PNGs
360: [10:50:17] * [Fate] has joined #silverstripe
361: [10:51:38] * TheVoid has joined #silverstripe
362: [10:52:17] * TombL has joined #silverstripe
363: [10:54:56] * Kapdap quit (Remote host closed the connection)
364: [11:04:18] * Kingy[a] quit (*.net *.split)
365: [11:04:22] * wmk quit (*.net *.split)
366: [11:04:25] * Azure quit (*.net *.split)
367: [11:04:27] * cloph_away quit (*.net *.split)
368: [11:04:28] * kerozene quit (*.net *.split)
369: [11:04:47] * wmk has joined #silverstripe
370: [11:04:52] * Kingy[a] has joined #silverstripe
371: [11:05:02] * Azure has joined #silverstripe
372: [11:06:31] * cloph_away has joined #silverstripe
373: [11:06:57] * kerozene has joined #silverstripe
374: [11:08:12] * r_hector quit (Remote host closed the connection)
375: [11:13:42] * Shrike_Finland has joined #silverstripe
376: [11:25:12] * neilf__ quit (Quit: Connection closed for inactivity)
377: [11:39:55] * TombL quit (*.net *.split)
378: [11:39:59] * TRB143_ quit (*.net *.split)
379: [11:40:04] * leomeloxp quit (*.net *.split)
380: [11:40:06] * TRB143 has joined #silverstripe
381: [11:40:22] * TombL has joined #silverstripe
382: [11:46:24] * kinglozzer has joined #silverstripe
383: [11:50:24] * nontgor quit (*.net *.split)
384: [11:50:34] * Zauberfisch1 quit (*.net *.split)
385: [11:50:34] * Blacklite quit (*.net *.split)
386: [11:50:36] * _longines quit (*.net *.split)
387: [11:50:42] * Zauberfisch1 has joined #silverstripe
388: [11:51:06] * nontgor has joined #silverstripe
389: [11:51:15] * Blacklite has joined #silverstripe
390: [11:52:48] * _longines has joined #silverstripe
391: [11:59:23] * ss-helper quit (*.net *.split)
392: [11:59:28] * Embraden quit (*.net *.split)
393: [11:59:29] * ec8or_ quit (*.net *.split)
394: [11:59:30] * eolant quit (*.net *.split)
395: [11:59:32] * xyphoid_ quit (*.net *.split)
396: [12:00:05] * ec8or has joined #silverstripe
397: [12:00:13] * eolant has joined #silverstripe
398: [12:00:37] * Embraden has joined #silverstripe
399: [12:00:38] * Embraden quit (Changing host)
400: [12:00:38] * Embraden has joined #silverstripe
401: [12:04:02] * xyphoid has joined #silverstripe
402: [12:09:19] * DanaeNZ has joined #silverstripe
403: [12:09:30] * ss-helper has joined #silverstripe
404: [12:13:50] * DanaeNZ quit (Ping timeout: 244 seconds)
405: [12:15:19] <ss-helper> Silverstripe Blog - DataExtension to Override FeaturedImage with Slideshow - http://stackoverflow.com/questions/35456284/silverstripe-blog-dataextension-to-override-featuredimage-with-slideshow
406: [12:24:58] * TheVoid quit (*.net *.split)
407: [12:25:04] * arnhoe quit (*.net *.split)
408: [12:25:07] * Firesphere quit (*.net *.split)
409: [12:25:08] * krofek quit (*.net *.split)
410: [12:25:10] * Zauberfisch quit (*.net *.split)
411: [12:25:11] * spekulatius quit (*.net *.split)
412: [12:25:17] * BackEndCoder quit (*.net *.split)
413: [12:25:18] * ss23 quit (*.net *.split)
414: [12:25:24] * ss23 has joined #silverstripe
415: [12:25:45] * spekulatius has joined #silverstripe
416: [12:25:47] * SphereSilver has joined #silverstripe
417: [12:25:48] * TheVoid has joined #silverstripe
418: [12:25:53] * krofek has joined #silverstripe
419: [12:26:04] * BackEndCoder has joined #silverstripe
420: [12:30:26] * lerni quit (Remote host closed the connection)
421: [12:32:20] * DimiStripe_alt quit (*.net *.split)
422: [12:32:30] * Frans_Amsterdam quit (*.net *.split)
423: [12:32:33] * MichalKleiner quit (*.net *.split)
424: [12:33:16] * DimiStripe_alt has joined #silverstripe
425: [12:33:23] * MichalKleiner has joined #silverstripe
426: [12:38:36] * MattyBalaam quit (Quit: Page closed)
427: [12:40:15] * Zauberfisch has joined #silverstripe
428: [12:53:07] * elgabbu quit (Quit: Page closed)
429: [12:53:29] * elgabbu has joined #silverstripe
430: [12:53:54] <elgabbu> hi all having some trouble with summary_fields of a data object
431: [12:54:32] <elgabbu> http://www.sspaste.com/paste/show/56c46d812e293
432: [12:54:44] <elgabbu> code above leaves the field empty
433: [12:55:11] <elgabbu> however if I change the summary fields to private static $summary_fields = array( 'BonusSummary');
434: [12:55:34] <elgabbu> it works ... however the title for the column is set to BonusSummary ...
435: [13:09:20] <elgabbu> sorted by adding it to field labels
436: [13:10:23] * elgabbu quit (*.net *.split)
437: [13:10:23] * Mike123 quit (*.net *.split)
438: [13:10:51] * lerni has joined #silverstripe
439: [13:19:00] * UndefinedOffset has joined #silverstripe
440: [13:26:42] * Shrike_Finland quit (Quit: Leaving.)
441: [13:55:10] * Shrike_Finland has joined #silverstripe
442: [13:58:42] * DanaeNZ has joined #silverstripe
443: [14:02:50] * DanaeNZ quit (Ping timeout: 250 seconds)
444: [14:08:04] * wmk quit (Ping timeout: 248 seconds)
445: [14:14:39] * kinglozzer quit ()
446: [14:16:03] * Shrike_Finland quit (Quit: Leaving.)
447: [14:20:01] * SphereSilver quit (Ping timeout: 240 seconds)
448: [14:20:28] * SphereSilver has joined #silverstripe
449: [14:31:29] * Frans_Amsterdam has joined #silverstripe
450: [14:50:49] * Spambanjo has joined #silverstripe
451: [14:50:49] <ss-helper> Spambanjo: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
452: [14:52:23] <Spambanjo> Hello, I'm trying to setup Willr's facebook connect module. When I click the "login with facebook" link, it returns to a page not found
453: [15:13:49] * r3v3rb has joined #silverstripe
454: [15:13:54] <r3v3rb> hello
455: [15:14:25] <r3v3rb> why does this always return "Twinnable"
456: [15:14:27] <r3v3rb> $status = ( $this->Children()->filter(array('DoB:GreaterThan' => $today ))) ? "Twinnable" : "Not Twinnable";
457: [15:15:34] <Spambanjo> Even when the returned list is empty, it exists. If you are trying to check if any records exist try $this->Children()->filter(array('DoB:GreaterThan' => $today ))->exists()
458: [15:15:37] <r3v3rb> where $today = SS_DateTime::now()->Date();
459: [15:16:09] <r3v3rb> Spambanjo, no I need to find if any records have DoB in the future :D
460: [15:16:25] <Spambanjo> yes, and if any are returned, ->exists() will be true
461: [15:16:33] <r3v3rb> ahhh ok
462: [15:19:13] <r3v3rb> thanks Spambanjo wouldn't have tested that!
463: [15:19:19] <r3v3rb> but makes complete sense
464: [15:20:15] <Spambanjo> no problem! for the record, the same is true on a template level. So you can go $Children.filter('ThisCheckbox',1).Exists)
465: [15:21:32] * mento has joined #silverstripe
466: [15:22:53] <mento> This is driving me nuts for a while now - the Error and 404 pages in the sitetree...
467: [15:22:56] <mento> https://i.imgsafe.org/2eec8e7.jpg
468: [15:23:27] <mento> It look so ugly, having these somewhere in the middle of the sitetree - and when you add a new page they will be placed underneath those two pages
469: [15:23:55] <Spambanjo> You're not alone mento!
470: [15:24:09] <mento> arent these pages not supposed to be somewhere else instead of the SiteTree!?
471: [15:25:07] <Spambanjo> I suppose the argument is they are essentially pages with their own content. It would be nice if displaying them was optional tho
472: [15:36:53] <r3v3rb> Spambanjo, here's another quick one for you ;) So Twinnable/Not Twinnable now return correctly in the gridfield for the modeladmin. If I add the function 'Status' to searchable_fields I get: Call to a member function scaffoldSearchField() on a non-object
473: [15:37:11] <r3v3rb> is it possible to search/filter on a function of the object?
474: [15:37:44] <Spambanjo> Status is a reserved field I believe. I've had problems with that in the past so I avoid using that as a field name now
475: [15:38:13] <r3v3rb> bugger! okay I'll change the name :D
476: [15:38:31] <r3v3rb> why me! why do I always manage to use reserved names!
477: [15:39:11] <Spambanjo> Same here! it's a frustrating one with it being such a common term for so many tasks!
478: [15:40:41] * Mike123 has joined #silverstripe
479: [15:42:19] <mento> Spambanjo: yeah but its a tricky one, since those pages or not part of your website's sitetree - they are 'hidden' pages and do not belong in the structure of a site. But hey - the rest of the CMS still rocks :-D
480: [15:45:22] <Spambanjo> Hmmm Mike123, I was trying to get the Facebook Connect module working earlier and someone called Mike123 was also looking for a fix, is that you? and did you ever fix it?
481: [15:50:26] <r3v3rb> aye, however still doesn't work changed 'Status' to 'ClientStatus' and it still falls over rendering the modeladmin on scaffoldfields
482: [15:51:32] <Spambanjo> What is the field type of status? is it an Enum?
483: [15:53:38] <r3v3rb> nope there is no field its a function on the class :D
484: [15:54:27] <r3v3rb> its a summary_field calculated from a function that I would like a user to be able to filter
485: [15:54:51] <r3v3rb> does it really require a field too?
486: [15:56:04] <r3v3rb> http://www.sspaste.com/paste/show/56c49805c374b
487: [16:00:15] <r3v3rb> i'm guessing yes as the query is passed to SQLQuery not the class first
488: [16:00:34] <r3v3rb> would be nice to get that kind of functionality though
489: [16:26:42] * Spambanjo quit (Ping timeout: 252 seconds)
490: [16:28:54] * Mike123 quit (Ping timeout: 252 seconds)
491: [16:30:07] * Shrike_Finland has joined #silverstripe
492: [16:47:37] <r3v3rb> hmm, i need someone cleverer than me!
493: [16:48:07] <r3v3rb> I need to update the field in a related do when saving another
494: [16:48:21] <r3v3rb> but i'm getting caught in a write() loop!
495: [16:48:54] <r3v3rb> even though I have a self::$has_written test in the onafterwrite
496: [17:10:39] * gelignite has joined #silverstripe
497: [17:15:06] * mento quit (Ping timeout: 252 seconds)
498: [17:21:37] * lerni quit (Remote host closed the connection)
499: [17:29:14] * Shrike_Finland quit (Quit: Leaving.)
500: [17:30:26] * Frans_Amsterdam quit (Read error: Connection reset by peer)
501: [17:31:13] * Frans_Amsterdam has joined #silverstripe
502: [17:35:39] * spekulatius quit (Ping timeout: 240 seconds)
503: [17:36:14] * DanaeNZ has joined #silverstripe
504: [17:36:39] * lerni has joined #silverstripe
505: [17:39:21] * spekulatius has joined #silverstripe
506: [17:40:34] * DanaeNZ quit (Ping timeout: 240 seconds)
507: [17:52:13] * r3v3rb quit (Quit: Leaving)
508: [17:57:56] * lerni quit (Remote host closed the connection)
509: [18:01:01] * lerni_ has joined #silverstripe
510: [18:14:13] * lerni_ quit (Remote host closed the connection)
511: [18:21:50] * Stomach has joined #silverstripe
512: [18:24:34] * Phlunk3 has joined #silverstripe
513: [18:33:47] * Stomach quit (Quit: zzz)
514: [18:36:41] * DimiStripe_alt quit (Quit: DimiStripe_alt)
515: [18:37:16] * DimiStripe quit (Quit: DimiStripe)
516: [18:53:55] * TRB143 quit (Ping timeout: 268 seconds)
517: [18:57:03] * TRB143 has joined #silverstripe
518: [19:02:26] * Stomach has joined #silverstripe
519: [19:02:59] * lerni has joined #silverstripe
520: [19:20:02] * Stomach quit (Quit: zzz)
521: [19:22:39] * helenclarko has joined #silverstripe
522: [19:24:05] * Stomach has joined #silverstripe
523: [19:26:47] * SphereSilver is now known as Firesphere
524: [19:40:10] * Stomach quit (Ping timeout: 255 seconds)
525: [19:41:53] * CodeTrap has joined #silverstripe
526: [19:42:25] * DanaeNZ has joined #silverstripe
527: [20:00:44] <ss-helper> Re: Lightweight Alternative Search Solutions for SilverStripe? - https://groups.google.com/d/msg/silverstripe-dev/GFEK8c9y7ag/R3iOLW8gAQAJ
528: [20:02:25] <Firesphere> Jep, going to move in over this weekend, I think
529: [20:05:50] * lerni quit (Remote host closed the connection)
530: [20:06:16] * lerni has joined #silverstripe
531: [20:11:01] * lerni quit (Ping timeout: 265 seconds)
532: [20:22:52] <DanaeNZ> noooo 2MB limit why are you back
533: [20:23:09] <DanaeNZ> I upped it in php.ini and everything
534: [20:23:24] <DanaeNZ> SilverStripe CloudAssets is maybe doing somehting
535: [20:23:29] <DanaeNZ> ugh there is a meeting soon
536: [20:23:56] * Liquide has joined #silverstripe
537: [20:24:17] <DanaeNZ> also morning
538: [20:24:41] * Scott17021 has joined #silverstripe
539: [20:32:32] * Scott17021 quit (Quit: This computer has gone to sleep)
540: [20:33:23] * lerni has joined #silverstripe
541: [20:35:26] * Stomach has joined #silverstripe
542: [20:45:37] * Scott17021 has joined #silverstripe
543: [20:48:40] <helenclarko> Hey DanaeNZ Its Thursday.
544: [20:48:54] <helenclarko> also Morning!
545: [20:48:59] <DanaeNZ> woooo
546: [21:00:29] <ss-helper> Silverstripe REST API - http://stackoverflow.com/questions/20831602/silverstripe-rest-api
547: [21:00:33] * _n8 has joined #silverstripe
548: [21:00:33] <ss-helper> _n8: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
549: [21:01:59] * spronk has joined #silverstripe
550: [21:02:15] <_n8> Isn't it great when you go to read the docs, the site is down, you think of trying the IRC, and before it even loads you solve your own problem.
551: [21:13:10] * Pyromanik has joined #silverstripe
552: [21:13:16] <Pyromanik> Firesphere, ping?
553: [21:16:23] <Firesphere> pong
554: [21:16:45] * UndefinedOffset quit (Quit: Leaving.)
555: [21:16:46] <Pyromanik> Firesphere, I sent a whatsapp message too, but I'm afraid that mate of mine finally got back to me.
556: [21:17:07] <Pyromanik> He desired the ticket, so I should honour the offer.
557: [21:17:14] <Pyromanik> Sorry.
558: [21:17:22] <Firesphere> Yeh, got the message. Bummer for me, but all good :)
559: [21:17:29] <Pyromanik> cool :)
560: [21:17:45] <Pyromanik> I couldn't tell if you got it or not, I'm flashing the phone atm
561: [21:19:37] <Firesphere> I got it but was in standup, so couldn't reply straight away :)
562: [21:20:06] <Pyromanik> mm, ne bother. Just wanted to make sure. It's easier to type here than on phone :>
563: [21:21:02] <Firesphere> web.whatsapp.com ;)
564: [21:21:07] <Pyromanik> neg.
565: [21:21:17] <Pyromanik> need phone to auth it.
566: [21:21:26] <Pyromanik> mid update, nay good.
567: [21:21:49] <Pyromanik> IRC, the truth of all IM :P
568: [21:32:16] * Terr has joined #silverstripe
569: [21:32:16] <ss-helper> Terr: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
570: [21:33:14] <Terr> Hey, does anyone here know how to make Resources that have a type Link go to the Link URL instead of a page that just prints out the URL link?
571: [21:35:00] <DanaeNZ> Terr: There is a function redirect() on the Controller class. It depends where you are redirecting from, but generally Controller::curr()->redirect('somelink') would work
572: [21:35:05] <DanaeNZ> could be wrong
573: [21:35:09] <DanaeNZ> it's Controller, right?
574: [21:36:24] <Terr> Im not really sure. This is the first time ive worked with Silverstripe coming from Laravel.
575: [21:37:46] <Terr> It looks like the client has added a resource through the CMS and they want all these resources with a type of link to go right to the URL.
576: [21:38:16] <Terr> but SS is just going to a page and printing out all the info from the resource
577: [21:39:45] <Terr> its going to /show/"resource-name" and printing the URL link
578: [21:39:53] * harry1 has joined #silverstripe
579: [21:40:12] <DanaeNZ> Terr: Ok, so there will be a function "show" on whatever pagetype that is
580: [21:40:32] <DanaeNZ> And there will be some sort of logic there to handle that last Param, generally called ID
581: [21:40:42] <DanaeNZ> see if you can find that function first
582: [21:41:02] <Terr> Ill have a look. this is a show function inside a controller right?
583: [21:41:09] <Terr> Thats what id expect it to be in laravel.
584: [21:41:10] * joelpittet has joined #silverstripe
585: [21:42:02] <Firesphere> Yes, it should be.
586: [21:42:56] <harry1> hi guys I've got a typical nonsense error message that is cryptic:
587: [21:42:57] <harry1> [User Warning] GridFieldManyRelationHandler requires the GridField to have a RelationList. Got a UnsavedRelationList instead.
588: [21:44:17] * darjusIT has joined #silverstripe
589: [21:44:49] <harry1> this is complete garbage because I took this which works
590: [21:44:52] <harry1> http://www.sspaste.com/paste/show/56c4e9bfd82ff
591: [21:45:14] <harry1> and made this
592: [21:45:16] <harry1> http://www.sspaste.com/paste/show/56c4e9e281cd4
593: [21:45:27] <harry1> they are identical aside from the class name
594: [21:45:29] <DanaeNZ> harry1: that happens when it is trying to load a list against an object that doesn't have an ID yet
595: [21:45:34] <harry1> one work the other doesn't
596: [21:45:59] <DanaeNZ> I think I "solved" it by wrapping the gridfield instantiation with if ($this->ID)
597: [21:46:08] <DanaeNZ> but then you save it first to look at the gridfield
598: [21:46:10] <DanaeNZ> shrug
599: [21:46:25] <harry1> why would one work and not the other
600: [21:46:44] <harry1> this isn't logical
601: [21:47:09] <Firesphere> Because the gridfield can't handle unsaved items. They need to be written before they can be loaded.
602: [21:47:47] <harry1> i don't have an unsaved item
603: [21:47:55] <harry1> i just tried to create one
604: [21:48:41] <darjusIT> Hi, I maybe someone knows how to make silverstripe use 2 themes at same time, for example HomePage, About, Contacts uses theme1, and if you go to ManagerPage and other pages that are in manager use theme2?
605: [21:48:58] <harry1> so now none of my content blocks work
606: [21:49:14] <harry1> when i try to add the same error, cracking
607: [21:55:19] <harry1> DanaeNZ: thanks that fixed it
608: [21:55:35] <harry1> i have no idea why that fixes it but it did
609: [21:57:30] <Firesphere> It fixes the fact that it now instantiates AFTER the object has been written, therefor making sure it exists
610: [21:58:00] <helenclarko> DanaeNZ: I loved the "if ($this->ID)" fix, always felt like a dirty fix haha. We basically just check to see if it exists.
611: [21:58:25] <harry1> the fix means that when i try to create the content block the cms doesn't crash
612: [21:58:44] <harry1> however once I save I now get another cyrptic message
613: [21:58:58] <DanaeNZ> helenclarko: hahaha
614: [21:59:04] <Firesphere> using if($this->exists()) is "cleaner"
615: [21:59:06] <helenclarko> Whats the new cryptic message?
616: [21:59:06] <DanaeNZ> "Do I exist?? I don't know?"
617: [21:59:25] <DanaeNZ> Firesphere: truedat
618: [21:59:40] <helenclarko> DanaeNZ: "Well lets just skip that part until I exist"
619: [22:00:20] <harry1> an't find /0 in stage Stage IN POST /admin/block-admin/Block/EditForm/field/Block/add-multi-class/TestimonialContentBlock/ItemEditForm Line 851
620: [22:00:27] <DanaeNZ> exists() is pretty straightforward too lol: return (isset($this->record['ID']) && $this->record['ID'] > 0);
621: [22:04:35] <helenclarko> harry1: Maybe this will help. http://stackoverflow.com/questions/21671943/silverstripe-3-1-page-creating-publishing-from-the-frontend
622: [22:06:01] <harry1> helenclarko: thanks - is that the url that you meant to send?
623: [22:06:07] <harry1> not sure how that applies here
624: [22:07:02] <helenclarko> harry1: Good point, just the error Can't find [Title of Page]/[Page ID] in stage Stage
625: [22:07:15] <harry1> btw when i add the gridfield it's this right: $fields->addFieldToTab
626: [22:07:21] * CodeTrap quit (Remote host closed the connection)
627: [22:07:31] <helenclarko> but yeah, you probably dont have "$page->writeToStage('Stage');"
628: [22:07:33] * CodeTrap has joined #silverstripe
629: [22:07:58] * Hailwood has joined #silverstripe
630: [22:09:21] <harry1> have I read correctly, this issue I am experiencing is related to some unsaved data in mm cms?
631: [22:14:48] <harry1> am i the only one who struggles with the most basic of basics
632: [22:15:25] <harry1> I cannot grasp how one class work, I create another which is identical but in name
633: [22:15:37] <helenclarko> harry1: haha, nope. I avoid cooking food for myself.
634: [22:15:43] <harry1> and it creates this mess that needs to be hacked over the line
635: [22:15:50] <helenclarko> I'm really bad at cooking
636: [22:18:58] * harry1_ has joined #silverstripe
637: [22:18:58] <ss-helper> harry1_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
638: [22:20:10] * harry1 quit (Ping timeout: 252 seconds)
639: [22:20:19] * Stomach quit (Ping timeout: 248 seconds)
640: [22:20:41] * Stomach has joined #silverstripe
641: [22:20:48] <harry1_> what is anUnsavedRelationList
642: [22:20:56] <harry1_> is this something I can manually delete
643: [22:23:58] <harry1_> helenclarko: i see you had this exact same issue almost a year ago
644: [22:24:01] <harry1_> i see it in the SS logs
645: [22:25:04] * Azure quit (Ping timeout: 264 seconds)
646: [22:25:19] * Azure has joined #silverstripe
647: [22:28:38] * joelpittet quit (Remote host closed the connection)
648: [22:29:10] <helenclarko> harry1_: Yeah I've had that issue. Fixed with if ($this->ID)
649: [22:29:44] <Pyromanik> Terr, what is the issue again?
650: [22:29:48] <helenclarko> Wanna send me the link to the log, I'll see if I can find what I did exactly.
651: [22:30:02] <harry1_> https://silverstripe.logged.nz/index.php?date=2015-02-24
652: [22:30:10] <Pyromanik> You've asked an X=>Y question :<
653: [22:30:34] <Pyromanik> harry1_, your message is the exact opposite of cryptic.
654: [22:31:13] <harry1_> this is what I've done am i way off target?
655: [22:31:14] <harry1_> http://www.sspaste.com/paste/show/56c4f49610bc7
656: [22:31:16] <Pyromanik> You have a list of things that are NOT saved.
657: [22:31:30] <harry1_> how do i save them?
658: [22:31:32] <Pyromanik> ie, data that doesn't exist yet.
659: [22:31:39] <Pyromanik> ->save() perhaps, dunno.
660: [22:31:43] <Pyromanik> api.silverstripe.org
661: [22:32:14] <harry1_> i wouldn't even know how to not save something
662: [22:32:18] <Pyromanik> <Terr> Hey, does anyone here know how to make Resources that have a type Link go to the Link URL instead of a page that just prints out the URL link?
663: [22:32:24] <Pyromanik> 1) what do you mean by 'Resources'
664: [22:32:48] <Pyromanik> and 2) I've never come across a link that links to a page with a link on it to the link you want.
665: [22:33:09] <Pyromanik> harry1_, when you create stuff.
666: [22:33:15] <Pyromanik> usually programatically.
667: [22:33:24] <Pyromanik> It isn't put in the database instantly.
668: [22:33:39] <Pyromanik> it's held in memory.
669: [22:33:45] <Pyromanik> You're loading a list from memory.
670: [22:33:56] <Pyromanik> err *displaying to the user*
671: [22:34:51] <harry1_> so there must be a way to dump the unsaved stuff, is it in cache or server memory perhasp
672: [22:35:51] <Pyromanik> database.
673: [22:35:55] <Pyromanik> its called 'saving
674: [22:35:56] <Pyromanik> '
675: [22:36:13] <Pyromanik> :P
676: [22:37:48] <Pyromanik> Terr, you've described non-default behaviour from what I can tell, so it really depends more on what someone has done before you :<
677: [22:38:25] <Pyromanik> harry1_, https://docs.silverstripe.org/en/3.1/developer_guides/model/relations/#relations-on-unsaved-objects
678: [22:38:56] <Pyromanik> the object you're trying to manage the list on is probably the one that doesn't exist.
679: [22:38:59] * CodeTrap quit (Ping timeout: 240 seconds)
680: [22:39:02] <Pyromanik> sorry, got a bit confused there
681: [22:39:17] <Pyromanik> docs ftw :>
682: [22:39:52] <Pyromanik> so at a guess, you've clicked "Create new <blah>" and then gone to "add new <blah>" on some gridfield within that object you're creating.
683: [22:39:56] <harry1_> I'm reading but it's further confusing me
684: [22:40:04] <Pyromanik> yes?
685: [22:40:14] <harry1_> I'm in model admin for "content blocks"
686: [22:40:21] <harry1_> I click to add a new Content Block
687: [22:40:23] <Pyromanik> oh gawd content blocks :<
688: [22:40:27] <harry1_> and then i see the error
689: [22:40:48] <helenclarko> harry1_: does it now allow you to save after wrapping your gridfield with if($this->ID){}?
690: [22:41:17] <harry1_> it allows me to click the add, but when i save I then get the other error I reported above
691: [22:43:55] <harry1_> can't find /0 in stage Stage IN POST /admin/block-admin/Block/EditForm/field/Block/add-multi-class/TestimonialContentBlock/ItemEditForm Line 851
692: [22:45:56] <harry1_> when i use SS I spend probably 5% of my time writing code and the other 95% what I can best illustrate with an analogy of slipping pieces of paper into slot and hoping for the best
693: [22:51:24] <Pyromanik> harry1_, is this some kind of hierarchial content blocks?
694: [22:51:29] <helenclarko> harry1, so I did have the original issue, just not the can't find /0 in stage Stage IN POST /admin/block-admin/Block/EditForm/field/Block/add-multi-class/TestimonialContentBlock/ItemEditForm Line 851
695: [22:51:29] <Pyromanik> which one are you using?
696: [22:51:50] * joelpittet has joined #silverstripe
697: [22:51:59] <harry1_> Pyromanik: I have extended the Content Blocks and made my own
698: [22:52:03] <harry1_> let me make a Paste
699: [22:52:08] <Pyromanik> well, there's your problem! xD
700: [22:52:26] <Pyromanik> (I don't mean to be demeaning, content blocks is fucking tricky voodoo for the most part is what I mean)
701: [22:52:48] <Pyromanik> harry1_, so... is it hierarchial?
702: [22:52:57] <Pyromanik> Are you trying ot add a content block in a content block?
703: [22:53:09] <Pyromanik> Because that'd cause it.
704: [22:53:12] <harry1_> http://www.sspaste.com/paste/show/56c4f9cf2887c
705: [22:53:32] <harry1_> now that above worked perfectly ^
706: [22:53:47] <Pyromanik> Yeah but you're misunderstanding.
707: [22:53:52] <Pyromanik> It's nothing to do with the _code_.
708: [22:53:59] <Pyromanik> it's to do with the _usecase_
709: [22:54:18] <harry1_> then I simply did nothing more than make another class - TestimonialContentBlock extends MyContentBlock
710: [22:54:21] <Pyromanik> The input is different.
711: [22:54:37] <Pyromanik> the output fails.
712: [22:54:41] <harry1_> and now I have a broken CMS
713: [22:54:47] <Pyromanik> so it's time to question what is different about the input
714: [22:56:18] <harry1_> I''ve removed the class that broke my cms and rebuilt flushed but still everything is broken
715: [22:56:34] <Pyromanik> what is error?
716: [22:56:55] <Pyromanik> also: // this extends MyContentBlock - we do this to give us a a unique template - sidebarContentBlock.ss
717: [22:57:12] <Pyromanik> $template = ['Template', 'List'];
718: [22:57:20] <Pyromanik> private, public, I forget, but it's there.
719: [22:57:51] <Pyromanik> more than one ways to skin a cat. Depends on your usecase and all that though.
720: [22:58:38] <Pyromanik> sometimes subclassing provides clarity via classnames for particular domains.
721: [22:58:39] <harry1_> this is likely extremely frustrating for you becuase I am not up to speed
722: [22:59:03] <Pyromanik> Yeah, the biggest issue is really that you've just jumped in the deep end. But it's far from frustrating.
723: [22:59:34] <Pyromanik> Frustration comes when people do what you've done and then blame us for their shortcomings. At least you recognise what you've done and are willing to accept help, not just vent criticisims :)
724: [22:59:45] * harry1 has joined #silverstripe
725: [22:59:58] <harry1> sorry lost connection there
726: [23:00:01] * ss-helper quit (Remote host closed the connection)
727: [23:00:10] <Pyromanik> <harry1_> this is likely extremely frustrating for you becuase I am not up to speed
728: [23:00:11] <Pyromanik> <Pyromanik> Yeah, the biggest issue is really that you've just jumped in the deep end. But it's far from frustrating.
729: [23:00:11] <Pyromanik> <Pyromanik> Frustration comes when people do what you've done and then blame us for their shortcomings. At least you recognise what you've done and are willing to accept help, not just vent criticisims :)
730: [23:00:11] <Pyromanik> * harry1 (97e11f78@gateway/web/freenode/ip.151.225.31.120) has joined
731: [23:00:15] * ss-helper has joined #silverstripe
732: [23:01:52] <harry1> I struggle with the concept that adding an identical class and changing it's name breaks things
733: [23:02:03] <Pyromanik> and I'm telling you it doesn't.
734: [23:02:27] <Pyromanik> Give to me the error please
735: [23:02:45] <harry1> [User Warning] GridFieldManyRelationHandler requires the GridField to have a RelationList. Got a UnsavedRelationList instead.
736: [23:02:52] <Pyromanik> No, that's a warning.
737: [23:02:58] <Pyromanik> you said the CMS was broken.
738: [23:03:04] * harry1_ quit (Ping timeout: 252 seconds)
739: [23:03:28] <harry1> sorry, only when i try to add a content block
740: [23:04:00] <Pyromanik> What version of SS are you using?
741: [23:04:29] * lerni quit (Remote host closed the connection)
742: [23:04:42] <harry1> 3.2
743: [23:05:02] <Pyromanik> ok, and _where_ are you when you click the 'add' button?
744: [23:05:04] <harry1> at least that is what opens if i click Help in my CMS
745: [23:05:21] <Pyromanik> oh, hover the cursor over the SS logo in the top left
746: [23:05:21] <harry1> Model Admin for Content Blocks
747: [23:05:23] <Pyromanik> that'll tell you
748: [23:05:26] <harry1> linked form the left hand menu
749: [23:05:39] <Pyromanik> did you build this site?
750: [23:05:41] <harry1> 3.2.1
751: [23:05:53] <harry1> yes from scartch
752: [23:05:58] <harry1> scratch
753: [23:06:02] <Pyromanik> which content blocks module did you use?
754: [23:06:11] <Pyromanik> or none/custom?
755: [23:06:17] <harry1> silverstripe-blocks-master
756: [23:06:24] <Pyromanik> from whom though?
757: [23:06:50] <harry1> https://github.com/sheadawson/silverstripe-blocks
758: [23:06:55] <Pyromanik> righot
759: [23:06:59] <Pyromanik> righto*
760: [23:08:29] * spronk quit (Quit: I may need a longer sleep timer...)
761: [23:11:00] <Pyromanik> harry1, are you adding a block, or a blockset?
762: [23:11:10] <harry1> block
763: [23:11:33] <Pyromanik> oh, err... are you adding this block TO a BlockSet?
764: [23:11:43] * Stomach quit (Quit: zzz)
765: [23:12:31] <harry1> what is a blockset?
766: [23:12:46] <Pyromanik> dunno, docs are a bit short on that :(
767: [23:13:27] <harry1> I've not been dealing with BlockSets
768: [23:13:29] <harry1> on Blocks
769: [23:13:55] <harry1> btw the other Blocks I created wwhich extend the plugin were working perfectly
770: [23:14:09] <harry1> in the cms and within my templates
771: [23:14:13] <Pyromanik> You can also define "BlockSets" in the Blocks model admin. BlockSets can be used to apply a common collection of blocks to pages that match the criteria you define on the set.
772: [23:14:23] <harry1> EXCATLY how I wanted and expected them to
773: [23:14:34] <harry1> ok
774: [23:14:48] <Pyromanik> does this new block type have any relations?
775: [23:15:04] <harry1> none
776: [23:16:26] <Pyromanik> Because it sounds like you're trying to add a block to an unsaved blockset
777: [23:16:37] <Pyromanik> That could cause that issue
778: [23:16:39] * spronk has joined #silverstripe
779: [23:17:18] <harry1> I don't really understand that
780: [23:17:24] <harry1> what that means,,,
781: [23:17:26] <Pyromanik> Well...
782: [23:17:34] <Pyromanik> so you have nothing
783: [23:18:02] <Pyromanik> in your database
784: [23:18:23] <Pyromanik> and you make an object, but you don't save it.
785: [23:18:36] <Pyromanik> then you try to add related objects to that object.
786: [23:18:42] * Stomach has joined #silverstripe
787: [23:18:51] <Pyromanik> but it's not saved. So it's relation gives you an UnsavedRelationList
788: [23:19:04] <Pyromanik> nothing is in the database.
789: [23:19:13] <Pyromanik> if you save the first object, you'll be fine.
790: [23:19:17] <harry1> other said i should add an If($this->ID) around my add gridfield
791: [23:19:21] <Pyromanik> you can add objects to it all day long.
792: [23:19:39] <Pyromanik> Yep, but that's because they're assuming you have relationships on your object.
793: [23:20:04] <Pyromanik> but it might not be your object that is causing the error, by the sounds of it.
794: [23:20:15] <Pyromanik> have you tried updating the site's modules with composer?
795: [23:20:30] <Pyromanik> sometimes that fixes problems/
796: [23:20:44] <harry1> i haven't no - i'm on a local win box running WAMP
797: [23:21:12] <Pyromanik> Might be worth a try. If you're doing it manually just grab a new zip of master or something
798: [23:21:17] <Pyromanik> from github.
799: [23:21:23] <Pyromanik> (for that module)
800: [23:21:30] <Pyromanik> of course back up before you do!
801: [23:23:46] <harry1> if i hadn't spent so long getting the content blocks plugin working I would just delete it and move on
802: [23:23:49] <harry1> but too far gone
803: [23:24:45] <harry1> pulled down the latest commit but the same
804: [23:24:56] <Pyromanik> :<
805: [23:25:13] <Pyromanik> can I see the class of the thing you're trying to add?
806: [23:25:21] <Pyromanik> is it that one class only? Are other classes working fine?
807: [23:25:36] <Pyromanik> (even after you've created that class and it's in the list of things you can add?)
808: [23:25:56] <Hailwood> Can an extension remove something from a private static array or only add?
809: [23:26:09] <Pyromanik> supplement.
810: [23:26:12] <Pyromanik> iirc
811: [23:26:56] <harry1> http://www.sspaste.com/paste/show/56c501bb06aca
812: [23:27:50] <Hailwood> Hmm, Ok so I'm spitting out a summary of a list of data objects, I want to add the ability to control what goes in this summary, so I'm either adding a "exlude_from_summary" key, or an "include_in_summary" key. Thoughts on what is better?
813: [23:28:15] <Pyromanik> why bother, there's already a provision for summary?
814: [23:28:43] <Pyromanik> that, or explain in more depth please
815: [23:28:51] <Hailwood> Pyromanik, summary might be the wrong word, basically a json representation of the DataObject
816: [23:29:11] <Pyromanik> right, (iirc) private static $summary_fields
817: [23:29:14] <Hailwood> but obviously things like "HasBrokenLink" and "CanViewType" are stuff that it doesn't make much sense to include
818: [23:29:37] <Pyromanik> iirc the same thing that gridfield uses to auto build field lists
819: [23:29:55] <Hailwood> Yeah, but I don't want this json representation to affect what columns get shown in the CMS in gridfields so that options out
820: [23:30:20] <Pyromanik> Not really.
821: [23:30:37] <Hailwood> Not really?
822: [23:30:40] <Pyromanik> Not really.
823: [23:30:59] <Pyromanik> Gridfield does soem weird stuff man, you should check it out.
824: [23:31:12] <Pyromanik> it uses summary_fields, but also some other config item.
825: [23:31:14] <Pyromanik> iirc
826: [23:31:23] <Pyromanik> so you could use one for one and the other for the other, perhaps.
827: [23:31:43] <Pyromanik> that or provide a method that gives gridfield it's summary, but use the summary_fields for your doodacky
828: [23:31:43] <Hailwood> Hmm, I don't remember seeing anything else related to gridfields other than export_columns
829: [23:32:46] <Pyromanik> harry1, so the CMS works when this class exists, and lists it in the menu and all, but only when you crate one it fails?
830: [23:32:57] <harry1> correct
831: [23:33:12] <Pyromanik> it's ContentBlockImage.
832: [23:33:22] <Pyromanik> Not sure why, but that'll PROBABLY be it.
833: [23:33:31] <Pyromanik> try the if $this.ID thing
834: [23:33:39] <Pyromanik> on MyContentBlock
835: [23:33:40] <harry1> if i try to add the Parent type, the original Content Type it allows to click the add but when I save: can't find /0 in stage Stage IN POST /admin/block-admin/Block/EditForm/field/Block/add-multi-class/TestimonialContentBlock/ItemEditForm Line 851
836: [23:34:05] <Pyromanik> yeah, MyContentBlock is the thing with the many_many relation.
837: [23:34:32] <Pyromanik> since your MyContentBlock is unsaved, the contents of the many_many is an UnsavedRelationList (particularly if you've added images to it already).
838: [23:34:40] <harry1> like this: http://www.sspaste.com/paste/show/56c503885ddb7
839: [23:34:42] <harry1> ?
840: [23:34:44] <Pyromanik> oh yeah
841: [23:34:45] <Pyromanik> I see
842: [23:34:57] <Pyromanik> try if $this->exists()
843: [23:35:04] * Pyromanik shrugs
844: [23:35:14] <Pyromanik> dunno man, that one has me stumped too :<
845: [23:35:29] <Pyromanik> Try asking DanaeNZ
846: [23:35:34] <Pyromanik> She knows the story.
847: [23:36:05] <harry1> that allows me to get to the point where I can add
848: [23:36:32] <harry1> but then also when I save gives me: can't find /0 in stage Stage IN POST /admin/block-admin/Block/EditForm/field/Block/add-multi-class/TestimonialContentBlock/ItemEditForm Line 851
849: [23:37:56] <harry1> Pyromanik: i think i might have fixed it
850: [23:38:12] <Pyromanik> harry1, I think you should move _ALL_ the gridfield code inside the if :P
851: [23:38:16] <harry1> i deleted some entried in MyContentBlock_ContentBlockImage
852: [23:38:17] <Pyromanik> ie, config shit too
853: [23:38:17] <helenclarko> looks like im reading an old point and click adventure game. "try the if $this.ID thing on MyContentBlock"
854: [23:38:38] <Pyromanik> helenclarko, point and click?
855: [23:38:44] <Pyromanik> I think you mean type.
856: [23:38:50] <Pyromanik> :>
857: [23:39:00] <helenclarko> ^that
858: [23:39:09] * Pyromanik heads off to play Leisure Suit Larry
859: [23:39:11] <Pyromanik> xD
860: [23:39:42] <helenclarko> I tried mad dog williams the other night. Totally lost my shit!!
861: [23:40:00] <Pyromanik> harry1, might have some cleanup stuff to do on onBeforeDelete with images.
862: [23:40:22] <Pyromanik> if you've re-used a relation, etc. could cause issues.
863: [23:40:30] <harry1> seems so
864: [23:40:47] <Pyromanik> because you've got images associated with your object via re-use of an ID probably
865: [23:40:59] <Pyromanik> which normally shouldn't happen though, but with all the debugging :<
866: [23:41:01] <Pyromanik> dunno
867: [23:41:17] <harry1> I deleted the enteries which had ImageId=0
868: [23:41:17] <Pyromanik> anyway, so the images being related to the ID you're trying to save gives them a list or IDK
869: [23:41:19] <Pyromanik> yep
870: [23:41:21] <Pyromanik> that's the one
871: [23:41:38] <Pyromanik> they think they're related to the unsaved, so SS is trying to put them in a list, and gridfield is going NOPE
872: [23:41:51] <Pyromanik> database ethics!
873: [23:41:54] <Pyromanik> or something :/
874: [23:41:57] <Pyromanik> idk
875: [23:42:03] <harry1> is it correctt that I have ImageID and ContentBlockImageID columns
876: [23:42:04] <Pyromanik> they should be nullable.
877: [23:42:16] <Pyromanik> and set to NULL if no relation, or 0 IFF unsaved.
878: [23:42:18] * Terr quit (Ping timeout: 252 seconds)
879: [23:42:39] <Pyromanik> Yep. Should be in it's own table though, because many_many
880: [23:42:48] <Pyromanik> the join table
881: [23:43:04] <harry1> many thanks for helping me troubleshoot this
882: [23:43:08] <Pyromanik> MyContentBlock_ContentBlockImage table
883: [23:43:23] <Pyromanik> harry1, so yeh, like I initially said :P
884: [23:43:36] <Pyromanik> Nothing to do with the code :P
885: [23:43:42] <Pyromanik> and it was the data :>
886: [23:43:47] <harry1> i have an early morning flight in about 6 hours so I can rest now, otherwise I would have just sat here before throwing my screen at the wall
887: [23:43:59] <Pyromanik> early morning in 6 hours...
888: [23:44:05] <Pyromanik> Ah, I remember, you're in the UK aren't you?
889: [23:44:08] <harry1> I am
890: [23:44:14] <Pyromanik> Yeah, we've chat before.
891: [23:44:24] <harry1> many moons ago
892: [23:44:32] <Pyromanik> Well, like... 4.
893: [23:44:50] <harry1> it was about 18 months ago you helped me on some basics
894: [23:45:01] <Pyromanik> You're in like... brummytown right?
895: [23:45:13] <Pyromanik> or south midlands?
896: [23:45:35] <harry1> London
897: [23:45:38] <Pyromanik> Anyway, you should do that few hours of shuteye thing.
898: [23:45:40] <Pyromanik> oh, ha
899: [23:45:49] <Pyromanik> did you go to the conference?
900: [23:46:12] <harry1> i didn't, i think it was in Newcastle
901: [23:46:16] <Pyromanik> I helped a few folk on here in the UK, they all seemed to be mid-country types though
902: [23:46:27] <Pyromanik> Nope, I was in Newcastle, haha. Conference was in London.
903: [23:46:46] <harry1> i took some time out away from SS
904: [23:46:54] <harry1> but jumped back on it recently
905: [23:46:59] <harry1> are there any more coming up
906: [23:47:04] <Pyromanik> In any case they have periodic meetups each month or so. Perhaps check one out :)
907: [23:47:17] <Pyromanik> Yeh the london meetup group seem reasonably active.
908: [23:47:33] <Pyromanik> There'll probably be another conference around the end of the year sometime or something, but not in London.
909: [23:47:52] <Pyromanik> Firesphere lives in NZ now though, so dunno. I have faith in the other lads though :>
910: [23:48:05] <Pyromanik> (it's pan-EU)
911: [23:48:16] <harry1> i think i am still on the mailing list and get the alerts about the meetupsd
912: [23:48:20] <Pyromanik> (the conference that is_
913: [23:48:21] <Pyromanik> )
914: [23:48:33] <harry1> afraid i might not be mentally sharp enough though for those guys
915: [23:48:41] <Pyromanik> nah, get all sorts in.
916: [23:48:52] <Pyromanik> even the conference had a nice wide range of technical => not so technical.
917: [23:49:05] <harry1> good to know
918: [23:49:14] <harry1> ok I am going to disappear
919: [23:49:14] <Pyromanik> managers, frontends, backends, hardcore guys, support crew, the lot.
920: [23:49:17] <Pyromanik> g'nite
921: [23:49:19] <harry1> thanks again, nice chatting
922: [23:49:30] <harry1> 0/
923: [23:49:34] <Pyromanik> o/
924: [23:49:49] * harry1 quit (Quit: Page closed)
925: [23:49:50] * Pyromanik goes to do his own work now
926: [23:49:56] <Pyromanik> gbye
927: [23:49:59] * Pyromanik quit (Quit: Leaving)
928: [23:53:06] <DanaeNZ> i was at lunch
929: [23:53:12] <DanaeNZ> it was amazing
930: [23:56:12] * gelignite quit (Quit: http://bit.ly/1kso8Ta)

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