#silverstripe IRC Log

IRC log for 18 January 2017

All timestamps are in UTC.

1: [00:00:47] * zippy has joined #silverstripe
2: [00:06:05] <zippy> Is there a way, with Silverstripe, to handle a particular exception...
3: [00:06:48] <zippy> I have some code which has it's own exception class. I could wrap a try/catch around every single time I use it, but what I want to do is when the exception is throw, log it and then send the user to a certain page.
4: [00:07:04] <zippy> Just wonder if there is something "high up" I can say. If this exception is throw, do this.
5: [00:10:08] * janneklouman-- quit (Ping timeout: 255 seconds)
6: [00:15:56] * howardgrigg quit (Remote host closed the connection)
7: [00:16:03] * howardgrigg has joined #silverstripe
8: [00:17:45] <Nightjar> zippy, yep.
9: [00:17:46] <Nightjar> sure
10: [00:18:23] <Nightjar> "if this exception is throw" makes little sense though, since all Exceptions are 'thrown'
11: [00:22:02] <zippy> this "specific" exception is throw
12: [00:22:12] <zippy> ie, class MyAwesomeException extends Exception
13: [00:22:20] <zippy> if MyAwesomeException is thrown, handle it like xyz
14: [00:34:10] * trash_ quit (Ping timeout: 260 seconds)
15: [00:44:13] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
16: [01:10:52] * micmania1 quit (Quit: micmania1)
17: [01:17:32] * UncleCheese has joined #silverstripe
18: [01:21:40] * zippy has joined #silverstripe
19: [01:22:27] <zippy> So, what was your suggestion Nightjar ?
20: [01:22:40] <Nightjar> hmm oh
21: [01:22:42] <Nightjar> uhh
22: [01:22:56] <Nightjar> well throw isn't a noun. It's a verb.
23: [01:23:20] <Nightjar> But type hinting MAY work with exceptions. If not, you need to match it
24: [01:23:27] <Nightjar> isntanceof or something of the like.
25: [01:23:48] <zippy> I know you can do
26: [01:23:52] * howardgrigg quit (Remote host closed the connection)
27: [01:24:10] <zippy> try { xxxxx } catch MyAwesomeException $e { } or whatever the syntax is
28: [01:24:14] <zippy> but I want to go higher up
29: [01:24:23] <Nightjar> 'higher up'?
30: [01:24:24] <zippy> I don't want 10 instances try catch MyAwesomeException in my app
31: [01:24:30] * howardgrigg has joined #silverstripe
32: [01:24:36] <Nightjar> que?
33: [01:25:05] <zippy> For example in Laravel you can tap into the exception handler and check what Exception is being thrown and handle it different
34: [01:25:37] <Nightjar> Laravel's just php bruh.
35: [01:25:46] <Nightjar> same that SilverStripe is just PHP.
36: [01:25:50] <zippy> yes...
37: [01:26:00] <Nightjar> It's not a framework hook, it's a language level hook.
38: [01:26:21] <Nightjar> ... unless you're talking about something more specific. I'm not following you sorry.
39: [01:26:31] <Nightjar> I can't understand your usecase/example.
40: [01:26:33] <zippy> In Silverstripe when an exception is throw, it's handling that already. Will log it and throw the 500 page right
41: [01:26:50] <zippy> Sorry. let me change that statement
42: [01:26:59] <zippy> In Silverstripe when an exception is thrown, it's handling that already. Will log it and display the 500 page right
43: [01:27:18] <Nightjar> Not necessarially.
44: [01:27:21] <zippy> I was just seeing if there was some event hook, "when an exception is thrown, call this hook"
45: [01:27:25] <Nightjar> Exceptions are as exceptions do.
46: [01:27:38] * ss-helper quit (*.net *.split)
47: [01:27:38] * spronk quit (*.net *.split)
48: [01:27:42] * Azure quit (*.net *.split)
49: [01:27:45] <Nightjar> yeh, maybe.
50: [01:28:15] <Nightjar> An exception handler only comes into play when an exception isn't caught, though. iirc.
51: [01:28:31] <Nightjar> so it's gotta bubble all the way up the stack first.
52: [01:28:50] <Nightjar> what you're describing is just what a catch is for.
53: [01:28:57] <Nightjar> but you don't want to catch
54: [01:29:00] <Nightjar> so I'm confused.
55: [01:29:14] <zippy> I want to catch it higher up the stack
56: [01:29:14] * ss-helper has joined #silverstripe
57: [01:29:14] * spronk has joined #silverstripe
58: [01:29:14] * Azure has joined #silverstripe
59: [01:29:20] <Nightjar> subclass the handler and do what will? sounds like more what you want.
60: [01:29:31] <Nightjar> there isn't anything outside the stack
61: [01:29:33] <zippy> single place that catches a certain exception class
62: [01:30:13] <Nightjar> that'd be the entry point.
63: [01:30:27] <Nightjar> index.php: try { ...
64: [01:31:18] <Nightjar> handleException
65: [01:31:21] <Nightjar> idk
66: [01:32:12] <zippy> In my page, if I just do "throw new Exception('This blows up');" and then load the page - I see the exception with a stacktrace nicely formatted when in dev mode. In live mode I get the silverstrip 500 error page
67: [01:32:26] <zippy> So Silverstripe is obviously "handling" uncaught exceptions right
68: [01:33:01] <Nightjar> yeah but nah but yeah but nah http://php.net/manual/en/function.set-error-handler.php
69: [01:33:41] <Nightjar> http://php.net/manual/en/function.set-exception-handler.php
70: [01:34:32] <zippy> yeap, which Silverstripe set their own handlers right
71: [01:34:37] <zippy> so just seeing if there is hooks in those handlers
72: [01:36:30] * micmania1 has joined #silverstripe
73: [01:37:24] <Nightjar> yeah but like, even if there aren't, subclass it and whatever or something, idk.
74: [01:37:33] <Nightjar> sounds like a bit of a hack tbh.
75: [01:37:39] <zippy> Yea, so seems there is no hooks into the exception bit
76: [01:39:14] <zippy> I guess you could change the set_exception_handler('exceptionHandler'); to call your own code, which then delegates back to the Debug.php: exceptionHandler
77: [01:40:11] <Nightjar> that's basically what I'm saying :P
78: [01:40:25] <Nightjar> do it in $project's _config.php
79: [01:40:26] <zippy> yes.
80: [01:40:49] <zippy> I was just thinking ,assuming, that inside Silverstipes Debug.php:exceptionHandler function, there might of been a extension / hook that got called
81: [01:41:02] <Nightjar> doubt it
82: [01:41:08] <zippy> like there is when there is a 404
83: [01:41:24] <Nightjar> yeah but that never reaches the handler!
84: [01:41:29] <Nightjar> is what I'm saying.
85: [01:41:54] <zippy> if you don't use a try/catch it does
86: [01:41:55] <Nightjar> Caught in Controller iirc.
87: [01:42:03] <Nightjar> there _is_ a catch.
88: [01:42:09] <zippy> there is?
89: [01:42:19] <Nightjar> well, it's been a helluva long time
90: [01:43:05] <zippy> nope, if I do throw new Exception('This blows up'); it goes all the way up to Debug.php:exceptionHandler
91: [01:44:11] * UncleCheese quit (Quit: Textual IRC Client: www.textualapp.com)
92: [01:45:13] <Nightjar> http://api.silverstripe.org/3.5/source-class-RequestHandler.html#456-476
93: [01:45:49] * UncleCheese has joined #silverstripe
94: [01:46:49] <zippy> yea, I've used onBeforeHTTPError404 before
95: [01:52:29] <Nightjar> yeh, but that doesn't/cannot stop an exception being thrown.
96: [01:53:05] * howardgrigg quit (Remote host closed the connection)
97: [01:53:12] * howardgrigg has joined #silverstripe
98: [01:53:22] <Nightjar> http://api.silverstripe.org/3.5/source-class-RequestHandler.html#203
99: [01:55:07] <Nightjar> The catch is just at the very top level of the whole process (excepting initial bootstrap)
100: [01:55:08] <Nightjar> http://api.silverstripe.org/3.5/source-class-Director.html#83-194
101: [01:55:23] <Nightjar> the catch is just way up the callstack.
102: [01:55:29] <Nightjar> and class heirarchy.
103: [01:56:00] <Nightjar> It won't catch all exceptions, just those of SS_HTTPResponse_Exception - in a similar fashion to what you're asking.
104: [01:56:10] <Nightjar> zippy,
105: [01:56:12] <Nightjar> ^^
106: [02:04:05] <zippy> Ah yeap, thats for looking at that
107: [02:04:25] <zippy> So in theory I could throw an exception for SS_HTTPResponse_Exception and then that would get handled
108: [02:04:56] <zippy> It'd be nice to be able to add your own class's in there to handle
109: [02:05:49] * DanaeNZ quit (Quit: TIME TO FEED)
110: [02:09:59] * micmania1 quit (Quit: micmania1)
111: [02:17:54] * janneklouman-- has joined #silverstripe
112: [02:22:34] * janneklouman-- quit (Ping timeout: 264 seconds)
113: [02:35:25] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
114: [02:36:29] * adrexia has joined #silverstripe
115: [02:37:13] <Nightjar> well handle them in the most senior class you've got edit abilit on.
116: [02:37:15] <Nightjar> if you can
117: [02:37:30] * adrexia quit (Client Quit)
118: [02:37:32] <Nightjar> It needent fly that high up the call stack.
119: [02:37:44] * adrexia has joined #silverstripe
120: [02:37:51] * adrexia quit (Client Quit)
121: [02:45:42] * micmania1 has joined #silverstripe
122: [03:04:58] * DanaeNZ has joined #silverstripe
123: [03:05:09] * howardgrigg quit (Remote host closed the connection)
124: [03:05:42] * howardgrigg has joined #silverstripe
125: [03:14:05] <Nightjar> zippy, ^^^
126: [03:14:30] <spronk> raaahhh
127: [03:14:30] <spronk> queues
128: [03:14:36] <spronk> do your head in when you have enough of them
129: [03:14:53] * micmania1 quit (Quit: micmania1)
130: [03:15:46] <zippy> thats why at the supermarket it's best to go through those self-checkout ones. Unless there is no-one at the other checkout waiting, self service is most of the time faster
131: [03:17:23] <zippy> Nightjar: handle them in the most senior class how?
132: [03:17:28] <zippy> by overriding the handleAction method?
133: [03:17:32] <Nightjar> I find the opposite really. Because there's always something that won't scan, or you don't know what it's called, or someshit
134: [03:17:42] <Nightjar> zippy, well eg. Page.php
135: [03:17:48] <Nightjar> you control it, plonk it in there, and yes.
136: [03:18:11] <zippy> and when you say "plonk it in there", you mean the override right?
137: [03:18:21] <Nightjar> try {parent::__FUNCTION__()} catch {whooptywhoop}
138: [03:18:31] <Nightjar> pretty much, yeh
139: [03:19:01] <Nightjar> or if it's a custom method then you don't need to, eg. you point all actions to ->'handleMyActions'
140: [03:19:04] <Nightjar> etc
141: [03:19:07] <Nightjar> idk, something like that
142: [03:19:28] <Nightjar> You're a smart chap zippy, I know you'll figure something out :D
143: [03:19:37] <zippy> :P
144: [03:19:37] <Nightjar> I gotta bails, hometime
145: [03:19:42] <Nightjar> :D
146: [03:19:45] <Nightjar> ciao
147: [03:19:51] * Nightjar quit (Quit: Leaving)
148: [03:21:27] <spronk> scherrrkkkk
149: [03:21:33] <spronk> why fuck my test no worky worky
150: [03:23:37] * Azure quit (Read error: Connection reset by peer)
151: [03:25:35] * Azure has joined #silverstripe
152: [03:26:55] * adrexia has joined #silverstripe
153: [03:28:12] <zippy> chow :)
154: [03:36:36] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
155: [03:37:24] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
156: [04:03:31] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
157: [04:05:51] * DanaeNZ quit (Quit: TIME TO FEED)
158: [04:30:02] * janneklouman-- has joined #silverstripe
159: [04:31:29] * Pyromanik has joined #silverstripe
160: [04:35:01] * janneklouman-- quit (Ping timeout: 256 seconds)
161: [04:43:55] * howardgrigg quit (Remote host closed the connection)
162: [04:44:02] * howardgrigg has joined #silverstripe
163: [04:47:16] * spronk quit (Quit: I may need a longer sleep timer...)
164: [05:00:53] * spronk has joined #silverstripe
165: [05:53:18] * spronk quit (Quit: I may need a longer sleep timer...)
166: [06:12:38] * Pyromanik quit (Quit: Leaving)
167: [06:26:21] * pweh has joined #silverstripe
168: [06:58:20] * terryapodaca has joined #silverstripe
169: [06:58:41] <terryapodaca> wasn't there a site called ssjobs.com or something like that?
170: [06:58:53] <terryapodaca> if so, what happened to it, or what's the real URL for it?
171: [07:01:13] * NETim has joined #silverstripe
172: [07:07:55] * pweh quit (Ping timeout: 248 seconds)
173: [07:18:12] * pweh has joined #silverstripe
174: [07:21:57] * micmania1 has joined #silverstripe
175: [07:39:59] * Eliseth has joined #silverstripe
176: [07:42:21] * Bhavya has joined #silverstripe
177: [07:42:21] <ss-helper> Bhavya: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
178: [07:44:20] * zippy has joined #silverstripe
179: [08:05:21] * Mike123 has joined #silverstripe
180: [08:12:40] * Bhavya quit (Ping timeout: 260 seconds)
181: [08:23:48] * howardgrigg quit ()
182: [08:31:14] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
183: [08:45:45] * terryapodaca1 has joined #silverstripe
184: [08:45:54] * terryapodaca1 quit (Client Quit)
185: [09:03:25] * kinglozzer has joined #silverstripe
186: [09:07:08] * filisko has joined #silverstripe
187: [09:12:38] * janneklouman-- has joined #silverstripe
188: [09:27:55] * pweh quit (Read error: Connection reset by peer)
189: [09:46:42] * agent44 has joined #silverstripe
190: [09:57:45] * terryapodaca quit (Quit: Leaving.)
191: [10:03:00] * samsamek has joined #silverstripe
192: [10:45:09] * filisko quit (Remote host closed the connection)
193: [10:48:15] * filisko has joined #silverstripe
194: [11:17:21] * Audlex has joined #silverstripe
195: [11:45:14] <ss-helper> How to fix configure error: Please reinstall the iconv library - http://stackoverflow.com/questions/41718524/how-to-fix-configure-error-please-reinstall-the-iconv-library
196: [11:56:40] * NETim quit (Ping timeout: 240 seconds)
197: [11:57:40] * NETim has joined #silverstripe
198: [12:21:10] * NETim quit (Ping timeout: 240 seconds)
199: [12:23:05] * agent44 quit (Ping timeout: 240 seconds)
200: [12:23:32] * micmania1 quit (Quit: micmania1)
201: [12:23:35] * agent44 has joined #silverstripe
202: [13:15:25] * Mike123 quit (Ping timeout: 260 seconds)
203: [13:23:42] * UndefinedOffset has joined #silverstripe
204: [14:19:00] * NETim_ has joined #silverstripe
205: [14:29:58] * Jonny_ has joined #silverstripe
206: [14:31:22] <Jonny_> Hey. Been having trouble adding a custom GridField to a ModelAdmin through getEditForm(). Would very much appreciate any help. Here is the code including other tests I've run to narrow down the problem: http://www.sspaste.com/paste/show/587f7bb8574c6
207: [14:35:26] <Jonny_> SS version 3.4.1 by the way.
208: [14:57:01] <kinglozzer> Jonny_: call $fields->setForm($form)
209: [15:00:09] <Jonny_> I could kiss you
210: [15:00:16] <Jonny_> Thank you so much!
211: [15:01:04] <kinglozzer> 😚
212: [15:01:05] <kinglozzer> :P
213: [15:01:08] <kinglozzer> no problem
214: [15:01:11] <Jonny_> :P
215: [15:12:28] * Jonny_ quit (Quit: Page closed)
216: [15:18:39] * janneklo1man-- has joined #silverstripe
217: [15:18:40] * ss23_ has joined #silverstripe
218: [15:18:53] * janneklouman-- quit (Write error: Broken pipe)
219: [15:18:58] * ss23 quit (Remote host closed the connection)
220: [15:19:29] * Zauberfisch quit (*.net *.split)
221: [15:19:30] * vitaly_ quit (*.net *.split)
222: [15:19:43] * BackEndCoder quit (*.net *.split)
223: [15:21:20] * BackEndCoder has joined #silverstripe
224: [15:22:45] * vitaly_ has joined #silverstripe
225: [15:27:52] * Zauberfisch has joined #silverstripe
226: [16:01:39] * samsamek quit (Quit: samsamek)
227: [16:18:05] * filisko quit (Ping timeout: 255 seconds)
228: [16:19:18] <NETim_> Morning. Got a site that is showing the staging URL in the CMS for the URL Segment even though the site is live?
229: [16:19:36] * filisko has joined #silverstripe
230: [16:21:53] <kinglozzer> NETim_: Do you have a Director.alternate_base_url set?
231: [16:22:33] <NETim_> nope.
232: [16:22:55] <NETim_> checked through the code and we aren't setting the URL anywhere.
233: [16:25:10] <kinglozzer> Run a /dev/build?
234: [16:25:45] <kinglozzer> I assume you mean that it's showing a staging domain name as the prefix for the URL Segment? Or do you mean the actual URLSegment value for the page is wrong?
235: [16:26:10] <NETim_> The prefix is wrong.
236: [16:26:24] <NETim_> We've dev/built a few times. Was my first thought.
237: [16:28:00] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
238: [16:28:40] <kinglozzer> Hmm
239: [16:28:49] * ToddM has joined #silverstripe
240: [16:28:49] <ss-helper> ToddM: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
241: [16:28:51] <kinglozzer> Server config thing?
242: [16:29:11] <kinglozzer> How about if you set up a test.php or something and just var_dump($_SERVER); ?
243: [16:29:21] <kinglozzer> Is HTTP_HOST correct in that?
244: [16:29:46] <NETim_> Yep.
245: [16:30:48] <ToddM> Good afternoon, has anyone run into an issue where only Admins can approve publishing using the AdvancedWorkflow module?
246: [16:31:06] <kinglozzer> NETim_: What is the BASE_URL constant set to?
247: [16:31:25] <NETim_> Just checking.
248: [16:31:30] <NETim_> You mean $_SERVER?
249: [16:32:59] <kinglozzer> NETim_: Nah, just var_dump(BASE_URL) somewhere inside a SilverStripe page/controller or something
250: [16:33:06] <kinglozzer> It's set by SilverStripe early in the request
251: [16:33:18] <kinglozzer> It gets that value from the directory name usually I think
252: [16:33:23] <kinglozzer> Or something
253: [16:34:50] <NETim_> string(0) ""
254: [16:35:22] <kinglozzer> Okay, I think that's expected
255: [16:35:33] <kinglozzer> What if you just var_dump(Director::absoluteBaseURL()); ?
256: [16:35:42] <kinglozzer> That's where it gets the prefixfrom
257: [16:36:56] <NETim_> Got the correct URL there.
258: [16:38:06] <NETim_> But not in the prefix.
259: [16:38:21] <kinglozzer> NETim_: Browser cache maybe?
260: [16:39:27] <NETim_> It's on multiple devices.
261: [16:39:39] <NETim_> Killed the cache early on to check.
262: [16:40:32] <kinglozzer> That's mental
263: [16:40:37] <NETim_> yep.
264: [16:40:47] <NETim_> Nice little head scratcher.
265: [16:41:05] <kinglozzer> NETim_: https://github.com/silverstripe/silverstripe-cms/blob/3.5/code/model/SiteTree.php#L1954 that's where it sets the prefix
266: [16:41:29] <kinglozzer> I can't see how it can be anything other than what Director::absoluteBaseURL() returns :|
267: [16:44:50] * ToddM quit (Ping timeout: 260 seconds)
268: [16:45:24] <NETim_> Odd.
269: [16:47:14] <NETim_> SS doesn't cache the prefix in some way for existing pages does it?
270: [16:48:54] <kinglozzer> Nope
271: [16:51:53] * samsamek has joined #silverstripe
272: [16:52:31] <NETim_> oh.
273: [17:01:07] * janneklo1man-- quit (Ping timeout: 258 seconds)
274: [17:30:38] * kinglozzer quit ()
275: [17:53:25] * DimiStripe quit (Quit: DimiStripe)
276: [17:55:17] * samsamek quit (Quit: samsamek)
277: [17:59:16] * agent44 quit (Quit: zzz)
278: [18:22:31] * NETim_ quit (Quit: Leaving)
279: [18:35:06] * UndefinedOffset quit (Quit: Leaving.)
280: [18:47:27] * wmk has joined #silverstripe
281: [18:52:45] * samsamek has joined #silverstripe
282: [19:07:59] * UndefinedOffset has joined #silverstripe
283: [19:54:59] * ss23_ is now known as ss23
284: [20:01:02] * adrexia has joined #silverstripe
285: [20:09:18] * trash_ has joined #silverstripe
286: [20:20:09] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
287: [20:20:27] * adrexia has joined #silverstripe
288: [20:40:53] * zippy has joined #silverstripe
289: [20:52:01] <zippy> good morning
290: [20:52:52] * micmania1 has joined #silverstripe
291: [20:55:11] * gelignite has joined #silverstripe
292: [20:59:00] * DimiStripe has joined #silverstripe
293: [21:11:59] * keksters has joined #silverstripe
294: [21:12:47] * micmania1 quit (Quit: micmania1)
295: [21:14:35] <keksters> I'm wondering if anyone can help me. I'm upgrading a 3.0.x site to 3.1.0 and it has an ecommerce extension using the now deprecated extraDBFields: http://pastebin.com/5vfpsNfJ
296: [21:15:03] <keksters> I can only find information relating to 2.4.x saying to use ExtraStatics but this also brings up a deprecation notice
297: [21:15:41] <keksters> It says use get_extra_config but I'm also struggling to find relevant documentation on this that's not source code
298: [21:17:41] <keksters> Ohh nooope I may have got it
299: [21:19:19] <keksters> I swear it's a knack to figure out a problem by finally asking a question about it when you've been looking into it for a while
300: [21:24:37] <zippy> Rubber duck debugging
301: [21:24:50] <zippy> https://en.wikipedia.org/wiki/Rubber_duck_debugging
302: [21:28:39] <keksters> Yeah pretty much just need a rubber duck of my own. Usually use my coworkers but then they complain about me speaking at them about things they don't understand :)
303: [21:29:00] * agent44 has joined #silverstripe
304: [21:29:27] <xyphoid> i upgraded my rubber duck this year to https://www.dropbox.com/s/bjs9hd5139m8p54/2017-01-09%2010.35.47.jpg?dl=0
305: [21:29:35] <xyphoid> the duck can go into a welldeserved retirement
306: [21:30:06] <keksters> That's an excellent rubber duck
307: [21:30:35] <keksters> I guess in that vein I have a rainbow dash, pony, or zebra to talk to haha
308: [21:30:36] <_Nasir> I am envious of your this is fine dog lol
309: [21:31:48] <zippy> I talk to Jack; http://previewcf.turbosquid.com/Preview/2014/05/26__01_29_11/Jack01-01.jpgc98ed1de-0035-4e13-a472-a1dc00c7fd70Original.jpg
310: [21:32:25] <xyphoid> do you solve your problems or end up facefirst on the desk
311: [21:32:29] <xyphoid> i guess that solves your problem
312: [21:44:51] * spronk has joined #silverstripe
313: [21:47:59] * UndefinedOffset quit (Quit: Leaving.)
314: [21:53:19] * Nightjar has joined #silverstripe
315: [21:54:43] <keksters> So I'm not completely au fait with SilverStripe's upgrade path. I want to upgrade this (now) 3.1.0 site to the latest stable release. Do you reckon I'll be fine just ticking along each major release until I get to 3.5?
316: [21:55:08] <zippy> depends on how complex the site is
317: [21:55:26] <zippy> I did one this week, medium sized site - 5 hours~
318: [21:55:31] <zippy> most of that is just testing and checking
319: [21:55:46] <zippy> scan the upgrade docs of 3.2.0, 3.3.0 and 3.4.0
320: [21:55:50] <zippy> and ofc, 3.5.0
321: [21:56:03] <keksters> I believe it's a pretty straightforward site. There is an ecommerce section that I reckon will give me the most difficulty
322: [21:57:21] <keksters> Yeah I've just been browsing the docs for 3.2.0. I didn't build this site so I'm not really going to know what's deprecated or changed in the API until I hit it =/
323: [21:58:00] <keksters> I'm just having fun with the assets because there's evidently a permissions issue going on between the server I transferred from and the server I'm transferring to
324: [21:58:57] <Nightjar> keks!? dat u?
325: [21:59:22] <keksters> yeeeesss?
326: [22:00:15] <Nightjar> I don't believe it.
327: [22:00:34] <keksters> >_>
328: [22:00:38] <_Nasir> It's your long lost son, Nightjar!
329: [22:01:18] <keksters> Honestly though, the handle's not ringing a bell, sorry
330: [22:04:07] <Nightjar> yeah.
331: [22:04:32] <Nightjar> Years of a misspent youth. Whatever, it's cool. I forgive you.
332: [22:04:46] <keksters> I'm grateful of the forgiveness
333: [22:04:53] <Nightjar> :)
334: [22:04:58] <_Nasir> This is riveting lol, I cannot wait to see the outcome
335: [22:05:05] <keksters> *ahem* nu phone hu dis?
336: [22:05:53] <Nightjar> kekekeke
337: [22:06:09] * micmania1 has joined #silverstripe
338: [22:06:50] <Nightjar> keksters, so anyway, long story short... get in to 3.2. ... something.
339: [22:07:00] <Nightjar> then howay => 3.5 boom done.
340: [22:07:18] <keksters> You reckon I can go straight from 3.2 to 3.5?
341: [22:07:19] <Nightjar> semver dictates nothing (major at least) should break on that path.
342: [22:07:21] <Nightjar> yeh
343: [22:07:33] <Nightjar> but go to 3.2 first, that wasn't particularly semver :<
344: [22:07:41] <keksters> Cool
345: [22:08:07] <keksters> Nightjar: do I get a hint?
346: [22:08:40] * agent44 quit (Quit: zzz)
347: [22:11:43] <Nightjar> huh?
348: [22:12:16] <keksters> On the years of misspent youth
349: [22:13:41] <keksters> Teddy?
350: [22:14:30] * wmk quit (Ping timeout: 240 seconds)
351: [22:16:43] <Nightjar> D: wut
352: [22:17:19] <keksters> Just trying to guess
353: [22:25:36] <Nightjar> I'm lost.
354: [22:25:57] * DanaeNZ has joined #silverstripe
355: [22:27:27] <DanaeNZ> My many_many_extraField is a Date, but when I try to use Format in my template looping over the component, it doesn't work. It can revert to the forTemplate() (just echo $StartDate) but I don't know why it isn't casting correctly
356: [22:28:07] <Nightjar> casting?
357: [22:28:13] <Nightjar> or just using as is?
358: [22:29:39] <_Nasir> Can one of you geniuses help me out?
359: [22:29:50] <_Nasir> Can I set a default login destination for groups?
360: [22:29:51] <Nightjar> k
361: [22:29:56] <Nightjar> probably
362: [22:39:32] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
363: [22:39:47] <DanaeNZ> Can't be as is
364: [22:39:59] <DanaeNZ> How do you cast a many_many_extrafield?
365: [22:40:08] <Nightjar> dunno, $casting?
366: [22:41:09] <DanaeNZ> Mm that's what I would think, except it doesn't pick up StartDate nor ManyMany[StartDate]
367: [22:54:10] <spronk> hmm
368: [22:54:22] <spronk> do extrafields even cast?
369: [22:54:34] <DanaeNZ> I was trying to find out and I don't think they do.
370: [22:54:45] <DanaeNZ> I'll try put a little casting method on the actual obeject
371: [22:57:00] * trash_ quit (Ping timeout: 260 seconds)
372: [22:57:33] <DanaeNZ> excellent
373: [22:58:07] <DanaeNZ> http://www.sspaste.com/paste/show/587ff2f96f11c
374: [22:58:31] <DanaeNZ> And because of magic methods it should error out on an object that doesn't have the component
375: [23:00:01] * ss-helper quit (Remote host closed the connection)
376: [23:00:14] * ss-helper has joined #silverstripe
377: [23:13:16] * janneklouman-- has joined #silverstripe
378: [23:18:51] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
379: [23:24:51] * janneklouman-- quit (Ping timeout: 240 seconds)

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