#silverstripe IRC Log

IRC log for 24 June 2013

All timestamps are in UTC.

1: [00:01:00] <ss23> tfw "We can't test cause that service isn't down" but it is down on the staging environment they want to test on
2: [00:01:04] <ss23> I hope my commits didn't break this...
3: [00:06:06] <ss23> simon_w: Did you wanna get lunch again today?
4: [00:09:56] <simon_w> Ooh, I'm liking this new php.net style
5: [00:10:17] <simon_w> ss23, I suppose I could
6: [00:21:22] <Pyromanik> ss23: no way around it
7: [00:21:28] <Pyromanik> just inline-block all the things
8: [00:21:34] <Pyromanik> and font-size:0
9: [00:21:42] <Pyromanik> then font-size:reset the internals
10: [00:22:37] <Pyromanik> unsignedint: they fixed one float bug and introduced 2 or more with it.
11: [00:22:44] <Pyromanik> hacks!
12: [00:23:25] <irogue> simon_w: i haven't quite decided yet. it's extremely bland, and seems to be the exact same site just styled slightly differently. but the old one *was* very out-of-date looking.
13: [00:24:27] <simon_w> irogue, it also doesn't link to me at the bottom of every page any more
14: [00:24:44] <ss23> simon_w: kk, just txt me when you're outside
15: [00:24:48] <ss23> Also, damn grooveshark
16: [00:25:03] <ss23> I listen to one Swedish band, and now I'm getting all this "brutal" metal crap in fucking nordic or some shit
17: [00:25:18] * Colin[pi] has joined #silverstripe
18: [00:25:33] <simon_w> Hmm, http://nz1.php.net/mirrors.php could do with some work
19: [00:25:35] <Colin[pi]> good morning bastards
20: [00:25:37] <Colin[pi]> :D
21: [00:25:43] <Colin[pi]> or afternoon
22: [00:25:45] <Colin[pi]> or whatever
23: [00:26:08] <ss23> simon_w: Why does the "SWITCH TO THE FUTURE" look ugly on nz.php?
24: [00:26:25] <simon_w> ss23, because you're using an ugly looking site?
25: [00:26:41] <ss23> simon_w: Why does it look *less* ugly on au1.php
26: [00:27:12] <simon_w> ss23, I'm seeing exactly the same thing
27: [00:27:27] <irogue> yeah, they're identical
28: [00:27:33] <ss23> I refresh and it works now
29: [00:27:35] <ss23> fuck the police.
30: [00:27:36] * Colin[pi] thinks ss23 is going blind from unsavoury activities
31: [00:27:43] <irogue> too much haxxxors
32: [00:27:52] <ss23> You know how the top thing has "CLICK HERE TO SWITCH TO THE BETA"?
33: [00:27:59] <ss23> It didn't have the black bg for me
34: [00:28:03] <ss23> was like the CSS for it didn't load or something
35: [00:28:04] <ss23> maybe cached
36: [00:28:09] <irogue> yeah, prob cache
37: [00:28:23] <simon_w> No idea what headers are sent
38: [00:28:36] <ss23> yep, chrome was like
39: [00:28:39] <ss23> "lol this .css file changed"
40: [00:28:49] <ss23> MEH
41: [00:29:07] <irogue> heh, we're up to 178 backorders for a product
42: [00:29:11] <ss23> simon_w: framework/sake TaskName (where TaskName == mysql/tasks/TakeName.php)
43: [00:29:15] <ss23> Is that right?
44: [00:29:16] <irogue> when they arrive, we gonna be REAL busy
45: [00:29:28] <simon_w> ss23, for a BuildTask subclass? Or what?
46: [00:30:24] <simon_w> "Support for Windows XP and 2003 has been dropped. Windows builds of PHP now require Windows Vista or newer."
47: [00:30:36] <simon_w> Finally!
48: [00:31:16] <ss23> Yeah, Buildtask
49: [00:31:28] <simon_w> sake dev/tasks/TaskName
50: [00:31:28] <irogue> that's gonna annoy all the server2k3 folks :-P
51: [00:31:58] <ss23> ty simon_w
52: [00:32:05] <simon_w> irogue, then they should've upgraded sometime in the last 10 years. I'm going to use finally all over the place :p
53: [00:32:22] <ss23> simon_w: how to make HTTP_HOST work?
54: [00:32:32] <ss23> I get lots of errors about HTTP_HOST
55: [00:32:38] <irogue> simon_w: i didn't say annoying the server2k3 folks was a bad thing ;)
56: [00:32:41] <simon_w> ss23, http://doc.silverstripe.org/framework/en/topics/commandline#configuration
57: [00:32:56] <ss23> ty
58: [00:33:16] <ss23> simon_w: Oh yeah, uh, I had a question about that
59: [00:33:25] <ss23> simon_w: I have like... /var/whatever/_ss_environment.php
60: [00:33:33] <ss23> and I have /var/whatever/site1, which isl ike dev.site.com
61: [00:33:39] <ss23> and /var/whatever/site2 which is like dev.site2.com
62: [00:33:47] <ss23> How do I do the file to url mapping config option best?
63: [00:34:14] <ss23> Also, holy crap I'm hungry if you want lunch come now, simon_w!
64: [00:34:15] * ss23 dies
65: [00:34:49] <simon_w> $_FILE_TO_URL_MAPPING['/var/whatever/site2'] = 'http://dev.site2.com';
66: [00:35:02] <ss23> Oh I see
67: [00:35:02] <simon_w> Fine, I guess I can leave my refactoring for now
68: [00:35:04] <ss23> :D
69: [00:35:06] <ss23> ty
70: [00:48:35] * nickmolhoek quit (Ping timeout: 240 seconds)
71: [00:55:59] * nickmolhoek has joined #silverstripe
72: [00:56:00] * nickmolhoek quit (Remote host closed the connection)
73: [00:56:19] * nickmolhoek has joined #silverstripe
74: [01:12:04] <Pyromanik> generators
75: [01:12:11] <Pyromanik> dat pinched from python?
76: [01:13:07] <Pyromanik> also, what is the point in finally?
77: [01:13:52] <Pyromanik> syntactic sugar for grouping code in a block?
78: [01:15:19] <ss23> Pyromanik: Yeah :/
79: [01:15:23] <ss23> I'm annoyed they added it, it's useless
80: [01:15:33] <ss23> if simon_w says nothing in the next 30 seconds it means he thinks I'm awesome!
81: [01:15:53] <Pyromanik> lol, php still updating GD
82: [01:16:44] <Pyromanik> generators and lists, php slowly becomes a crappier python
83: [01:16:51] <ss23> lol
84: [01:17:04] <ss23> Well Python is so amazing that it would be hard to be a *better* Python
85: [01:17:12] * ss23 puts on his Python fanboy hat.
86: [01:17:13] <Pyromanik> ooh, webp
87: [01:17:22] <Pyromanik> I didn't even know.
88: [01:17:43] <ss23> webp is nice
89: [01:17:50] <ss23> Hard to really use it I guess
90: [01:17:55] <Pyromanik> yes it looks nice.
91: [01:18:00] <Pyromanik> at least in theory
92: [01:19:28] <ss23> dammit
93: [01:19:40] <ss23> Something isn't working and it's not easy to figure out why cause it's on staging and I don't wanna edit files live on staging grrr
94: [01:19:53] <Pyromanik> sif, that's what staging is for
95: [01:20:04] <Pyromanik> :P
96: [01:20:07] <ss23> lol
97: [01:20:10] <Pyromanik> also, just copy it locally
98: [01:20:12] <ss23> Fine, I edit, get you fired when it doesn't work
99: [01:20:15] <Pyromanik> files & db
100: [01:20:20] <Pyromanik> (& assets)
101: [01:20:50] <ss23> Won't help
102: [01:20:55] <ss23> The files are exactly the same
103: [01:21:06] <Pyromanik> lol 'various improvments to gd' - I notice one of them are 'made it less shit'
104: [01:21:17] <ss23> lol
105: [01:21:18] <Pyromanik> notice None*
106: [01:21:21] <ss23> Who even uses gd
107: [01:21:30] <ss23> I thoguht it was basically deprecated
108: [01:21:31] <Pyromanik> I do
109: [01:21:39] <Pyromanik> Yeah I was kinda hoping it would be
110: [01:21:48] <Pyromanik> but no other good editing libs other than magickk
111: [01:21:57] <ss23> Whats wrong with imagick?
112: [01:22:02] <Pyromanik> well
113: [01:22:04] <simon_w> The place I wanted to use finally {} was to do an UNLOCK TABLES
114: [01:22:25] <Pyromanik> simon_w: so
115: [01:22:36] <ss23> simon_w: try { stuff } catch { error } unlock tables;
116: [01:22:40] <Pyromanik> does the finally even get executed if the catch doesn't catch that type of error?
117: [01:22:47] <Pyromanik> as opposed to just jumping straight out?
118: [01:22:50] <simon_w> Pyromanik, yup
119: [01:23:02] <Pyromanik> ss23: so there IS actually a (narrow) use case
120: [01:23:18] <ss23> yes
121: [01:23:22] <ss23> I just like to pretend it doesn't exist
122: [01:23:22] <simon_w> ss23, the catch returns
123: [01:23:29] <Pyromanik> why the f-balls isn't GD a class
124: [01:23:39] <Pyromanik> still just a collection of crap proceedural calls
125: [01:23:39] <ss23> Pyromanik: Because it was made years before classes were a thing in PHP
126: [01:23:50] <Pyromanik> ss23: yes but now they keep derping with it
127: [01:23:55] <Pyromanik> instead of just making it better
128: [01:24:02] <Pyromanik> or getting a good replacement
129: [01:24:03] <ss23> Because imagick is the better one.
130: [01:24:04] <Pyromanik> or suchlike
131: [01:24:11] <Pyromanik> it's also classbased?
132: [01:24:27] <ss23> Being an OOP interface doesn't make it better or worse
133: [01:24:50] <simon_w> At least it's not like what they've done to cURL
134: [01:24:58] * irogue glares at WordPress
135: [01:25:07] <irogue> pretty sure not being OOP makes WordPress a lot worse :P
136: [01:25:09] <ss23> lol
137: [01:25:24] <ss23> irogue: Naw, there could be a nice functional framework. Wordpress just is shit
138: [01:25:25] <irogue> wp_something_something_blah_how_the_fuck_will_i_remember_this()
139: [01:25:28] <Pyromanik> irogue: avert thyne eyes
140: [01:25:51] <Pyromanik> simon_w: you mean ALL the defines?
141: [01:25:53] <simon_w> Oh what a surprise. The object they introduced into curl in 5.5 isn't documented
142: [01:26:14] <Pyromanik> how to pass data to extension? Don't. Just define globals and let the extension figure it out.
143: [01:26:21] <ss23> simon_w: For cURL?
144: [01:26:34] <simon_w> http://nz1.php.net/curlfile
145: [01:26:37] <ss23> simon_w: Someone submitted a fix for the cURL changes yesterday iirc
146: [01:26:48] <ss23> oice, more than what this change was
147: [01:26:50] <ss23> simon_w: WRITE A PATCH
148: [01:26:52] <ss23> DO A PULL REQUEST
149: [01:26:52] <ss23> :D
150: [01:27:37] <simon_w> ss23, won't be accepted. They're all about the OOP.
151: [01:27:46] <simon_w> Even in a procedural library.
152: [01:28:06] <ss23> lol
153: [01:28:36] <simon_w> At the same time, deprecating the @ syntax
154: [01:29:08] <simon_w> You know, the format that curl itself uses everywhere?
155: [01:32:49] <ss23> @ is bad, @ is bad
156: [01:33:03] <ss23> Ignore the edge cases where it's basically required to prevent PHP from spazzing out
157: [01:33:45] <simon_w> The @ syntax for attaching a file, not for hiding errors
158: [01:33:53] <ss23> oic
159: [01:33:54] <ss23> psh
160: [01:33:55] <ss23> PSH
161: [01:34:00] * willr_ quit (Quit: willr_)
162: [01:38:22] <Jayden90> Guys I am having wierd template issues attempting to loop children of a specific page from within an include:
163: [01:38:49] <Jayden90> It always iterates only once
164: [01:39:41] <Jayden90> Sometimes it prints out the tabstops
165: [01:40:47] <ss23> Jayden90: can you pastebin the template?
166: [01:41:31] <Pyromanik> or sspaste.com
167: [01:46:11] <Jayden90> http://sspaste.com/paste/show/51c7a47c400ba
168: [01:48:41] <Jayden90> It works if I paste the include contents where the include is
169: [01:49:00] <Jayden90> It seems to be the fact it is included that is stuffing it up
170: [01:50:06] <Jayden90> Tried ?flush=1 and manual cache flush
171: [01:50:23] <Jayden90> Tried alsorts of syntax variations
172: [01:50:42] <mobiusnz> why do you have <% control %> ?
173: [01:50:58] <mobiusnz> you should use <% with %>
174: [01:57:02] <Jayden90> … reading up on <% with %>
175: [01:57:21] <Colin[pi]> eeeuw.. I've been asked to do some work on a "traditional" php code base
176: [01:57:32] <Colin[pi]> looking at it now, think of Perl style code but in PHp
177: [01:57:37] <Colin[pi]> urg
178: [01:59:43] <irogue> kekeek
179: [01:59:53] <irogue> like the codebase ss23 used to work on!
180: [01:59:59] <Colin[pi]> :(
181: [02:00:41] <irogue> php3 that'd been ported to php4
182: [02:00:46] <Colin[pi]> it has tons of functions with putHtml() calls that write out HTML mixed with variables
183: [02:00:48] <Colin[pi]> oh god why
184: [02:01:06] <irogue> and by "ported" i mean "only replace the stuff that was completely removed/broken, leave everything else as-is"
185: [02:02:03] <Jayden90> mobiusnz: Where am I supposed to use <% with %>? I have not seen it used in any examples when googling around, e.g. http://stackoverflow.com/questions/7589740/silverstripe-excluding-current-page-from-list-of-the-parents-children
186: [02:02:53] <irogue> Jayden90: <% with %> is the SS3 replacement for <% control %>
187: [02:03:09] <irogue> just like <% loop %> also replaced <% control %> in SS3
188: [02:03:29] <mobiusnz> Jayden90: http://doc.silverstripe.com/framework/en/reference/templates-upgrading-guide
189: [02:05:39] <Jayden90> Shit. So I have to go through and everywhere a "control" was looping replace it with "loop", and if i did not need it to loop replace it with "with"
190: [02:05:58] <mobiusnz> ideally, yes
191: [02:06:05] <Colin[pi]> control is just deprecated, right?
192: [02:06:06] <Jayden90> Not ideally?
193: [02:06:32] <Jayden90> Wierd that controll still works everywhere up to now
194: [02:06:45] <irogue> they tried to keep some backwards-compat
195: [02:06:51] <irogue> but obviously certain edge cases it doesn't work
196: [02:07:02] <mobiusnz> <% control %> is deprecated, which means you shouldn't use it in new code, and its not guaranteed to keep going
197: [02:07:17] <irogue> and is deciding to treat the <% control %> as a <% with %> instead of as a <% loop %>
198: [02:07:31] <irogue> and you've found that edge case :P
199: [02:08:29] <mobiusnz> https://github.com/jakr/miscellaneous-wiki/wiki/SilverStripe-3-Quick-Upgrade-Guide is good reading
200: [02:08:35] <Jayden90> well that did not fix it anyway
201: [02:08:40] <Jayden90> :(
202: [02:09:33] <Jayden90> All I did was change <% control ChildrenOf(products) %> to <% loop ChildrenOf(products) %>
203: [02:11:11] <mobiusnz> where do you get ChildrenOf() from?
204: [02:11:14] <Jayden90> Once again code only breaks when it is run within an include
205: [02:11:21] <mobiusnz> ah nm
206: [02:11:35] <Jayden90> Sorry just tried a diffirent syntax to the paste
207: [02:13:27] <irogue> <% with Page(products) %><% loop $Children %>...<% end_loop %><% end_with %>
208: [02:13:34] <irogue> that's probably how i'd have tried it
209: [02:13:56] <mobiusnz> ChildrenOf seems nice, I guess just make sure the link is correct
210: [02:14:15] <mobiusnz> maybe use the page ID
211: [02:14:48] * gumble has joined #silverstripe
212: [02:16:56] <Jayden90> No docs for 3.0, just 2.4: http://doc.silverstripe.org/framework/en/2.4/reference/built-in-page-controls
213: [02:17:11] <ss23> I think I bit my tongue, or burned it
214: [02:17:12] <ss23> It's sore :<
215: [02:17:50] <Pyromanik> 14:00 < irogue> and by "ported" i mean "only replace the stuff that was completely removed/broken, leave everything else as-is"
216: [02:17:55] <Pyromanik> that's how porting works though right?
217: [02:17:57] <Pyromanik> :P
218: [02:17:59] <ss23> lol
219: [02:18:11] <simon_w> Jayden90, uh, yeah there is. http://doc.silverstripe.org/framework/en/topics/page-type-templates#children-loops
220: [02:18:39] <Pyromanik> Jayden90: did you try clicking the "3.0" link on top of the left hand menu?
221: [02:19:01] <simon_w> No builtin page controls for 3.0
222: [02:19:10] <Colin[pi]> I get a page does not exist error if I click the 3.0 linl
223: [02:19:10] <Pyromanik> true
224: [02:19:11] <Colin[pi]> *link
225: [02:20:59] <Jayden90> TBH I am finding it pretty difficult to pick up Silverstripe over these sorts of things without an experienced mentor in the office.
226: [02:21:46] <Pyromanik> Jayden90: just stop reading 2.4 docs :)
227: [02:22:35] <Pyromanik> templates basically have loop, with, if, else_if, else, include, & require
228: [02:22:46] * gumble quit (Ping timeout: 268 seconds)
229: [02:28:47] <Jayden90> Now that I am confident the issue is not the template syntax, looking through the .php files for anything that could have an effect
230: [02:29:23] <Jayden90> Some page types it works, others it does not. Must be in the .php
231: [02:30:23] <Pyromanik> could be a scope issue
232: [02:30:35] <Pyromanik> more than likely a scope issue.
233: [02:41:33] <Jayden90> I think the issue is that the class for the problem pages extends a simpler class
234: [02:41:45] <Jayden90> the problem pages have static $hide_ancestor
235: [02:43:14] <Jayden90> Ill just paste that handy parrent class contents out amoungst the page types that use it to avoid $hide_ancestor and see what happens
236: [02:43:22] <Jayden90> Thanks for your help guys :)
237: [02:53:24] <ss23> 5 mins of "wtf why aren't my changes working" before realising I was on the wrong branch
238: [02:53:27] <ss23> :<
239: [02:57:30] <irogue> @DrakeBell: In honor of Kim and Kanye's baby "North West" I will be naming my first son "Taco"
240: [03:01:22] <Pyromanik> LOLWHUPS
241: [03:01:25] <Pyromanik> height: 1.43179e+7px;
242: [03:02:32] <ss23> that is some weird value...
243: [03:02:41] <ss23> irogue: @tacobell - We look foward to it
244: [03:02:59] <Pyromanik> haha irogue
245: [03:03:04] <Pyromanik> derp derp
246: [03:05:08] <irogue> ss23: close
247: [03:05:16] <irogue> @TacoBell: @DrakeBell Can't wait.
248: [03:13:10] * Colin[pi] quit (Ping timeout: 246 seconds)
249: [03:13:51] <simon_w> "[User Error] Uncaught Exception: Unable to build request to "Your mum". Unknown IdP."
250: [03:13:51] <simon_w> Yay, my validation is working so far
251: [03:16:01] <ss23> lol
252: [03:16:11] <ss23> irogue: I already saw it, it was from last night
253: [03:18:08] <irogue> lol
254: [03:18:18] <ss23> Anyone know a quick postgres export/import/
255: [03:21:54] <unsignedint> rm -fr /
256: [03:22:06] <ss23> INSTRUCTIONS NOT CLEAR, RM -RF'd ENTIRE SERVER
257: [03:22:33] <unsignedint> it means you no longer have to worry about import/export because you no longer have data
258: [03:22:38] <ss23> lol
259: [03:23:14] * Peavers has joined #silverstripe
260: [03:23:15] <unsignedint> is there no utility like mysqldump for postgres?
261: [03:23:18] <simon_w> pg_dump | psql
262: [03:23:37] <ss23> yeha, I see it
263: [03:23:38] <ss23> ty
264: [03:25:20] <Peavers> who did this?!? https://github.com/silverstripe/silverstripe-comments/blob/master/code/dataobjects/Comment.php
265: [03:25:28] <Peavers> You broke my custom controller :(
266: [03:26:14] <simon_w> Who did what?
267: [03:26:51] <simon_w> Also, https://github.com/silverstripe/silverstripe-comments/blame/master/code/dataobjects/Comment.php
268: [03:27:32] <ss23> woah!
269: [03:27:37] <ss23> You can see comments and stuff :O
270: [03:28:59] <ss23> What sort of nick is "cheesesucker"
271: [03:29:14] <ss23> Sounds like UncleCheese's husband.
272: [03:32:01] <Peavers> since the comments update I'm getting Trying to get property of non-object
273: [03:32:09] <Peavers> from $form->Fields()->replaceField('Email', HiddenField::create('Email', '', $form->Fields()->fieldByName('Email')->value));
274: [03:33:59] <ss23> Is Page.php -- init() a good/fine place to ut my shortcodes callback stuff?
275: [03:36:58] <simon_w> ss23, _config.php
276: [03:44:54] <ss23> simon_w: Any reason why one is better than the other do you think? Like does it make a differene in terms of internals at all?
277: [03:45:23] <simon_w> ss23, So you can use it onside of that controller's hierarchy
278: [03:45:59] <ss23> fuck
279: [03:46:02] <ss23> Does 2.4 have shortcodes?
280: [03:46:37] <simon_w> Yes
281: [03:46:43] <ss23> phew
282: [03:46:49] <ss23> the docs page doesn't exist for the same on 3.0 and 2.4
283: [03:47:26] <simon_w> It may have been moved between topics and reference
284: [03:50:59] * cloph_away has joined #silverstripe
285: [03:51:19] <ss23> If only there was a redirector for when you rename pages
286: [03:51:20] <ss23> :O
287: [03:51:24] * cloph quit (Ping timeout: 276 seconds)
288: [03:58:11] <ss23> simon_w: Almost working, but uh
289: [03:58:18] <ss23> [tableau,name="WorldIndicators_23/GDPpercapitamap"]Alt stuff[/tableau]
290: [03:58:31] <ss23> outputs my short tag content, then "alt stuff[/stablea]" on the end
291: [03:58:57] <ss23> like the short code isn't acting as a tag, rather just the single [foo]
292: [04:17:48] <ss23> All the clients are calling me "Joel" now :<
293: [04:18:06] <Pyromanik> guts4u
294: [04:18:18] <Pyromanik> ,Joel.
295: [04:18:32] <ss23> lol
296: [04:21:13] <ss23> Pyromanik: U KNOW ABOUT MY SHORTCODES ISSUE?
297: [04:21:21] * sminnee has joined #silverstripe
298: [04:21:50] <ss23> Oh no sminnee is here
299: [04:22:04] <sminnee> Hard at work, I hope ss23
300: [04:22:06] <sminnee> :p
301: [04:22:28] <ss23> I'm sure everyone here can vouch for me working hard since I've been here! *cough*
302: [04:22:40] * Shrike_Finland1 quit (Quit: Leaving.)
303: [04:23:19] <ss23> sminnee: but since you're here I assume you have some free time! :D - short code is only picking up [firstpart,parameter=foo], when the thing is like [firstpart,parmaeter=foo]foo[/firstpart], causing the shortcode to look like "shortcode content" + foo[/firstpart]
304: [04:23:24] <ss23> 2.4
305: [04:24:26] <sminnee> ss23 - ooh, 2.4. well, you're probably going to need to work around the problem rather than properly fix it. i know that the whole short code system got an overhaul in 3.1 and backporting that isn't really feasible.
306: [04:24:41] <ss23> Sweet, no problems. I can just change it to have another parameter
307: [04:27:51] <Peavers> A .ss file in themes/theme name/Layout should override any other .ss with the same name anywhere else on the site yeah?
308: [04:29:24] * metanat has joined #silverstripe
309: [04:29:27] <simon_w> For a Layout theme
310: [04:29:59] <Peavers> and what makes a layout theme a layout theme if its outside the theme folder?
311: [04:31:18] <simon_w> it's in a Layout folder
312: [04:31:44] <Peavers> so a file in theme/template will override a file in module/template?
313: [04:32:06] <simon_w> should do
314: [04:40:58] <simon_w> Yus! The first half works! Now I just have to do the actual handling the response part :)
315: [04:55:23] <ss23> simon_w: No no, you mean "Wow this is going to take an extra 48 hours at least! I'm going to need double the payment"
316: [04:55:41] <simon_w> ss23, screw that.
317: [04:55:46] <ss23> lol
318: [04:55:57] <simon_w> Once I get this done, then they can start giving me more interesting things!
319: [04:56:11] <ss23> Haha, jokes on you! I'm saving all the crappy support tickets for YOU!
320: [04:56:27] <ss23> Cannot reproduce, outsource to simon_w
321: [04:56:37] * funkygibbon has joined #silverstripe
322: [04:56:44] <simon_w> You know I can say no to things, right? :p
323: [04:57:04] <ss23> :<
324: [04:57:06] * mobiusnz quit (Quit: Leaving.)
325: [04:57:57] <simon_w> Ah well, that's enough SAML for today. Back to this help desk ticket.
326: [04:59:11] <simon_w> I should probably read the response before telling this person how wrong they are
327: [04:59:24] <ss23> lol
328: [04:59:38] <ss23> Be careful, some people are like "NO YOU'RE WRONG" then have to eat their words
329: [05:00:14] <ss23> simon_w: https://gist.github.com/ss23/3e071b3e8b8a1db0ab80 Long story short, after like 5 emails and lots of "SCRWE YOU, YOU'RE WRONG" -- "So, it seems that you were right here and I've misjudged you."
330: [05:00:16] <simon_w> Yes, I get that a lot :p
331: [05:00:21] <ss23> lol
332: [05:03:00] <Pyromanik> ss23: nope, I don't.
333: [05:03:02] <Pyromanik> bye
334: [05:03:03] * Pyromanik quit (Quit: leaving)
335: [05:03:23] <ss23> lol
336: [05:04:18] * DigNZ quit (Quit: DigNZ)
337: [05:05:15] * nickmolhoek quit (Quit: nickmolhoek)
338: [05:13:27] <Jayden90> Wow, I have been working on this all day. A few observations. A Silverstripe template loop operating on an invalid result loops once and does not display any errors.
339: [05:13:54] <Jayden90> loop $ChildrenOf inside of a loop $Children fails
340: [05:14:49] <simon_w> That last one's because ChildrenOf's on ContentController
341: [05:15:51] <Jayden90> also as a site note, it is not documented here that $ChildrenOf can take a page id in place of a url segment: http://doc.silverstripe.org/framework/en/topics/page-type-templates#children-loops
342: [05:16:02] <Jayden90> simon_w: Looking into that...
343: [05:16:24] <simon_w> The first one is because it still emulates the behaviour of <% control %>
344: [05:17:08] <Jayden90> simon_w: Not following what you mean by that
345: [05:17:56] * Shrike_Finland has joined #silverstripe
346: [05:19:07] <simon_w> <% loop %> is emulating the behaviour of <% control %>
347: [05:26:26] <Jayden90> so how can I fix this?
348: [05:27:31] * wmk has joined #silverstripe
349: [05:27:53] <simon_w> Fix what?
350: [05:30:06] <Jayden90> Besides creating my own function to return a list of sitetree nodes, what other option within the templating system do I have to get child nodes of x parent? The above doesn't really help and isn't self obvious
351: [05:30:29] <ss23> Oh man, the rush of accidently going to the wrong server and thinking you just deleted all the data from a live site...
352: [05:30:36] <ss23> REALLY CLEARS OUT THE NOSTRILS
353: [05:31:26] <simon_w> Jayden90, just be in the topmost scope when you call ChildrenOf
354: [05:31:43] <simon_w> ss23, I don't think sminnee needs another willr :p
355: [05:32:24] <ss23> lol, did willr accidently do somethign on the wrong server? :D
356: [05:33:45] <sminnee> simon_w: you're wrong there. Another 5 willrs would be awesome.
357: [05:33:46] <simon_w> chmod -R 777 /
358: [05:33:53] <sminnee> hahaha I remember that.
359: [05:34:00] <simon_w> sminnee, the willr incident, not person :)
360: [05:34:04] <ss23> Really?!
361: [05:34:09] <sminnee> I think in that case I got told off for giving willr root access.
362: [05:34:13] <ss23> I remember saying that to someone in here once, thinking "No one would ever do that..."
363: [05:34:22] <ss23> Then they left with a "Thanks ss23, that worked!"
364: [05:34:25] <sminnee> i was supposed to be "." not "/"
365: [05:34:27] <ss23> And I vowed never to joke about it again
366: [05:34:30] <ss23> Aha, I see
367: [05:34:38] <sminnee> just a typo in a manual deploy script.
368: [05:34:44] <sminnee> file under: AUTOMATE ALL THE DEPLOYS
369: [05:34:47] <ss23> XD
370: [05:35:08] <ss23> Could be worse, like that project that had a space between rm -rf /usr/their-stuff/foo to make it rm -rf /usr their-stuff/foo
371: [05:35:14] <Jayden90> simon_w: Accodring to the docs for $ChildrenOf() "Will create a list of the children of the given page, as identified by its URLSegment value. This can come in handy because its not dependent on the context of the current page. For example, it would allow you to list all staff member pages underneath a "staff" holder on any page, regardless if its on the top level or elsewhere."
372: [05:35:23] <sminnee> http://cdn.meme.li/instances/300x300/39061713.jpg
373: [05:35:29] <ss23> sminnee: Oh by the way, aren't I meant to get +o in here or something? :D
374: [05:35:41] <sminnee> ss23: honestly, I don't know how.
375: [05:35:42] <sminnee> :$
376: [05:35:42] <simon_w> Jayden90, yes, it's badly worded. It's talking about the staff page.
377: [05:35:45] <ss23> lol
378: [05:35:49] <ss23> Chanserv!
379: [05:36:17] <sminnee> ss23: come to my computer and type things in.
380: [05:36:32] <ss23> /msg chanserv access #silverstripe add ss23 999
381: [05:36:35] <simon_w> sminnee, /cs access #silverstripe add ss23 +AOVi
382: [05:36:40] <ss23> That works too
383: [05:36:50] <simon_w> ss23, isn't a weight-based one :p
384: [05:36:51] <ss23> Whats +i? Stick chanmode +i?
385: [05:36:57] <ss23> o/
386: [05:36:57] <sminnee> boom
387: [05:37:01] <ss23> NOW TO TURN EVIL
388: [05:37:06] <simon_w> ss23, invite
389: [05:37:15] <ss23> simon_w: Oh, that's right, flags
390: [05:39:19] <Jayden90> simon_w: So how do you get to the topmost scope if you are not there already in the template?
391: [05:39:32] <simon_w> Jayden90, $Top
392: [05:46:11] <Jayden90> For the love of all that is pure in this world, somebody please put that in the documentation for $ChildrenOf(). Or better yet, fix the funtion to work as expected!
393: [05:46:25] <Jayden90> simon_w: Thank you, that worked
394: [05:47:33] * metanat quit (Quit: Leaving.)
395: [06:12:16] <irogue> ugh
396: [06:12:25] <irogue> i think imma have to ban my coworkers from going away
397: [06:12:35] <ss23> lol
398: [06:12:36] <ss23> Too busy?
399: [06:12:46] <irogue> having finished my job for the day, i'm now doing my on-leave coworker's job
400: [06:12:51] <ss23> lol
401: [06:13:13] * MrJeremy quit (Quit: MrJeremy)
402: [06:14:49] <irogue> paperwork, yay!
403: [06:15:09] <ss23> I hate timesheeting
404: [06:15:14] * Colin[pi] has joined #silverstripe
405: [06:15:15] <ss23> It's so useless too
406: [06:17:48] * swordsmanz has joined #silverstripe
407: [06:17:50] <irogue> heh
408: [06:17:52] <irogue> yay for not having to do that
409: [06:17:57] <irogue> it'd be a nightmare in my job
410: [06:18:08] <ss23> lol
411: [06:18:09] <ss23> Yeah
412: [06:18:13] <ss23> Well I'm doing support too!
413: [06:18:21] <ss23> So much time just talking to clients, answering tickets, etc
414: [06:18:35] <ss23> First week at work: 43:05 hours
415: [06:18:37] <ss23> l33tsauce
416: [06:18:45] <swordsmanz> hello all o/ (new SS user)
417: [06:18:48] <irogue> "2 minutes on phone helping configure a modem, 6 minutes testing a returned AP..."
418: [06:18:51] <irogue> it'd be that all day
419: [06:19:02] <ss23> lol irogue
420: [06:19:04] <ss23> heya, swordsmanz
421: [06:20:04] <irogue> kia ora swordsmanz
422: [06:20:31] <swordsmanz> only been using it a day and it seems like an awesome platform
423: [06:20:52] <swordsmanz> (by way o the act it actually works where so many dont)
424: [06:21:03] <irogue> ugh, 6:20pm, definitely hometime!
425: [06:22:46] <ss23> lol
426: [06:22:50] <ss23> LUCKY FOR SOME
427: [06:22:57] <ss23> I stil have to figure out wtf I did with the other 3 hours of my day
428: [06:23:52] <swordsmanz> then i haven't actually start assigning a theme yet lola
429: [06:24:23] <ss23> lol swordsmanz. Silverstripe is unfortunatly one of those nice young platforms that is really good under the hood, but has bad documentation :P
430: [06:24:49] <ss23> swordsmanz: A lot of time with Silverstripe is just spent reading code / asking people for things at first, since no one wants to go make the docs awesome
431: [06:25:10] <simon_w> Not true. It's just no one that does has the time :p
432: [06:25:15] <ss23> lol
433: [06:25:19] <ss23> Granted
434: [06:25:31] <ss23> irogue: I'll let you buy me Burgerfuel when you visit if you do docs for me
435: [06:25:34] <ss23> :D
436: [06:25:48] <swordsmanz> yeah i can tell that a bit already but i like the act that it will let me do irames an the such OTB and the page management is so simple an elective
437: [06:26:26] <ss23> :D
438: [06:26:38] <ss23> I guess I should become a Silverstripe evangelicast now
439: [06:26:40] <ss23> Since I'm working for them
440: [06:26:48] <ss23> swordsmanz: YES YES IT IS THE BEST CMS THERE IS
441: [06:27:11] <ss23> STARTING FROM TOMORROW I WILL WRITE DOWN EVERYTHING I SPEND EVERY MIN DOING
442: [06:27:30] <ss23> Anyway, home time, cya guise
443: [06:27:40] <simon_w> Oh right, home. I should do that.
444: [06:27:42] <ss23> simon_w: I hope you are going to be here tonight, cause I wanna do more on that thing I've been doing
445: [06:27:45] <ss23> lol
446: [06:27:54] <ss23> also, I learned which busses I can take
447: [06:27:56] <ss23> 23
448: [06:27:56] <swordsmanz> like with some o the others *cogh" wordpress" i need a ucking plugin or a youtube vid ect.*
449: [06:27:58] <ss23> 43
450: [06:27:58] <ss23> 3
451: [06:27:59] <ss23> and 1.
452: [06:28:07] <ss23> swordsmanz: Yeah... Wordpress is definitly not a CMS I like :P
453: [06:28:20] <ss23> Though honestly, every PHP CMS I've seen has pretty horrible code under the hood
454: [06:28:32] <simon_w> ss23, 44 too
455: [06:28:33] <ss23> Silverstripe is one of the fewer projects where it seems like someone has actually done it 'properly'
456: [06:28:39] <ss23> simon_w: Hmmmmmm, will that go close?
457: [06:28:40] <swordsmanz> yeah the last onewe were working with was process wire
458: [06:28:45] <ss23> That doesn't have a 3 in it, that makes it hard to remember
459: [06:28:47] <simon_w> ss23, same route as the 43 :p
460: [06:28:50] <ss23> lol kk
461: [06:28:54] <swordsmanz> and it seemed logical till you went under the hood
462: [06:29:10] <ss23> haha, I remmeber my first experience with Wordpress
463: [06:29:11] <swordsmanz> then the logic started to go progressively backwardd
464: [06:29:17] <ss23> Installed it, and was like "Oh yay this seems nice!"
465: [06:29:24] <ss23> Went to admin interface "yeah I could work with this"
466: [06:29:32] <ss23> Then opened the code up to try and do something simple and was like "oh hell no."
467: [06:29:51] <ss23> anyway, home time for realz. Wish me luck beating simon_w o/
468: [06:30:18] <simon_w> Yeah, my travel time's longer than yours and there's only one route I can take :p
469: [06:30:23] <Jayden90> It would be a VERY handy enhancement to add a tick box "HD Image" to the SS image dialoge in the TinyMCE editor. Dimentions are then imideatly halved when ticked.
470: [06:30:46] <swordsmanz> bye o/
471: [06:32:11] <simon_w> Bah, 8 minutes until the bus
472: [06:37:07] <simon_w> And of course I miss it because I start on something else
473: [06:46:22] * g4b0_ has joined #silverstripe
474: [06:46:46] <g4b0_> hi all
475: [06:55:09] <ss23> simon_w: O WOM
476: [06:55:12] <ss23> I win*
477: [06:55:17] <simon_w> ss23, duh.
478: [06:55:20] <ss23> :D
479: [06:55:26] <ss23> inb4 excuses
480: [06:55:48] <simon_w> The reasoning's in the backlog :p
481: [06:55:56] <simon_w> Home time!
482: [06:56:05] <ss23> lol
483: [07:01:40] <wmk> man, this drives me crazy
484: [07:01:58] <wmk> i decorated Member to have a has_one relation "Kontakt" => "Kontakt"
485: [07:02:19] <spronk> anyone know the best composer cURL lib?
486: [07:02:41] <wmk> and when i try to make $this->owner->Kontakt() in the decorator i get the error "Method doesn't exist'
487: [07:04:06] <wmk> SS3.1
488: [07:04:25] <wmk> Anyone can help me? Am i doing something wrong or did i find a bug?
489: [07:05:19] <spronk> so hang on
490: [07:05:26] <spronk> is Kontakt in the decorator ?
491: [07:05:32] <spronk> because if so, just $this->Kontakt()
492: [07:16:56] * DigNZ has joined #silverstripe
493: [07:23:45] * Liquide quit ()
494: [07:25:20] <simon_w|air> spronk, that doesn't work :p
495: [07:25:28] <simon_w|air> wmk, have you run dev/build?
496: [07:27:12] <wmk> simon_w, of course
497: [07:27:32] <simon_w|air> And did it add the ID field?
498: [07:27:35] <wmk> spronk, Call to undefined method MemberDecorator::Kontakt() ...hmm, $this->Kontakt inside the decorator doesn't work
499: [07:29:30] <wmk> simon_w, hmm, no. thanks for the hint. member IS decorated, cause i can call the methods in my extension through $member->mymethod()
500: [07:30:24] <wmk> simon_w, it only added the $db
501: [07:39:17] <wmk> i ran composer update but still no luck. simon_w can you have a look at my code: http://www.sspaste.com/paste/show/51c7f73b7939b
502: [07:39:40] * guci0 has joined #silverstripe
503: [07:39:46] <guci0> Hello all!
504: [07:40:18] <spronk> lo
505: [07:40:35] * Jayden90 quit (Ping timeout: 256 seconds)
506: [07:47:33] <wmk> it shouldn't be a problem that Kontakt has_one Member
507: [07:53:40] <wmk> simon_w, well Memberdecorator !== MemberDecorator in my _config.yml
508: [08:04:48] * osterlaus has joined #silverstripe
509: [08:05:21] * kinglozzer has joined #silverstripe
510: [08:14:38] * SightUnseen has joined #silverstripe
511: [08:14:44] * SightUnseen has left #silverstripe
512: [08:15:39] * PigeonFriend has joined #silverstripe
513: [08:28:36] * DigNZ quit (Quit: DigNZ)
514: [08:31:14] * willmorgan has joined #silverstripe
515: [08:34:13] * zfmf1 has joined #silverstripe
516: [09:00:13] * cloph_away is now known as cloph
517: [09:00:48] <ss23> simon_w: Got other ideas? I find working on more fun personal projects makes other things more bearable (new personal projects that is, things I don't know about already)
518: [09:03:18] <simon_w|air> ss23, tried that. Doesn't last anywhere near as long as it needs to.
519: [09:03:37] <ss23> simon_w|air: As in, you lose interest, or the projects don't last long enough?
520: [09:03:50] <simon_w|air> I lose interest
521: [09:04:06] <ss23> So do I! That's why I have so many half started projects
522: [09:04:06] <ss23> :D
523: [09:04:33] <ss23> simon_w|air: Wanna build this l33tsauce p2p botnet with me? We can preset at kiwicon
524: [09:10:45] <simon_w|air> meh
525: [09:11:11] <ss23> Awwww
526: [09:11:17] <ss23> If a botnet doesn't motivate you...
527: [09:11:43] <ss23> simon_w|air: Wanna write patches for everything so Lunix can finally switch to clang and get rid of gcc?
528: [09:11:59] <ss23> I have a build system set up for clang that can go through overnight and compile each of my packages I use
529: [09:15:27] <ss23> simon_w|air: Maybe it's just time to marry Larksie and busy yourself with a family :3
530: [09:23:13] * gumble has joined #silverstripe
531: [09:24:18] * shakesoda is now known as nepgear
532: [09:25:48] <Zauberfisch-idle> good morning gents
533: [09:26:09] <Zauberfisch-idle> didn't Director also have a method to get the absolute base path?
534: [09:26:20] <ss23> Morning, Zauberfisch-idle
535: [09:26:22] <Zauberfisch-idle> I can't seem to find that at the moment
536: [09:26:43] <simon_w|air> you mean, the BASE_PATH constant?
537: [09:27:06] <Zauberfisch-idle> oddly this one is relative as well if I am not mistaken
538: [09:27:18] <Zauberfisch-idle> or something goes terrible wrong here
539: [09:27:22] <simon_w|air> nope, that's BASE_DIR
540: [09:27:35] <ss23> simon_w|air: Do you know anyone on the apache project who could get https://issues.apache.org/bugzilla/show_bug.cgi?id=47691 fixed?
541: [09:27:43] <simon_w|air> nope
542: [09:27:44] <ss23> Patches are there, but no one has actually put them in... it's from 2011
543: [09:27:45] <ss23> dammit
544: [09:27:50] <ss23> NO ONE KNOWS ANYONE WHO DOES APACHE STUFF
545: [09:27:57] <ss23> WHATS THE POINT IN LIVING
546: [09:28:22] * micmania1 has joined #silverstripe
547: [09:28:46] <Zauberfisch-idle> ah, son of a
548: [09:29:09] <Zauberfisch-idle> the init method on BuildTasks seems to be never called
549: [09:29:12] <simon_w|air> Zauberfisch-idle, *_PATH constants are absolute, *_DIR are relative
550: [09:29:17] <Zauberfisch-idle> this is wy my base path was empty
551: [09:29:21] <simon_w|air> Well yeah, it's not a controller
552: [09:29:44] <Zauberfisch-idle> simon_w|air but it has a init() method, and therefore I took it to be called upon initialization
553: [09:29:57] <Zauberfisch-idle> ok, in fact it has not
554: [09:30:15] <Zauberfisch-idle> turns out thats a bug in another task that I copied from framework core
555: [09:30:20] <Zauberfisch-idle> ok, everything is clear now
556: [09:32:26] * osterlaus quit (Quit: Leaving.)
557: [09:37:32] <ss23> simon_w|air: http://www.hacker.org/runaway/ PLAY FLASH GAMES INSTEAD :D
558: [09:38:05] <simon_w|air> No Flash at home
559: [09:38:52] * simon_w|air sleeps
560: [09:40:15] <ss23> :<
561: [09:40:16] <ss23> nn simon_w|air
562: [09:45:22] * KayTwo has joined #silverstripe
563: [09:45:26] <KayTwo> hey all
564: [09:45:34] <KayTwo> anyone here familiar with e-commerce module?
565: [09:45:45] <KayTwo> and would know why the product page on a SS3 install is showing blank?
566: [09:46:13] <Bollig|DesignCty> are you using the burn bright or sunny side up branch?
567: [09:51:40] <Zauberfisch-idle> KayTwo specify with e comerce module you use
568: [09:52:56] * AlphaCactus quit (Ping timeout: 252 seconds)
569: [09:57:25] * Colin[pi] quit (Ping timeout: 246 seconds)
570: [09:57:56] * AlphaCactus has joined #silverstripe
571: [10:01:43] <KayTwo> version 3.0
572: [10:02:41] * tomspeak has joined #silverstripe
573: [10:04:40] * Colin[pi] has joined #silverstripe
574: [10:11:13] <Bollig|DesignCty> unfortunately that's not what we need :( There are two branches of ecommerce, one created by sunny side up, the other burn bright. You will need to contact either one of them directly with help for the module. If you have a bug to report, I suggest you do so via the github bug trackers.
575: [10:22:50] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
576: [10:27:54] * KayTwo quit (Ping timeout: 250 seconds)
577: [10:29:43] * tomspeak quit ()
578: [10:41:43] <gumble> If I want a "Login"-button to link to security/login in case the user isn't logged in and elsways to link to profile page or something I have to write an own controller action for that link right? or is there another way?
579: [10:43:37] * SightUnseen has joined #silverstripe
580: [10:45:34] * SightUnseen quit (Client Quit)
581: [10:45:38] <Zauberfisch-idle> gumble if you want you can also do it in template
582: [10:46:28] <Zauberfisch-idle> <% if $CurrentUser %>to your profile<% else %> to login <% end_if %>
583: [10:47:35] <gumble> Zauberfisch-idle, thats exactly what I wanted to know, thanks!
584: [11:02:25] <micmania1> Anybody done work with Backbone.js and Silverstripe?
585: [11:15:42] * SightUnseen has joined #silverstripe
586: [11:21:54] * rved has joined #silverstripe
587: [11:22:16] <rved> I can't change a members' group to Administrator please see https://www.dropbox.com/s/bd9bs479oyqk53n/Schermafbeelding%202013-06-24%20om%2013.18.jpg
588: [11:22:19] <rved> any idea's?
589: [11:22:20] <rved> 2.4.10
590: [11:22:49] <rved> start: member is in Distributors and New-registrations group
591: [11:22:54] <rved> changed it to admin, sae
592: [11:22:55] <rved> save
593: [11:23:00] <rved> bam, still in the old groups
594: [11:23:10] <rved> other group changes do work, but can't make admin :s
595: [11:24:38] * SightUnseen quit (Ping timeout: 255 seconds)
596: [11:29:21] <Zauberfisch-idle> micmania1 I havent, but maybe I am still able to answer a question if you have one
597: [11:31:01] <rved> zauby, please help me :D
598: [11:31:12] <rved> or see Skype ;
599: [11:31:41] <Zauberfisch-idle> blubb
600: [11:31:53] <Zauberfisch-idle> hmmm
601: [11:32:09] <Zauberfisch-idle> so the save works and it saves all groups
602: [11:32:11] <Zauberfisch-idle> but not admin?
603: [11:33:26] <micmania1> Zauberfisch-idle, I was just looking for people's experience with it.
604: [11:34:02] <Zauberfisch-idle> micmania1 frotnend or backend?
605: [11:34:08] <micmania1> Just been reading an article on a few other frameworks too.
606: [11:34:34] <micmania1> Front-end. I have a site in Silverstripe & i'm looking to build a mobile app to interact with it.
607: [11:34:52] <micmania1> Just trying to gauge opinions at the moment.
608: [11:34:56] <Zauberfisch-idle> backend: I'd say its a bad idea, because jquery and entwine are used for all cms stuff, so you should use that there as well to avoid compatibility issues and avoud including to much framworks
609: [11:34:59] <gumble> is there a if not in templates?
610: [11:35:14] <Zauberfisch-idle> gumble what do you mean?
611: [11:35:28] <gumble> <% if not $CurrentMember %>
612: [11:35:33] <gumble> *CurrentUser
613: [11:35:47] <Zauberfisch-idle> yes, gumble its ecactly the way you typed it
614: [11:35:52] <micmania1> gumble, in >= 3.0 there is.
615: [11:35:55] <Zauberfisch-idle> but you need to be Silverstripe 3.x
616: [11:36:03] <gumble> yes I am, thanks!
617: [11:36:10] <gumble> I read somewhere in the forums that that won't work
618: [11:36:19] <gumble> but that was probably about a old version
619: [11:36:23] <Zauberfisch-idle> micmania1 well, in frontend it does not matter at all, as of 3.0 silverstripe does not include any javascript in frontend by default
620: [11:36:39] <Zauberfisch-idle> so you are free to do what ever you want without having to fear some random script beeing there
621: [11:36:55] <Zauberfisch-idle> gumble yes, most template questions are 2.x
622: [11:37:27] <micmania1> yeah, I'm thinking it'd be good to have consistency between the front-end and backend models. Same with views.
623: [11:37:41] <Zauberfisch-idle> but since 3.0 there is a lot possible in template, eg if not, $Foo($Bar) and as of 3.1 also <% if $Foo > 3 %>
624: [11:38:36] <micmania1> Backbone uses a templating system which *could* be built up automatically using SS's Class->template system.
625: [11:40:50] * Zauberfisch-idle is now known as Zauberfisch
626: [11:48:26] <rved> zauberfisch-idle: yes save works, but when you selected the group 'administrator' and save.. it does not update the groups
627: [11:57:59] <Zauberfisch> could it be that you have some onbeforewrite that does something with the groups?
628: [12:03:38] * funkygibbon quit (Quit: Leaving)
629: [12:16:19] * SightUnseen has joined #silverstripe
630: [12:18:58] <gumble> If I have a EditProfilePage-Pagetype, what does DataObject::get_one('EditProfilePage') do? There is no table with editprofilepages, so where does it get one from?
631: [12:20:48] * SightUnseen quit (Ping timeout: 256 seconds)
632: [12:31:14] * ocm has joined #silverstripe
633: [12:31:24] * ocm is now known as oceanmountain
634: [12:31:28] <oceanmountain> howdy
635: [12:32:58] <micmania1> gumble, it gets it from its base table (SiteTree). It only creates a new table for any extra fields you add.
636: [12:35:14] * UndefinedOffset has joined #silverstripe
637: [12:37:35] * Colin[pi] quit (Ping timeout: 240 seconds)
638: [12:39:48] <ss23> Note to self: When flatmates are drinking and you're about to go to bed and they offer you drinks, say no
639: [12:46:58] * SightUnseen has joined #silverstripe
640: [12:51:25] * SightUnseen quit (Ping timeout: 256 seconds)
641: [12:52:43] * Colin[pi] has joined #silverstripe
642: [13:15:01] * gumble quit (Ping timeout: 264 seconds)
643: [13:17:43] * SightUnseen has joined #silverstripe
644: [13:22:18] * SightUnseen quit (Ping timeout: 248 seconds)
645: [13:32:24] * Shrike_Finland quit (Quit: Leaving.)
646: [13:32:30] * Colin[pi] quit (Ping timeout: 268 seconds)
647: [13:48:28] * SightUnseen has joined #silverstripe
648: [13:51:46] * gumble has joined #silverstripe
649: [13:53:08] * SightUnseen quit (Ping timeout: 255 seconds)
650: [13:57:37] * gumble quit (Ping timeout: 264 seconds)
651: [14:02:14] * Colin[pi] has joined #silverstripe
652: [14:09:04] * gumble has joined #silverstripe
653: [14:19:15] * SightUnseen has joined #silverstripe
654: [14:22:56] * Colin[pi] quit (Ping timeout: 256 seconds)
655: [14:23:25] * SightUnseen quit (Ping timeout: 246 seconds)
656: [14:28:27] * Shrike_Finland has joined #silverstripe
657: [14:30:22] * Nivery has joined #silverstripe
658: [14:39:29] * rved has left #silverstripe
659: [14:42:49] * PigeonFriend quit ()
660: [14:49:59] * SightUnseen has joined #silverstripe
661: [14:50:27] * PigeonFriend has joined #silverstripe
662: [14:51:59] * 1JTAAF9AA has joined #silverstripe
663: [14:51:59] <1JTAAF9AA> [travis-ci] silverstripe/silverstripe-framework#401 (3.1 - 474dde8 : Ingo Schommer): The build passed.
664: [14:51:59] <1JTAAF9AA> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/b0e359ddb71e...474dde80124e
665: [14:51:59] <1JTAAF9AA> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8385968
666: [14:51:59] * 1JTAAF9AA has left #silverstripe
667: [14:53:01] * AlphaCactus quit (Remote host closed the connection)
668: [14:54:20] * SightUnseen quit (Ping timeout: 255 seconds)
669: [14:56:02] * AlphaCactus has joined #silverstripe
670: [15:20:43] * SightUnseen has joined #silverstripe
671: [15:24:58] * SightUnseen quit (Ping timeout: 248 seconds)
672: [15:31:20] * catcher has joined #silverstripe
673: [15:34:51] * Emil_Blume has joined #silverstripe
674: [15:35:46] * Emil_Blume quit (Client Quit)
675: [15:48:47] * wmk quit (Ping timeout: 246 seconds)
676: [15:51:29] * SightUnseen has joined #silverstripe
677: [15:55:21] * travis-ci has joined #silverstripe
678: [15:55:22] <travis-ci> [travis-ci] chillu/silverstripe-framework#19 (pulls/allowed_actions-deny - fb784af : Ingo Schommer): The build passed.
679: [15:55:22] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/96e6ea61b78f...fb784af7380a
680: [15:55:22] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/8386251
681: [15:55:22] * travis-ci has left #silverstripe
682: [15:56:09] * SightUnseen quit (Ping timeout: 256 seconds)
683: [16:00:06] * g4b0_ quit (Quit: Sto andando via)
684: [16:13:06] * travis-ci has joined #silverstripe
685: [16:13:07] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#403 (3.1 - 2f9eaee : Ingo Schommer): The build passed.
686: [16:13:07] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/474dde80124e...2f9eaeea41dc
687: [16:13:07] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8386873
688: [16:13:07] * travis-ci has left #silverstripe
689: [16:17:35] * gumble quit (Ping timeout: 240 seconds)
690: [16:17:53] * gumble has joined #silverstripe
691: [16:22:14] * SightUnseen has joined #silverstripe
692: [16:22:33] * kinglozzer quit (Remote host closed the connection)
693: [16:26:37] * SightUnseen quit (Ping timeout: 246 seconds)
694: [16:48:49] * micmania1 quit (Ping timeout: 250 seconds)
695: [16:53:00] * SightUnseen has joined #silverstripe
696: [16:57:38] * SightUnseen quit (Ping timeout: 255 seconds)
697: [17:00:50] * Colin[pi] has joined #silverstripe
698: [17:02:49] * Defraz has joined #silverstripe
699: [17:03:33] <Defraz> Hey all. So I copied the Page.ss to TestPage.ss and I want to try including some external php to display some dealer info.
700: [17:03:45] <Defraz> I can't see my TestPage.ss show up anywhere.
701: [17:04:29] <AlphaCactus> Did you either tell Page to render with TestPage.ss somewhere explicitly, or include it in a template, or extend Page with TestPage?
702: [17:04:43] <Defraz> no
703: [17:04:49] <Defraz> this is under Layout
704: [17:05:18] <AlphaCactus> you will have to either put an action on Page which uses renderWith, or extend Page with TestPage and then set your page to TestPage type in the CMS.
705: [17:05:33] <Defraz> well and I copied public_html/themes/charity/templates/TestPage.ss as well.
706: [17:05:53] <Defraz> okay Maybe I will extend page.
707: [17:06:03] <Defraz> sounds easier?
708: [17:06:14] <AlphaCactus> yes that is probably the best thing to do if you are new to this stuff.
709: [17:07:46] <Defraz> so do I just include it like the header adn footer
710: [17:08:27] <Defraz> hmm I just don't see it in the page type
711: [17:09:19] <AlphaCactus> take a look at this http://doc.silverstripe.org/framework/en/topics/page-types
712: [17:09:28] * PigeonFriend quit ()
713: [17:09:38] <Defraz> Perfect thank you!
714: [17:09:41] <Defraz> You are a great help.
715: [17:09:59] <AlphaCactus> and this http://doc.silverstripe.org/framework/en/tutorials/2-extending-a-basic-site
716: [17:16:05] <Defraz> So if I just define my function in the page controller then that should work in my template right?
717: [17:16:52] <AlphaCactus> yes
718: [17:17:32] <Defraz> so the page controller is in the /code directory?
719: [17:17:34] <AlphaCactus> but you don't need to write functions if you just want a unique template, only if you need to call custom PHP code from within a template
720: [17:18:14] <Defraz> Yea I need that as well. I have the php code written to pull some xml data from a sight I just want to bundle it up and put it on our site which is sliver stripe.
721: [17:18:30] <AlphaCactus> myPage.php should go into /mysite/code yes, and will contain both class MyPage extends Page and class MyPage_Controller extends Page_Controller
722: [17:18:39] <AlphaCactus> right
723: [17:19:23] * priithansen has joined #silverstripe
724: [17:20:01] <Defraz> So I can just create a testPage.php there
725: [17:20:09] <AlphaCactus> yes
726: [17:22:37] * Colin[pi] quit (Ping timeout: 276 seconds)
727: [17:23:36] <Defraz> Yea for the page type it isn't showing up.
728: [17:23:47] * SightUnseen has joined #silverstripe
729: [17:25:38] <AlphaCactus> do a dev/build after you create the file
730: [17:28:05] * SightUnseen quit (Ping timeout: 240 seconds)
731: [17:32:28] * Defraz quit (Quit: ~ Trillian Astra - www.trillian.im ~)
732: [17:42:08] * Nivery quit (Quit: Nivery)
733: [17:43:00] * zfmf1 has left #silverstripe
734: [17:54:29] * SightUnseen has joined #silverstripe
735: [17:55:58] <gumble> does DataObject::get_one('EditProfilePage') mean the same as DataObject::get_one('SiteTree', 'ClassName = EditProfilePage')
736: [17:56:56] <gumble> ? because I think it does the same thing
737: [17:57:27] * joelpittet has joined #silverstripe
738: [17:58:40] * SightUnseen quit (Ping timeout: 246 seconds)
739: [18:00:16] <AlphaCactus> yes I think they are the same
740: [18:05:05] * willmorgan quit (Ping timeout: 240 seconds)
741: [18:17:02] * micmania1 has joined #silverstripe
742: [18:25:14] * SightUnseen has joined #silverstripe
743: [18:29:32] * SightUnseen quit (Client Quit)
744: [18:44:04] <catcher> gumble, still on SS2.4?
745: [18:49:15] <micmania1> I am a right idiot at times. Spent hours last night trying to figure out why my module wasn't working in SS3.1 only to find I had missed a character off a required key.
746: [18:49:36] <micmania1> I can stop swearing at Silverstripe now.
747: [18:56:12] * r3v3rb has joined #silverstripe
748: [19:03:23] * SphereSilverNL has joined #silverstripe
749: [19:04:26] <SphereSilverNL> Goodevening folks!
750: [19:04:34] <SphereSilverNL> Can I get a facepalm?
751: [19:05:00] * AlphaCactus palms SphereSilverNL in the face
752: [19:05:02] <SphereSilverNL> I just spend one and a half hour on getting angry. My database records weren't updated or altered
753: [19:05:14] <SphereSilverNL> Until I noticed I was looking at the wrong database
754: [19:05:30] <SphereSilverNL> And yes, the records and DB-models were all executed just fine
755: [19:05:30] <UndefinedOffset> ah monday
756: [19:05:31] <AlphaCactus> done that
757: [19:07:55] <SphereSilverNL> I was getting more and more frustrated, until I noticed I was looking at the wrong database.
758: [19:09:17] <micmania1> It must be the full moon.
759: [19:19:23] <catcher> SphereSilverNL, just put the right data in the wrong DB, problem solved.
760: [19:22:04] * SightUnseen has joined #silverstripe
761: [19:22:36] <SphereSilverNL> catcher: well, that kinda doesn't solve the issue if SS is addressing the other wrong DB :P
762: [19:22:59] <catcher> if you pick the right wrong DB, you're golden.
763: [19:23:00] * SightUnseen has left #silverstripe
764: [19:23:19] <SphereSilverNL> I decided to go with just "the correct database", that kinda solved a lot :D
765: [19:29:12] * SphereSilverNL quit (Remote host closed the connection)
766: [19:41:02] * SightUnseen has joined #silverstripe
767: [19:41:34] * SightUnseen has left #silverstripe
768: [19:42:09] * SphereSilverNL has joined #silverstripe
769: [19:42:33] <SphereSilverNL> Jep, it's monday
770: [19:43:49] <simon_w> Nope
771: [19:43:55] <SphereSilverNL> Yes, it is
772: [19:44:03] <simon_w> Nope
773: [19:44:05] * SphereSilverNL lives on the other side of the world
774: [19:44:08] <SphereSilverNL> remember? :D
775: [19:44:11] <simon_w> So?
776: [19:44:15] <simon_w> Still Tuesday
777: [19:44:18] <SphereSilverNL> It's monday here :(
778: [19:45:05] <SphereSilverNL> Why are you awake simon_w?
779: [19:45:11] <AlphaCactus> in my mind i like to shift the date line so that it is us who is ahead of nz
780: [19:45:18] <SphereSilverNL> it's almost 8AM for you, right?
781: [19:45:26] <simon_w> Yeah
782: [19:45:34] <simon_w> Already working!
783: [19:45:36] <SphereSilverNL> you shouldn't be at your computer, but having a shower and go to the office!
784: [19:45:38] <SphereSilverNL> O_o
785: [19:46:01] <SphereSilverNL> Are you sure you're a dev?
786: [19:46:03] <SphereSilverNL> :P
787: [19:46:35] <simon_w> Yes
788: [19:46:53] * SphereSilverNL has doubts
789: [19:47:13] <SphereSilverNL> Ow, for fun, have you by any chance read "Why programmers work at night"?
790: [19:47:20] <simon_w> Nope
791: [19:47:52] <SphereSilverNL> No, seriously, ehm, most dev's I know work at night, the amount of morning-people is very low. I guess you're one of'm
792: [19:47:54] <AlphaCactus> thats easy, its so they don't have bosses and designers and wives bugging them.
793: [19:48:23] <SphereSilverNL> e-book of Swizec Teller, easy and fun to read: https://leanpub.com/nightowls
794: [19:48:27] <simon_w> I work in the morning. That way I can add other developers to that list
795: [19:48:52] <SphereSilverNL> Your goal is to make my list of morning-people longer? O_o :P
796: [19:50:10] <simon_w> No, my goal is to get some work done
797: [19:50:41] <SphereSilverNL> Then, I won't disturb you :D
798: [19:51:10] * r3v3rb quit (Quit: r3v3rb)
799: [19:54:56] <SphereSilverNL> crap, I have to start 1 6AM next monday :/
800: [19:56:09] * mobiusnz has joined #silverstripe
801: [20:01:44] <catcher> I have a non-cms site with a custom controller & custom route via routes.yml. It's in good shape, except flat files (css, js, img) are appending the controller to the base URL, and therefore 404. Where am I going wrong?
802: [20:02:21] <simon_w> No <% base_tag %>?
803: [20:03:21] <catcher> simon_w, that certainly sounds like it could be the problem. How does base_tag work, any docs I can reference?
804: [20:03:33] <simon_w> It sticks in a <base> tag
805: [20:04:46] <catcher> simon_w, is this necessary for most/all url-rewriting sites?
806: [20:04:55] <SphereSilverNL> http://www.w3schools.com/tags/tag_base.asp
807: [20:04:59] <SphereSilverNL> yes, it is very useful
808: [20:05:22] <SphereSilverNL> it has nothing to do with rewriting, but with the base-url that is used for links in the html
809: [20:05:35] <SphereSilverNL> at least, I think that's what simon_w means
810: [20:06:01] <SphereSilverNL> the Silverstripe <% base_tag %> method is the dynamic version of the static reference as documented at w3schools
811: [20:06:12] <SphereSilverNL> sorry for the w3schools link btw
812: [20:06:32] <catcher> seems like it'd be necessary for all sites that rewrite urls, to get the proper base
813: [20:06:44] <SphereSilverNL> Yes, it's VERY useful
814: [20:07:16] <SphereSilverNL> As long as it's not declared statically from a dev-location... because then... things go awefully wrong :P
815: [20:09:25] * mobiusnz quit (Quit: Leaving.)
816: [20:14:26] <SphereSilverNL> simon_w, you here?
817: [20:15:14] <SphereSilverNL> If so: Why are the save/discard etc. buttons all aligned neatly at the bottom, except for the SiteConfig save-button?
818: [20:18:15] <simon_w> Because.
819: [20:18:29] <SphereSilverNL> Valid reason :)
820: [20:18:37] * guzzlefry_dev has joined #silverstripe
821: [20:21:20] <SphereSilverNL> OMG. Seriously, OMG. Our secretary of Public Health said that the usage of a (very) old and insecure version for the SmartCard link for doctors was "unwanted"; Glad that's resolved. I thought they used a very vulnerable version of Java because it was a good idea.
822: [20:24:43] <guzzlefry_dev> Is there a way to check $_GET variables in SilverStripe other than addressing the superglobal directly?
823: [20:24:55] <SphereSilverNL> $this->getRequest()
824: [20:25:04] <guzzlefry_dev> thanks
825: [20:26:04] <SphereSilverNL> You have access to requestvars, postvars, etc.
826: [20:27:38] * mobiusnz has joined #silverstripe
827: [20:29:41] <micmania1> anybody know how to set the default location to redirect the user after login? I've seen it before but can't find it.
828: [20:29:55] <SphereSilverNL> or, if you're in a model, Controller::curr()->getRequest(); if I'm not mistaken.
829: [20:30:13] <SphereSilverNL> micmania1: extend the loginform?
830: [20:30:34] * UndefinedOffset quit (Quit: Leaving.)
831: [20:31:16] <micmania1> there's a static I think. Its default is set to /admin/ or something. I just want to change that.
832: [20:32:21] <simon_w> micmania1, Security.default_login_dest config value
833: [20:32:32] <simon_w> There isn't any default
834: [20:34:08] <SphereSilverNL> what simon_w says is probably better than my random thought :)
835: [20:34:31] <micmania1> ah, that's it. Cheers.
836: [20:34:55] <guzzlefry_dev> Would code that determines which Layout file to use based on a flag be more appropriate in the template file? Assuming calculations are done based on that flag.
837: [20:35:57] <SphereSilverNL> I think "return $this->renderWith()" would indeed be better, but I'm not sure. Depends on where the layout-file is selected in the template.
838: [20:36:58] * nickmolhoek has joined #silverstripe
839: [20:37:00] * nickmolhoek quit (Read error: Connection reset by peer)
840: [20:37:13] * nickmolhoek has joined #silverstripe
841: [20:40:08] * travis-ci has joined #silverstripe
842: [20:40:08] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#404 (3.1 - 8c9ef8f : Ingo Schommer): The build passed.
843: [20:40:08] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/2f9eaeea41dc...8c9ef8feb9c7
844: [20:40:08] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8389090
845: [20:40:08] * travis-ci has left #silverstripe
846: [20:45:28] <guzzlefry_dev> How is the default controller action decided for a page?
847: [20:45:47] * Pyromanik has joined #silverstripe
848: [20:45:52] <AlphaCactus> its always index by default
849: [20:47:17] <guzzlefry_dev> So if I wanted to run some code when someone accesses localhost/myPage, I'd have a function in the page controller named index()?
850: [20:47:46] <AlphaCactus> yes
851: [20:48:11] <AlphaCactus> also there is init() which is run before all actions including index()
852: [20:48:24] <guzzlefry_dev> cool, thank you
853: [20:48:45] * robert_ quit (Ping timeout: 245 seconds)
854: [20:54:02] * DigNZ has joined #silverstripe
855: [20:54:03] * DigNZ quit (Remote host closed the connection)
856: [20:54:05] <SphereSilverNL> There's also onAfterInit and onBeforeInit if I'm not mistaken
857: [20:54:17] * DigNZ has joined #silverstripe
858: [20:54:17] * SphereSilverNL quit (Remote host closed the connection)
859: [20:54:57] * SphereSilverNL has joined #silverstripe
860: [20:55:29] <SphereSilverNL> Ok.... that did not go as expected :D
861: [20:56:44] <simon_w> Those are for extensions
862: [21:00:30] * ajmitch_ is now known as ajmitch
863: [21:05:06] * MrJeremy has joined #silverstripe
864: [21:06:53] <SphereSilverNL> what are simon_w?
865: [21:06:58] <Pyromanik> fuck'n ice
866: [21:07:01] * Pyromanik grumb.es
867: [21:07:04] <SphereSilverNL> ow, the onBefore/After inits :)
868: [21:07:05] <simon_w> onBefore and onAfterInit
869: [21:07:08] <SphereSilverNL> ok :)
870: [21:07:37] <Pyromanik> muddy icewater all up my nice jacket
871: [21:08:04] <Pyromanik> bruised hip and wet pant seat :<
872: [21:08:14] <Pyromanik> I hate you blackice
873: [21:08:45] <SphereSilverNL> At least you didn't break anything or got any big wounds :)
874: [21:12:31] <Pyromanik> just a bit of pride and the sting of a drycleaning bill earlier than I'd have liked.
875: [21:12:48] <unsignedint> first world problems
876: [21:13:09] <Pyromanik> although I managed to wipe most of the water off, so hopefully dryclean won't be necessary yet
877: [21:13:35] <Pyromanik> unsignedint: oh, tbh if I hadn't been wearing my nice jacket I wouldn't have cared.
878: [21:13:50] <Pyromanik> also pretty sure many non 'first world' places suffer from ice issues.
879: [21:14:10] <Pyromanik> so it's not just a first world problem.
880: [21:14:12] <Pyromanik> ;)
881: [21:15:01] <unsignedint> i was more referring to the drycleaning bill :)
882: [21:15:18] <Pyromanik> yeah, all of $9 :<
883: [21:15:21] <Pyromanik> or $15
884: [21:15:37] <Pyromanik> I dunno, I don't usually get shit drycleaned, I just know it's cheaper than I'd expect.
885: [21:17:22] <guzzlefry_dev> So, adding that index() function to my controller stops the template from rendering. What's the obvious thing I'm doing wrong? :P
886: [21:17:22] <Pyromanik> Also I'm grumpy because work is pretty shit atm. Clients driving us up the wall.
887: [21:17:34] <Pyromanik> guzzlefry_dev: not returnning anything
888: [21:18:57] <simon_w> Pyromanik, wanna fix this bug? Downloading transactions from a US Xero account is causing mass duplicates everywhere and I can't test locally.
889: [21:21:00] <irogue> heh, epic timing
890: [21:21:14] <irogue> courier arrives with package from Snap, right as the Cable-net guys are livening up the fibre
891: [21:21:36] <guzzlefry_dev> ah, return $this->render(); :P
892: [21:21:42] <irogue> package has fritz-box (which we aren't going to use) but more importantly the piece of paper with login details
893: [21:21:47] <simon_w> guzzlefry_dev, nope. return array()
894: [21:22:36] <guzzlefry_dev> oh yeah, with all of the needed template variables inside?
895: [21:23:23] * guzzlefry_dev will get this one day. >_>
896: [21:23:26] <simon_w> Well, any extra ones
897: [21:25:33] <simon_w> Woo, remembered my sudo password
898: [21:26:55] <AlphaCactus> is it su?
899: [21:27:06] <simon_w> Time for lots of if(Member::currentUserID() == 1) and debugging on live...
900: [21:27:15] <simon_w> Nope, PAM'll reject that
901: [21:28:56] * travis-ci has joined #silverstripe
902: [21:28:56] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#406 (3.1 - 1829932 : Ingo Schommer): The build passed.
903: [21:28:56] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1046530ff680...18299322bc6d
904: [21:28:56] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8394629
905: [21:28:56] * travis-ci has left #silverstripe
906: [21:37:44] * tv_ has joined #silverstripe
907: [21:39:50] <tv_> Can anyone let me know why when I download an extension via composer and then make a change to a file in that extension, my repo shows a subproject commit that has -dirty appended to it? Does it have to do with the fact that the extension come downloaded with a .git directory?
908: [21:42:45] <Pyromanik> guzzlefry_dev: nope, just ret... oh simon_w already did that. You can return $this, array() or a string.
909: [21:42:50] <Pyromanik> (string of output)
910: [21:44:11] <Pyromanik> if you use an array it's automatically passed through $this->customise(), so you only need to put things in the array you want to ADD to the page (or override, eg 'Content').
911: [21:44:38] <Pyromanik> array is associative, 'VarName' => '<p>Value</p>'
912: [21:44:45] <Pyromanik> for use in templates
913: [21:44:49] <Pyromanik> $VarName
914: [21:49:41] <irogue> wee, time to speedtest this fucker
915: [22:01:53] <irogue> http://www.speedtest.net/result/2794702155.png
916: [22:01:55] * cloph is now known as cloph_away
917: [22:03:19] * robert_ has joined #silverstripe
918: [22:03:19] * robert_ quit (Changing host)
919: [22:03:19] * robert_ has joined #silverstripe
920: [22:07:07] * willr_ has joined #silverstripe
921: [22:09:12] <micmania1> Can anybody recommend a Facebook integration module? The perfect module would have Facebook Login & signup built in. Login would be good enough though.
922: [22:13:16] * tv_ quit (Quit: Page closed)
923: [22:13:48] * nepgear quit (Ping timeout: 246 seconds)
924: [22:15:40] * nepgear has joined #silverstripe
925: [22:17:13] <willr_> micmania1 you have a choice of 3-4. https://svn.pocketrent.com/public/facebook/ uses oath and is probably the best to use
926: [22:17:48] * willr_ quit (Quit: willr_)
927: [22:19:08] <simon_w> Though it doesn't have signup
928: [22:19:52] <SphereSilverNL> I know LoveDuckie is working on something, but I don't know if that's what you're looking for though.
929: [22:21:39] <simon_w> Woo, may have fixed it!
930: [22:21:57] * atmos has joined #silverstripe
931: [22:22:22] <SphereSilverNL> may have fixed... what exactly? :D
932: [22:22:36] <atmos> morning all - can someone lend a hand with an issue with uploading from files from computer?
933: [22:22:58] <simon_w> This annoying bug
934: [22:24:42] <Pyromanik> SphereSilverNL: americans.
935: [22:25:09] <SphereSilverNL> Americans are not a bug, they're a feature that needs deleting :P
936: [22:27:17] <simon_w> FIXED IT! :D :D :D
937: [22:27:47] <simon_w> - $this->setField('Date', $this->getDate()->setTime(0, 0, 0));
938: [22:27:47] <simon_w> + $this->setField('Date', $this->getDate()->setTime(0, 0, 0)->dateString());
939: [22:27:52] <simon_w> That's the fix.
940: [22:28:02] <simon_w> So annoying.
941: [22:28:32] <SphereSilverNL> won't that override locales?
942: [22:28:55] <simon_w> Won't what override locales?
943: [22:29:07] <SphereSilverNL> your fix, just asking :)
944: [22:29:26] <SphereSilverNL> I haven't looked in to it, just asking if it won't :)
945: [22:29:51] <simon_w> There's no locales in there at all
946: [22:29:59] <SphereSilverNL> ok, :)
947: [22:30:27] <SphereSilverNL> Just asking :) from my short "ok, so that's the fix, why" look ;)
948: [22:30:49] <simon_w> You need a lot more context to understand why :p
949: [22:30:58] <simon_w> Like, what the bug is to start with
950: [22:31:13] <SphereSilverNL> Probably :)
951: [22:31:42] <SphereSilverNL> As I said, I just judge on what I see ;) In this case, I shut up and sit in a corner wheeping :D
952: [22:33:52] <atmos> anyone for a file upload issue?
953: [22:34:45] <simon_w> atmos, less meta questions
954: [22:36:25] <atmos> <@simon_w> my bad? I'm having an issue with files uploading fine, read/write perms fine, but are 404ing in the CMS and frontend
955: [22:37:08] <simon_w> Are _resampled folders being created? And do those have write permissions?
956: [22:37:41] <atmos> _resampled isbeing created and populated, as a test we've given it 777 and still nothing
957: [22:38:31] <simon_w> What's one of the URLs that's 404ing?
958: [22:38:49] <simon_w> And does that file exist?
959: [22:40:09] <atmos> (unaccesable_site)/assets/Uploads_resampled/resizedimage600156-IMAGENAME.jp
960: [22:40:19] <atmos> and yes it exists
961: [22:40:38] <atmos> .jpg*
962: [22:40:58] <atmos> (unaccesable_site)/assets/Uploads/_resampled/resizedimage600156-IMAGENAME.jpg* sorry
963: [22:42:30] * Colin[pi] has joined #silverstripe
964: [22:42:38] <simon_w> And do you get a SilverStripe or apache 404?
965: [22:42:44] <atmos> SS 404
966: [22:44:25] <atmos> SS 3.0 if it helps
967: [22:45:00] <simon_w> Hmm, are you in dev or live mode?
968: [22:45:53] * micmania1 quit (Ping timeout: 250 seconds)
969: [22:46:50] <atmos> live
970: [22:47:09] <simon_w> And the JS in the CMS loads fine?
971: [22:47:11] <Pyromanik> sounds like .htaccess
972: [22:47:19] <Pyromanik> or permissions
973: [22:47:25] <atmos> yeah, everything loads fine
974: [22:47:33] <Pyromanik> what about loading that file directly?
975: [22:47:34] * Jayden90 has joined #silverstripe
976: [22:47:47] <Pyromanik> oh
977: [22:47:48] <Pyromanik> ahahaha
978: [22:47:52] <Pyromanik> you have a / missing in your path
979: [22:48:00] <atmos> where?
980: [22:48:06] <atmos> I thought I posted a corrected one
981: [22:48:06] <Pyromanik> Uploads_resampled
982: [22:48:07] <atmos> ...
983: [22:48:18] <Pyromanik> Uploads/_resampled
984: [22:48:21] <simon_w> Pyromanik, three lines down
985: [22:48:33] <Pyromanik> oic
986: [22:48:40] <Pyromanik> don't type, copy ;)
987: [22:48:51] * SphereSilverNL quit (Remote host closed the connection)
988: [22:48:58] <Pyromanik> so can you load the file directly?
989: [22:49:15] <atmos> Do you mean browsing to the image URL?
990: [22:52:03] <atmos> what could be potentially off with .htaccess?
991: [22:52:49] * gumble quit (Ping timeout: 276 seconds)
992: [22:53:18] <catcher> atmos, it could be rewriting your requests for files instead of letting them pass straight through
993: [22:53:52] <catcher> i.e. RewriteCond %{REQUEST_FILENAME} !-f
994: [22:55:06] <atmos> <catcher> OK great, let me check
995: [22:56:31] <catcher> but if you can browse to the files directly, that's not the issue.
996: [23:01:16] <atmos> <catcher> ha, weird. There was an .htaccess file in the /Uploads folder - removed it and it works
997: [23:02:00] <catcher> ah, cool
998: [23:02:40] <atmos> <catcher><@simon_w> thanks guys
999: [23:03:56] <Jayden90> I spoke to soon yesterday, $ChildrenOf() definitly fails if called when called inside a $children loop. $Top, $Parent does not help.
1000: [23:06:39] <Jayden90> $Debug just returns "Name:ChildrenOf
1001: [23:06:47] <simon_w> Why are you calling ChildrenOf inside a loop?
1002: [23:07:57] <guzzlefry_dev> Is it inappropriate to throw a 404 if a GET variable is invalid? The variable specifies one of three location branches for a business.
1003: [23:08:37] <Jayden90> Because our projects have a module design. Certain top level pages can have particular sub-pages whose contents are looped on the parent page as sections.
1004: [23:09:20] <Jayden90> Users can then make their own page layouts based on a variety of section types which can bee traged and drop ordered in the site tree
1005: [23:09:28] <Jayden90> *dragged
1006: [23:10:12] <Jayden90> anyway, that does not matter. Nesting these loops should not fail, this looks like a bug to me
1007: [23:10:41] <simon_w> You're inside an include, which is inside a loop, correct?
1008: [23:11:10] <Jayden90> Through testing I have found the include is a red herring, same result in our out of the include
1009: [23:11:43] <Jayden90> The issue is $ChildrenOf() inside $Children fails
1010: [23:12:00] <simon_w> Yes, that's because it's a method on the controller
1011: [23:13:35] <Jayden90> Which controller? What do I have to do to get that to work.
1012: [23:14:03] * guci0 quit (Ping timeout: 250 seconds)
1013: [23:14:50] <Jayden90> I tried to look at the core to see what was going on, but I could not come to any conclusions
1014: [23:16:00] <simon_w> It's a method on ContentController, which all your Page_Controller classes extend
1015: [23:16:58] <Jayden90> So is it an unknown method when called withing $Children?
1016: [23:17:29] <Jayden90> Googling "$ChildrenOf inside $Children" returns nothing. There is not much out there on working with $ChildrenOf
1017: [23:18:06] <simon_w> You can only use $ChildrenOf when in the controller's scope
1018: [23:18:59] <simon_w> http://doc.silverstripe.org/framework/en/reference/templates#scope
1019: [23:20:54] <Jayden90> <% loop $Top.ChildrenOf(products) %>
1020: [23:21:04] <Jayden90> Is that correnct? It has no effect
1021: [23:21:54] <simon_w> It won't work inside an include
1022: [23:24:50] <Jayden90> That is fairly disapointing, the attraction of $ChildrenOf is that it is usefull from anywhere, ideal for use in an include that could find itself anywhere
1023: [23:25:38] <Jayden90> Why won't it work in an include?
1024: [23:26:45] <simon_w> Because an include has a new scope stack
1025: [23:26:59] <Peavers> Extensions replace decorators yeah?
1026: [23:27:07] <simon_w> Peavers, yes
1027: [23:37:24] * Jayden90 quit (Quit: Jayden90)
1028: [23:41:06] * Jayden90 has joined #silverstripe
1029: [23:49:18] <Pyromanik> atmos: there's supposed to be a .htaccess file in assets
1030: [23:50:27] <Pyromanik> atmos: What version of apache are you running?
1031: [23:50:27] * joelpittet quit (Remote host closed the connection)
1032: [23:53:57] <catcher> hrm. Installing commenting system to prd site, "Premature end of script headers: main.php" when I register my extension.
1033: [23:54:08] <catcher> not sure how to track this one down.
1034: [23:56:16] <Pyromanik> catcher: google!
1035: [23:57:13] <Pyromanik> but it sounds like erroronious white space.
1036: [23:57:25] <Pyromanik> like some dip has left a ?> in their file.
1037: [23:57:33] <simon_w> No it doesn't :p
1038: [23:57:45] <atmos> <Pyromanik> can't rememeber off the top of my head - where can I quickly check?
1039: [23:57:49] <Pyromanik> sounds like I said, I'm just shooting in the dark
1040: [23:57:57] <Pyromanik> atmos: press p then tab.
1041: [23:58:04] <Pyromanik> that doesn't alert me.
1042: [23:58:23] <Pyromanik> atmos: use the apache command?
1043: [23:58:26] <Pyromanik> apache -v?
1044: [23:58:29] <Pyromanik> apache2 -v?

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