#silverstripe IRC Log

IRC log for 11 December 2013

All timestamps are in UTC.

1: [00:03:48] * CodeTrap has joined #silverstripe
2: [00:07:10] * kerosene quit (Quit: bbl)
3: [00:21:50] * mwm has joined #silverstripe
4: [00:24:25] <mwm> hey, having an issue with the default SS .htaccess. The rewrite is working on all pages except the home page (www.website.com/). Anyone know why? It was working before, and now it stopped working...
5: [00:24:58] * violetina quit (Remote host closed the connection)
6: [00:28:47] * simon_w has left #silverstripe
7: [00:45:51] <wracu> Hi, I'm trying to figure out how I can implement am OK/Cancel prompt when a custom button is pressed on a DataObject in the CMS. Can anyone offer any tips that might point me in the right direction?
8: [00:58:19] * travis-ci has joined #silverstripe
9: [00:58:19] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1655 (3.1 - d81c357 : Sean Harvey): The build passed.
10: [00:58:19] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/3566581a860d...d81c3570aff9
11: [00:58:20] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/15259048
12: [00:58:20] * travis-ci has left #silverstripe
13: [01:23:19] * Colin[pi] has joined #silverstripe
14: [01:38:52] * Ryan-Toast quit (Quit: Ryan-Toast)
15: [01:47:02] * Ryan-Toast has joined #silverstripe
16: [01:51:53] * UncleCheese quit (Quit: UncleCheese)
17: [02:00:38] * zippy__ has joined #silverstripe
18: [02:07:10] * Liquide has joined #silverstripe
19: [02:09:06] * chillu quit (Quit: chillu)
20: [02:13:11] * variable_office has joined #silverstripe
21: [02:16:20] <variable_office> If I have a class that has_many of another class, but I want to create an extra parameter for that class, ie. Recipe has_many Ingredient each with a Quantity. what is the best way to do this? just have an intermediate class of RecipeIngredients that extends Ingredients and has an extra parameter of QTY?
22: [02:20:10] <zippy__> many many with the quantity on the pivot table
23: [02:27:46] <Bollig|DesignCty> variable_office: many_many extra fields. Same way as sort is implemented as far as I can see?
24: [02:32:53] <variable_office> zippy__, do you have any example or docs on this, I am having a hard time finding a reference to this methodology on the silverstripe website
25: [02:36:34] <variable_office> actually think I found something, but can you define _extrafields on other class vars besides many_many, ie. will it work on has_many
26: [02:36:36] <variable_office> ?
27: [02:38:10] <mwm> variable_office: here is the api doc for many_many_extrafields: http://api.silverstripe.org/3.1/source-class-DataObject.html#3529
28: [02:38:44] <mwm> in has_many, since the element can only belong to one parent, there is no need for extra fields because all the fields should be defined on the child record
29: [02:39:32] * UncleCheese has joined #silverstripe
30: [02:49:07] * Liquide quit ()
31: [02:59:09] * nickmolhoek quit (Quit: nickmolhoek)
32: [03:01:59] <pippy> why is silverstripe 3.1 so slow
33: [03:02:09] <pippy> 1 sec to generate pages on a fresh install?
34: [03:04:06] * SightUnseen has joined #silverstripe
35: [03:09:08] * SightUnseen has left #silverstripe
36: [03:11:44] <Colin[pi]> pippy: that's actually fast compared to some instances I've seen, are you using a php cache?
37: [03:20:08] <irogue_> yeah, 3.1 barely runs without xcache or APC
38: [03:20:35] <irogue_> but on the plus side, if you do have xcache/APC, it's a buttload faster than 2.4
39: [03:20:51] <pippy> no cache
40: [03:20:57] <pippy> huh, i didn't know that
41: [03:21:28] <pippy> i'll give that a go :)
42: [03:24:22] <Colin[pi]> pippy: yeah I was pleasantly surprised, the cache makes a HUGE difference
43: [03:24:41] <Colin[pi]> I might local box each click used to take like 2 seconds... now it's *clickclickclickclickclickclickclick*
44: [03:24:52] <Colin[pi]> wtf.. I might = "on my"
45: [03:34:22] <irogue_> fuck yeah snap
46: [03:34:29] <irogue_> just launched 200Mbps UFB plans
47: [03:35:47] * simon_w|air has joined #silverstripe
48: [03:41:17] <wracu> wow. my hdd write speed will soon be the limiting factor haha
49: [03:45:49] * DigNZ quit (Quit: DigNZ)
50: [03:50:18] <simon_w|air> Whoa, there's finally plans faster than what I get without being on UFB
51: [03:51:13] <simon_w|air> irogue_, is it 200 symmetric?
52: [03:53:57] * wracu quit (Ping timeout: 272 seconds)
53: [03:58:16] <irogue_> simon_w|air: nah, 200/50 atm, tho i understand the final product is expected to be 200/100
54: [03:59:01] <Colin[pi]> lol: http://i.imgur.com/S9aiqvy.jpg
55: [04:00:04] <irogue_> tc cable is 10mbps up tho so that's still quite an improvement :P
56: [04:00:16] <irogue_> Colin[pi]: haha
57: [04:01:14] <simon_w|air> irogue_, I wonder how VF's going to respond. I'm already on 130 down. Maybe they'll finally give some up...
58: [04:04:05] <irogue_> simon_w|air: yeah. 4-channel DOCSIS 3 (which i believe is TC's setup) is 150Mbps down, 100 Mbps up
59: [04:04:09] <irogue_> so they're artifically limiting it
60: [04:05:04] <irogue_> tho they could be using assymetric channels, but even so, single upstream channel would be 25Mbps, not 10
61: [04:08:46] <Colin[pi]> welp: http://www.theguardian.com/business/2013/dec/11/holden-confirms-leaving-australia-cars
62: [04:08:58] * cloph_away quit (Ping timeout: 246 seconds)
63: [04:09:46] <irogue_> yep
64: [04:10:00] <Colin[pi]> not surprising though
65: [04:10:04] <irogue_> bogans of australia won't know what to do
66: [04:10:07] <irogue_> first Ford, now Holdedn
67: [04:10:11] <Colin[pi]> lol
68: [04:10:22] <Colin[pi]> what will happen to V8 Supercars?!
69: [04:10:41] <irogue_> it'll likely keep going
70: [04:10:46] <irogue_> the cars aren't Fords or Holdens anyway
71: [04:10:55] <Colin[pi]> yeah I know ;)
72: [04:10:59] <UncleCheese> Nelson Mandela was so versatile.. https://www.youtube.com/watch?v=yE8e3IVM1Xk
73: [04:11:01] <irogue_> they all run the same custom-made-for-V8Supercars engine
74: [04:11:21] <irogue_> and same chassis
75: [04:11:29] <irogue_> just with a body kit to make them look like a commie or falcon
76: [04:12:08] <Colin[pi]> UncleCheese: rofl
77: [04:12:20] <UncleCheese> i can't get through it without ripping out my headphones
78: [04:12:29] <UncleCheese> the cring-ness is just too much
79: [04:12:44] <Colin[pi]> I wish I could have seen the host's face at that moment
80: [04:13:49] * cloph_away has joined #silverstripe
81: [04:18:54] * pyromaniik has joined #silverstripe
82: [04:19:28] * zippy__ quit (Ping timeout: 246 seconds)
83: [04:19:58] <pyromaniik> omfg just connected to "moorcock" (.freenode.net)
84: [04:21:58] <pyromaniik> lol how long is the sminnee & escapeartist gonna last?
85: [04:21:58] * kerosene has joined #silverstripe
86: [04:23:40] <Snowman23> wow pyromaniik
87: [04:23:44] <Snowman23> TILL DEATH DO THEY PART.
88: [04:24:15] <pyromaniik> if it gets left up long enough it will come to be justified again... did they set a date yet?
89: [04:24:58] <irogue_> yeah, 21st dec, the hackfest is secretly a wedding :P
90: [04:25:21] <pyromaniik> oh... teaching parents not to be bad at internet.
91: [04:26:09] <Snowman23> WHO IS EVEN COMING TO THAT HACKFEST?
92: [04:26:10] <Snowman23> >.>
93: [04:27:47] <Colin[pi]> YOUR MOMMA
94: [04:28:24] <pyromaniik> "you should use that chrome icon instead of internet explorer seven because its not completely shit" ... "it's only become a problem since that fuck'n thing's been there!"
95: [04:29:46] <pyromaniik> Snowmman23: i went through wellington already. not planning to come back for a couple of years.
96: [04:30:35] <Snowman23> :(
97: [04:30:38] <Snowman23> pyromaniik: You in England yet?
98: [04:30:54] <irogue_> Snowman23: hopefully, me
99: [04:31:02] <Snowman23> :D
100: [04:31:03] <irogue_> as long as clients pay me on time...
101: [04:31:06] <Snowman23> XD
102: [04:31:14] <pyromaniik> Snowman23: close... Taranaki!
103: [04:31:21] <Snowman23> pyromaniik: ew.
104: [04:31:22] * CodeTrap quit (Ping timeout: 246 seconds)
105: [04:31:46] <pyromaniik> taranaki great place
106: [04:31:52] <Snowman23> I hate small towns.
107: [04:31:53] * simon_w|air quit (Quit: This computer has gone to sleep)
108: [04:32:08] <pyromaniik> just deal with it
109: [04:32:30] <Snowman23> :P
110: [04:32:33] <Snowman23> I do, by not going there.
111: [04:32:41] <pyromaniik> taranaki is a proverence... not a small town.
112: [04:32:53] <Snowman23> Whatever you call it, it sucks
113: [04:32:54] <Snowman23> :P
114: [04:32:57] * CodeTrap has joined #silverstripe
115: [04:33:14] <pyromaniik> nah. cruisy as.
116: [04:33:38] <Snowman23> I HATE CRUISY
117: [04:33:45] <Snowman23> I want my AC enriched apartment where I can order in 24/7
118: [04:33:46] <Snowman23> never go outside
119: [04:33:57] <Snowman23> If I do go outside, I want to have trains and shit at my door to transport me anywher
120: [04:34:00] <Snowman23> etc
121: [04:34:26] <pyromaniik> you love the stress and anal retentiveness of large city residents?
122: [04:34:39] <Snowman23> Residents?
123: [04:34:41] <Snowman23> What do you mean?
124: [04:34:49] <Snowman23> I don't go outside, what are "residents"?
125: [04:34:53] <Snowman23> The guy who delivers my pizza is fine
126: [04:34:59] <irogue_> he's probably high
127: [04:35:03] <Snowman23> XD
128: [04:35:09] <irogue_> lets be honest, who'd deliver pizzas otherwise
129: [04:35:11] <pyromaniik> oh i see. you just want ricketts.
130: [04:35:13] <irogue_> and it's wellington
131: [04:35:36] <Snowman23> pyromaniik: I get a fuckton of bloodtests for the diabetes -- I've not be deffiecent in anything but vitamin d
132: [04:35:40] <Snowman23> ^.^
133: [04:35:50] <Snowman23> Nutrition is a lie, bro
134: [04:35:53] <Snowman23> Pizza is all goooooood
135: [04:36:02] <pyromaniik> irouge_: nah not stoned. or he'd turn up late with no pizza.
136: [04:36:10] <irogue_> lol
137: [04:36:25] <irogue_> there was an ep of Undercover Boss
138: [04:36:28] <irogue_> owner of a pizza chain
139: [04:37:05] <pyromaniik> lol snowman23: tell me nutrition is a lie if you make it to thirty :P
140: [04:37:08] <irogue_> was with a delivery driver, he's like "the best part of this job are the tips... my area is the student district, so heaps of people invite me in for some weed as my tip"
141: [04:37:24] <Snowman23> hahhaha
142: [04:37:29] <irogue_> pyromaniik seems particularly uptight today. naki can't be very cruisey :P
143: [04:37:33] <Snowman23> ^^
144: [04:37:40] <Snowman23> "cruisy", but doesn't wanna just eat pizza.
145: [04:38:18] <pyromaniik> oh lol undercover boss so good (well, best of all shit reality shows)
146: [04:38:53] <pyromaniik> although admittedly i've never seen it.
147: [04:39:48] <pyromaniik> irogue, nah just constantly running out of time for shit and getting stressed.
148: [04:40:56] <pyromaniik> snowman23: i havent wanted pizza beer or BURGERS since damaging myself :<
149: [04:43:02] <pyromaniik> i have computers to sort out, bags to pack and grandparents to visit. and get to akl as i leave on tuesday.
150: [04:43:51] <pyromaniik> and this irc client has no tab complete eqiv. and it annoys me slightly.
151: [04:45:53] * Ryan-Toast quit (Quit: Ryan-Toast)
152: [04:45:53] <pyromaniik> but otherwise it's the best
153: [04:46:17] <pyromaniik> yaaic ftw
154: [04:46:53] <pyromaniik> you're all boring because no talk to me :(
155: [04:47:00] <pyromaniik> ciao
156: [04:47:25] <Colin[pi]> well fuck you very much
157: [04:47:26] <Colin[pi]> ;D
158: [04:47:42] <pyromaniik> have a good time in wellingtonnes irouge_
159: [04:48:03] <irogue_> hopefully
160: [04:48:04] <irogue_> :P
161: [04:48:08] <pyromaniik> colin pies you fat bastard :D
162: [04:48:30] <Colin[pi]> :D :D
163: [04:48:47] <Colin[pi]> mmm, pie
164: [04:49:04] <pyromaniik> exactly :p
165: [04:49:15] <Colin[pi]> now I'm hungry, prick
166: [04:49:47] <pyromaniik> World's best pies right here in South Taranaki.
167: [04:50:11] <Colin[pi]> doesn't every bakery advertise "World's Best Pies?" :)
168: [04:50:28] <pyromaniik> stuff that in your ... take that Snowman23
169: [04:51:42] <pyromaniik> oh but Colin[pi], this is independently judged and verified!
170: [04:51:54] <Colin[pi]> so bribed
171: [04:51:54] <Colin[pi]> ;D
172: [04:52:23] <pyromaniik> no I wasn't!
173: [04:52:34] <Snowman23> pyromaniik: I DON'T EAT THAT MANY PIES.
174: [04:53:08] * kerosene quit (Quit: leaving)
175: [04:53:20] * Ryan-Toast has joined #silverstripe
176: [04:53:48] <pyromaniik> Snowman23 I DON'T DEAL WITH THAT KINDA LIES.
177: [04:54:38] <Snowman23> pyromaniik: BE CAREFUL WHEN YOU BAKE OR YOUR BREAD WON'T RISE
178: [04:56:29] <pyromaniik> Snowman23: BE CAREFUL WHEN YOU INSECT OR YOU MIGHT WAN'T FLIES
179: [04:56:46] <guzzlefry> 0.o
180: [04:56:57] <guzzlefry> Did you two start a band?
181: [04:57:27] <Snowman23> pyromaniik: GOTTA WATCH VIDEOS AND LEARN HOW TO TIE TIES.
182: [04:57:30] * UncleCheese quit (Quit: UncleCheese)
183: [04:57:55] * mwm quit (Ping timeout: 272 seconds)
184: [04:58:27] <pyromaniik> Snowman23: YOU GOTTA WATCH VIDEOS TO LEARN HOW TO MAKE FLY PIES
185: [04:58:49] <pyromaniik> bake pies?
186: [04:59:00] <Snowman23> wow
187: [04:59:04] <Snowman23> You reused the pies.
188: [04:59:07] <pyromaniik> pies don't rise!
189: [04:59:33] <Snowman23> "It's time to evolve competition"
190: [04:59:34] <pyromaniik> they are not zombies
191: [04:59:39] <Snowman23> Help I think this client is in love with Pokemon.
192: [05:00:06] <pyromaniik> maybe? is their name Ash?
193: [05:00:15] <guzzlefry> Snowman23: Are you installing Ubuntu?
194: [05:00:41] <pyromaniik> or rather Jessie? or James?
195: [05:02:26] <Snowman23> guzzlefry: Nope?
196: [05:02:28] <Snowman23> Why would I?
197: [05:03:13] <pyromaniik> why would anyone?
198: [05:03:21] <Snowman23> Because it's a nice distro
199: [05:03:22] <Snowman23> ^.^
200: [05:03:35] <pyromaniik> lies.
201: [05:03:35] <guzzlefry> Snowman23: I thought you were referencing that XKCD comic...
202: [05:03:54] <Snowman23> hahaha
203: [05:04:24] <pyromaniik> ubuntu is as much a nice distro as gentoo is newbie friendly.
204: [05:05:02] <Snowman23> rofl @ that pokemon xckd, the alt text
205: [05:05:04] <Snowman23> >firefox 2.0
206: [05:05:22] <pyromaniik> wut
207: [05:05:48] <pyromaniik> needs more links.
208: [05:06:45] <Snowman23> http://xkcd.com/178/
209: [05:11:43] <irogue_> http://www.reddit.com/r/CatsStandingUp/comments/1skp56/cat/
210: [05:11:49] <irogue_> the dedication in that subreddit cracks me up
211: [05:12:53] * Ryan-Toast quit (Quit: Ryan-Toast)
212: [05:13:53] * openbees has joined #silverstripe
213: [05:14:45] * new_learner has joined #silverstripe
214: [05:18:33] <pyromaniik> dinner time! :D
215: [05:21:52] * openbees quit (Quit: Leaving)
216: [05:26:09] * guzzlefry has left #silverstripe
217: [05:34:09] * Colin[pi] quit (Ping timeout: 246 seconds)
218: [05:53:26] <new_learner> Fatal error: Hmm - depth calc wrong, hit negatives ??
219: [05:54:06] <new_learner> what is the above error about??
220: [05:54:13] <new_learner> how can i correct it?
221: [05:55:44] <new_learner> i have corrected it../...
222: [05:56:18] <new_learner> it was about braces.......
223: [05:57:10] <irogue_> new_learner: yeah, making that error more meaningful is being worked on
224: [05:58:17] <new_learner> hmm.....
225: [06:11:03] <variable_office> What is the consensus of when to have a class extend a page and when to have it extend dataobject. Essentially if there is a page for every object?
226: [06:12:49] * simon_w|air has joined #silverstripe
227: [06:31:58] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
228: [07:34:21] * new_learner quit (Ping timeout: 272 seconds)
229: [07:37:55] * willr has joined #silverstripe
230: [07:53:51] * zippy__ has joined #silverstripe
231: [08:06:58] * zippy__ quit (Quit: zippy__)
232: [08:12:12] * munk0r has joined #silverstripe
233: [08:25:27] * zippy__ has joined #silverstripe
234: [08:25:40] * SightUnseen has joined #silverstripe
235: [08:25:47] * SightUnseen has left #silverstripe
236: [08:27:25] <Snowman23> Guys
237: [08:27:32] <Snowman23> I have a standard dataobject, managed by ModelAdmin
238: [08:27:40] <Snowman23> no custom onBeforeWrite, though I've hooked that to var_dump
239: [08:28:01] <Snowman23> In the CMS, I set a value to Dec 30, 2013, but onBeforeWrite shows it being written as 2014-12-30
240: [08:28:20] * svandragt has joined #silverstripe
241: [08:28:26] <Snowman23> Any ideas how/w hy this would happen?
242: [08:32:27] <willr> what's your db field?
243: [08:34:56] <Snowman23> 'TakesEffect' => 'SS_DateTime',
244: [08:35:39] <Snowman23> Lines of "getCMSFields" look like https://gist.github.com/ss23/7906904
245: [08:35:48] <Snowman23> That's the only custom code that could affect it that I'm aware of
246: [08:37:14] <Snowman23> willr: I'm happy to var_dump the shit out of this, but I'm not sure where to.
247: [08:39:13] <willr> I would rule out something with date formats being funky by trying with a textfield / varchar to start with. Quick test to determine if it's somethings related to date
248: [08:39:36] <willr> cms format for dates not matching query picker or something
249: [08:40:09] <Snowman23> So, change getCMSFields to use a textfield, and change the DB to use a textfield too?
250: [08:40:16] <Snowman23> I'm like 99% sure it'll work if I do that
251: [08:40:17] <Snowman23> o.o
252: [08:40:22] <Snowman23> Because all the other text fields work
253: [08:41:08] <Snowman23> Indeed, willr
254: [08:41:35] <Snowman23> willr: My suspicion is it's just the date parsing in SS being completely fucekd, since I've hit bugs very similar many many times
255: [08:41:54] * david_b has joined #silverstripe
256: [08:41:55] <Snowman23> And yes, representing it as textfield (but storing as SS_datetime) works fine
257: [08:42:25] <simon_w|air> Isn't Zend_Date great? :p
258: [08:42:53] <Snowman23> Any idea where to var_dump ti find the bug?
259: [08:43:48] <simon_w|air> Nope. I gave up on it and started using drop downs instead. So much less hassle.
260: [08:43:55] <Snowman23> :(
261: [08:44:04] <Snowman23> I might just offer a "Workaround"
262: [08:44:16] <Snowman23> aka "Just enter your text into this textfield and make sure it's perfect formatted"
263: [08:44:20] <Snowman23> :P
264: [08:47:14] <david_b> heyo, I just updated from 2.4.6 to 2.4.13 and now i get the following errors http://www.sspaste.com/paste/show/52a8240739c33 when I try to upload an image in my admin interface
265: [08:47:16] <willr> yeah I went with dateddropdowns https://github.com/dnadesign/silverstripe-datedropdownselectorfield
266: [08:47:37] <Snowman23> >dna.co.zn
267: [08:47:40] <Snowman23> SELF PROMOTION?!
268: [08:47:42] <Snowman23> :P
269: [08:47:49] <Snowman23> willr: Works with 3.1?
270: [08:47:53] <david_b> the image won't upload and I don't know how to solve the issue
271: [08:47:57] <david_b> any ideas?
272: [08:48:17] * Azure quit (Quit: My MBP went to sleep.)
273: [08:48:23] <willr> Snowman23 nah was written for 2.4, though should be trivial to get 3.1 going
274: [08:48:27] <Snowman23> Eh
275: [08:48:34] <Snowman23> Would rather do a fix if there's work involved for me either way
276: [08:48:35] <Snowman23> :(
277: [08:48:55] <Snowman23> What happens to a date b efoer it becomes a SS_Datetime?
278: [08:49:02] <Snowman23> Cause by the time the data gets to SS_Datetime, it's alreay 2014
279: [08:49:07] <willr> david_b tried deleting the combinedfiles.js file
280: [08:49:12] <Snowman23> I would a backtrace, but it seems to kill things :S
281: [08:49:33] <simon_w|air> Snowman23, broken JS?
282: [08:49:49] <Snowman23> simon_w|air: Naw, the data actualy POST'd is perfect
283: [08:49:50] <Snowman23> Well
284: [08:50:10] <simon_w|air> So it's in DateField setValue
285: [08:50:33] <Snowman23> TakesEffect[date]:Dec 30, 2013
286: [08:50:34] <Snowman23> TakesEffect[time]:12:00:00 PM
287: [08:50:41] <Snowman23> thats hte raw POST
288: [08:51:23] <david_b> willr in the source of the admin page i just see the folder "_combinedfiles" and not a file called "combinedfiles.js"
289: [08:51:31] <david_b> should i delete the whole folder?
290: [08:52:14] <willr> yep
291: [08:52:53] <Snowman23> simon_w|air: Interestingly... I put a var_dump($val) in the first line of DateField->setValue(), and the output of my save of this dataobject (when done through modeladmin) looks like: NULL, NULL, ... 2015, ... 2013, ... 2014"
292: [08:53:18] <Snowman23> Ah I see
293: [08:53:22] <Snowman23> simon_w|air: I think you are right, yes!
294: [08:54:07] <Snowman23> Or not o.o
295: [08:54:26] <Snowman23> In goes Dec 30, 2013, and the $this->value at the end of setValue is "Dec 30, 2013"
296: [08:54:56] <david_b> willr deleted the folder --> admin interface won't load; created the folder (without the .js files inside) --> admin interface loads but the error is still occuring
297: [08:55:46] <Snowman23> simon_w|air: Nope, this function seems fine. It must happen between here and when it gets to SS_Datetime
298: [08:56:27] <Snowman23> willr / simon_w|air : Do you know how it gets from DateField->setValue to SS_Datetime->setValue? It's corrupted in there
299: [08:57:31] <david_b> this is the source code of the page which is throwing the error: http://www.sspaste.com/paste/show/52a8268c7ee3d
300: [08:57:33] <willr> david_b damn, that was the easy fix. Sorry wouldn't have a clue what else you can try. Haven't run into that myself
301: [08:57:38] * new_learner has joined #silverstripe
302: [08:58:28] <willr> Snowman23 I assume setValue is called from post to the form instance, form->saveInto($record) is called somewhere which calls $record->__set()
303: [08:58:57] * vogels has joined #silverstripe
304: [08:59:09] <vogels> hello
305: [08:59:21] <Snowman23> Hmmm, willr
306: [08:59:31] <new_learner> what does $this->ClassName mean in ss?
307: [08:59:47] <Snowman23> new_learner: What you woudl expect -- the classname of the current object :)
308: [08:59:56] <vogels> i'm looking for someone who can help me with spam protection in the comment fileds of silverstripe
309: [09:00:16] <vogels> someone who can implement it for me
310: [09:00:19] <willr> as in the DB right though Snowman23. get_class($this) is the *actual* classname
311: [09:00:28] <vogels> anyone intrested?
312: [09:00:54] <willr> which spam protector vogels - recaptcha, mollom..?
313: [09:00:56] <Snowman23> willr: Doesnt' that depend on where you call it though?
314: [09:01:39] <new_learner> $query = DataObject::get($this->ClassName, null, "Created DESC", null, "1"); what is this doing ?
315: [09:02:25] <new_learner> i converted it to $query = $this->ClassName::get()->filter(array( ))->sort( 'Created DESC' )->limit('1' );
316: [09:02:58] <new_learner> but this is creating the error?
317: [09:03:17] <new_learner> $this->ClassName::get() is creating the error
318: [09:03:24] <simon_w|air> new_learner, just use static::get()->sort('Created', 'DESC')->limit(1)
319: [09:03:30] <vogels> hi willr preferably something like this: http://www.exadium.com/tools/silverstripe/modules/invisible-spam-protection-module/
320: [09:04:11] <willr> vogels, then should be easy, Spam protection module works out of the box with comments
321: [09:04:27] <willr> just need to download all the parts
322: [09:04:39] <vogels> the comments module is some what adapted in the website
323: [09:05:00] <vogels> so that a e-mail is send and the comment needs to be moderated first
324: [09:06:45] <willr> shouldn't affect spam protection as that kicks in at the form validation stage
325: [09:06:51] <willr> before any processing
326: [09:08:42] <Snowman23> willr: So if you suspect its in the saveInto, where is the next vardump candidate? $record->__set() as in my Dataobject __set()?
327: [09:09:00] <Snowman23> willr: Because if that comes from the post daata, it'll be fine, right? Since it's fine by the time it gets to DateField, just not SS_DAtetime?
328: [09:09:51] <willr> as a high-level I'd check the set call and see what the value is at that stage, from there at least you can SS_Backtrace::trace()
329: [09:10:06] <Snowman23> willr: I can't do SS_Backtrace::trace() o.o
330: [09:10:12] <Snowman23> It somehow crashes my browser
331: [09:10:33] <Snowman23> I suspect its doing some kind of inifinte loop serverside locking up my network... idk
332: [09:10:36] * kinglozzer has joined #silverstripe
333: [09:10:48] * zippy__ quit (Quit: zippy__)
334: [09:12:02] <Snowman23> willr: But it is not right at __set :(
335: [09:12:40] <willr> right so the next layer up I'd imagine is form->saveInto()
336: [09:13:14] <willr> $dateField->saveInto() as well
337: [09:13:50] <Snowman23> Oh actually, I can get the trace, sec
338: [09:14:19] <Snowman23> https://gist.github.com/ss23/7907307
339: [09:14:29] <Snowman23> I guess I'll look into saveInto!
340: [09:15:01] <Snowman23> (I can see it's wrong at the setCastedField point
341: [09:17:02] <Snowman23> willr: It's wrong at the FormField->saveInto(Deal) point
342: [09:17:15] * Snowman23 bubbles up
343: [09:18:28] <willr> pre or post the the saveInto method? DateField::saveInto doesn't mangle anything? if you debug out the form field what is the value of the field?
344: [09:19:19] <willr> server clock isn't wrong or anything right :P
345: [09:19:48] <Snowman23> Nope, I can see the POST data is fine, and as said, the value is correct at the point where the DateTime is instantiated
346: [09:19:55] <Snowman23> (Happens on more than one server)
347: [09:20:03] <Snowman23> I'm checking Form.php saveInto now
348: [09:20:50] <Snowman23> willr: By the time $field is in Form.php's saveInto, it's wrong
349: [09:20:59] * Snowman23 bubbles higher~
350: [09:22:14] * Colin[pi] has joined #silverstripe
351: [09:22:16] <Snowman23> It's fine at GridFieldDetailForm.php doSave!
352: [09:22:46] <Snowman23> Well now I'm just confused, how the hell does that work, willr?
353: [09:23:26] <willr> so somewhere $field->value get's changed?
354: [09:23:39] <new_learner> [Strict Notice] Declaration of PublicarGrupoGaleriaDeFotos::getCMSFields() should be compatible with SiteTree::getCMSFields()......what does this error notify?
355: [09:23:59] <Snowman23> To clarify, GridFieldDetailForm.php, I var_dump($data) on the first line, and it shows the correct values for the datetime (As an array of course)
356: [09:24:39] <Zauberfisch23> new_learner: it means that PublicarGrupoGaleriaDeFotos::getCMSFields() accepts different parameters than SiteTree does
357: [09:24:52] <Zauberfisch23> thus the 2 methods are not compatible (which is usually bad)
358: [09:25:04] <Zauberfisch23> that for example happens if you do:
359: [09:25:12] <vogels> ok Willr so you say that the invisible spam protection module should work with the comment file
360: [09:25:16] <Snowman23> Oh I see, willr, it looks like it happens in $dataFields = $this->fields->saveableFields();
361: [09:25:33] <Zauberfisch23> Class1->methodFoo(DataObject $obj)
362: [09:25:35] <Zauberfisch23> and
363: [09:25:44] <vogels> just download and upload
364: [09:25:46] <Zauberfisch23> SubClass->methodFoo(int $obj)
365: [09:26:10] <Zauberfisch23> so the same method on the base class and the subclass take different parameters
366: [09:27:00] <Snowman23> willr: I give up, btw. I can't be bothered debuggin such a fucked up issue while tired. Going to change it to a textfield and just get them to make sure it's 100% correct format when they enter it.
367: [09:27:42] <willr> that's the sprit
368: [09:27:47] <vogels> do you have any experience with this kind of spam protection
369: [09:27:57] <Snowman23> haha
370: [09:28:02] <Snowman23> willr: Fuck Zend!
371: [09:28:11] <Zauberfisch23> so, new_learner what is your getCMSFields doing?
372: [09:28:15] <Zauberfisch23> Snowman23: !
373: [09:28:31] <willr> vogels yep built the first version of the spam protection api
374: [09:28:42] <willr> long time ago though, been meaning to rewrite it
375: [09:29:04] <new_learner> public function getCMSFields($cms)
376: [09:29:13] <Zauberfisch23> there you have your problem
377: [09:29:23] <new_learner> ya i got it
378: [09:29:23] <Zauberfisch23> getCMSFields should not accpet any parameters
379: [09:29:27] <Zauberfisch23> remove the $cms
380: [09:29:31] <new_learner> thanx ....
381: [09:29:34] <new_learner> i did it
382: [09:29:38] <new_learner> thank u
383: [09:29:56] * simon_w|air quit (Quit: This computer has gone to sleep)
384: [09:38:06] <david_b> apparently there where still some old lines of code in place. i tried my best to resolve everything but i still get these lines of code when I try to upload a new picture in the normal tinymce: http://www.sspaste.com/paste/show/52a82fdac75b6
385: [09:38:32] <david_b> any idea what is causing them?
386: [09:39:06] <Snowman23> david_b: Check your PHP error logs -- that 500 error is the important thing I think
387: [09:42:26] <david_b> Snowman23: as far as i can tell it should be this line in the error log: http://www.sspaste.com/paste/show/52a831152e42d
388: [09:46:57] * willr quit (Quit: willr)
389: [09:50:03] <svandragt> When removing dataobjectsobjects from a datalist this does not remove the created relationships between these and other dataobjects does it?
390: [09:54:27] * Guits quit (Ping timeout: 260 seconds)
391: [10:01:56] <kinglozzer> svandragt: I don't think so
392: [10:03:02] <kinglozzer> I know simon_w said how to clear those relationships once, but I can't remember ><
393: [10:03:22] <svandragt> kinglozzer: they would still show up in the "link existing" GUI search box, apart from that I think they would be effectively hidden.
394: [10:03:36] <svandragt> link existing gui search box in gridfield
395: [10:04:16] * EasyCo quit (Quit: Connection closed for inactivity)
396: [10:08:22] <new_learner> while creating page in cms ...ERROR [User Error]: Uncaught Exception: Object->__call(): the method 'todropdownmap' does not exist on 'DataList' IN GET /admin/pages/edit/show/135 error is shown.can anyone put light on it?
397: [10:20:38] * violetina has joined #silverstripe
398: [10:23:02] <kinglozzer> new_learner: Somewhere in your code, you’re calling ->toDropdownMap() - that function doesn’t exist
399: [10:23:47] <kinglozzer> You should replace it with ->map()
400: [10:24:44] * chillu has joined #silverstripe
401: [10:25:58] <new_learner> there is no such method in my code...
402: [10:27:35] <kinglozzer> new_learner: There is somewhere. Perhaps in a module?
403: [10:27:54] <kinglozzer> If you're using the wrong version of a module, that might cause it
404: [10:28:35] <new_learner> how can i check which version of silver stripe is running in my system?
405: [10:28:57] * david_b quit (Quit: This computer has gone to sleep)
406: [10:29:13] * david_b has joined #silverstripe
407: [10:38:46] <kinglozzer> The file /framework/silverstripe_version might tell you
408: [10:40:20] <new_learner> got it 3.1.2
409: [10:40:45] <new_learner> i will paste u the code..tell me what is going on wrong?
410: [10:41:25] <new_learner> http://sspaste.com/paste/show/52a83eef13006
411: [10:51:30] <kinglozzer> new_learner: You're not calling ->toDropdownMap() in that code, so that's not causing the error.
412: [10:51:50] <kinglozzer> Check any modules you have installed, make sure they're the correct versions for 3.1.2
413: [10:52:29] <new_learner> i have not installed any module after the ss 3.1.2 installation..
414: [10:54:42] <kinglozzer> Does the error show any more information?
415: [10:54:54] <kinglozzer> Somewhere in your codebase, ->toDropdownMap() is being called
416: [10:55:02] <kinglozzer> You need to find that
417: [10:55:15] <new_learner> ERROR [User Error]: Couldn't run query: UPDATE PublicarGrupoGaleriaDeFotos_live SET Destaque = '0' WHERE ID <> '141'
418: [10:55:24] <new_learner> now this is the error.
419: [10:57:07] <kinglozzer> Line 47 & 48: http://sspaste.com/paste/show/52a83eef13006 - What is that code doing?
420: [10:57:42] <kinglozzer> That's what's causing the error
421: [10:59:12] <new_learner> should i make it coment and run the code?
422: [11:03:55] * david_b quit (Quit: This computer has gone to sleep)
423: [20:44:43] * ss-log has joined #silverstripe
424: [20:45:36] * jrthomer quit (Ping timeout: 246 seconds)
425: [20:49:51] <Ryan-Toast> This is great: http://www.youtube.com/watch?v=cTc8ltcMB_U
426: [20:51:41] * zfmf has joined #silverstripe
427: [20:56:02] <guzzlefry> hm
428: [20:56:12] <guzzlefry> I think my sort field is breaking pagination...
429: [20:56:49] <guzzlefry> no clue how though...
430: [20:59:26] * jrthomer_ quit (Ping timeout: 240 seconds)
431: [21:04:04] <guzzlefry> Any suggestions on figuring this out?
432: [21:04:39] * jrthomer has joined #silverstripe
433: [21:07:19] * CodeTrap quit (Remote host closed the connection)
434: [21:14:33] * UndefinedOffset quit (Quit: Leaving.)
435: [21:17:51] * jrthomer quit (Read error: Connection reset by peer)
436: [21:21:36] * UncleCheese quit (Quit: UncleCheese)
437: [21:24:13] <zippy__> ah damnn nuts. right speaker has blown!!
438: [21:24:50] * jrthomer has joined #silverstripe
439: [21:30:22] * Azure quit (Quit: My MBP went to sleep.)
440: [21:34:11] * joelpittet has joined #silverstripe
441: [21:34:43] <spronk> derp
442: [21:35:01] * violetina quit (Remote host closed the connection)
443: [21:35:14] <zippy__> derp derp
444: [21:35:46] <zippy__> fixed :D
445: [21:35:49] <zippy__> phew
446: [21:35:57] <zippy__> don't make speakers like they used to
447: [21:36:18] * jrthomer quit (Ping timeout: 250 seconds)
448: [21:37:58] * jrthomer has joined #silverstripe
449: [21:38:48] * Azure has joined #silverstripe
450: [21:42:45] * zfmf quit ()
451: [21:44:35] <spronk> o_O
452: [21:44:37] <spronk> what have you got?
453: [21:49:37] * jrthomer quit (Ping timeout: 272 seconds)
454: [21:50:25] <Snowman23> I'LL TELL YOU WHAT I'VE GOT, WHAT I'VE REALLY REALLY GOT
455: [21:53:27] * DigNZ1 has joined #silverstripe
456: [21:53:31] <guzzlefry> Snowman23: TELL ME WHAT YOU'VE GOT, WHAT YOU'VE REALLY REALLY GOT
457: [21:53:49] <Snowman23> I GOT A I GOT A I GOT A I GOTA
458: [21:54:01] * Azure quit (Quit: My MBP went to sleep.)
459: [21:54:04] * DigNZ1 quit (Client Quit)
460: [21:54:40] <guzzlefry> I need help fixing this pagination. :P
461: [21:54:51] * DigNZ1 has joined #silverstripe
462: [21:59:56] <guzzlefry> Might be faster to just roll my own pagination for now. >_>
463: [22:00:11] * jrthomer has joined #silverstripe
464: [22:00:38] * wracu has joined #silverstripe
465: [22:02:42] * jrthomer_ has joined #silverstripe
466: [22:04:49] * jrthomer quit (Ping timeout: 272 seconds)
467: [22:05:07] * Motoko quit (Read error: No route to host)
468: [22:05:11] * antmas has joined #silverstripe
469: [22:06:23] * jrthomer has joined #silverstripe
470: [22:08:02] * jrthomer_ quit (Ping timeout: 264 seconds)
471: [22:08:38] * jrthomer_ has joined #silverstripe
472: [22:09:04] * chillu quit (Ping timeout: 260 seconds)
473: [22:12:25] * jrthomer quit (Ping timeout: 272 seconds)
474: [22:15:41] * UncleCheese has joined #silverstripe
475: [22:24:36] <antmas> mornin
476: [22:25:05] * gelignite quit (Quit: http://bit.ly/nkczDT)
477: [22:25:22] <Snowman23> moin moin
478: [22:25:24] <Snowman23> antmas: Hows your mouth? :D
479: [22:25:26] * catcher quit (Quit: Leaving)
480: [22:25:29] * DigNZ1 quit (Quit: DigNZ1)
481: [22:27:11] <antmas> Snowman23: getting better
482: [22:27:22] <antmas> these drugs are pretty full on :<
483: [22:27:38] <Snowman23> awwwwww
484: [22:27:40] <Snowman23> Not working atm?
485: [22:29:43] <antmas> Snowman23: was off yesterday, back today
486: [22:29:53] <Snowman23> aw kk
487: [22:30:05] <antmas> will go in for surgery probably after New Year?
488: [22:31:43] <Snowman23> Oh, you have to go BACK?!
489: [22:33:20] <antmas> Snowman23: yeh, haven't had anything done yet, just on antibiotics for major jaw infection :(
490: [22:33:42] <antmas> plus dentist can't do the work, I have to go to hospital for it
491: [22:35:25] <Snowman23> :S
492: [22:35:26] <Snowman23> Wow
493: [22:35:34] <antmas> haha
494: [22:35:37] <Snowman23> antmas: This sounds like the thing that would've been a lot easier to deal with earlier? :P
495: [22:35:44] <antmas> Snowman23: totally
496: [22:36:19] <antmas> the tooth is growing this way -----> rather than up ^
497: [22:36:49] <guzzlefry> mine is doing that...
498: [22:36:51] <antmas> I've only ever had 2 fillings my whole life lol
499: [22:36:53] <antmas> and now this
500: [22:36:54] <antmas> ;__;
501: [22:46:36] * webdave has joined #silverstripe
502: [22:51:06] * CodeTrap has joined #silverstripe
503: [22:54:45] * zippy__ quit (Ping timeout: 246 seconds)
504: [22:55:35] <webdave> does the requirements combine files option only work if coded in PHP or is there a way that the <% require template tags can be used in conjunction with combine files?
505: [23:00:34] * robert_ quit (Read error: Connection reset by peer)
506: [23:01:08] * DigNZ quit (Quit: DigNZ)
507: [23:04:35] * CodeTrap quit (Ping timeout: 260 seconds)
508: [23:04:45] * CodeTrap has joined #silverstripe
509: [23:06:58] * Jayden90 has joined #silverstripe
510: [23:07:27] <Jayden90> Guys I have a great idea for .ss templating regarding includes
511: [23:07:48] <Jayden90> Ability to use includes like Sass mixins, with the ability to place content before an include’s closing tag. This content is then available within the include using a reserved-word placeholder variable.
512: [23:07:51] <Jayden90> Like: http://sass-lang.com/documentation/file.SASS_REFERENCE.html#mixin-content
513: [23:08:24] * webdave quit (Quit: Page closed)
514: [23:09:25] <Jayden90> Would use this all the time. For example a HeroBanner.ss include, where the structure of the hero iteself with the background image and the breadcrumbs stays the same, but the content of the hero could be layed out diffirently on diferent page types
515: [23:11:11] <Jayden90> You could theoretically do this currently by breaking up a HeroBanner.ss into HeroBannerBeginning.ss and HeroBannerEnding.ss but that is not as elegant
516: [23:13:27] <Jayden90> With this new method you could check <% if $IncludeContent %><% else %> for default stuff
517: [23:19:03] * Colin[pi] has joined #silverstripe
518: [23:23:41] <Colin[pi]> mood gorning
519: [23:23:47] <Jayden90> I might repeat my earlier suggestion when more people are online
520: [23:23:48] <Snowman23> moin moin
521: [23:23:52] <Colin[pi]> HAI ANTMA
522: [23:23:52] <Jayden90> morn'
523: [23:23:54] <Colin[pi]> ANTMAS ALSO
524: [23:24:21] <antmas> Colin[pi]: HARRO!
525: [23:24:52] <Colin[pi]> HARRO HANS BLIX
526: [23:26:35] <Colin[pi]> anyone going to travel over the holidays?
527: [23:30:09] * DatYouTubeGuy has joined #silverstripe
528: [23:30:18] <DatYouTubeGuy> https://www.youtube.com/channel/UCvdF07ukOXZx7oMMpWcyQXA
529: [23:33:37] * DatYouTubeGuy quit (Client Quit)
530: [23:35:53] <Snowman23> goddam it
531: [23:39:35] * DigNZ has joined #silverstripe
532: [23:40:21] <guzzlefry> spammers!
533: [23:44:56] * Bollig|DesignCty has joined #silverstripe
534: [23:47:05] * SightUnseen has joined #silverstripe
535: [23:47:33] * SightUnseen has left #silverstripe
536: [23:54:03] * Liquide has joined #silverstripe
537: [23:59:47] <antmas> Colin[pi]: I'm heading down the south of NZ

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