#silverstripe IRC Log

IRC log for 24 November 2016

All timestamps are in UTC.

1: [00:00:24] * bubaphex quit (Client Quit)
2: [00:00:52] * agent44 has joined #silverstripe
3: [00:00:54] <DarjusIT> so if I $pages = SiteTree::get(); then I can in foreach I can $page->Title_locale you meen?
4: [00:01:20] * agent44 quit (Client Quit)
5: [00:01:28] <samsam> yup
6: [00:12:37] * Stomach has joined #silverstripe
7: [00:13:32] * micmania1 has joined #silverstripe
8: [00:27:51] * Stomach quit (Quit: zzz)
9: [00:28:47] * Azure|dc has joined #silverstripe
10: [00:28:58] * Stomach has joined #silverstripe
11: [00:29:55] * Azure quit (Read error: Connection reset by peer)
12: [00:31:15] <samsam> DarjusIT: did it work?
13: [00:31:26] <DarjusIT> samsam, yes
14: [00:31:28] <DarjusIT> thx
15: [00:31:32] <samsam> cool
16: [00:32:18] <DarjusIT> but if you have some options transaltable in page extension then it would be difficult to get all in one
17: [00:36:01] <samsam> Maybe Fluent has a built in solution for it, dont forget to keep reading the documentation, it has more features than you would initially expect
18: [00:49:28] * Azure|dc quit (Ping timeout: 260 seconds)
19: [00:53:24] * Azure has joined #silverstripe
20: [01:06:46] * Stomach quit (Ping timeout: 252 seconds)
21: [01:09:05] * Stomach has joined #silverstripe
22: [01:15:51] * samsam quit (Ping timeout: 260 seconds)
23: [01:21:39] * bubaphex has joined #silverstripe
24: [01:30:05] <ss-helper> Silverstripe Controller docs confusing - http://stackoverflow.com/questions/40776666/silverstripe-controller-docs-confusing
25: [01:33:25] * Stomach quit (Quit: zzz)
26: [01:36:30] * Stomach has joined #silverstripe
27: [01:47:56] * trash quit (Ping timeout: 260 seconds)
28: [01:49:31] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
29: [01:50:14] * Stomach quit (Quit: zzz)
30: [01:52:47] * UncleCheese has joined #silverstripe
31: [02:03:55] * Stomach has joined #silverstripe
32: [02:05:28] * DarjusIT quit (Ping timeout: 250 seconds)
33: [02:26:35] * bubaphex quit (Quit: bubaphex)
34: [02:27:03] * bubaphex has joined #silverstripe
35: [02:34:00] * Stomach quit (Ping timeout: 268 seconds)
36: [02:37:51] * bubaphex quit (Quit: bubaphex)
37: [02:41:35] * bubaphex has joined #silverstripe
38: [02:48:53] * bubaphex quit (Quit: bubaphex)
39: [02:53:45] * bubaphex has joined #silverstripe
40: [03:08:36] * bubaphex quit (Quit: bubaphex)
41: [03:10:17] * bubaphex has joined #silverstripe
42: [03:10:24] * Stomach has joined #silverstripe
43: [03:10:45] * micmania1 quit (Read error: Connection reset by peer)
44: [03:10:54] * micmania1 has joined #silverstripe
45: [03:31:56] * bubaphex quit (Quit: bubaphex)
46: [03:33:36] * bubaphex has joined #silverstripe
47: [03:36:53] * slievr1 has joined #silverstripe
48: [03:38:08] * slievr quit (Ping timeout: 268 seconds)
49: [03:38:15] * BackEndCoder quit (Excess Flood)
50: [03:40:11] * BackEndCoder has joined #silverstripe
51: [03:42:44] * mirrors has joined #silverstripe
52: [03:44:15] <mirrors> Hey all. I have a config ordering question. A module has an extension applied by adding it to a private static $extensions. How can I apply my own extension via yml after this extension.
53: [03:48:46] <mirrors> does my question make sense?
54: [03:57:49] * Stomach quit (Quit: zzz)
55: [03:58:12] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
56: [03:59:21] * bubaphex quit (Quit: bubaphex)
57: [04:01:23] * bubaphex has joined #silverstripe
58: [04:06:04] * bubaphex quit (Client Quit)
59: [04:06:11] * Navid quit (Ping timeout: 260 seconds)
60: [04:08:42] * DarjusIT has joined #silverstripe
61: [04:11:22] * mirrors quit (Quit: Page closed)
62: [04:13:00] * DarjusIT quit (Ping timeout: 244 seconds)
63: [04:50:51] * micmania1 quit (Quit: micmania1)
64: [05:18:11] * DanaeNZ quit (Quit: TIME TO FEED)
65: [05:57:39] * pweh has joined #silverstripe
66: [06:59:30] * UncleCheese has joined #silverstripe
67: [07:15:06] * wmk has joined #silverstripe
68: [07:23:19] * cloph quit (Ping timeout: 258 seconds)
69: [07:24:16] * pweh quit (Ping timeout: 260 seconds)
70: [07:27:39] * cloph_away has joined #silverstripe
71: [07:51:25] * pweh has joined #silverstripe
72: [07:57:19] * Stomach has joined #silverstripe
73: [08:00:56] * micmania1 has joined #silverstripe
74: [08:42:25] * DarjusIT has joined #silverstripe
75: [08:52:43] * Stomach quit (Quit: zzz)
76: [09:00:13] <ss-helper> How can I add a new enum value to an existing enum field? - http://stackoverflow.com/questions/38023563/how-can-i-add-a-new-enum-value-to-an-existing-enum-field
77: [09:02:06] * kinglozzer has joined #silverstripe
78: [09:06:47] * janneklouman-- has joined #silverstripe
79: [09:09:36] * NETim has joined #silverstripe
80: [09:15:18] <ss-helper> Re: [silverstripe-dev] Re: Replace SilverStripe Config - https://groups.google.com/d/msg/silverstripe-dev/q5khashNiuY/VVJLkiz2BwAJ
81: [09:15:19] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/7m327hb2BwAJ
82: [09:40:34] * DarjusIT quit (Ping timeout: 244 seconds)
83: [09:44:26] * NETim quit (Ping timeout: 268 seconds)
84: [09:45:32] * NETim has joined #silverstripe
85: [09:55:30] * micmania1 quit (Quit: micmania1)
86: [09:57:39] * agent44 has joined #silverstripe
87: [09:57:51] * micmania1 has joined #silverstripe
88: [10:19:49] * micmania1 quit (Quit: micmania1)
89: [10:39:06] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
90: [10:44:04] * agent44 quit (Quit: zzz)
91: [10:46:21] * agent44 has joined #silverstripe
92: [10:52:27] * UncleCheese has joined #silverstripe
93: [11:03:13] * samsam has joined #silverstripe
94: [11:11:39] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
95: [11:15:07] * pweh quit (K-Lined)
96: [11:17:24] * cloph_away quit (Remote host closed the connection)
97: [11:20:43] * cloph_away has joined #silverstripe
98: [11:21:06] * cloph_away is now known as cloph
99: [11:24:57] * NETim quit (Ping timeout: 268 seconds)
100: [12:38:48] * cloph quit (Ping timeout: 245 seconds)
101: [12:39:00] * cloph_away has joined #silverstripe
102: [12:39:14] * cloph_away is now known as cloph
103: [12:46:47] <samsam> anyone has an idea why this is throwing a 404 error? http://www.sspaste.com/paste/show/5836e0ec1a1c2
104: [12:47:23] <samsam> domain.com/thispage/foo should render with foo.ss (exists and sits in Layout folder), but it throws a 404 error instead
105: [12:47:47] <samsam> I mean with TemplatePage.ss
106: [12:48:58] <slievr1> that's in a controller right? just wondering why you didn't do $this->request->param('Action')
107: [12:49:17] * slievr1 is now known as slievr
108: [12:51:04] <wmk> samsam, what are you trying to acchive?
109: [12:51:36] <samsam> slievr: thats inside a controller indeed I didn't know you could do it that way :) lol
110: [12:52:43] <samsam> wmk: basically, if there is a url slug after "thispage" I want the page to open using a different template
111: [12:53:04] <slievr> I actually have code that does that
112: [12:53:14] <slievr> second I'll find it and you can all tell me how bad it is
113: [12:53:24] <samsam> so domain.com/thispage uses the default template but domain.com/thispage/foo should open with TemplatePage.ss
114: [12:53:31] <samsam> slievr: cool :)
115: [12:54:31] <samsam> in the end, I'm trying to build a complete trail from productCategories -> singleProductCategory -> SingleProduct
116: [12:54:45] <cloph> https://docs.silverstripe.org/en/3.2/developer_guides/controllers/routing/
117: [12:55:05] <samsam> yes I read that already
118: [12:55:10] <cloph> use some allowed actions and have those return would be more "supposed to be" way...
119: [12:55:26] <cloph> so why did you want to do it differently then?
120: [12:55:38] <samsam> SEO purposes
121: [12:55:47] <samsam> I'll explain
122: [12:56:13] <cloph> was about to write that this answer doesn't make sense to me, so curious to see the explanation :-)
123: [12:56:46] <samsam> the website is multilingual. Setting a fixed action name would result in: www.domain.com/showcategory/... etc right? "showcategory" being the action name
124: [12:57:24] <samsam> but in french I would rather see domain.com/showbaguette/ or something
125: [12:57:27] <cloph> no.
126: [12:57:46] <cloph> actions are different variants apart from the default/implicit "index" when there is no action defined.
127: [12:58:16] <cloph> domain/whatcontrollertouse/actionsonthatcontroller is the basic idea
128: [12:58:16] <samsam> but the action name needs to be in the http request (URL) right?
129: [12:58:40] <samsam> yes that's what I mean, I want to exclude the action name from the URL
130: [12:59:30] <samsam> does that make sense?
131: [12:59:46] <cloph> not really, at least not to me
132: [13:00:04] <cloph> you in your example use thispage and thispage/foo as example.
133: [13:00:29] <samsam> yes that's a bit confusing, let me rephrase the whole example:
134: [13:00:30] <cloph> thispage would use the default/implicit index action and thispage/foo would use the action "foo" in the controller of thispage
135: [13:00:39] <cloph> no difference to me in the URLs...
136: [13:01:02] <samsam> check my code out, I'm bypassing the whole "action" thing by calling the action in the init() {}
137: [13:01:33] <cloph> samsam: that is missing the point.
138: [13:01:35] <wmk> samsam, you know the urlslug module?
139: [13:01:42] <cloph> So why do you not want to use the "action thing" to begin with?
140: [13:01:50] <samsam> www.domain.com/thispage should display all categories. www.domain/thispage/[category_name] should look up any category_name that exists and display that category
141: [13:01:58] <wmk> hmm, it's for displaying DOs by slug instead of ID... so maybe not the right one.
142: [13:02:03] <cloph> I mean it would provide exactly what you want, without having to do the url-checking yourself..
143: [13:02:04] <wmk> But you could use an action for it...
144: [13:02:06] <samsam> rather than putting another action name before that: www.domain/thispage/look_up_category/[category_name]
145: [13:02:43] <samsam> interesting, I'm eager to learn the right way if this is not the right way according to you guys
146: [13:03:07] <samsam> wmk: interesting, having a read over the mod right now
147: [13:03:08] <wmk> hm, to translate an action is a bit tricky. I once hacked a proof of concept for this
148: [13:03:16] <cloph> why do you think you'd need an extra look_up_category for that?
149: [13:03:30] * cloph apparently still doesn't get it
150: [13:04:04] <samsam> cloph: in the conventional way, you would call a controller action like that, right?
151: [13:04:10] <wmk> samsam, https://github.com/wernerkrauss/silverstripe-translatable-actions
152: [13:04:39] <samsam> ha, thats cool
153: [13:04:56] <wmk> really just a proof of concept, not something i would recommend for production. Use on your own risk
154: [13:05:01] <samsam> with the SS community being rather small, I wouldn't expect someone to have written a mod for such a specific thing
155: [13:05:09] <samsam> I see
156: [13:05:18] <slievr> Found the code, not sure if it's still helpful. it was a different use case, so I modified it a bit. http://pastebin.com/ZxwEeZwK
157: [13:06:43] <cloph> you don't want action, you want URL-handler then.
158: [13:07:08] <samsam> slievr: ha! I think this is what I'm looking for, going to try it out
159: [13:07:28] <samsam> cloph: I guess so :p
160: [13:08:06] <slievr> I stored all my url templates in a separate theme, which is why I update config
161: [13:08:55] <samsam> I was going to ask
162: [13:08:58] <samsam> why use Config::inst()->update('SSViewer', 'theme', 'aTheme');
163: [13:09:04] <samsam> instead of $this->renderWith
164: [13:10:08] <slievr> the site has multiple themes for mobile/desktop but those pages where going to be the same regardless. so instead of having 2 copies of the same file I just changed theme.
165: [13:15:18] * Azure|dc has joined #silverstripe
166: [13:15:54] * Azure quit (Ping timeout: 256 seconds)
167: [13:21:32] * NETim_ has joined #silverstripe
168: [13:25:29] * UndefinedOffset has joined #silverstripe
169: [13:30:12] <samsam> still I don't understand why my code is throwing a 404
170: [13:30:30] <slievr> have you dev/built?
171: [13:30:48] <cloph> samsam: and what does your code look right now?
172: [13:31:19] <slievr> also use ?debug_request=1
173: [13:31:25] <samsam> http://www.sspaste.com/paste/show/5836eba5e9830
174: [13:31:33] <slievr> it'll let you know what's up (requires dev mode)
175: [13:31:41] <samsam> ?debug_request=1 shows the contents of TemplatePage.ss
176: [13:32:13] <samsam> but domain.com/thispage/[extraslug] throws a SS 404
177: [13:32:23] <samsam> domain.com/thispage works just fine
178: [13:32:30] <slievr> you need the allowed actions and url_handlers
179: [13:32:35] <slievr> pretty sure
180: [13:33:07] <samsam> alright gonna try it out. does url_handlers overwrite the default names: Action/ID/OtherID?
181: [13:33:32] <slievr> only if you do
182: [13:37:18] <cloph> samsam: your paste doesn't make sense.
183: [13:37:28] <cloph> did you look at what slievr did in his controller?
184: [13:37:34] <slievr> How's this http://pastebin.com/iQt2EjZL
185: [13:37:46] <slievr> ignore the random tab
186: [13:38:53] <cloph> https://docs.silverstripe.org/en/3.2/developer_guides/controllers/routing/#url-handlers - you need the $url_handlers static, as you don't want the default action/$param.... style. and then you need to have the function that you specify to take care of that URL-pattern.
187: [13:40:01] <samsam> ah so it does overwrite default action/id/otherid after all
188: [13:40:07] <samsam> alright giving it a try for real this time
189: [13:40:52] <slievr> you can set the names in mine I used slug as it made sense to me
190: [13:45:04] <samsam> white screen of death, no server error logged
191: [13:46:02] <samsam> http://pastebin.com/UxMSt1Wf
192: [13:47:07] <slievr> add an else to your if that returns $this
193: [13:47:23] <slievr> that was awfully written
194: [13:48:13] <slievr> http://pastebin.com/s0reTrgH
195: [13:51:07] <samsam> done, main page works, adding URL parameter results in a white page. ?showtemplate=1 shows TemplatePage.ss with contents
196: [13:51:50] <slievr> does it return?
197: [13:52:14] <slievr> are you returning $this->renderWith
198: [13:52:49] <samsam> yup, it does technically (?showtemplate=1) but in the browser it's just a white page
199: [13:53:08] <slievr> can you paste code
200: [13:53:40] <samsam> http://www.sspaste.com/paste/show/5836f0e20638f
201: [13:53:58] <slievr> replace '$this->renderWith('TemplatePage');' with 'return $this->renderWith('TemplatePage');'
202: [13:54:12] <samsam> why did I.. :/
203: [13:54:37] <samsam> Nice, it works now
204: [13:54:57] <samsam> but renderWith seems to be pretty "overwhelming". It's not including Page.ss
205: [13:55:27] <samsam> It should return Page.ss (from Templates folder) and TemplatePage.ss from layout folder
206: [13:55:35] <slievr> pass an array renderWith(array('Page','TemplatePage'));
207: [13:56:31] <samsam> I thought so too, but renderWith method chooses the first match (Page.ss) and ignores the rest
208: [13:59:25] <samsam> weird, I flipped the array around and it worked: return $this->renderWith(array('TemplatePage','Page'));
209: [13:59:36] <samsam> slievr: thanks for helping me on this one mate
210: [13:59:42] <slievr> np
211: [13:59:47] <slievr> gald I could help
212: [14:04:02] * slievr quit (Read error: Connection reset by peer)
213: [14:18:55] * slievr has joined #silverstripe
214: [14:30:05] * BackEndCoder quit (Excess Flood)
215: [14:30:14] * BackEndCoder has joined #silverstripe
216: [14:41:56] <wmk> samsam, 404...? I'd have a solution for you.
217: [14:41:59] <wmk> !debug samsam
218: [14:41:59] <ss-helper> samsam: Maybe it's time to start xdebug and see whats going on... check out http://docs.silverstripe.org/en/developer_guides/debugging/ and http://xdebug.org/docs/
219: [14:42:22] <samsam> hehe yeah I installed it a few days ago
220: [14:42:37] <wmk> cool. Did you see our talk / the slides?
221: [14:42:51] <samsam> no :o
222: [14:42:53] <wmk> https://speakerdeck.com/wernerkrauss/debug-silverstripe-like-a-pro
223: [14:43:11] <samsam> this is exactly what I need
224: [14:44:21] <wmk> https://vimeo.com/191886951 lerni's and wmk's talk
225: [14:44:38] <samsam> it seems like stripecon is more than beer and cookies
226: [14:44:38] <samsam> :p
227: [14:44:44] <wmk> lerni, do we still have a nail for samsam ?
228: [14:45:01] <wmk> samsam, slovenian stripecon is more like pear and cookies
229: [14:45:24] <lerni> hold still and nail it!
230: [14:45:36] <wmk> rofl
231: [14:47:44] <samsam> :'D
232: [14:48:07] <wmk> have to run, good luck samsam
233: [14:48:12] <slievr> My god, you guys have faces
234: [14:48:15] <samsam> wmk: ttyl mate
235: [14:48:19] <samsam> LOL
236: [14:48:33] <samsam> and hobbies?
237: [14:50:58] * BackEndCoder quit (Excess Flood)
238: [14:53:14] * BackEndCoder has joined #silverstripe
239: [14:55:51] * wmk quit (Ping timeout: 268 seconds)
240: [14:56:54] <NETim_> Morning. Does anyone have any experience with requireDefaultRecords
241: [14:56:56] <NETim_> ?
242: [14:57:46] <lerni> slievr: would it be beneficial for you if we were pretty?
243: [14:58:10] <lerni> ...or did you expect us to be?
244: [14:58:27] <slievr> I never said you wheren't you just have faces
245: [14:59:19] <lerni> hehe - hell I was nervous :)
246: [14:59:21] <slievr> never seen the faces to names apart from kinglozzer, cause it's his git picture
247: [15:01:34] <slievr> might have to finally install xdebug, but I'm lazy
248: [15:05:40] <lerni> slievr: I think you should, for me it was worth the effort, just to understand what I'm doing ;)
249: [15:07:24] * r3v3rb has joined #silverstripe
250: [15:07:35] <r3v3rb> hi kinglozzer - how annoying was that 0 yesterday!
251: [15:07:57] <r3v3rb> still kicking myself for not seeing it...
252: [15:08:01] <kinglozzer> yo r3v3rb
253: [15:08:04] <kinglozzer> Haha, all good now?
254: [15:08:12] <r3v3rb> maybe ;)
255: [15:08:38] <r3v3rb> just adding in some auto generated PDF -> PNG for the layering in templates :)
256: [15:08:49] <kinglozzer> I'm having some fun with third party data feeds...
257: [15:09:27] <r3v3rb> and won another contract for this system, which will also add in email templates too
258: [15:09:28] <kinglozzer> Where properties with a "typeID" of 4 and a "styleID" of 37 apparently shouldn't show up in search results
259: [15:09:35] <kinglozzer> But I have no idea what those numbers mean or where they come from
260: [15:09:42] <kinglozzer> Or if they'll change
261: [15:09:43] <r3v3rb> what whoo, show me the code
262: [15:09:50] <r3v3rb> or the feed
263: [15:10:00] * r3v3rb loves data feeds and api's
264: [15:10:15] <r3v3rb> but doesn't know when to use a zero!
265: [15:11:33] <kinglozzer> r3v3rb: It's a property feed
266: [15:11:41] <kinglozzer> I have their docs, but the numbers only go up to 35
267: [15:11:47] <kinglozzer> So 36 and 37 are mystery numbers
268: [15:11:50] <kinglozzer> :D
269: [15:12:43] <slievr> sounds spooky
270: [15:12:56] <r3v3rb> not a property feed - like rightmove/zoopla/primelocation?
271: [15:13:01] <kinglozzer> I'm just going to hardcode that number into ->exclude() and hope for the best
272: [15:13:10] <r3v3rb> or is that proprietary
273: [15:13:17] <kinglozzer> r3v3rb: Jupix
274: [15:14:19] <r3v3rb> are okay, direct software feed - my client said 'f65k' that - to arduous to keep on top of, they just use it to push to Z/RM/PL and I grab the data from Z
275: [15:14:30] <r3v3rb> arh* even
276: [15:16:02] <r3v3rb> wow, Jupix not filed any tax returns yet... and were a letting agency...
277: [15:16:22] * BackEndCoder quit (Excess Flood)
278: [15:17:14] * BackEndCoder has joined #silverstripe
279: [15:17:59] <cloph> samsam: I' not name your parameter $Action - that'll confuse the hell out of whoever will inherit your project :-)
280: [15:18:12] <samsam> lol yes I just changed it
281: [15:18:35] <samsam> cloph: http://stackoverflow.com/questions/876089/who-wrote-this-programing-saying-always-code-as-if-the-guy-who-ends-up-maintai
282: [15:21:01] <r3v3rb> kinglozzer, still have that 'failing to load' every click issue - intermittent and really annoying to track down. no errors, no apache log, no php log - just spin spin nothing
283: [15:22:30] * r3v3rb rants who thought moving the breakpoint panel in FFDE to the right of the code view in portrait view was a good idea!
284: [15:24:35] <kinglozzer> r3v3rb: So the HTTP request never completes?
285: [15:24:53] <r3v3rb> completes but no changes to view in browser
286: [15:25:02] <r3v3rb> css/js loaded all 200 code
287: [15:25:42] <r3v3rb> only load two JS files and three CSS no conflicts with CMS/Admin versions
288: [15:27:04] <r3v3rb> although the Requirements are part of the FieldHolder function can I have an onAfterInit in a Field extension?
289: [15:27:35] <r3v3rb> the reason they are in FieldHolder is as per Unclecheese's explanation a few months ago...
290: [15:28:40] <kinglozzer> r3v3rb: What HTML does it return?
291: [15:28:53] <kinglozzer> Is it just a fragment, or all the things including <body> etc?
292: [15:28:54] <r3v3rb> just a hiddenfield
293: [15:29:49] <r3v3rb> its a CanvasField extends HiddenField << the FieldHolder has the Requirements - I've looked at alot of other extended fields and they all appear to do the same so I think its correct procedure
294: [15:30:34] <kinglozzer> r3v3rb: That's all it returns? Shouldn't it return the whole edit form for the item you clicked in GridField?
295: [15:30:45] <kinglozzer> Or am I thinking of a different problem? :D
296: [15:32:04] <r3v3rb> well it calls a dataobject and a crap load of other fields, but the only one calling extra js is the CanvasField
297: [15:32:42] <r3v3rb> so click link in GridField >> URL Changes and page goes spinnnnnnnn >> Network tabs shows js/css loading >> nothing changes in browser
298: [15:33:55] <r3v3rb> very frustrating and time consuming to debug new code when not all page loads return correctly
299: [15:36:02] <kinglozzer> r3v3rb: What happens if you disable all the JS? Does it load then?
300: [15:36:10] <kinglozzer> (all the extra JS)
301: [15:36:31] <kinglozzer> There's no custom GridField click handler or anything?
302: [15:36:59] <r3v3rb> nope
303: [15:37:21] <r3v3rb> just dev/build?flush ing with no js/css requirements
304: [15:39:08] <r3v3rb> first time everytime with the js/css removed - must be a blocker in the JS somewhere
305: [15:39:36] <kinglozzer> r3v3rb: Delete chunks of it until it works :D
306: [15:39:42] <kinglozzer> The professional approach to debugging ;)
307: [15:39:44] <r3v3rb> nice
308: [15:41:41] <r3v3rb> bleurgh, fancy a private job?
309: [15:43:24] * BackEndCoder quit (Excess Flood)
310: [15:45:55] <samsam> rofl @ kinglozzer
311: [15:46:11] <kinglozzer> r3v3rb: Sure :P
312: [15:46:14] * BackEndCoder has joined #silverstripe
313: [15:46:25] <samsam> I've inherited that debugging method
314: [15:46:37] <r3v3rb> kinglozzer, 1p ph for that debugging method
315: [15:47:00] <kinglozzer> Haha, sounds reasonable
316: [15:47:25] <kinglozzer> samsam: I don't mess around with xdebug either, var_dump + die is how *real* devs debug
317: [15:47:28] <kinglozzer> :D
318: [15:47:44] * samsam highfives kinglozzer
319: [15:47:45] <slievr> TIL I'm a real dev
320: [15:48:01] <kinglozzer> Hahaha
321: [15:48:37] <slievr> print_r is pretty good to
322: [15:49:14] <kinglozzer> Yeah that's a good one
323: [15:49:24] <kinglozzer> If I'm feeling fancy I might Debug::log() and let the request finish
324: [15:49:53] <slievr> I just error_log random strings to track failures
325: [15:51:27] * henkpoley has joined #silverstripe
326: [15:52:31] <kinglozzer> if ($condition) { die('yep'); } else { die('WTF??'); }
327: [15:52:59] <kinglozzer> That usually ends up in there at some point
328: [15:55:08] <r3v3rb> i just ask kinglozzer to debug using jsfiddle :D
329: [15:55:30] <slievr> the old thirdparty debug
330: [15:55:40] <r3v3rb> however at our next meeting I will be supplying him copious amounts of refreshments ;)
331: [15:55:58] <r3v3rb> slievr, I'm always good for beer though :D
332: [15:57:00] <kinglozzer> r3v3rb: Great! I'm even better a deleting code when I'm drunk :D
333: [15:57:29] <r3v3rb> kinglozzer, mine usually works then - until the next morning!
334: [15:58:55] <slievr> That should be a thing. Like code in the dark, but instead code hammered.
335: [15:59:12] <r3v3rb> right five whole lines of coded added, how many bugs can I introduce
336: [15:59:36] * r3v3rb is stone cold sober so I'm guessing at least 5
337: [15:59:58] <r3v3rb> one foreach(linesincode as bugs)
338: [16:02:45] <samsam> shamelessly asking this one more time to be sure:
339: [16:03:16] <samsam> when defining private static $url_handlers in any controller
340: [16:03:23] <r3v3rb> samsam yep
341: [16:03:24] <samsam> it overwrites the default $action/id/otherid right
342: [16:03:42] <samsam> lol am I that predictable
343: [16:03:57] <r3v3rb> nope, it adds them to them as far as I remember if they are different
344: [16:04:26] <samsam> that's a dissapointing answer, could you change it to meet my expectations?
345: [16:04:42] <samsam> :p
346: [16:04:54] <r3v3rb> samsam, yep that's exactly how it works ;)
347: [16:04:59] <samsam> ty
348: [16:05:00] <r3v3rb> as far as I know
349: [16:05:12] <cloph> well, that's more or less a philosophical question, as you'd also have to add allowed_actions static...
350: [16:05:26] * janneklo1man-- has joined #silverstripe
351: [16:08:21] <r3v3rb> sooo, rookie mistake seems like JS changes require dev/build?flush=1 more than others as they definitely get cached...
352: [16:08:28] * janneklouman-- quit (Ping timeout: 250 seconds)
353: [16:08:38] <r3v3rb> secondly...
354: [16:09:18] * r3v3rb got zero bugs in those five lines... meaning I must be a high functioning drunk!
355: [16:14:05] <cloph> nailed the Ballmer Peak :-) http://xkcd.com/323/
356: [16:19:26] <samsam> :')
357: [17:01:23] * janneklouman-- has joined #silverstripe
358: [17:04:21] * janneklo1man-- quit (Ping timeout: 265 seconds)
359: [17:07:33] * kinglozzer quit ()
360: [17:16:10] * janneklouman-- quit (Ping timeout: 256 seconds)
361: [17:16:53] * henkpoley quit (Quit: henkpoley)
362: [17:18:27] * janneklouman-- has joined #silverstripe
363: [17:22:59] * janneklouman-- quit (Ping timeout: 244 seconds)
364: [17:23:27] * janneklouman-- has joined #silverstripe
365: [17:31:02] * trash_ has joined #silverstripe
366: [17:31:02] <ss-helper> trash_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
367: [17:41:06] * samsam quit (Ping timeout: 260 seconds)
368: [17:52:15] * lerni quit (Quit: Connection closed for inactivity)
369: [17:52:21] * agent44 quit (Quit: zzz)
370: [17:52:37] * agent44 has joined #silverstripe
371: [17:52:44] * agent44 quit (Client Quit)
372: [17:55:35] * r3v3rb quit (Ping timeout: 265 seconds)
373: [17:59:54] * henkpoley has joined #silverstripe
374: [18:09:45] * UndefinedOffset quit (Quit: Leaving.)
375: [18:19:20] * janneklo1man-- has joined #silverstripe
376: [18:22:16] * janneklouman-- quit (Ping timeout: 258 seconds)
377: [18:39:49] * r3v3rb has joined #silverstripe
378: [18:44:24] * r3v3rb quit (Ping timeout: 265 seconds)
379: [18:57:52] * Stomach has joined #silverstripe
380: [19:01:45] * janneklo1man-- quit (Ping timeout: 258 seconds)
381: [19:09:11] * trash_ quit (Ping timeout: 260 seconds)
382: [19:27:44] * UndefinedOffset has joined #silverstripe
383: [19:30:37] * UncleCheese has joined #silverstripe
384: [19:42:28] * bubaphex has joined #silverstripe
385: [19:55:46] * r3v3rb has joined #silverstripe
386: [19:56:34] <r3v3rb> who's home?
387: [20:12:53] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
388: [20:38:26] * DanaeNZ has joined #silverstripe
389: [20:40:45] <r3v3rb> morning DanaeNZ
390: [20:43:01] <DanaeNZ> r3v3rb: \o
391: [20:43:07] <DanaeNZ> god I hate this hot weather
392: [20:43:13] <DanaeNZ> it's not even hot yet
393: [20:43:20] <DanaeNZ> but it's too hot
394: [20:43:22] <r3v3rb> hah, try over here mega winds and rain
395: [20:45:12] <DanaeNZ> i just want slightly chilled dry weather
396: [20:45:23] <r3v3rb> that would be nice...
397: [20:45:35] <r3v3rb> finally found the exception error causing me grief
398: [20:45:57] <r3v3rb> hidden inside a function three levels deep.
399: [20:47:13] * DanaeNZ quit (Quit: TIME TO FEED)
400: [20:53:11] * bubaphex quit (Quit: bubaphex)
401: [20:54:41] * bubaphex has joined #silverstripe
402: [20:56:14] * micmania1 has joined #silverstripe
403: [21:03:00] <Stomach> hiiiiiii
404: [21:03:10] <r3v3rb> micmania1, still safe out there in NZ fella... and is your beer still okay?
405: [21:03:31] * r3v3rb quit (Quit: Leaving)
406: [21:03:50] * bubaphex quit (Quit: bubaphex)
407: [21:07:14] * DanaeNZ has joined #silverstripe
408: [21:11:51] * bubaphex has joined #silverstripe
409: [21:14:38] * agent44 has joined #silverstripe
410: [21:30:30] * Firesphere quit (Changing host)
411: [21:30:30] * Firesphere has joined #silverstripe
412: [21:35:03] * henkpoley quit (Quit: henkpoley)
413: [21:40:07] * madmatt changed the topic to 'Welcome to #silverstripe | Current stable: http://www.silverstripe.org/download | SilverStripe 4 Alpha: http://www.silverstripe.org/4 | Dev Mailing List: http://silverstripe.org/dev-list | Feature requests: http://silverstripe.uservoice.com'
414: [21:41:11] * Firesphere quit (Changing host)
415: [21:41:11] * Firesphere has joined #silverstripe
416: [22:07:12] * Stomach quit (Quit: zzz)
417: [22:09:24] * Stomach has joined #silverstripe
418: [22:18:22] * Stomach quit (Ping timeout: 250 seconds)
419: [22:20:07] * Stomach has joined #silverstripe
420: [22:22:43] * UndefinedOffset quit (Quit: Leaving.)
421: [22:34:53] * Stomach quit (Quit: zzz)
422: [22:36:36] * willr has joined #silverstripe
423: [22:39:49] * willr quit (Client Quit)
424: [22:42:50] * Stomach has joined #silverstripe
425: [23:00:02] * ss-helper quit (Remote host closed the connection)
426: [23:00:17] * ss-helper has joined #silverstripe
427: [23:11:00] * Jap_ has joined #silverstripe
428: [23:11:00] <ss-helper> Jap_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
429: [23:12:12] <Jap_> Hi, i have a question regarding silverstripe. How can i make canPublish method work on extension
430: [23:17:41] * cupcake quit (Ping timeout: 260 seconds)
431: [23:18:08] * Dig has joined #silverstripe
432: [23:18:38] * janneklouman-- has joined #silverstripe
433: [23:18:39] * bubaphex quit (Quit: bubaphex)
434: [23:19:09] * bubaphex has joined #silverstripe
435: [23:21:06] * UncleCheese has joined #silverstripe
436: [23:23:38] * bubaphex quit (Client Quit)
437: [23:30:31] * r3v3rb has joined #silverstripe
438: [23:30:54] <r3v3rb> !seen pyromanik
439: [23:30:55] <ss-helper> r3v3rb: I last saw pyromanik 1 week ago
440: [23:30:59] <r3v3rb> :(
441: [23:31:12] <r3v3rb> is he earthquake okay micmania1 ?
442: [23:33:07] * Stomach quit (Ping timeout: 256 seconds)
443: [23:35:56] * Stomach has joined #silverstripe
444: [23:40:54] * micmania1 quit (Quit: micmania1)
445: [23:41:34] * Stomach quit (Quit: zzz)
446: [23:47:24] * spronk has joined #silverstripe
447: [23:47:53] * DanaeNZ quit (Remote host closed the connection)
448: [23:48:20] * agent44 quit (Quit: zzz)
449: [23:48:28] * DanaeNZ has joined #silverstripe
450: [23:52:22] * bubaphex has joined #silverstripe
451: [23:52:33] * DanaeNZ quit (Ping timeout: 245 seconds)
452: [23:54:38] * janneklouman-- quit (Ping timeout: 245 seconds)

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