#silverstripe IRC Log

IRC log for 23 September 2013

All timestamps are in UTC.

1: [00:01:55] * Jayden90 has joined #silverstripe
2: [00:07:32] <Colin[pi]> afk
3: [00:10:02] <spronk> possible to access HTTPRequest in template?
4: [00:10:34] * nhorstmeier quit (Remote host closed the connection)
5: [00:10:45] <simon_w> No, not a ViewableData subclass
6: [00:11:19] <spronk> kaigh
7: [00:11:23] <spronk> tx
8: [00:11:32] * spronk presses some buttons
9: [00:12:46] * Stomach quit (Quit: Leaving.)
10: [00:13:14] * Stomach has joined #silverstripe
11: [00:13:15] <mirrors> thanks ss23 ...i ended up creating a .htaccess redirect rule to direct index.php to /
12: [00:13:49] * DigNZ quit (Quit: DigNZ)
13: [00:14:31] <ss23> mirrors: that works too, but mine is easier :P
14: [00:18:09] * unsignedint has joined #silverstripe
15: [00:20:03] * DigNZ has joined #silverstripe
16: [00:20:03] * DigNZ quit (Remote host closed the connection)
17: [00:20:18] * DigNZ has joined #silverstripe
18: [00:20:23] * DigNZ quit (Client Quit)
19: [00:23:57] * Jayden90 quit (*.net *.split)
20: [00:23:58] * Peavers quit (*.net *.split)
21: [00:23:58] * mobiusnz quit (*.net *.split)
22: [00:23:58] * Guest68628 quit (*.net *.split)
23: [00:24:25] * Peavers has joined #silverstripe
24: [00:26:54] <MattSS_> zippy__: $pages = Page::get(); $array = $pages->map('ID', 'Title'); // Will return an array of ID => Title for every Page in the DB
25: [00:35:03] * robert__ quit (Ping timeout: 276 seconds)
26: [00:35:07] <ss23> simon_w: halp
27: [00:35:19] <ss23> simon_w: http://www.vulnerability-lab.com/get_content.php?id=1084&utm_source=twitterfeed&utm_medium=twitter
28: [00:35:28] <ss23> simon_w: That vuln looks like XSS or something?
29: [00:35:38] <ss23> simon_w: But not noted in changelogs
30: [00:35:48] * robert_ has joined #silverstripe
31: [00:35:48] * robert_ quit (Changing host)
32: [00:35:48] * robert_ has joined #silverstripe
33: [00:44:10] * DigNZ has joined #silverstripe
34: [00:45:42] * razzi quit ()
35: [00:50:15] * robert_ quit (Ping timeout: 252 seconds)
36: [00:50:15] * robert___ has joined #silverstripe
37: [00:50:15] * robert___ quit (Changing host)
38: [00:50:15] * robert___ has joined #silverstripe
39: [00:56:15] * mirrors quit (Quit: Page closed)
40: [00:59:26] * simon_w|air has joined #silverstripe
41: [01:00:02] <ss23> simon_w: Did you want lunch with me today? ^.^
42: [01:00:49] <simon_w|air> You want to come up to Karori for it?
43: [01:02:13] <ss23> simon_w|air: Hmmmmmmmmm, no.
44: [01:02:13] <ss23> :P
45: [01:02:50] <ss23> Solr makes me laugh, search for recycling -> "did you mean recyclingther?"
46: [01:06:12] <spronk> :|
47: [01:07:51] <atmos> spronk: :)
48: [01:07:54] <atmos> whoops
49: [01:07:59] <atmos> ss23: :D
50: [01:08:12] <ss23> atmos: :P
51: [01:08:48] <atmos> ss23: is that a ticket for us?
52: [01:08:52] <ss23> atmos: Yeah :P
53: [01:09:16] <ss23> atmos: I've definitly noticed it before, though I have no idea about it, I've willfully ignored it before now :P
54: [01:09:17] <atmos> ss23: cool, It's a prett odd one
55: [01:09:22] <ss23> Yeah
56: [01:09:25] <atmos> pretty*
57: [01:09:38] <ss23> Won't have time to look proeprly for a while anyway, might just defer to someone who does more solr stuff :D
58: [01:10:04] <atmos> ss23: yeah, I only saw it during a meeting and I've got a mountain of other stuff to do :P
59: [01:10:18] <atmos> meeting Friday*
60: [01:11:46] <spronk> damnit
61: [01:11:50] <spronk> me shit's not publishing D:
62: [01:11:54] <ss23> lol
63: [01:12:01] <ss23> spronk: turn off all the publishers
64: [01:12:01] <ss23> :D
65: [01:12:30] <spronk> also, SS's pages panel needs desperately to be resizable
66: [01:12:35] <spronk> or, draft icons need to be before page names
67: [01:12:52] <ss23> I hate the way you need to hover to see it say "Draft"
68: [01:12:56] <spronk> yeah
69: [01:13:03] <spronk> and its at the end, so gets hidden
70: [01:14:26] <spronk> Y U NO PUBLUSH :(
71: [01:14:36] <spronk> no errors either
72: [01:14:40] <zippy__> When you add a module in 3.1m do you need tell it where to look for templates?
73: [01:14:56] <zippy__> "None of these templates can be found in theme 'default': GridFieldSortableRows.ss" even after some dev/build flush=all ..
74: [01:15:24] <zippy__> I can see the view in the SortableGridField includes folder, why SS can't see it!
75: [01:16:15] <zippy__> hmm below away the whole silverstripe-cache folder, and fixed it
76: [01:16:17] <zippy__> loose
77: [01:16:19] <spronk> this is really starting to piss me off.
78: [01:16:21] <ss23> zippy__: Doing a flush should be enough. Do a flush on the index or /admin, not dev/build?flush=all
79: [01:16:25] <ss23> zippy__: I have had those issues too
80: [01:16:40] * Peavers quit (Ping timeout: 245 seconds)
81: [01:16:42] <zippy__> Ahh ok, that was probably what I ran into
82: [01:16:59] <spronk> in fact, *nothing* is saving
83: [01:17:00] <spronk> wtf
84: [01:17:04] <ss23> spronk: :O
85: [01:17:05] * Peavers has joined #silverstripe
86: [01:17:18] <ss23> Oh no.
87: [01:17:23] <spronk> how can i even debug this
88: [01:17:43] * robert___ is now known as robert_
89: [01:19:24] <ss23> spronk: var_dump!
90: [01:19:43] <simon_w|air> gdb!
91: [01:19:47] <ss23> lol
92: [01:19:50] <ss23> simon_w|air has been doing too many internals
93: [01:19:59] <spronk> lulz
94: [01:20:00] <ss23> Though I admit, I spent a good chunk of my weekend with gdb and php too :,
95: [01:20:00] <spronk> gdb
96: [01:20:01] <spronk> sif
97: [01:20:15] <ss23> simon_w|air: Are you pro at internals now? What about reverse engineering in general? Assembly?
98: [01:20:31] * UncleCheese_ quit (Quit: UncleCheese_)
99: [01:20:56] <spronk> k this is bizarre
100: [01:20:57] <simon_w|air> I'm just working on ext/reflection, most of which is PHP
101: [01:20:58] <spronk> now it's all working.
102: [01:21:20] <spronk> oh.. no
103: [01:21:30] <ss23> aw okay
104: [01:21:31] <spronk> pages that are already published save and publish just fine
105: [01:22:01] <simon_w|air> I barely know C++
106: [01:22:16] <ss23> Isn't PHP C?
107: [01:22:26] <ss23> I haven't actually checked now that I think about it, but all the source code I read was C
108: [01:22:45] <ss23> inb4 "Oh we compile as c++ but write C so we get the features!"
109: [01:23:17] <simon_w|air> Yes, most of PHP is C
110: [01:23:17] <ss23> simon_w|air: Did you see that advisory though?
111: [01:23:28] <simon_w|air> I'm not working with PHP internals though
112: [01:23:30] <spronk> does getCMSValidator() still work?
113: [01:23:41] <simon_w|air> ss23, did you see me not giving a fuck?
114: [01:23:49] <ss23> ;_;
115: [01:23:54] <ss23> simon_w|air: SO MEAN
116: [01:23:55] <ss23> :<
117: [01:24:33] <simon_w|air> Related, why is it so hard to find shrinks in Wellington with yellow?
118: [01:24:46] <ss23> What are "shrinks" in this context?
119: [01:25:16] <simon_w|air> What they are in any context. There's only one version of the noun
120: [01:25:18] <spronk> hmm, k, so... my RequredFields returning from getCMSValidator() seems to do its job, but the CMS doesn't highlight any missing fields.
121: [01:25:38] <ss23> simon_w|air: What are "shrinks"?
122: [01:26:46] <simon_w|air> ss23, http://lmgtfy.com/?q=define%3Ashrinks
123: [01:27:13] <ss23> shrinks 3rd person singular present, plural of shrink
124: [01:27:14] <ss23> Verb
125: [01:27:14] <ss23> Become or make smaller in size or amount; contract or cause to contract.
126: [01:27:14] <ss23> Noun
127: [01:27:14] <ss23> A clinical psychologist, psychiatrist, or psychotherapist.
128: [01:27:19] <ss23> ...
129: [01:27:26] <ss23> This doesn't explain *at all*
130: [01:28:02] <simon_w|air> Yes it does
131: [01:28:02] <spronk> can anyone confirm whether getCMSValidator failures still actually work, i.e. highlight the offending CMS fields?
132: [01:28:04] <ss23> ...
133: [01:28:09] <MattSS_> spronk: I am keen to know of anything you find regarding that - assuming SS3?
134: [01:28:18] <simon_w|air> spronk, you'd probably have better luck with validate() itself
135: [01:28:26] <spronk> ss3.1
136: [01:28:29] <spronk> hrmm
137: [01:28:33] <spronk> i'm pretty sure this used to work
138: [01:28:37] <simon_w|air> Yes
139: [01:28:38] <spronk> i.e. in 3.0
140: [01:28:47] <spronk> or maybe even early 3.1
141: [01:28:51] <simon_w|air> Potentially
142: [01:29:07] <simon_w|air> It's been some time since I've used the CMS for anything other than ModelAdmin and SecurityAdmin
143: [01:29:09] <spronk> any ideas on whenabouts it might have changed?
144: [01:29:56] <simon_w|air> nope
145: [01:30:04] * Colin[pi] quit (Ping timeout: 256 seconds)
146: [01:30:24] * Colin[pi] has joined #silverstripe
147: [01:38:49] <spronk> fucks sakes.
148: [01:38:54] <ss23> fucking fuck.
149: [01:38:57] <GuestNewbie> i agree
150: [01:39:01] <ss23> (Just gotta keep my fuck counters up with spronk here :O)
151: [01:39:21] <spronk> ;)
152: [01:39:30] <spronk> RequiredFields is all PHP, so..
153: [01:39:43] <spronk> it looks light it might be smoething in the javascript that's screwing it up D:
154: [01:44:46] * Jayden90 has joined #silverstripe
155: [01:48:06] <Jayden90> Hmm this is super anoying
156: [01:48:11] <Jayden90> https://github.com/silverstripe/silverstripe-framework/blob/3.1/forms/FieldList.php#L627
157: [01:48:43] <Jayden90> this keeps messing with my stuff when attempting to set up a "Root.Content.Foo" tab
158: [01:49:02] <Jayden90> I actually have a Content tab, but it keeps trying to be helpfull
159: [01:49:12] <Jayden90> and rewrites if for me
160: [01:49:28] <Jayden90> "Caution: Volatile API, might be removed in 3.1 or later" in the comment
161: [01:50:43] * UncleCheese_ has joined #silverstripe
162: [01:51:57] <simon_w|air> Jayden90, $field->setTabPathRewrites(array());
163: [01:52:37] * nick86 has joined #silverstripe
164: [01:52:50] <Jayden90> simon_w|air: intredasting
165: [01:54:59] * kerosene quit (Ping timeout: 256 seconds)
166: [01:55:41] <spronk> k so apparently ss3.1 $form->setValidator() kills xdebug on php5.4
167: [01:59:14] * Stomach quit (Quit: Leaving.)
168: [01:59:19] * spronk has left #silverstripe
169: [02:01:08] * spronk has joined #silverstripe
170: [02:01:43] * Stomach has joined #silverstripe
171: [02:04:07] * travis-ci has joined #silverstripe
172: [02:04:08] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1016 (3.1.0 - 5b47c3a : Sean Harvey): The build passed.
173: [02:04:08] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/7627d95555f6...5b47c3aa1c39
174: [02:04:08] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11672082
175: [02:04:08] * travis-ci has left #silverstripe
176: [02:06:00] <zippy__> With a page in the CMS, is it possible to have the normal route, but then do a /page-url/* which maps that * to another function, or /page-url/xxxxx and /page-url/abc all get maped to a specific function ?
177: [02:06:18] <zippy__> where page-url is dynamic also
178: [02:06:56] <simon_w|air> You can have $url_handlers on your Page_Controller calsses
179: [02:07:00] <zippy__> like a catch all action
180: [02:12:42] <spronk> y u break my debugger, silverstripe!?
181: [02:14:38] * coldblooded01 quit (Quit: coldblooded01)
182: [02:14:55] <spronk> ugh
183: [02:15:13] <spronk> debugger runs out of memory, because ss is so bloaty
184: [02:15:23] <ss23> lol
185: [02:15:32] <spronk> so i can't even debug this issue.
186: [02:15:45] <simon_w> ss23, https://github.com/facebook/hiphop-php/pull/1086 :p
187: [02:15:51] <ss23> spronk: Don't worry, designers aren't good at debugging code anyway
188: [02:15:53] <ss23> spronk: :3
189: [02:16:02] <ss23> simon_w: Nice, FINALLY :P
190: [02:16:12] <spronk> shut your face, woman
191: [02:16:12] <ss23> simon_w: Is aatch the other dev you guys have/
192: [02:16:16] <ss23> spronk: XD
193: [02:16:19] <simon_w> ss23, yes
194: [02:16:20] <ss23> oh, it's james
195: [02:16:35] <simon_w> Pfft, only 12 files changed
196: [02:16:36] <ss23> You have 3, right?
197: [02:16:46] <ss23> simon_w: Tell him his avatar is very cute ^.^
198: [02:17:05] <simon_w> Two devs and a designer
199: [02:17:16] <simon_w> "156 changed files with 3,102 additions and 43 deletions."
200: [02:17:20] * simon_w wins
201: [02:17:28] <ss23> ah yep
202: [02:17:28] * Guest68628 has joined #silverstripe
203: [02:17:32] <ss23> https://travis-ci.org/facebook/hiphop-php/builds/11671550 >failed
204: [02:17:37] <ss23> why even saubmit the PR without testing!
205: [02:20:53] <simon_w> Because that's what travis is for!
206: [02:21:53] * atmos quit (Ping timeout: 250 seconds)
207: [02:22:01] <ss23> lol
208: [02:22:05] <ss23> qft
209: [02:22:09] <ss23> That's how I do all my testing :D
210: [02:24:43] * peter_ss quit (Quit: Leaving.)
211: [02:25:47] <spronk> cool so i can't debug ss, because it has such deep call stacks, xdebug chews up too much memory
212: [02:29:06] <simon_w> Sounds about right
213: [02:33:47] <spronk> le sigh
214: [02:33:50] * Stomach quit (Quit: Leaving.)
215: [02:34:15] * Stomach has joined #silverstripe
216: [02:36:40] <spronk> wow
217: [02:36:50] <spronk> apache is using 1GB mem trying to debug this
218: [02:40:32] <ss23> :O
219: [02:40:35] <ss23> Almost 1.5 gb
220: [02:42:26] <spronk> when did all the pjax shit get added?
221: [02:43:13] <simon_w> 3.0
222: [02:44:57] <spronk> hmm
223: [02:44:59] <spronk> this was working in 3.0
224: [02:54:54] * Error404NotFound has joined #silverstripe
225: [03:11:14] <spronk> ugh
226: [03:11:21] <spronk> fucking virtual pages
227: [03:17:36] <GuestNewbie> is there a write up on how to show a bunch of dataobjects i have through say /object-name/id
228: [03:17:43] <GuestNewbie> i've bene looking at the docs and am still confused
229: [03:17:48] <GuestNewbie> have built myd ata objects and so on
230: [03:17:52] <GuestNewbie> have a template to render them with
231: [03:17:56] <GuestNewbie> have an admin section to add/remove them
232: [03:18:45] * UncleCheese_ quit (Quit: UncleCheese_)
233: [03:19:00] <GuestNewbie> i just want to go http://foo/event/<id>/ and have my Event template render the Event DO with that ID
234: [03:22:33] <spronk> UGH
235: [03:26:10] <Colin[pi]> GuestNewbie: you'll want to read up on the Controller and renderWith()
236: [03:26:22] <ss23> Looks like another RC before stable release! :D
237: [03:26:28] <Colin[pi]> w00t w00t
238: [03:27:10] <spronk> dear god
239: [03:27:32] <Colin[pi]> spronk are you still having probs with subsites?
240: [03:27:38] <spronk> don't even talk to me about subsites
241: [03:27:41] <Colin[pi]> lol
242: [03:27:51] <spronk> although these days my issues are more with SilverStripe itself
243: [03:28:47] <Colin[pi]> you can always switch to joomla
244: [03:29:04] <spronk> sigh
245: [03:29:10] <spronk> to be brutally honest, i am looking for replacements
246: [03:29:15] <Colin[pi]> :(
247: [03:29:25] <ss23> spronk: Good luck :P
248: [03:29:38] <ss23> No one is saying SilverStripe is best, but from a developers perspective, it's a fuckton nicer than any other system
249: [03:29:42] <ss23> Though, weirdly, it's like...
250: [03:29:51] <ss23> The more you learn Drupal or Wordpress, the more you *hate* it
251: [03:29:56] <ss23> The more you learn SilverStripe though, the nicer it gets
252: [03:30:03] * spronk disagrees with that
253: [03:30:11] * UncleCheese_ has joined #silverstripe
254: [03:30:11] <spronk> the more I learn about SS, the more concerned I get
255: [03:30:15] <ss23> lol
256: [03:30:17] <ss23> sif
257: [03:30:18] <ss23> Designer.
258: [03:30:26] <spronk> there are so many parts that are just far too complicated
259: [03:30:30] <ss23> Hmm
260: [03:30:35] <spronk> needlessly so
261: [03:30:52] <simon_w> spronk, just don't use the CMS
262: [03:30:57] <Colin[pi]> ss23: like I said recently, even with it's quirks, I look at some of the others an realise how nice it is
263: [03:30:59] <simon_w> That throws out most of the complication most people use
264: [03:31:13] <ss23> Yeah
265: [03:31:14] <ss23> idk
266: [03:31:15] <spronk> and there are so many little bugs, and bits that don't work together
267: [03:31:15] <spronk> like, for example, requiredfields in the cms now
268: [03:31:15] <spronk> simon_w: why would i bother with the framework without the cms, though?
269: [03:31:15] <spronk> there are vastly superior frameworks around :p
270: [03:31:24] <ss23> I can only speak for what I know, and SS is one of the nicest
271: [03:31:31] <Colin[pi]> even though we fight sometimes it's still like "lets not fight baby, i still love you SS"
272: [03:31:41] <spronk> i still maintain for simple sites, SS is the nicest for developing on
273: [03:31:58] <spronk> but anything complex and i spend more time debugging than i do producing
274: [03:32:17] <spronk> i mean, it obviously doesn't help that i'm working with an RC
275: [03:32:33] <spronk> but subsites is so broken pre-3.1 that it's not even worth using
276: [03:32:53] <ss23> subsites is still broken 3.1 IMO
277: [03:32:56] <spronk> well, yeah
278: [03:33:08] <spronk> currently having big issues with virtualpages
279: [03:33:33] <spronk> other dev using things like ProductPage::get()
280: [03:33:46] <spronk> never picks up vpages, but realistically it should
281: [03:35:56] * GuestNewbie is now known as longtips
282: [03:38:15] <spronk> has something changed about the way userdefinedforms adds the form to the page?
283: [03:38:24] <simon_w> var_dump debugging with a compile step isn't as fast as it should be
284: [03:41:57] * simon_w adds even more files to his PR
285: [03:45:36] <Colin[pi]> virtualpages has always seemed very hackish to me
286: [03:45:42] <Colin[pi]> *have
287: [03:46:51] <spronk> yeah
288: [03:47:11] <spronk> can anyone confirm whether getCMSValidator() and RequiredFields actually displays errors in the CMS ?
289: [03:47:17] <spronk> in 3.1 rc..w
290: [03:47:18] <spronk> 2
291: [03:53:50] * cloph_away has joined #silverstripe
292: [03:53:57] * cloph quit (Ping timeout: 252 seconds)
293: [03:57:43] * EasyCo has joined #silverstripe
294: [03:59:12] <EasyCo> Hey fellahs, anybody know why I'd my ajax request is returning no data? I'm getting a 200 response, and the method is being hit and the if I debug the methods return statement, i get the data that should be received by the ajax request
295: [03:59:38] <EasyCo> But it just never seems to make it. I always get 'This request has no response data available'
296: [04:00:17] * UncleCheese quit (Quit: UncleCheese)
297: [04:00:17] * UncleCheese_ is now known as UncleCheese
298: [04:01:57] <EasyCo> Argh, never mind, I was missing a return in the a calling method
299: [04:02:21] <EasyCo> Kooked it
300: [04:11:35] <spronk> ugh
301: [04:11:39] <spronk> i keep getting links back to old versions of pages
302: [04:12:11] * zippy__ quit (Quit: zippy__)
303: [04:12:39] <Colin[pi]> virtualpageS?
304: [04:12:44] <spronk> nope
305: [04:13:53] <spronk> ah interesting
306: [04:14:08] <spronk> there's some sort of obscure bug
307: [04:14:28] <spronk> i was sorting on a nonexisting field
308: [04:14:48] <spronk> was returning a 200 OK, but Sorry, there was a problem with handling your request
309: [04:14:59] <spronk> all links on the page were to old URLs
310: [04:15:07] <spronk> (site has changed from staging domain to live)_
311: [04:15:12] <spronk> ss23: security bugz
312: [04:15:25] <spronk> information leakagez!
313: [04:16:38] <ss23> :O
314: [04:17:14] <spronk> not a big one, but it shows old URLs
315: [04:17:16] <ss23> spronk: Old URLs, as in the ones from assets/error_400.html etc?
316: [04:18:15] <spronk> ahhhh
317: [04:19:17] <spronk> yes
318: [04:19:25] <spronk> that's confusing
319: [04:19:47] <spronk> have to republish that page to get it to rewrite the static
320: [04:20:21] <spronk> now, what was i saying before about the more i find out about silverstripe the more concerned i get? :P
321: [04:20:48] <ss23> lol
322: [04:20:57] <ss23> Well spronk, it's like...
323: [04:21:02] <ss23> You can't generate 500's on the fly, right
324: [04:21:10] <ss23> Because... well if you're 500ing, you can't do PHP stuff
325: [04:21:22] <ss23> So has to be cached
326: [04:21:23] <ss23> *shrug*
327: [04:21:25] <spronk> o_O
328: [04:21:28] <spronk> you can do php stuff in a 500 error
329: [04:21:39] <spronk> i always thought it used php shutdown handlers
330: [04:21:41] <ss23> spronk: Sometimes, it's not valid to say you always can
331: [04:21:43] <spronk> but apparently not
332: [04:22:29] <spronk> seems like it should be something that gets re-generated on a flush=all
333: [04:22:33] <spronk> or at the very least a dev/build
334: [04:23:10] <ss23> I agree!
335: [04:23:12] <ss23> spronk: Write a patch
336: [04:23:19] <spronk> no
337: [04:23:21] <ss23> spronk: Anyway, things like this, they're superficial issues with SilverStripe
338: [04:23:31] <spronk> here's the thing
339: [04:23:32] <ss23> They'rel ike, the exact opposite of the deep archectural issues Wordpres/Drupal has
340: [04:23:35] <spronk> i've spent so much time debugging this bullshit
341: [04:23:49] <ss23> I agree, both are shit, but developers like SilverStripe's issues better, since they're only surface deep (generally)
342: [04:23:54] <spronk> i'm now so far behind in making these deadlines i have no time to write any patches
343: [04:24:00] <ss23> Awww :<
344: [04:24:03] * ss23 pets spronk
345: [04:24:17] <spronk> jesus christ i hate web dev
346: [04:24:17] <ss23> spronk: I'll try write higher quality SilverStripe code for oyu ;_;
347: [04:24:25] <spronk> why am i a developer!?
348: [04:24:31] <ss23> I thought you prefered Design anyway/
349: [04:24:40] <spronk> at least with design what you see is what you get
350: [04:24:48] <Colin[pi]> spronk: just quit and become a gardener
351: [04:24:56] <ss23> ^^
352: [04:24:56] <spronk> IKR.
353: [04:24:57] <ss23> Or a butcher
354: [04:25:16] <Colin[pi]> or someone who rubs tanning lotion on brazilian girls on Ipanema
355: [04:25:22] <spronk> :O
356: [04:25:24] <spronk> YES.
357: [04:25:36] <ss23> XD
358: [04:25:39] <Colin[pi]> they love gringos over there ;)(
359: [04:25:40] <spronk> although i think the lady friend would have something to say about that
360: [04:25:43] <Colin[pi]> hehehe
361: [04:25:50] <ss23> spronk: Get her to help out too ;)
362: [04:26:02] <spronk> ooh, well said ss23, well said
363: [04:33:17] * liam_ has joined #silverstripe
364: [04:33:41] * liam_ is now known as Guest83925
365: [04:33:45] <Guest83925> anyone know how to make the widgets on the blog holder appear on the blog entry pages?
366: [04:38:39] * Jayden90 quit (Quit: Jayden90)
367: [04:38:42] <Bollig|DesignCty> Guest83925: you should be able to simply be able to <% control Parent %>
368: [04:40:54] <spronk> this shit is impossible to use with virtualpages :@
369: [04:41:57] <Guest83925> Bollig|DesignCty: nice thank you
370: [05:04:27] * Peavers quit (Ping timeout: 260 seconds)
371: [05:04:29] * EasyCo quit (Quit: EasyCo)
372: [05:05:41] * swordsmanz quit (Ping timeout: 248 seconds)
373: [05:08:35] * nickmolhoek quit (Quit: nickmolhoek)
374: [05:21:03] * travis-ci has joined #silverstripe
375: [05:21:03] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1018 (3.1 - f8eaf81 : Sean Harvey): The build passed.
376: [05:21:03] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/981850890ae7...f8eaf81ae252
377: [05:21:03] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/11676040
378: [05:21:03] * travis-ci has left #silverstripe
379: [05:25:18] <spronk> ah
380: [05:25:27] <spronk> "//we can't just use a plain ORM q here because we need to handle virtualpages"
381: [05:25:33] <spronk> x100000 through this codebase
382: [05:25:34] <spronk> FML.
383: [05:30:39] * DigNZ quit (Quit: DigNZ)
384: [05:33:20] * Stomach quit (Quit: Leaving.)
385: [05:43:06] * stecman quit (Quit: This computer has gone to sleep)
386: [05:44:42] * UncleCheese quit (Quit: UncleCheese)
387: [05:56:08] * Liquide quit ()
388: [05:56:32] * Guest83925 has left #silverstripe
389: [06:01:29] <spronk> does drag and drop reordering ever work properly for anyone?
390: [06:07:26] * UncleCheese has joined #silverstripe
391: [06:15:01] * Shrike_Finland has joined #silverstripe
392: [06:26:10] * Jayden90 has joined #silverstripe
393: [06:26:20] <Jayden90> "Magic quotes is now deprecated. Will trigger user_error on live sites, as well as an error on new installs" http://doc.silverstripe.org/framework/en/3.1/changelogs/3.1.0
394: [06:26:40] <Jayden90> We have magic quotes off but our live sites keep getting the error
395: [06:27:26] <spronk> apparently it isn't off, then :(
396: [06:29:58] <Jayden90> php info says it definitly is off
397: [06:30:10] <Jayden90> the only way to "fix" it is to comment out this line: https://github.com/silverstripe/silverstripe-framework/blob/3.1/core/Constants.php#L141
398: [06:30:59] <spronk> are you sure the phpinfo you're running is the same config as the server?
399: [06:31:07] <spronk> i.e. you're not running phpinfo on CLI vs mod_php ?
400: [06:32:12] <Jayden90> we just ran it from an info.php in the site root
401: [06:32:54] <spronk> :S
402: [06:32:54] <spronk> hmm
403: [06:32:57] <spronk> cache?
404: [06:34:01] <Jayden90> I suspect if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { ...
405: [06:34:07] <Jayden90> is not a reliable check
406: [06:38:59] <Jayden90> This is tricky to screw around with and test because it is only doing it on client's production servers
407: [06:39:01] * lerni has joined #silverstripe
408: [06:39:23] <Jayden90> 2 different servers with different 3.1 sites so far
409: [06:46:00] * willr has joined #silverstripe
410: [06:48:46] <spronk> hmm
411: [06:48:57] <spronk> that seems kinda strange
412: [06:48:57] <Jayden90> hmmm, the other place magic_quotes is checked is in intall.php5 and it is a diffirent method
413: [06:48:58] <Jayden90> https://github.com/silverstripe/silverstripe-framework/blob/3.1/dev/install/install.php5#L493
414: [06:49:18] <Jayden90> uses ini_get()
415: [06:49:22] <spronk> hmm
416: [06:49:37] <Jayden90> maybe this is more reliable
417: [06:49:43] <spronk> yeah
418: [06:49:46] <spronk> tbh i commented it out
419: [06:49:56] * zfmf1 has joined #silverstripe
420: [06:50:23] * willr quit (Ping timeout: 260 seconds)
421: [06:50:32] <Jayden90> having to comment out core sucks for us as we use git modules
422: [06:50:41] <Jayden90> along with auto beanstalk deployments
423: [06:50:46] <spronk> yeah
424: [06:50:53] <Jayden90> So to comment this out would mean versioning all of /framework/
425: [06:51:02] <spronk> what deployment are you using?
426: [06:51:06] <spronk> apachemodphp? fcgi?
427: [06:51:38] <Jayden90> tbh not familiar with this
428: [06:51:43] <spronk> hmm
429: [06:53:15] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
430: [07:02:05] * lerni quit (Ping timeout: 245 seconds)
431: [07:04:35] * lerni has joined #silverstripe
432: [07:05:02] <simon_w|air> Jayden90, try (allowing and) running an info.php from the framework folder
433: [07:06:21] <Jayden90> Ok, we are giving that a go
434: [07:06:39] <Jayden90> is there a reason it could run diffirently there?
435: [07:06:48] <simon_w|air> Yes
436: [07:09:00] <Jayden90> We are running into issues with the .htaccess and stuff preventing running that in there
437: [07:09:11] <simon_w|air> Yes, hence why you need to allow it first
438: [07:09:17] <Jayden90> this is a production server, so we cant hack away too much
439: [07:09:25] <simon_w|air> Look at how it allows home.php and do that
440: [07:10:43] <ss23> 18:35:42 < Jayden90> I suspect if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { ...
441: [07:10:54] <ss23> I struggle to think of a way that magic_quotes could be off, but have that return tru
442: [07:10:57] <ss23> true
443: [07:11:33] <ss23> It requires both to be true. The only way the second argument can be true is if, explicitly, magic_quotes is one
444: [07:11:43] <ss23> According to http://nz2.php.net/get_magic_quotes_gpc which I'm inclined to believe
445: [07:12:01] <Jayden90> ss23: its a doozy for sure
446: [07:12:22] <ss23> In any case, I think best option is to talk to sysadmin and figure out why it's returning true, instead of hack SilverStripe
447: [07:12:31] <ss23> (Though if it is a SilverStripe bug, feel free to submit patches etc!)
448: [07:13:57] <Jayden90> Are we the only ones here? no one else has experienced this?
449: [07:14:17] <simon_w|air> I've seen it once, where the ini settings where different for the framework folder
450: [07:14:20] <ss23> Jayden90: Not that I'm aware of. Most people in here aren't running on versions of PHP that have magic_quotes even existing
451: [07:14:47] <Jayden90> Report: https://github.com/silverstripe/silverstripe-framework/issues/2447
452: [07:14:49] <simon_w|air> ss23, you'll find that most people are
453: [07:14:56] <ss23> simon_w|air: In here? idk
454: [07:14:58] <ss23> You talk most, you don't
455: [07:14:58] <ss23> :D
456: [07:15:07] <simon_w|air> Yeah I do
457: [07:15:14] <simon_w|air> My main boxes are on 5.4
458: [07:15:25] <ss23> wow
459: [07:15:26] * ss23 dies
460: [07:15:32] <ss23> Bring on the newer PHP versions, I say
461: [07:15:36] <simon_w|air> And then my personal one's on 5.3
462: [07:16:23] <simon_w|air> Jayden90, have you managed to get phpinfo() running from inside the framework folder?
463: [07:16:41] <ss23> I'm on 5.5 for personal stuff, 5.4 for semi-personal, and less for work
464: [07:17:17] <simon_w|air> I cbf upgrading my code base to work with 5.4
465: [07:17:28] <ss23> I don't think I've hit anything that would stop it working *shrug*
466: [07:17:40] <simon_w|air> E_STRICT now in E_ALL
467: [07:17:56] <spronk> Jayden90: can you paste your php conf?
468: [07:18:12] <ss23> a) you don't need to fix your codebase to stop that, you can just set error_reporting, b) lol why do you care?
469: [07:19:25] <simon_w|air> Error emails and logs don't get suppressed by error_reporting
470: [07:19:58] <ss23> Stop writing shitty code that triggers it
471: [07:19:58] <ss23> :P
472: [07:20:08] <Jayden90> spronk: We are working on a phpinfo() dump now
473: [07:20:25] <simon_w|air> Triggering E_STRICT doesn't make your code shitty
474: [07:20:37] <Jayden90> Here it is lads: http://roselaw.com.au/phpinfo.php
475: [07:20:55] <spronk> why would $this->Content be nonexistant on a Page extends SiteTree?
476: [07:21:10] <simon_w|air> Jayden90, that's not in framework
477: [07:21:10] <Jayden90> also we tried making sure to set magic quotes of using a php.ini in the root
478: [07:21:21] <Jayden90> Best i can do for now :(
479: [07:21:26] <ss23> Jayden90: That's not in the /framework?
480: [07:21:33] <Jayden90> Still not sure how it could differ in there
481: [07:21:37] <Jayden90> ?
482: [07:21:46] <ss23> *shrug*
483: [07:22:10] <ss23> Try it and see if it is different anyway
484: [07:22:10] <ss23> :D
485: [07:22:15] <spronk> Jayden90: have you restarted apache since making the change?
486: [07:22:17] <simon_w|air> Jayden90, because you can set ini settings for folders
487: [07:24:51] <Jayden90> spronk: just asked if we can try an apache restart now, looks dicy as this server host a bunch of production stuff
488: [07:25:15] <spronk> reload then
489: [07:27:14] <Jayden90> Got aproval for a restart tomorrow, I will let you know how it goes
490: [07:27:37] <ss23> Doubt a restart will change anything
491: [07:28:35] <spronk> its unlikely
492: [07:28:51] <spronk> but..... can hang around some shit
493: [07:30:03] <spronk> now
494: [07:30:08] <spronk> why is my thing not returning anything
495: [07:33:00] * ARNHOE has joined #silverstripe
496: [07:34:07] * Jayden90 quit (Ping timeout: 256 seconds)
497: [07:34:07] * ARNHOE quit (Read error: Connection reset by peer)
498: [07:34:09] * ARNHOE_ has joined #silverstripe
499: [07:39:34] <ss23> newsletter module sucks
500: [07:39:39] <ss23> just in case anyone was wondering
501: [07:39:55] <Zauberfisch> haha, yeah
502: [07:39:59] <Zauberfisch> it really does
503: [07:40:07] <spronk> mm
504: [07:40:16] <Zauberfisch> the idea is cool, but well ...
505: [07:40:18] <ss23> It's barfing on these emails, and since they've switched to message queue, I have no real way to figure out why or trace through what's going on
506: [07:40:25] <ss23> have to like, munge the shit out of it, to be able to actually figure it out
507: [07:40:28] <ss23> :/
508: [07:40:31] <spronk> o_O
509: [07:40:34] * willr has joined #silverstripe
510: [07:40:40] <ss23> I blame willr
511: [07:40:44] <spronk> what kinda message queue? because on most you can set up dead letter exchanges and also exchanges that fan out
512: [07:40:45] <Zauberfisch> I just use mailchimp these days
513: [07:40:51] <spronk> you could hook in your own consumer
514: [07:41:10] <ss23> spronk: The silverstripe-message-queue queue stuff module
515: [07:41:12] <Zauberfisch> yeah, I agree, willr looks guilty
516: [07:41:44] <spronk> sigh
517: [07:41:47] <spronk> NIH syndrome
518: [07:41:53] * peter_ss has joined #silverstripe
519: [07:42:06] <ss23> spronk: I don't care where it's invented, and I work at SilverStripe, It *was* invented here
520: [07:42:18] <ss23> spronk: I care when it adds like 500x layers of "well fuck, debugging is now a nightmare"
521: [07:42:32] <ss23> idc really
522: [07:42:34] <ss23> It's just frustrating
523: [07:42:36] <ss23> I liked it simple
524: [07:42:37] <ss23> :<
525: [07:42:54] <ss23> Back in the day when everything was like "you wanna send email?"
526: [07:43:08] <ss23> runyourscript.php | xargs mail | diditwork.php etc etc
527: [07:43:27] <simon_w|air> xargs mail? Really?
528: [07:43:28] <ss23> Still, it's ~8pm, I have the office to myself, and I have Opeth blasting on the office speakers
529: [07:43:31] <ss23> It could be worse
530: [07:43:38] <ss23> lol
531: [07:43:42] * Error404NotFound has joined #silverstripe
532: [07:43:42] <ss23> simon_w|air: I just like to pretend I understand unix
533: [07:44:12] <simon_w|air> mail uses stdin for the content. xargs turns stdin into params and stuff
534: [07:44:43] <ss23> *shrug*
535: [07:44:59] * willr quit (Ping timeout: 248 seconds)
536: [07:45:07] <ss23> Look at that
537: [07:45:08] <ss23> He just quit.
538: [07:45:11] <ss23> I knew he was suspicious
539: [07:54:08] * zippy__ has joined #silverstripe
540: [07:57:07] * kinglozzer has joined #silverstripe
541: [08:00:21] * nick86 quit (Ping timeout: 252 seconds)
542: [08:01:10] <ss23> Fuck, I'm currently blasting Opeth, really loudly, and I just realised hte cleaners are going to come in any minute...
543: [08:12:02] * SightUnseen has joined #silverstripe
544: [08:12:12] * SightUnseen has left #silverstripe
545: [08:13:55] * guci0 has joined #silverstripe
546: [08:14:00] <guci0> Hello all!
547: [08:16:05] <ss23> Hai guci0 :)
548: [08:16:05] * Guits quit (Read error: Connection reset by peer)
549: [08:16:13] * Guits has joined #silverstripe
550: [08:16:14] <ss23> Think I'm about to fix a bug in newsletters!
551: [08:16:17] <ss23> Well
552: [08:16:19] <ss23> Work around a bug
553: [08:16:23] <ss23> You know, make a client happy
554: [08:17:06] <Bollig|DesignCty> lol I was about to say 'fix a bug in newsletters' <-- you'll have to be more specific….
555: [08:17:17] <ss23> XD
556: [08:17:31] <ss23> If there's an invalid email when sneding, it'll barf on it, never finish sending, etc
557: [08:17:40] <ss23> I'm just going to add a "That email is invalid? Mark it as such and MOVE ON"
558: [08:17:45] <ss23> Rather than break the entire queue.
559: [08:17:59] <Bollig|DesignCty> yeah, I've noticed that. you just have to go back in there and keep resending....
560: [08:18:22] <ss23> Do unsuccessful validations throw an exception?
561: [08:18:27] <ss23> As in how can you stop them killing the entire script?
562: [08:18:42] <ss23> oh yep, it does seem to throw exception, this is good
563: [08:18:42] <ss23> :D
564: [08:24:50] * willr has joined #silverstripe
565: [08:45:10] * peter_ss quit (Quit: Leaving.)
566: [08:49:18] * peter_ss has joined #silverstripe
567: [08:51:54] * dilshan has joined #silverstripe
568: [08:52:55] * micmania1 has joined #silverstripe
569: [08:53:11] <dilshan> hey guys any resources regarding saving userform data ???
570: [08:53:16] <dilshan> any links ?
571: [09:07:38] * Error404NotFound quit (Ping timeout: 245 seconds)
572: [09:08:00] <willr> dilshan how'd you mean saving?
573: [09:08:17] <willr> like doing post processing on the saved data?
574: [09:08:23] * peter_ss quit (Quit: Leaving.)
575: [09:09:21] <ss23> willr: Can you verify https://github.com/silverstripe-labs/silverstripe-newsletter/pull/57 looks sane?
576: [09:09:33] <ss23> (3 line change, just like verification before I merge)
577: [09:09:54] <willr> makes sense to me
578: [09:10:00] <ss23> Sweeeeeeet :D
579: [09:10:16] <willr> I assume Status is a valid field, that's all I'd check
580: [09:11:12] * olance has joined #silverstripe
581: [09:11:19] <olance> hi guys!
582: [09:11:28] <ss23> Hi olance :)
583: [09:11:32] <olance> :)
584: [09:11:41] <olance> I'm having troubles with entwine/ToggleCompositeField
585: [09:12:15] <olance> I'm trying to replace some DOM content (containing togglecompositefield elements) after an AJAX call
586: [09:12:39] <olance> it triggers the onremove event of the entwine behaviors added for the togglecompositefield
587: [09:13:19] <olance> but I then get the following error: cannot call methods on accordion prior to initialization
588: [09:13:26] <olance> tried to call "destroy"
589: [09:13:54] <olance> exact message is: "cannot call methods on accordion prior to initialization; attempted to call method 'destroy' "
590: [09:15:12] <olance> as far as I can tell, this.accordion('destroy'); is called from togglecompositefield.js (from the framework) on the element that is being removed, but it indeed doesn't seem to has the accordion initialized on it anymore
591: [09:15:18] <olance> so, I'm a bit lost :)
592: [09:16:31] <olance> (to have*, sorry)
593: [09:17:52] <Zauberfisch> i dont know the togglecompositefield, and i am also not sure i get your problem
594: [09:18:15] <olance> hmm
595: [09:18:18] <olance> let me try to rephrase it
596: [09:18:26] * willr quit (Quit: willr)
597: [09:18:34] <olance> I have several ToggleCompositeField elements in a form
598: [09:18:40] <Zauberfisch> but you could overwrite the onunmatch to overwrite the behaviour that happens if you remove the element
599: [09:18:56] <olance> can I really overwrite it?
600: [09:19:13] <Zauberfisch> yes, thats the key feature of entwine
601: [09:19:20] <olance> oh okay :)
602: [09:19:32] <olance> it's not really documented... or I haven't found it ^^
603: [09:19:52] <olance> however this would be a bit hacky
604: [09:20:06] <olance> wouldn't it?
605: [09:20:11] <Zauberfisch> your selector that you use for your entwine script to overwrite it just hast to be more important than the one used already
606: [09:20:37] * Error404NotFound has joined #silverstripe
607: [09:20:45] <Zauberfisch> yeah, a bit maybe
608: [09:20:50] <olance> :)
609: [09:20:59] <olance> by more important, you mean more specific?
610: [09:21:08] <Zauberfisch> yes
611: [09:21:26] <Zauberfisch> so if its .foo you have to do body .foo
612: [09:21:29] <Zauberfisch> or what ever
613: [09:21:52] <Zauberfisch> also. make sure your code is in the same entwine namespace
614: [09:22:43] <olance> yup
615: [09:22:52] <olance> okay I'll try that =)
616: [09:22:54] <olance> thanks!
617: [09:23:20] <olance> but I've just verified this is called on the correct element
618: [09:23:37] <olance> so I'll first try to figure out why/where the accordion instance is destroyed on it
619: [09:23:56] <olance> and if I can't find it/fix it, I'll try to "hack" the entwine handler ^^
620: [09:25:04] * Error404NotFound quit (Client Quit)
621: [09:28:29] * peter_ss has joined #silverstripe
622: [09:29:01] * spronk2 has joined #silverstripe
623: [09:29:34] <olance> hmmm quick question
624: [09:29:48] <olance> what's the minimum jQuery version compatible with Entwine (from SS 3.0)?
625: [09:33:26] * SightUnseen has joined #silverstripe
626: [09:35:59] <kinglozzer> olance: The one bundled with 3.0 is v1.7.2
627: [09:36:02] <kinglozzer> So I'd guess that
628: [09:36:23] <olance> ok ^^
629: [09:36:40] <olance> I thought it's kinda old, but if it's bundled with SS I guess it's ok
630: [09:42:40] * SightUnseen quit (Ping timeout: 240 seconds)
631: [09:59:52] * zippy__ quit (Quit: zippy__)
632: [09:59:54] * kerosene has joined #silverstripe
633: [10:10:17] * UncleCheese quit (Quit: UncleCheese)
634: [10:17:05] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
635: [10:18:14] * Bollig|DesignCty has joined #silverstripe
636: [10:22:01] * olance quit (Ping timeout: 250 seconds)
637: [10:27:38] * zippy__ has joined #silverstripe
638: [10:33:57] * SightUnseen has joined #silverstripe
639: [10:38:20] * SightUnseen quit (Ping timeout: 245 seconds)
640: [10:45:24] * FrozenFire quit (Ping timeout: 256 seconds)
641: [11:05:48] <micmania1> anybody know much about dependancy injection in silverstripe?
642: [11:06:29] <micmania1> I'm trying to pass a class to a controllers __construct method by default but I'm not having much luck
643: [11:09:41] * guci0 quit (Ping timeout: 250 seconds)
644: [11:10:31] <micmania1> Figured it out! I was using ClassName::create() rather than Injector::inst()->create("className")
645: [11:12:03] * guci0 has joined #silverstripe
646: [11:13:19] * FrozenFire has joined #silverstripe
647: [11:18:50] <Marvanni> I want to display data from a webservice in a GridField in a ModelAdmin.
648: [11:19:26] <Marvanni> This works fine for the list view, but now I would like to add a detail view to it, like we can do with a DO.
649: [11:19:37] <Marvanni> Any suggestions how to accomplich this?
650: [11:30:55] * NobrainerWeb has joined #silverstripe
651: [11:34:29] * SightUnseen has joined #silverstripe
652: [11:38:55] * SightUnseen quit (Ping timeout: 246 seconds)
653: [11:45:12] * Mayzie` quit (Ping timeout: 276 seconds)
654: [11:58:06] <kinglozzer> Marvanni: I create a dummy DO, with all the fields for the detail view.
655: [11:58:58] <kinglozzer> Then when you're loading them in from the webservice, convert the data you receive to an array. You can then use $obj = new MyDummyObject($arrayOfData);
656: [11:59:13] <Marvanni> Yeah, thats what I thought of...
657: [11:59:37] <kinglozzer> Marvanni: They'll each need an ID as well
658: [12:00:07] <kinglozzer> Unique of course
659: [12:00:34] <kinglozzer> If the webservice doesn't provide one you can use, you could use a for() loop and use $i as the ID
660: [12:00:37] <NobrainerWeb> Hi guys, i'm having problems with TreeMultiselectField. I can set my relations with it, but when i open the drop down to change the selection, only selected children pages of 1 parent can be seen. If i have other selections under a different parent page - they are not visible
661: [12:00:51] <Marvanni> I started to try to create a custom WebserviceGridField and WebserviceGridFieldDetailForm, so I don't have to create a dummy DO for it, since I want to have list/detail views for several webservice results
662: [12:01:29] <spronk2> NobrainerWeb: paste your code
663: [12:01:44] <NobrainerWeb> $treefield = new TreeMultiselectField("Groups", "Grupper", "SiteTree");
664: [12:02:06] <kinglozzer> I see, not sure of how to do it that way. The other method I used was to create a custom SS_List (basically mock DataList) and in my DummyDataObject class, overwrite public static get() to use my new 'list' instead of DataList
665: [12:02:11] <NobrainerWeb> static $belongs_many_many = array('Groups' => 'VesselGroup');
666: [12:02:55] <NobrainerWeb> spronk2: is some other code relevant?
667: [12:03:19] <spronk2> so your tree multi field is in the same class as your belongs_ side of the relationship?
668: [12:03:25] <NobrainerWeb> Yes
669: [12:03:36] <NobrainerWeb> Tried the other way around also = same problem
670: [12:03:50] <kinglozzer> Marvanni: Whichever way you do it, you edit link will need some sort of ID to hook in to. You should then be able to use that to load in your data
671: [12:03:59] * kinglozzer lunch
672: [12:04:44] <Marvanni> I will see how far I come...
673: [12:07:09] <spronk2> NobrainerWeb: which SS version?
674: [12:08:00] <NobrainerWeb> ss 3.1 rc2
675: [12:08:30] <NobrainerWeb> spronk2: do you have a working version of that treedropdown in ss3.1?
676: [12:08:44] <spronk2> i was just looking, i don't think so
677: [12:08:56] <spronk2> i've pretty much used gridfield exclusively in 3.x
678: [12:12:49] <spronk2> i'd possibly investigate switching to a checkbox set or gridfield
679: [12:13:01] <NobrainerWeb> I use GF for most also, but my problem is that i have pages with the same names under different parents, so i need to show where the page is located
680: [12:13:07] <spronk2> hmm
681: [12:13:23] <spronk2> you could write a custom method to output a breadcrumb in the gridfield?
682: [12:13:47] <NobrainerWeb> i started with checkbox set, but i need to group the children under a parent
683: [12:13:53] <spronk2> hmm
684: [12:14:06] <spronk2> i'll see if i can get one working, hang on
685: [12:15:06] <NobrainerWeb> nice - will fiddle around some more also
686: [12:20:28] * UndefinedOffset has joined #silverstripe
687: [12:27:41] * dilshan quit (Quit: Page closed)
688: [12:31:07] <NobrainerWeb> Can i customize what is shown in the search field of a GridFieldConfig_RelationEditor? Searching for pages, i need to know their parent name before creating the relation
689: [12:35:02] * SightUnseen has joined #silverstripe
690: [12:37:35] * zippy__ quit (Ping timeout: 260 seconds)
691: [12:39:48] * SightUnseen quit (Ping timeout: 276 seconds)
692: [12:39:57] * zippy__ has joined #silverstripe
693: [12:40:02] * Error404NotFound has joined #silverstripe
694: [12:44:39] * zippy__ quit (Ping timeout: 256 seconds)
695: [13:02:38] * osterlaus has joined #silverstripe
696: [13:10:13] * ocm has joined #silverstripe
697: [13:10:16] <ocm> howdy!
698: [13:11:26] <Zauberfisch> blubb
699: [13:16:03] <zfmf1> is Object::add_extension('SiteConfig', 'CustomSiteConfig'); adding somethinkg to the database????
700: [13:17:50] <zfmf1> a friend added this to _config Object::add_extension('SiteConfig', 'Config'); after he changed it to Object::add_extension('SiteConfig', 'CustomSiteConfig'); now he is getting all the time Don't pass Config to singleton() where is this Classname saved anyone an idea?
701: [13:17:56] <kinglozzer> zfmf1: If CustomSiteConfig has a $db array, then yes
702: [13:18:29] <kinglozzer> Not sure, do a /dev/build?flush=1
703: [13:18:37] <kinglozzer> Fixes everything :D
704: [13:20:29] <zfmf1> kinglozzer: dev/build doesn't help
705: [13:20:46] <kinglozzer> zfmf1: Delete the cache folder
706: [13:21:17] <kinglozzer> Either silverstripe-cache in the site folder, or in your PHP temp directory
707: [13:21:31] <NobrainerWeb> spronk2: i found a partly solution (using checkbox set) here stackoverflow.com/questions/9072191/silverstripe-dataobjects-as-pages-part-2-tutorial-admin-checkbox
708: [13:23:03] <zfmf1> in the site folder
709: [13:23:09] <zfmf1> deleted but doesn't help :S
710: [13:23:20] <zfmf1> also removed object::add from config
711: [13:25:24] <kinglozzer> Well the error is because singleton('Config') is being called somewhere, so double check you're not doing that
712: [13:25:55] <kinglozzer> And make sure you don't have a class named 'Config' or something
713: [13:32:02] * UndefinedOffset quit (Quit: Leaving.)
714: [13:34:50] <NobrainerWeb> How can i get a grid field sorted on numeric value in a logic (human) form? - i have static $default_sort = "VesselFolNo ASC"; but that sorts the values like 1239, 16453b, 16454, 6055
715: [13:35:24] <NobrainerWeb> an i would like 1239, 6055, 16453 ...
716: [13:35:30] * SightUnseen has joined #silverstripe
717: [13:40:00] * SightUnseen quit (Ping timeout: 245 seconds)
718: [13:43:51] <spronk2> sounds like the VesselFolNo isn't a numeric field in the database
719: [13:44:11] <spronk2> i dno if SS ORM supports any sort of casting on the db sort so you may have to do it post database
720: [13:48:30] <kinglozzer> NobrainerWeb: Yeah spronk2 is right. You're trying to treat a string as if it were an integer
721: [13:48:34] * swordsmanz has joined #silverstripe
722: [13:49:18] * UndefinedOffset has joined #silverstripe
723: [13:58:10] <micmania1> I'm having a bit of trouble with failovers atm. If I call $this->ID it returns 0. If I call $this->data()->ID, $this->failOver->ID or $this->dataRecord->ID ir returns the correct ID
724: [13:58:19] * ocm quit (Read error: Connection reset by peer)
725: [13:58:44] <micmania1> Anybody got any ideas why that would happen?
726: [13:59:04] * ocm has joined #silverstripe
727: [13:59:41] <kinglozzer> micmania1: Not sure, $this->ID should work fine
728: [13:59:49] <kinglozzer> How about $this->getID() ?
729: [14:01:02] <NobrainerWeb> spronk2 and kinglozzer: sry was on the phone with a client - you are right, it's a varchar db field
730: [14:01:31] * joelpittet has joined #silverstripe
731: [14:01:43] <NobrainerWeb> spronk2: anywhere i can see something about sorting postdb?
732: [14:01:56] <spronk2> you'll have to do it yourself in php
733: [14:02:01] <spronk2> create an array etc
734: [14:02:42] <micmania1> kinglozzer, the method 'getid' does not exist
735: [14:02:59] <kinglozzer> Ah. Was trying to be clever with a magic method :P
736: [14:03:09] <kinglozzer> Where are you doing $this->ID?
737: [14:03:17] <kinglozzer> The object has definitely been written?
738: [14:03:28] <micmania1> Initallity tried in the template but then trying in PHP now to debug
739: [14:04:02] <kinglozzer> And it's the page ID you're trying to get?
740: [14:04:06] <micmania1> I'm doing it in a Controller ina view method
741: [14:04:11] <micmania1> no, an Object ID
742: [14:04:28] <kinglozzer> So you should be doing $object->ID, not $this->ID, right?
743: [14:05:12] <micmania1> nah, I'm setting failOver to be the DataObject so it should get the ID which is set on that.
744: [14:06:01] <micmania1> so I call Controller->EditLink which then magically runs DataObject->EditLink. This works but the DataObject is empty.
745: [14:06:17] <micmania1> However, if I directly call Controller->failOver->EditLink() it works perfectly.
746: [14:07:14] <kinglozzer> micmania1: Do you mean CMSEditLink() ?
747: [14:07:36] <micmania1> nah, a custom method but it works the same.
748: [14:08:12] <micmania1> or it should lol
749: [14:08:59] <kinglozzer> Ah. That sort of method should be on the model rather than the controller really. I've never overloaded failOver or dataRecord, I always just store the object in a new property (public $newsItem;, for example). Then use $this->newsItem->Link() etc
750: [14:09:49] <kinglozzer> I suppose you then have to add in $this->customise().. etc to load the data into the template
751: [14:11:28] <micmania1> yeah, i have it on my Model. What should happen is when you call it on the controller it should failover to the model which its kind of doing, its just losing the actual DataObject somewhere along the line.
752: [14:13:09] <kinglozzer> I see. So a var_dump($this->failover);die; returns the object?
753: [14:13:27] <micmania1> yep.
754: [14:14:22] <kinglozzer> Looking at this http://api.silverstripe.org/3.1/source-class-ViewableData.html#99-114
755: [14:14:31] <kinglozzer> Perhaps it's calling getField() ?
756: [14:14:52] <micmania1> I'm debugging atm. I'm currently lost somehwere in Object.php lol
757: [14:15:20] <micmania1> I'm following the backtrace to see what's happening
758: [14:18:46] <micmania1> haha! fixed it. failOver !== failover :(
759: [14:19:04] <micmania1> Controller->failover is correct.
760: [14:19:22] <kinglozzer> Ah :P
761: [14:19:37] <kinglozzer> It's nearly always the simple stuff you overlook >.<
762: [14:20:47] * Shrike_Finland quit (Quit: Leaving.)
763: [14:23:43] * qlex has joined #silverstripe
764: [14:25:20] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
765: [14:25:46] * qlex says hi
766: [14:26:50] <qlex> someone could help me out here - on theme, there was a header logo, which is in assets/Uploads/logo.png - when im logged in, i can browse to that logo, but when im logged out and trying to open the logo file directly from url, im getting error 403 access denied
767: [14:27:01] <qlex> so this causes the logo not to display on top of website
768: [14:28:01] <Marvanni> wrong file permissions ?
769: [14:28:49] <qlex> i havent been chaning this and assets and uploads is set to 755
770: [14:29:28] <qlex> i can see that logo when im logged out
771: [14:29:29] <qlex> http://kaneckiiwspolnicy.pl/assets/Uploads/logo.png
772: [14:29:37] <qlex> and you would get error 403 - access denied
773: [14:29:41] <qlex> could any1 check please ?
774: [14:31:43] * oceanmountain has joined #silverstripe
775: [14:32:52] <Marvanni> I can see it
776: [14:33:35] * ocm quit (Ping timeout: 260 seconds)
777: [14:33:35] * oceanmountain is now known as ocm
778: [14:35:01] <kinglozzer> Yep, it appears fine for me as well
779: [14:36:07] * SightUnseen has joined #silverstripe
780: [14:40:37] * SightUnseen quit (Ping timeout: 248 seconds)
781: [14:45:42] * vINEcz has joined #silverstripe
782: [14:45:47] <vINEcz> hi my friends
783: [14:45:58] <vINEcz> who is specialist with PRD ?
784: [14:47:11] <kinglozzer> What's PRD?
785: [14:48:26] <vINEcz> Pentaho Report Designer ?
786: [14:48:29] <vINEcz> !
787: [14:48:45] <vINEcz> because im having a serious problem
788: [14:49:24] <kinglozzer> Never heard of it I'm afraid!
789: [14:50:22] <vINEcz> u never use PRD ? with Pentaho Tool do u use ?
790: [14:51:38] <kinglozzer> I've never used anything by Pentaho, are you in the right IRC channel? :P
791: [14:52:45] * qlex1 has joined #silverstripe
792: [14:53:26] * qlex quit (Ping timeout: 240 seconds)
793: [14:53:48] <vINEcz> of sorry... im wrong channel
794: [14:53:49] <vINEcz> sorry
795: [14:53:52] * vINEcz has left #silverstripe
796: [14:56:33] * qlex1 says thanks
797: [14:56:45] <qlex1> it turned out, my client deleted the header image from CMS !
798: [14:56:54] * qlex1 quit (Read error: Connection reset by peer)
799: [14:58:33] * Error404NotFound has joined #silverstripe
800: [15:01:23] <guci0> ooo .PL :)
801: [15:04:29] * jrthomer has joined #silverstripe
802: [15:05:50] * chillu has joined #silverstripe
803: [15:05:55] * chillu quit (Changing host)
804: [15:05:55] * chillu has joined #silverstripe
805: [15:06:51] * jrthomer quit (Client Quit)
806: [15:07:12] * jrthomer has joined #silverstripe
807: [15:07:37] * jrthomer quit (Client Quit)
808: [15:07:52] * jrthomer has joined #silverstripe
809: [15:24:05] * spronk2 quit (Quit: spronk2)
810: [15:30:50] * robert_ quit (Ping timeout: 245 seconds)
811: [15:31:55] * robert_ has joined #silverstripe
812: [15:32:16] * ARNHOE_ quit (Remote host closed the connection)
813: [15:36:33] * SightUnseen has joined #silverstripe
814: [15:40:38] * SightUnseen quit (Ping timeout: 240 seconds)
815: [15:42:51] * lerni quit (Ping timeout: 260 seconds)
816: [15:51:18] * UndefinedOffset quit (Quit: Leaving.)
817: [15:53:06] * UndefinedOffset has joined #silverstripe
818: [15:54:22] * joelpittet quit (Remote host closed the connection)
819: [15:55:43] * kerosene quit (Quit: no message)
820: [16:04:22] * NobrainerWeb quit (Quit: NobrainerWeb)
821: [16:04:54] * violetina has joined #silverstripe
822: [16:13:06] * osterlaus quit (Quit: Leaving.)
823: [16:21:34] * ARNHOE has joined #silverstripe
824: [16:23:58] * kinglozzer quit ()
825: [16:26:55] * ARNHOE quit (Remote host closed the connection)
826: [16:29:23] * ARNHOE has joined #silverstripe
827: [16:35:44] * lerni has joined #silverstripe
828: [16:37:31] * SightUnseen has joined #silverstripe
829: [16:41:41] * SightUnseen quit (Ping timeout: 245 seconds)
830: [16:44:40] <Marvanni> Anyone succesfull extended GridField ItemEditForm?
831: [16:50:25] * Error404NotFound quit (Read error: Connection reset by peer)
832: [17:02:55] * abitran quit (Ping timeout: 245 seconds)
833: [17:03:06] * abitran_ quit (Ping timeout: 264 seconds)
834: [17:04:56] * abitran has joined #silverstripe
835: [17:05:26] * Error404NotFound has joined #silverstripe
836: [17:07:22] * Guits quit (Read error: Connection reset by peer)
837: [17:08:01] * Guits has joined #silverstripe
838: [17:08:36] * ARNHOE quit (Remote host closed the connection)
839: [17:14:39] * ARNHOE has joined #silverstripe
840: [17:15:35] * Error404NotFound quit (Read error: Connection reset by peer)
841: [17:24:27] * nhorstmeier has joined #silverstripe
842: [17:35:01] * zfmf1 has left #silverstripe
843: [17:37:40] * SightUnseen has joined #silverstripe
844: [17:41:48] * SightUnseen quit (Ping timeout: 245 seconds)
845: [17:43:20] * lerni quit (Read error: Connection reset by peer)
846: [17:48:56] * Guits quit (Read error: Connection reset by peer)
847: [17:49:34] * Guits has joined #silverstripe
848: [17:50:22] * nhorstmeier quit (Remote host closed the connection)
849: [17:58:26] * gelignite has joined #silverstripe
850: [18:08:29] * Nivery has joined #silverstripe
851: [18:09:21] * lerni has joined #silverstripe
852: [18:20:00] * lerni quit (Ping timeout: 245 seconds)
853: [18:23:04] <FrozenFire> Marvanni, Yerp
854: [18:26:57] <FrozenFire> Marvanni, More likely you want to extend GridFieldDetailForm_ItemRequest
855: [18:27:40] <FrozenFire> Then you can get the GridFieldDetailForm and call setItemRequestClass() on it
856: [18:28:02] <FrozenFire> This'll let you add actions to the form
857: [18:48:47] * micmania1 has joined #silverstripe
858: [18:50:02] * SightUnseen has joined #silverstripe
859: [18:50:17] * SightUnseen has left #silverstripe
860: [19:17:25] * micmania1 quit (Ping timeout: 248 seconds)
861: [19:20:57] * guzzlefry has joined #silverstripe
862: [19:23:14] <guzzlefry> Has anyone used the Twitter Auth Module for SS 2.4?
863: [19:24:47] * micmania1 has joined #silverstripe
864: [19:25:18] <FrozenFire> guzzlefry, I hope this isn't SME
865: [19:26:52] <guzzlefry> FrozenFire: It is. And it appears that the API it's using is deprecated. :P
866: [19:26:59] <FrozenFire> Definitely.
867: [19:27:05] <guzzlefry> fun fun fun
868: [19:27:08] <FrozenFire> But why are "we" supporting it?
869: [19:27:27] <guzzlefry> Because the team of 7 bailed. :P
870: [19:27:32] <guzzlefry> iirc at least
871: [19:27:37] <FrozenFire> Uh hh
872: [19:27:39] <FrozenFire> huh**
873: [19:27:46] <FrozenFire> Is DeSoto back in bed with UBC?
874: [19:27:55] * guzzlefry doesn't know who that is.
875: [19:28:07] <FrozenFire> Hopefully that means not, then
876: [19:29:07] <FrozenFire> guzzlefry, I *think* I got the twitter auth module from simon_w
877: [19:29:11] <FrozenFire> Or maybe wilr
878: [19:29:28] <guzzlefry> There are newer version of it, but they appear to be for SS3.0.
879: [19:29:44] <guzzlefry> newer as in..march :P
880: [19:29:52] <FrozenFire> Yeah, I wouldn't expect any new code written for 2.4
881: [19:31:55] <guzzlefry> FrozenFire: odd question, typically, when code is finished, is the company that wrote it obligated to maintain it? Broken APIs and such.
882: [19:32:18] <FrozenFire> Not whatsoever, unless there is a support/maintenance retainer in place.
883: [19:32:24] <guzzlefry> ah
884: [19:32:57] <FrozenFire> The only thing that can be considered an obligation is to fix issues resulting from gross negligence or incompetence.
885: [19:33:20] <guzzlefry> bugs? :P
886: [19:33:23] <FrozenFire> E.g. if I pay you to paint my house, I can't expect you to come back and re-paint it every few years because there are scuffs and whatnot.
887: [19:33:58] <FrozenFire> But if you left one side of the house unpainted, or you went around and painted shut all of the doors, I can demand that you finish the job, and repair all of the damage.
888: [19:34:32] <guzzlefry> I see.
889: [19:36:47] <simon_w> Oh right, I was supposed to fix that
890: [19:37:40] <simon_w> Hang on, my twitter auth module's already using the 1.1 API
891: [19:38:55] <guzzlefry> simon_w: I'm using a 2.4 module.
892: [19:39:06] <simon_w> Yes, and?
893: [19:39:22] <guzzlefry> hm, maybe it's something else using twitter.
894: [19:40:44] <guzzlefry> FrozenFire: Any gotchas for when I'm pusing this live? :P
895: [19:40:54] <FrozenFire> Beware.
896: [19:40:56] <FrozenFire> :P
897: [19:40:58] <guzzlefry> eep
898: [19:41:13] <FrozenFire> It's simply a case of the client being absolutely terrible.
899: [19:41:15] <simon_w> If your break it, you're fired :p
900: [19:41:27] <FrozenFire> UBC, the parent company, is a patent trolling company.
901: [19:41:50] <FrozenFire> So they're litigious and naturally assholes.
902: [19:41:51] <guzzlefry> oh god
903: [19:42:13] <guzzlefry> Wondering if this other website was related. >_>
904: [19:42:55] <FrozenFire> UBC used to make up a substantial portion of the workload
905: [19:42:58] <FrozenFire> So probably.
906: [19:43:23] * Nivery quit (Quit: Nivery)
907: [19:43:38] <guzzlefry> I think I enjoy the local business type website more. >_>
908: [19:44:00] <FrozenFire> Yep
909: [19:44:26] <FrozenFire> But, the single advantage of doing work for a patent troll is that they have money to burn
910: [19:45:04] <guzzlefry> A lot of it is coming from subcontracting it seems.
911: [19:45:11] <guzzlefry> Fred fellow
912: [19:45:25] <FrozenFire> Yep
913: [19:45:44] <guzzlefry> Does that make me a sub-sub-contractor? :P
914: [19:46:09] <FrozenFire> It's turtles all the way down.
915: [19:46:29] <guzzlefry> I don't understand that phrase.
916: [19:46:46] <FrozenFire> http://en.wikipedia.org/wiki/Turtles_all_the_way_down
917: [19:47:42] <guzzlefry> oh
918: [19:48:48] * UncleCheese has joined #silverstripe
919: [19:53:45] * joelpittet has joined #silverstripe
920: [19:56:38] * simon_w quit (Quit: This computer has gone to sleep)
921: [20:12:11] * r3v3rb has joined #silverstripe
922: [20:12:20] <r3v3rb> good evening
923: [20:12:30] * DigNZ has joined #silverstripe
924: [20:12:35] * DigNZ quit (Remote host closed the connection)
925: [20:12:40] <r3v3rb> where is mr short when you need him!
926: [20:12:50] * DigNZ has joined #silverstripe
927: [20:13:16] * UncleCheese quit (Quit: UncleCheese)
928: [20:13:26] <r3v3rb> anyone got translatable working with gridfieldextensions 'sortable' methods
929: [20:15:00] <r3v3rb> I have a translatable 'sitetree' and a page that I can attach DO's to - the gridfieldextension is setup to allow the client to drag and drop the items - but I get an error on line 303 of Translatable.php - which references 'throw new InvalidArgumentException(sprintf('Invalid locale "%s"', $locale));'
930: [20:15:55] <r3v3rb> the DO shouldn't have a translation because only sitetree is setup in config.php
931: [20:16:24] <r3v3rb> therefore I am confused as to why it gets called on saving the order of the DO's in the Gridfield
932: [20:25:04] <r3v3rb> in fact it returns this from the ajax call :: ERROR [User Error]: Uncaught InvalidArgumentException: Invalid locale "it_IT/reorder"
933: [20:25:34] <r3v3rb> maybe Translatable needs to remove the /reorder if found?
934: [20:26:50] <guzzlefry> FrozenFire: # Your branch is ahead of 'origin/master' by 117 commits. <-- would I be better off just editing live on the server? :P
935: [20:27:05] <FrozenFire> Nope. That's a git issue
936: [20:27:22] <FrozenFire> If you did git push origin master, it'd actually eliminate that
937: [20:27:23] <FrozenFire> I think.
938: [20:27:32] <guzzlefry> oh yeah
939: [20:27:40] <guzzlefry> it looks like the last commit was a merge from origin master. :P
940: [20:27:43] <guzzlefry> silly thing, thanks
941: [20:34:32] * r3v3rb is sad :( that Translatable and GridfieldExtensions are broken :( trying to fix but think it'll get the better of me!
942: [20:34:43] <r3v3rb> hi FrozenFire
943: [20:34:52] <FrozenFire> Yo
944: [20:36:16] <r3v3rb> fancy fixing gridfieldextensions for me?
945: [20:36:57] * UndefinedOffset quit (Quit: Leaving.)
946: [20:36:59] <FrozenFire> That would seem to be in ajshort's court.
947: [20:38:59] <r3v3rb> indeed, any idea when he might hold court today?
948: [20:39:56] <FrozenFire> No clue, but likely never. Nickserv says he's not been on IRC in over 8 weeks
949: [20:40:12] <r3v3rb> it appears to be caused because the post param when reordering is getting mashed up by the two systems and therefore the action doesn't get called - firebug shows the post param as 'locale: it_IT/reorder'
950: [20:40:23] <r3v3rb> FrozenFire: oh bugger then...
951: [20:41:03] * zippy__ has joined #silverstripe
952: [20:43:54] <r3v3rb> actually there appears to be a patch request on github! yay
953: [20:44:39] <guzzlefry> FrozenFire: Do you remember passphrase for sme's gitolite or should I just replace it?
954: [20:45:03] <FrozenFire> Passphrase? o.O
955: [20:45:08] <FrozenFire> Oh, that.
956: [20:45:54] * Pyromanik has joined #silverstripe
957: [20:46:28] * r3v3rb wonders where mmichelli is on iRC :D
958: [20:46:55] <Pyromanik> no such user?
959: [20:47:01] <zippy__> I have created some dataobjects which are managed by a relationship editor/gridfield, but it seems with a member with content-management permissions can't see/edit them. Yet my admin can…. I have to create canView, canEdit functions on my new data objects…. it seems a bit weird
960: [20:47:38] * UncleCheese has joined #silverstripe
961: [20:48:42] <r3v3rb> Pyromanik: nope :)
962: [20:49:26] <r3v3rb> anyone capable of working out what he meant here in terms of changing the code - https://github.com/axyr/silverstripe-gridfieldextensions/commit/9be6bf26cfa2c455fc0159d7f9673c0502f21d67
963: [20:49:54] <r3v3rb> how can I create a negative of a url - or am I misinterpreting
964: [20:50:26] <Pyromanik> r3v3rb: I've no idea what this is.
965: [20:50:55] * coldblooded01 has joined #silverstripe
966: [20:51:19] <Pyromanik> r3v3rb: what are you asking here?
967: [20:51:29] <Pyromanik> are you axyr?
968: [20:51:43] * Stomach has joined #silverstripe
969: [20:54:09] <r3v3rb> Pyromanik: no, I'm trying to get that code working as currently it doesn't appear too
970: [20:54:41] <r3v3rb> mmichelli suggests that the current coding convention of if (XX) ? 1:2 will always return true
971: [20:55:26] <r3v3rb> but 1 in the convention example is a grid data url so how can I test a negative of the negative of a grid data url ?
972: [20:57:30] <Pyromanik> r3v3rb: what
973: [20:57:54] <r3v3rb> Pyromanik: hehe
974: [20:57:57] <Pyromanik> sense making zero
975: [20:58:08] <r3v3rb> aye
976: [20:59:42] <coldblooded01> urgent help guys, any idea why User Defined Form breaks on url/Form after submission. This is when an email recipient is added in the back end cms. If no email recipient on the list, then it goes through fine to url/finished - with formating
977: [20:59:52] <r3v3rb> in the example he suggests testing for an isn't equal to on a negative of 1 -- where 1 is actually grid.data("url").replace("?", "/reorder?")
978: [21:00:51] <Pyromanik> coldblooded01: you entered invalid info?
979: [21:01:05] <coldblooded01> nope, like i said it goes through fine
980: [21:01:08] <coldblooded01> without email
981: [21:01:39] <Pyromanik> r3v3rb: no, you're not reading it right
982: [21:01:51] <r3v3rb> I'm not
983: [21:02:05] <r3v3rb> looks like if/else short annotation to me
984: [21:02:12] <Pyromanik> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf
985: [21:02:28] <Pyromanik> r3v3rb: oh, you've never seen the ternary operator before
986: [21:02:29] <Pyromanik> ?
987: [21:02:30] <r3v3rb> Doh!
988: [21:02:31] <Pyromanik> o.0
989: [21:03:01] <r3v3rb> I knew the ternary, just didn;t realise that IndexOf would return -1 for not found
990: [21:03:02] <Pyromanik> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator
991: [21:03:12] <Pyromanik> well yeh, 0 is the first character ;)
992: [21:03:18] <r3v3rb> its null in most 'proper;' languages
993: [21:03:23] <Pyromanik> pfft sif.
994: [21:03:30] <Pyromanik> null === 0
995: [21:03:39] <Pyromanik> in all 'proper' languages
996: [21:03:40] <Pyromanik> :P
997: [21:03:41] <r3v3rb> === not found
998: [21:03:48] <Pyromanik> rofl
999: [21:04:26] <r3v3rb> porquoi?
1000: [21:04:37] <Pyromanik> r3v3rb: so in these 'proper' languages you have to === check for null instead of < 0 ?
1001: [21:04:54] <r3v3rb> depends how I feel ;)
1002: [21:06:09] <Pyromanik> well null == 0
1003: [21:06:17] <Pyromanik> in about every language I know
1004: [21:06:34] <Pyromanik> so how would you know if you have $string[0] or null?
1005: [21:09:18] <r3v3rb> I would bash my head against a brick wall :D muhahaha
1006: [21:09:27] * Toe has joined #silverstripe
1007: [21:09:33] <r3v3rb> anyhow, the amend suggested doesn't work anyway - grrr
1008: [21:09:52] * Toe is now known as Guest19066
1009: [21:10:36] <Pyromanik> r3v3rb: what is it trying to fix?
1010: [21:10:54] <r3v3rb> translatable and gridfieldextension reordering
1011: [21:11:17] <r3v3rb> if you have translatable in your site the two don't play nice
1012: [21:12:15] * Guest38031 quit (Ping timeout: 268 seconds)
1013: [21:12:24] <Pyromanik> does it load correctly in the first place r3v3rb?
1014: [21:12:31] * stecman has joined #silverstripe
1015: [21:12:32] <r3v3rb> yes
1016: [21:12:32] <Pyromanik> (without reordering)?
1017: [21:12:49] <r3v3rb> but when reordering the values for the SortID do not get updated
1018: [21:13:35] <Pyromanik> the values?
1019: [21:13:37] <zippy__> Hit save?
1020: [21:13:38] <Pyromanik> in the url?
1021: [21:13:38] <r3v3rb> lol, I lie like cheap whore! ?flush=all fixes it
1022: [21:13:44] <zippy__> :)
1023: [21:13:46] <Pyromanik> lol
1024: [21:13:51] * r3v3rb = twat
1025: [21:13:51] <Pyromanik> because js needs rebuild
1026: [21:14:38] <zippy__> DataObjects, is it possible to set a canView/canEdit/canDelete instead of having to do it in seveal functions in all my objects?
1027: [21:15:53] <Pyromanik> zippy__: restrict the admin interface rather than the objects?
1028: [21:16:10] <zippy__> How do you mean?
1029: [21:16:52] <Pyromanik> wekll it's a modeladmin right?
1030: [21:17:04] <zippy__> no it's a gridfield on a page
1031: [21:17:36] <zippy__> I have a person with content-editor permissions, but they cant view/edit any of the objects in my gridfield unless I set canView/canEdit on my dataobjects
1032: [21:18:30] <Colin[pi]> g'morning
1033: [21:18:34] <zippy__> morning
1034: [21:19:02] <r3v3rb> right, i'm off to watch some crappy 1970's horror movie on the horror channel!
1035: [21:19:05] * Nivery has joined #silverstripe
1036: [21:19:07] <r3v3rb> night all
1037: [21:19:10] <zippy__> nite
1038: [21:19:20] <r3v3rb> ;) cheers Pyromanik
1039: [21:19:34] * r3v3rb quit (Quit: r3v3rb)
1040: [21:19:57] <Pyromanik> gnite
1041: [21:20:01] <Pyromanik> ougone
1042: [21:24:09] <Stomach> whats the equivalent of buildDataObjectSet in terms of a data list
1043: [21:24:31] <Stomach> from an SQL query
1044: [21:37:39] <longtips> how do i make the login page have a particular template of its own? don't fuck with the base Page.ss?
1045: [21:37:48] <longtips> my login page is well jacked
1046: [21:44:49] * simon_w has joined #silverstripe
1047: [21:46:36] <Pyromanik> Stomach: manually foreachs it.
1048: [21:46:43] <Pyromanik> oh, wait
1049: [21:46:48] <Pyromanik> something like that.
1050: [21:46:55] <Pyromanik> yeh
1051: [21:47:26] <guzzlefry> What is this _combined_files in assets/? I'm on 2.4.
1052: [21:47:28] <Pyromanik> foreach(dataquery.rows() as row) new class, blah blah, canview, etc. add
1053: [21:47:39] <guzzlefry> There's a base.js in there that's throwing some errors.
1054: [21:47:45] <Pyromanik> guzzlefry: soemthing that should also be there in 3.0
1055: [21:47:54] <Pyromanik> guzzlefry: ?flush=1
1056: [21:48:03] <Pyromanik> it's all the production code min'd
1057: [21:48:11] <Pyromanik> js & css
1058: [21:48:39] <Pyromanik> (well, not all, but all the ones that are told to be combined)
1059: [21:48:46] <Pyromanik> base.js is an admin thing
1060: [21:49:04] <Pyromanik> as most files are because most devs don't make use of Requirements::combine_files
1061: [21:51:21] * aragonne has joined #silverstripe
1062: [21:52:01] <aragonne> Hi guys, in SS2.4, what field can I use to manage a has_one relationship?
1063: [21:52:30] <Stomach> hasonecomplextablefield
1064: [21:53:35] * violetina quit (Remote host closed the connection)
1065: [21:55:45] * ARNHOE quit (Remote host closed the connection)
1066: [21:57:45] * atmos has joined #silverstripe
1067: [21:58:01] * ARNHOE has joined #silverstripe
1068: [22:00:07] * guci0 quit (Ping timeout: 250 seconds)
1069: [22:01:06] <aragonne> thanks Stomach, but I only want to let the CMS users to enter only *one* data object and not let them pick one from a list; any suggestions?
1070: [22:01:15] <Stomach> dropdownlist
1071: [22:01:17] <Stomach> :P
1072: [22:01:43] <Stomach> new DropdownField('BannerID', 'Banner', $banners->toDropDownMap('ID', 'Name', '(Select One)', true))
1073: [22:02:43] * ARNHOE quit (Ping timeout: 260 seconds)
1074: [22:03:01] <Stomach> oh wait I didnt even read that
1075: [22:03:24] <Stomach> I dont know, seems pointless having a dataobject on a page when you can only have one of them
1076: [22:03:28] <Stomach> may as well put the fields on the page
1077: [22:03:37] <aragonne> I'm probably not stating issue right. I have a DO 'MyDataObject' with two fields: Title, URL. Page has_one MyDataObject. When an editor edits a Page, I want to show MyObject's Title and URL field for editing. i.e., not a selection process
1078: [22:03:49] <aragonne> (via radios, checkboxex, etc.)
1079: [22:14:51] * atmos quit (Ping timeout: 250 seconds)
1080: [22:15:37] * joelpittet quit (Remote host closed the connection)
1081: [22:15:47] <simon_w> Woo, drugs!
1082: [22:16:41] * simon_w starts playing with brain chemicals
1083: [22:17:28] * joelpittet has joined #silverstripe
1084: [22:18:01] <ss23> simon_w: Ohh, which kind? :D
1085: [22:18:26] <ss23> P.S. if you guys ever have amitrip, like, dislove/lick/whatever the tablet on your tongue for a really messed up numb feeling :D
1086: [22:18:38] <simon_w> The prescription kind
1087: [22:18:46] <ss23> lol
1088: [22:18:52] <ss23> I figured, simon_w, I was wondering *what* prescription
1089: [22:19:09] <simon_w> Starts with c
1090: [22:19:19] <ss23> lol
1091: [22:19:59] <simon_w> It's on the floor, screw checking :p
1092: [22:26:13] <Colin[pi]> simon_w: had them before, first few weeks is a bit rough but then it *should* improve
1093: [22:28:33] * joelpittet quit (Remote host closed the connection)
1094: [22:34:03] <simon_w> Colin[pi], well, it's probably going to be worse without them
1095: [22:35:38] <Colin[pi]> i used to get chronic headaches (I had daily headaches for over three years) and they tried me on a lot of them
1096: [22:35:57] <Colin[pi]> didn't work for the headaches because I think I was depressed DUE to the headaches!
1097: [22:36:51] * EasyCo has joined #silverstripe
1098: [22:41:21] * atmos has joined #silverstripe
1099: [22:41:33] <simon_w> Ha, my box is going to run out on Christmas eve
1100: [22:41:44] <ss23> Nice present!
1101: [22:42:08] <simon_w> Spend about $40-odd to get another three-month run, assuming they're working!
1102: [22:50:47] <longtips> what's that function called that turns camelcase into a capitalized spaced string
1103: [22:50:55] <longtips> can i use it to filter my enum values for display in the cms
1104: [22:52:38] <simon_w> longtips, $name = ucwords(trim(strtolower(preg_replace('/_?([A-Z])/', ' $1', $this->class))));
1105: [22:53:27] <longtips> so would i do some kind of drop down to enum map in the getCMSFields?
1106: [22:54:08] <ss23> longtips: Are you asking if you can like... get a dropdown from the enum values a database field supports? If so, yes
1107: [22:54:48] <simon_w> longtips, yup
1108: [22:54:49] <ss23> longtips: If so, check http://api.silverstripe.org/3.0/class-DropdownField.html -- $field = new DropdownField('GalleryID', 'Gallery', Gallery::get()->map('ID', 'Title'));
1109: [22:55:02] * aragonne quit (Quit: aragonne)
1110: [22:55:29] <simon_w> longtips, could probably just array_map over $this->dbObject('EnumField')->enumValues()
1111: [22:55:30] * gelignite quit (Quit: http://bit.ly/nkczDT)
1112: [22:56:19] <longtips> thanks a lot guys
1113: [22:56:54] <ss23> Ow I'm beachballing
1114: [22:57:04] <simon_w> Haha!
1115: [22:57:12] <ss23> simon_w: pg_restore... just outputs to stdout/
1116: [22:57:16] <ss23> Or does it import too?
1117: [22:57:26] <simon_w> ss23, man pg_restore
1118: [22:57:40] <ss23> I did! :<
1119: [22:57:52] <ss23> Oh, I see
1120: [22:57:57] <ss23> Technically I *did*
1121: [22:59:05] <ss23> simon_w: How do I figure out what's causing the beachball if it's locked up when beachballing?
1122: [22:59:31] <simon_w> Should only beach ball when on the app that's hung
1123: [22:59:44] <ss23> Hmm, I see
1124: [22:59:47] <ss23> Terminal is the thing doing it :O
1125: [22:59:53] <ss23> I didn't checko ther apps, ty
1126: [23:04:54] <ss23> simon_w: None of this importt even works
1127: [23:04:56] <ss23> blargh
1128: [23:05:04] <simon_w> Is it a .sql file?
1129: [23:05:06] <ss23> no
1130: [23:05:07] <ss23> well
1131: [23:05:14] <ss23> I have a .sql and an archived version of type c
1132: [23:05:17] <ss23> or w/e it is
1133: [23:05:26] <ss23> both give me an error in every line I can see
1134: [23:05:28] <simon_w> Can't you just pipe into psql?
1135: [23:05:30] <ss23> pg_restore: [archiver (db)] could not execute query: ERROR: relation "VisualElementGraph_ID_seq" already exists
1136: [23:05:40] <ss23> pg_restore: [archiver (db)] could not execute query: ERROR: column "AccessFreeAfterDays" of relation "Article" does not exist
1137: [23:05:45] <ss23> like, every line gives an error like this
1138: [23:05:46] <simon_w> Drop the database first
1139: [23:06:16] <ss23> pg_restore: [archiver (db)] connection to database "ss_nzx" failed: FATAL: database "ss_nzx" does not exist
1140: [23:06:34] <ss23> hmmmm
1141: [23:06:37] <ss23> k recreated
1142: [23:06:39] <ss23> looks better now
1143: [23:06:42] <ss23> ty simon_w
1144: [23:07:08] <ss23> I guess I'm used to MySQL where dump files have "just put the data in pls idc"
1145: [23:07:23] <simon_w> No, the dump files have DROP TABLE IF EXISTS
1146: [23:07:57] <simon_w> On by default with mysqldump, off by default with pg_dump
1147: [23:07:59] * joelpittet has joined #silverstripe
1148: [23:09:44] <ss23> WARNING: errors ignored on restore: 244
1149: [23:09:45] <ss23> not bad!
1150: [23:17:38] * Bollig|DesignCty quit (Ping timeout: 256 seconds)
1151: [23:28:26] * Colin[pi] quit (Read error: Connection reset by peer)
1152: [23:28:46] * Stomach quit (Read error: Connection reset by peer)
1153: [23:28:59] * Stomach has joined #silverstripe
1154: [23:30:04] * SightUnseen has joined #silverstripe
1155: [23:32:01] * Colin[pi] has joined #silverstripe
1156: [23:32:53] * joelpittet quit (Remote host closed the connection)
1157: [23:45:27] * Colin[pi] quit (Read error: Connection reset by peer)
1158: [23:46:47] * Colin[pi] has joined #silverstripe
1159: [23:53:03] <longtips> hey, i was asking about manually creating a dropdown for an enum before, it doesn't seem to be saving back into the DB, do i need to use the original enum string as the key/id?
1160: [23:53:39] <longtips> hum guess not
1161: [23:54:21] * SightUnseen has left #silverstripe
1162: [23:55:15] * robert__ has joined #silverstripe
1163: [23:55:36] * Stomach quit (Quit: Leaving.)
1164: [23:55:43] * robert_ quit (Read error: Connection reset by peer)

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