#silverstripe IRC Log

IRC log for 8 November 2013

All timestamps are in UTC.

1: [00:01:24] * willr has joined #silverstripe
2: [00:03:18] * travis-ci has joined #silverstripe
3: [00:03:18] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1512 (3.1 - 99abe16 : Ingo Schommer): The build passed.
4: [00:03:18] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/48673346ad0b...99abe16c2105
5: [00:03:19] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13660809
6: [00:03:19] * travis-ci has left #silverstripe
7: [00:08:53] * nickmolhoek quit (Quit: nickmolhoek)
8: [00:15:20] * zagoodwin has joined #silverstripe
9: [00:17:16] <zagoodwin> hey
10: [00:17:17] <zagoodwin> [Warning] strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSK/3.0/no DST' instead
11: [00:17:25] <zagoodwin> whats the best way to fix this
12: [00:18:18] <willr> Update your servers php.ini file with a timezone
13: [00:19:05] <guzzlefry> Is there a way to check that a relation exists using filter()?
14: [00:22:01] * travis-ci has joined #silverstripe
15: [00:22:01] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#647 (3.1 - e2fa3b7 : Ingo Schommer): The build passed.
16: [00:22:01] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/f9c3f4d1ccc5...e2fa3b7f2c20
17: [00:22:01] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/13661598
18: [00:22:01] * travis-ci has left #silverstripe
19: [00:23:41] <chrisrio> guzzlefry: I foreach the set - I don't *think* so.
20: [00:25:40] <chrisrio> surely depends on the example though as for a has_one or something you could just filter/exclude on the ID
21: [00:27:20] <irogue23> http://images.geekzone.co.nz/imagessubs/blog561ea4a7e395651ad44a888a8f2cf6a4.jpg
22: [00:28:04] <Colin[pi]> irogue23: LOL
23: [00:28:09] <Colin[pi]> perk?
24: [00:28:11] <willr> when substr is not your friend
25: [00:30:23] <irogue23> weee, being a dick works again
26: [00:30:49] <irogue23> just got a call from ultrafastfibre re my twitter rants about this: https://dl.dropboxusercontent.com/u/4618071/fibre.jpg
27: [00:31:01] <zagoodwin> so just date.timezone = Pacific/Auckland
28: [00:31:03] <zagoodwin> ?
29: [00:31:04] * UncleCheese has joined #silverstripe
30: [00:31:04] * DesignerX has joined #silverstripe
31: [00:31:19] <zagoodwin> in php.ini? do i have to restart server?
32: [00:31:21] <spronk> haha irogue23
33: [00:31:26] <spronk> they gonna do the short route?
34: [00:31:38] <irogue23> they're talking to the council and chorus to try to get permission to
35: [00:31:57] <irogue23> their idiot planners had got all the resource consent and permission from chorus to touch their poles... for the other route
36: [00:32:04] <spronk> lol
37: [00:32:05] <irogue23> thats why they were being so adamant about going that way
38: [00:32:17] <irogue23> they'd already gone to all the hassle of organising it
39: [00:32:28] <spronk> what a clusterfuck ufb is
40: [00:32:34] * travis-ci has joined #silverstripe
41: [00:32:34] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1513 (3.1 - 65844e1 : Ingo Schommer): The build passed.
42: [00:32:34] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/99abe16c2105...65844e1f86cd
43: [00:32:35] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13661608
44: [00:32:35] * travis-ci has left #silverstripe
45: [00:33:07] <irogue23> spronk: its cos they weren't harsh enough with the legislation enabling it
46: [00:33:15] <DaShiVaDan> heyas: dumb templating question:
47: [00:33:20] <irogue23> spronk: cos anti-regulation etc
48: [00:33:38] <DaShiVaDan> actually, i'll paste it
49: [00:33:54] <irogue23> if they'd just regulated that the fibre install companies could use anyone else's poles and ducts unless there was a valid technical reason not to, it'd all be much easier
50: [00:34:08] <spronk> ugh, yeah
51: [00:34:24] <irogue23> cos a big part of the problem here is that the fibre company is the power lines co, but to get it here requires hopping it across a Chorus pole
52: [00:34:32] <spronk> yeah
53: [00:35:05] <irogue23> and since Chorus was butthurt abuot not getting the contract nationwide, they aren't playing nice in areas other companies are doing the UFB
54: [00:35:54] <spronk> fuckers
55: [00:36:22] <irogue23> and now of course it turns out the reason Chorus won the majority of the country is cos they lowballed their tender, to the point where it's a lossmaker propped up by their copper profits
56: [00:36:37] <irogue23> hence the whole issue now that the ComCom have lowered the wholesale copper price
57: [00:36:57] <irogue23> Chorus are now making a loss on fibre and not enough profit on copper to make the fibre viable
58: [00:37:24] <antmas> irogue23: epic
59: [00:37:30] <antmas> fuck Chorus
60: [00:40:16] <simon_w> And I'm already on a 130 mbit down pipe at home
61: [00:40:47] <spronk> chorus really seem like a bunch of muppets
62: [00:40:51] <simon_w> My street currently isn't on the scheduled roll out by 2020 either
63: [00:41:05] <spronk> enable in chch don't seem to have a concrete schedule for various streets
64: [00:41:35] <irogue23> yeah
65: [00:41:46] <irogue23> from what i've heard, Northpower are teh only company doing UFB right
66: [00:42:38] <irogue23> http://www.scoop.co.nz/stories/BU1311/S00163/northpower-collects-global-fibre-award.htm
67: [00:42:54] <DaShiVaDan> OK, I know I used php comments in the .ss file, but they're not in the source file, and I can't be bothered figuring out how to edit it to change teh comment type, but my noob .ss issue: http://www.sspaste.com/paste/show/527c30c9a9913
68: [00:43:26] * travis-ci has joined #silverstripe
69: [00:43:26] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#648 (3.1.2-rc1 - e2fa3b7 : Ingo Schommer): The build passed.
70: [00:43:26] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.1.2-rc1
71: [00:43:27] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/13662026
72: [00:43:27] * travis-ci has left #silverstripe
73: [00:44:34] * Ryan-Toast has joined #silverstripe
74: [00:45:32] <AlphaCactus> DaShiVaDan: eh.. i'm confused about what you are asking
75: [00:46:24] <AlphaCactus> do you mean needPayment is true in the first ss and false in the second?
76: [00:47:44] <DaShiVaDan> yeah
77: [00:47:45] <DaShiVaDan> sorry
78: [00:47:53] <DaShiVaDan> it's true in teh _show template
79: [00:48:14] <DaShiVaDan> same user logged in, false in the tally template, but I think I'm missing somrthign to target it right
80: [00:48:47] <DaShiVaDan> the _show template has that <% control Item %> wrapped around it, which is why i think it works, but i know SFA about SS and templating in particular :P
81: [00:48:48] <AlphaCactus> includes lose context. I read some stuff somwehere where you could pass in variables maybe?
82: [00:49:22] <AlphaCactus> ah, yeah, if you aren't inside an item then you don't have context/scope for needPayment. i'm guessing
83: [00:50:26] <DaShiVaDan> yeah i have: <% if CurrentMember %> around it in the not working thing, when I want somethign like <% USEING CurrentMember %> ??
84: [00:50:39] <DaShiVaDan> I just dunno the syntax I need
85: [00:51:27] * simon_w changed the topic to 'Welcome to #silverstripe | Congratulations sminnee and escapeartist! | IRC Logs: http://ss.org.nz/logs | Dev Mailing List: http://ss.org.nz/ss-dev | Latest stable release: http://ss.org.nz/3.1.1 | Latest development release: http://ss.org.nz/3.1.2rc1 | Release Archive: http://www.silverstripe.org/release-archive/'
86: [00:51:27] <DaShiVaDan> or do I just need to add a <% control Item %> inside the if CurrentMember, around teh needPayment check, and it'll automagically figure it all out?
87: [00:52:11] <AlphaCactus> does the include know about an Item?
88: [00:52:12] <DaShiVaDan> sminnee and escapeartist? they get engaged? married? have a kid? or take over the world?
89: [00:53:20] <DaShiVaDan> AlphaCactus: No idea :/ total noob on templating. I don't know where the other page gets the 'Item' from (btw, i should probably mention - I did not create this site, I just have to modify it, I know little about SS before this site, all I have figured out is the guy who made it was an idiot - lots of core edits and such, mostly fixed)
90: [00:53:52] * travis-ci has joined #silverstripe
91: [00:53:52] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1514 (3.1 - 008bd97 : Ingo Schommer): The build passed.
92: [00:53:52] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/65844e1f86cd...008bd978288c
93: [00:53:53] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13662033
94: [00:53:53] * travis-ci has left #silverstripe
95: [00:54:57] * oddnoc has joined #silverstripe
96: [00:55:18] <AlphaCactus> Isn't that how it always is...
97: [00:55:28] <DaShiVaDan> got it: <% control CurrentMember %>
98: [00:55:35] <DaShiVaDan> (I think - about to try)
99: [00:56:24] <AlphaCactus> yeah not enuf context to help really.
100: [00:57:12] <DaShiVaDan> ahh no go :( - if there's anything you wanna ask for to shed more light, I got teh entire codebase in front of me :)
101: [00:58:11] <AlphaCactus> kinda need to know how the include gets included and what context it is in to determine if you can get to the Item the other template is using.
102: [00:58:20] * travis-ci has joined #silverstripe
103: [00:58:20] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1514 (3.1.2-rc1 - 008bd97 : Ingo Schommer): The build passed.
104: [00:58:20] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/3.1.2-rc1
105: [00:58:20] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13662034
106: [00:58:20] * travis-ci has left #silverstripe
107: [00:59:40] <DaShiVaDan> http://tourdehills.ocsdev.com.au/entrants/show/daniel-marshall?showtemplate=1 :)
108: [01:00:28] * oddnoc quit (Quit: bye!)
109: [01:00:41] <AlphaCactus> heh, i've never used that query var because its sooo hard to read
110: [01:01:11] <DaShiVaDan> hehe yeah i've tried it a few times, never had much luck making sense of it
111: [01:01:12] <AlphaCactus> it would be more useful to see the template or code that includes the include
112: [01:03:18] * chillu quit (Quit: chillu)
113: [01:04:16] * travis-ci has joined #silverstripe
114: [01:04:16] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1515 (3.1 - 7ace631 : Will Rossiter): The build passed.
115: [01:04:16] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/008bd978288c...7ace63149924
116: [01:04:17] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13662102
117: [01:04:17] * travis-ci has left #silverstripe
118: [01:04:49] <DaShiVaDan> AlphaCactus: probably still not enough, but: http://codepad.viper-7.com/Auh8VM
119: [01:07:37] <Ryan-Toast> DaShiVaDan: you need to add the gradient to mecury.png
120: [01:08:56] <DaShiVaDan> Ryan-Toast: For sure. that mercury.png hasn't been doing it's homework, it has a failing gradient.... I mean... wrong person? :P
121: [01:08:57] <AlphaCactus> DaShiVaDan: what class is needPayment on
122: [01:09:04] <DaShiVaDan> Entrant
123: [01:09:14] * nickmolhoek has joined #silverstripe
124: [01:09:15] <DaShiVaDan> the php file at the end of the paste
125: [01:09:32] <DaShiVaDan> about 20 lines or so from the end - all it does is a quick query
126: [01:10:19] * SightUnseen has joined #silverstripe
127: [01:10:24] <AlphaCactus> can you tell if it is even being called?
128: [01:10:25] * SightUnseen has left #silverstripe
129: [01:11:09] <DaShiVaDan> um.... no :P how would I do that? I know it's being called in _show.ss cause it's showing the conditional html line when that is included
130: [01:11:09] <AlphaCactus> is this 2.x or 3.x
131: [01:11:16] <DaShiVaDan> oooooh oops
132: [01:11:20] <DaShiVaDan> i shoulda said sorry :/ 2.4
133: [01:11:30] <DaShiVaDan> I keep forgetting I am working with the old stuff
134: [01:11:50] <AlphaCactus> guess I shuda known from the Control
135: [01:12:21] * ben_ has joined #silverstripe
136: [01:13:13] <AlphaCactus> can you just put some whatever inside control CurrentMember so we can be sure we're in side that?
137: [01:13:23] <DaShiVaDan> (I've never worked with anything other than this site, and one that is almost a clone of it - no clue what teh differences are other than people here have consistently said 'significant')
138: [01:13:56] <DaShiVaDan> sure can, one sec
139: [01:14:13] <AlphaCactus> or well, i guess you don't get a login link right? you get a logout link?
140: [01:14:55] <AlphaCactus> so you could do <% if needPayment %>...<% else %>this sux<% end_if %> so you can be sure somethign is happening?
141: [01:15:49] <DaShiVaDan> kk: prob 1: yeah the <% if CurrentMember %> stuff here showing <% control CurrentMember %> stuff here not showing <% end_control %> <%end_if %>
142: [01:16:19] <DaShiVaDan> so the if works, but teh control does not
143: [01:16:29] <DaShiVaDan> which is odd, cause I copied it from another working include :/
144: [01:16:41] <AlphaCactus> eh... what you get if you just $CurrentMember inside the if before the control
145: [01:17:31] <DaShiVaDan> AlphaCactus: btw, thanks either way so far for simply the help debugging :)
146: [01:17:39] * mirrors quit (Quit: Page closed)
147: [01:17:55] <AlphaCactus> :>
148: [01:18:44] <DaShiVaDan> hmm, though I now think my template updates aren't kicking in even with a /dev/build?flush=all after each time...
149: [01:19:16] <DaShiVaDan> deleting the cache manually and rebuilding
150: [01:19:40] <AlphaCactus> helps to do just ?flush too sometimes.
151: [01:20:12] <AlphaCactus> i don't think i've ever had to dev/build after changing whats in a template
152: [01:20:34] <DaShiVaDan> oh? cool. well the cleaning of teh cache and rebuild has now got me template errors, so i'll fix those first, and mebbe with what you've told me so far and actually getting the changes I make to take effect I'll get it sorted
153: [01:21:15] <AlphaCactus> ok. gl. i'm headed home.
154: [01:21:30] <DaShiVaDan> (This is probably due to me trying to use: $CurrentMember inside the template?: [User Error] Uncaught Exception: Object->__call(): the method 'fortemplate' does not exist on 'Entrant'
155: [01:21:34] <DaShiVaDan> kk, thanks :)
156: [01:21:49] <AlphaCactus> oh you got that far. yeah thats good.
157: [01:22:00] <AlphaCactus> so why doesn't control $CurrentMember work then
158: [01:22:19] <DaShiVaDan> it might
159: [01:22:32] <DaShiVaDan> just that 'template changes not getting built properly into the site' type thing
160: [01:22:46] * UncleCheese quit (Quit: UncleCheese)
161: [01:22:48] <DaShiVaDan> I've been testing, but what I was testing wasn't the updated templates.... :(
162: [01:22:59] <AlphaCactus> well, now you know how to break the templte so you can be sure its getting updated...
163: [01:23:14] <DaShiVaDan> yup :)
164: [01:23:26] <DaShiVaDan> lol ok
165: [01:23:28] <DaShiVaDan> fixed the template
166: [01:23:30] <DaShiVaDan> it works
167: [01:23:35] <DaShiVaDan> like i originally had it :)
168: [01:23:44] <DaShiVaDan> just I never got to test it due to that build thing
169: [01:23:48] * UncleCheese has joined #silverstripe
170: [01:23:53] <DaShiVaDan> thanks for helping me figure out where my issue was :)
171: [01:24:05] <AlphaCactus> oh good. ur welcome. cya :)
172: [01:24:48] * danfo quit (Quit: danfo)
173: [01:34:09] * danfo has joined #silverstripe
174: [01:39:56] * willr quit (Quit: willr)
175: [01:40:55] * zagoodwin quit (Ping timeout: 250 seconds)
176: [01:57:03] <antmas> friday
177: [01:57:06] <antmas> is going
178: [01:57:07] <antmas> very
179: [01:57:08] <antmas> slow
180: [02:00:27] <Ryan-Toast> Have a beer?
181: [02:04:58] <danfo> Ryan-Toast: the css issue was mime types, btw. just an update / some closure ;) woohoo
182: [02:05:09] <danfo> thx for the suggestions
183: [02:05:17] <Ryan-Toast> danfo: Glad you got it fixed, must have been a good feeling :)
184: [02:05:58] <simon_w> antmas, so start having some fun
185: [02:07:16] <danfo> yes! onto the next nginx + hhvm + ss2.4 issue :P
186: [02:08:17] <danfo> all URLs load the home page. I wonder if it's better to proxy to /index.php or straight to /sapphire/main.php. I guess I should be able to get either working
187: [02:09:34] <Ryan-Toast> Why does current_site_config have every field but the ID? That's the only one I need ><
188: [02:09:58] <danfo> haha
189: [02:12:29] * spronk has left #silverstripe
190: [02:13:04] <chrisrio> someone less lazy than me should write a kickass SS cheatsheet with every _config.php variable available
191: [02:13:10] * spronk has joined #silverstripe
192: [02:13:13] <chrisrio> and they should do it within the next.... 2-3 mins
193: [02:13:49] <chrisrio> nekminnit http://www.ssbits.com/snippets/2010/a-config-php-cheatsheet/
194: [02:17:24] * marvanni quit ()
195: [02:18:27] * bennylope has joined #silverstripe
196: [02:19:50] <antmas> Ryan-Toast: I would, but the driving limit has been lowered :(
197: [02:20:02] <Ryan-Toast> antmas: Really? To what?
198: [02:20:08] <antmas> from 80 to 50
199: [02:20:10] <antmas> per 100mm
200: [02:20:15] <antmas> 100ml*
201: [02:20:25] <Ryan-Toast> antmas: How many beers is that?
202: [02:20:39] <antmas> well, I was ON the limit at 4 pints of 5.4%
203: [02:20:51] <antmas> when I was last pulled over - which was fine
204: [02:21:03] <antmas> so, I'm guessin like 2 now?
205: [02:21:20] <antmas> but that was with a TRUCK load of food that day
206: [02:21:25] <Ryan-Toast> NZ is still 80 mg right?
207: [02:21:34] <antmas> Ryan-Toast: nope, 50 now
208: [02:21:42] <antmas> for over 20s
209: [02:21:49] <Ryan-Toast> NZ transport website still says 80.
210: [02:22:20] <antmas> hmmm, maybe it hasn't actually changed yet?
211: [02:22:42] <Ryan-Toast> Maybe, or perhaps they just don't update their websites :P
212: [02:23:14] <chrisrio> why does SS3 render images inserted via TinyMCE as a _resampled 600px width image?
213: [02:23:27] <antmas> Ryan-Toast: no, I think I just assumed it was actioned - I guess it is still in the process of
214: [02:23:38] <antmas> so...
215: [02:23:42] <antmas> you know what that means
216: [02:23:44] <Ryan-Toast> antmas: Must be.
217: [02:23:45] <chrisrio> that booze thing kicks in within a few months
218: [02:23:45] <antmas> BEER TIME!
219: [02:23:49] <mobiusnz> yeah cabinet have only just decided they will do it
220: [02:23:52] <pippy> http://www.globalrph.com/bac.cgi
221: [02:23:52] <Ryan-Toast> antmas: BEER TIMMME
222: [02:24:05] <mobiusnz> it hasn't been debated or made law yet
223: [02:24:19] <antmas> mobiusnz: ah, right.
224: [02:24:20] <Ryan-Toast> antmas: I have a max of 3 if I have to drive, so that should be sweet.
225: [02:24:40] <Ryan-Toast> antmas: mainly because motorbikes are easy to kill yourself on.
226: [02:24:57] <antmas> when I was pulled over, I fetl VERY drunk
227: [02:25:02] <antmas> but was fine :)
228: [02:25:08] <Ryan-Toast> lol.
229: [02:25:35] <antmas> Ryan-Toast: I find riding motorcycles with a couple of pints in me actually does make me ride better
230: [02:25:41] <Ryan-Toast> There was a segment on the news or something, where they had this massive poly guy drink pretty much two boxes and he still blew under the limit.
231: [02:25:53] <Ryan-Toast> antmas: Not through rush hour traffic though.
232: [02:26:01] <Ryan-Toast> antmas: On the motorway.
233: [02:26:05] <Ryan-Toast> antmas:
234: [02:26:07] <antmas> Ryan-Toast: no way
235: [02:26:44] <antmas> Ryan-Toast: what kind of bike?
236: [02:26:45] <Ryan-Toast> antmas: Yeah, breathalysers are a pretty shoddy way of testing. Which is why they do a blood test after.
237: [02:27:04] <Ryan-Toast> antmas: CBR500R
238: [02:27:09] <Ryan-Toast> antmas: 2013
239: [02:27:13] <antmas> nice
240: [02:27:29] <antmas> I recently sold my 1998 CBR 600
241: [02:27:39] <antmas> CBRF* - was the last of the 'steelies'
242: [02:28:02] <Ryan-Toast> antmas: Steelies?
243: [02:28:13] <antmas> Ryan-Toast: steel frame
244: [02:28:25] <Ryan-Toast> antmas: Ah, I should know what mine is :P
245: [02:28:28] <Ryan-Toast> antmas: But I don't.
246: [02:28:45] <antmas> Ryan-Toast: it will be aluminium
247: [02:28:48] <antmas> this was mine http://www.motorcyclespecs.co.za/Gallery/HONDA%20CBR600F%2098%20%202.jpg
248: [02:29:14] <Ryan-Toast> antmas: Nice :)
249: [02:29:56] <Ryan-Toast> antmas: this is mine: http://www.bestiasmecanicas.com/wp-content/uploads/2013/03/Honda-CBR500R-Black.jpg
250: [02:30:10] <Ryan-Toast> antmas: Except I de-stickered it.
251: [02:30:24] * EasyCo has joined #silverstripe
252: [02:30:31] <antmas> Awesome - I like the slightly more upright riding pos on the midrange bikes
253: [02:30:46] <antmas> makes a huge difference for city riding
254: [02:31:00] <Ryan-Toast> That's the good thing about the 500's, they sit like a naked bike
255: [02:32:02] <antmas> steel frames were great because you had room to fix it if you crashed
256: [02:32:11] <antmas> alu frames are toast
257: [02:32:14] <Ryan-Toast> antmas: I need a new exhaust though, it's so quiet and people can't hear me when I'm right beside them,. So I always feel like they're going to just change into my lane./
258: [02:32:41] <antmas> Ryan-Toast: I had the same thing, so just through a big open can on it and it became a monster :D
259: [02:32:45] <Ryan-Toast> antmas: Yeah, but so much lighter.
260: [02:32:51] <antmas> true
261: [02:33:27] <irogue23> jebus
262: [02:33:34] <irogue23> where did this heat come from?
263: [02:33:52] <antmas> irogue23: nz?
264: [02:34:13] <Ryan-Toast> antmas: Yeah, I'm getting a Takkoni so I can turn the db-killer on and off: http://www.youtube.com/watch?v=4xPRo4Vhv_s
265: [02:34:47] <antmas> Ryan-Toast: very cool idea
266: [02:34:58] <irogue23> antmas: yeah. suddenly SUMMER AS FUCK
267: [02:35:08] <Ryan-Toast> antmas: Yeah, cops love pulling over loud bikes haha.
268: [02:35:10] <antmas> irogue23: haha yeah same in NZ
269: [02:35:18] <antmas> ffff
270: [02:35:21] <antmas> Nelson*
271: [02:35:29] * irogue23 is in hams
272: [02:36:21] <Ryan-Toast> antmas: Hey, can you tell me why SiteConfig::current_site_config() doesn't have the ID?
273: [02:36:34] <antmas> same temp as us 20, feels like 23-24 though
274: [02:36:44] <antmas> Ryan-Toast: hmmm
275: [02:37:25] <antmas> the SiteConfigID?
276: [02:37:34] <Ryan-Toast> antmas: yeah
277: [02:38:00] <irogue23> antmas: yeah, prob cos absolutely no wind
278: [02:39:30] <antmas> Ryan-Toast: hmmm, that's what I would have put
279: [02:39:39] <antmas> anything in var_dump suggesting it?
280: [02:39:46] <Ryan-Toast> antmas: I would have thought you could use SiteConfig::current_site_config()->ID
281: [02:39:53] <Ryan-Toast> antmas: but it doesn't have the ID
282: [02:41:38] <antmas> Ryan-Toast: try a var_dump
283: [02:41:45] <Ryan-Toast> I did. No id
284: [02:41:48] <Ryan-Toast> antmas: ^
285: [02:42:00] <Ryan-Toast> antmas: every field bar the ID :(
286: [02:42:26] <antmas> mmmm
287: [02:42:54] <antmas> what about sourceID?
288: [02:44:01] <antmas> it should be in the docs!
289: [02:44:02] <antmas> :p
290: [02:44:05] <Ryan-Toast> antmas: Empty.
291: [02:44:13] <Ryan-Toast> antmas: Can't find it in the docs :(
292: [02:46:02] <antmas> Ryan-Toast: sorry, I'm not much help
293: [02:46:10] <antmas> :( I'm mostly a .NET guy
294: [02:46:34] <Ryan-Toast> antmas: Thanks anyway :)
295: [02:46:52] <Ryan-Toast> If anyone else knows how I can get it, I would be grateful.
296: [02:47:34] <antmas> I'm betting Pyro or Simonw would
297: [02:47:43] <antmas> or maybe spronk ?
298: [02:49:31] <spronk> hmmmm
299: [02:49:36] <spronk> what the problem?
300: [02:49:58] <antmas> spronk: how to get the ID of SiteConfig
301: [02:50:23] <spronk> it doesn't have ID?
302: [02:50:44] <antmas> why exactly?
303: [02:50:46] <Ryan-Toast> SiteConfig::current_site_config() has no id
304: [02:51:23] * irogue23 cracks open a speights cider
305: [02:51:35] * antmas is jelly of irogue23
306: [02:52:08] <antmas> :O
307: [02:52:25] * antmas just realised he has a box of Kingfisher strong at home
308: [02:52:55] <irogue23> antmas: the question is, why is it not at work?!?
309: [02:53:55] <Ryan-Toast> spronk: Any thoughts, man?
310: [02:55:02] <spronk> LET ME SEE HERE
311: [02:55:21] <antmas> irogue23: I don't know ;__;
312: [02:55:42] <spronk> do you get a Siteconfig object back at all, Ryan-Toast?
313: [02:55:50] <Ryan-Toast> spronk: Yes, just no id
314: [02:56:19] <spronk> maybe they don't have IDs
315: [02:56:33] <Ryan-Toast> spronk: It does in the db
316: [02:56:49] <spronk> mm..
317: [02:56:50] * antmas struggles with the notion of an object with no ID
318: [02:56:50] <spronk> well
319: [02:56:53] <spronk> dataobjects should all have IDs
320: [02:56:54] <spronk> so
321: [02:57:02] <spronk> what version of SS?
322: [02:57:07] <Ryan-Toast> spronk: 3.1
323: [02:57:28] <spronk> hmm
324: [02:57:35] <spronk> can you paste the var dump'd object?
325: [02:57:35] <Ryan-Toast> spronk: 3.1.1
326: [02:57:39] <Ryan-Toast> sure
327: [02:57:42] <Ryan-Toast> one sec
328: [02:58:00] <antmas> I'm thinking it must be subsites
329: [02:58:17] <irogue23> well
330: [02:58:19] <irogue23> as it happens
331: [02:58:24] <irogue23> spronk is the subsites expert!
332: [02:58:28] <antmas> :D
333: [02:58:44] <spronk> oh
334: [02:58:46] <spronk> it has subsites?
335: [02:58:55] <Ryan-Toast> spronk: http://pastebin.com/BuZ2A6em
336: [02:58:55] <spronk> WELL THEN, ALL BETS ARE OFF!
337: [02:59:05] <spronk> Ryan-Toast: is this a subsites site?
338: [02:59:05] <Ryan-Toast> spronk: No subsites :P
339: [02:59:08] <spronk> phew
340: [02:59:14] <irogue23> DataObject::get_one('SiteConfig')
341: [02:59:17] <spronk> dude
342: [02:59:18] <spronk> that object has ID
343: [02:59:19] <Colin[pi]> subsites is so awesome
344: [02:59:20] <spronk> near the bottom
345: [02:59:23] <irogue23> that's all that SiteConfig::current_site_config() does
346: [02:59:45] <spronk> it has an ID and it's set to 1
347: [02:59:52] <spronk> so... ->ID should be returning you 1
348: [02:59:56] <Ryan-Toast> Wait, that's one I saved
349: [03:00:02] <Ryan-Toast> in the db./
350: [03:00:07] <Ryan-Toast> One sec
351: [03:00:18] <irogue23> err
352: [03:00:18] <irogue23> nope
353: [03:00:20] <spronk> o_O
354: [03:00:20] <irogue23> ID isn't set to 1
355: [03:00:27] <irogue23> it's a int with length of 1
356: [03:00:31] <irogue23> but empty o_O
357: [03:00:37] <Ryan-Toast> there's an int(1), but that's just the field?
358: [03:00:44] <spronk> O_O
359: [03:00:50] <simon_w> That's a literal 1
360: [03:00:51] <antmas> what is going on!
361: [03:01:00] <spronk> yeah
362: [03:01:09] <spronk> int(1) means it's 1
363: [03:01:12] <spronk> int(0) means it's 0
364: [03:01:16] <irogue23> o_O
365: [03:01:18] <Ryan-Toast> Then why doesn't it return 1?
366: [03:01:32] <irogue23> that's... quite inconsistent then?
367: [03:01:35] <spronk> ........it should
368: [03:01:54] <simon_w> irogue23, var_dump isn't a DDL
369: [03:01:54] <spronk> wait
370: [03:01:56] <spronk> it's destroyed
371: [03:02:01] <irogue23> string(12) = string length 12, int(1) = integer of unknown length with a value of 1
372: [03:02:04] <irogue23> that seems very very odd
373: [03:02:05] <spronk> oh
374: [03:02:13] <spronk> php ints are all same length
375: [03:02:17] <antmas> http://i.imgur.com/agJIP.gif
376: [03:02:42] <Ryan-Toast> http://i.imgur.com/znp1E.gif
377: [03:02:45] <spronk> are you sure it's not returning 1?
378: [03:02:48] <irogue23> spronk: still a very odd way to express it
379: [03:03:04] <Ryan-Toast> Yes, I've tried exiting the value
380: [03:03:12] <Ryan-Toast> and all sorts.
381: [03:03:32] * irogue23 tries it
382: [03:03:33] <spronk> :|
383: [03:03:42] <antmas> well, Ryan-Toast haven't we just opened up a can o worms
384: [03:03:49] <spronk> wwwtttffffffffff
385: [03:03:56] <spronk> whereabouts is your call to current_site_config() ?
386: [03:04:23] <simon_w> Ryan-Toast, don't exit($config->ID);, echo $config->ID; exit();
387: [03:04:24] <Ryan-Toast> spronk: In a dataObject extension
388: [03:04:40] <spronk> or just use die
389: [03:04:53] <spronk> which is one letter shorter
390: [03:05:08] <spronk> it should still dump on exit($var) though
391: [03:05:09] <simon_w> die has the same problem
392: [03:05:14] <simon_w> No it shouldn't
393: [03:05:20] <spronk> why not?
394: [03:05:22] <simon_w> $var is an integer
395: [03:05:27] <simon_w> therefore, exit code
396: [03:05:48] <spronk> ahg, good point
397: [03:07:15] <simon_w> Is why I tend to var_dump($var); die(); Don't get bit by the two different signatures
398: [03:07:57] <spronk> mm.. that siteconfig you pasted, Ryan-Toast, definitely has an ID set
399: [03:08:32] <Ryan-Toast> spronk: yes, it does.
400: [03:08:45] <spronk> and
401: [03:08:47] <irogue23> okay, just tried it on one of my sites Ryan-Toast
402: [03:08:50] <spronk> ->ID should definitely give you an int
403: [03:09:01] <spronk> so...
404: [03:09:01] <irogue23> http://wildman.co.nz/?test12=asd
405: [03:09:05] <spronk> i'd look elsewhere in your code
406: [03:09:14] <Ryan-Toast> spronk: Could you please paste me your code?
407: [03:09:18] <spronk> = vs == etc
408: [03:09:35] * spronk just stuck var_dump(SiteConfig::current_site_config()->ID); in Page_Controller::init()
409: [03:09:46] <spronk> then i stuck the same in a data extension
410: [03:09:59] <spronk> both returned 1
411: [03:10:03] <irogue23> yep
412: [03:10:10] <irogue23> same for me
413: [03:10:23] <spronk> pastebin your data extension code?
414: [03:10:29] * Pyromanik has joined #silverstripe
415: [03:10:34] <Pyromanik> whoop whoop
416: [03:10:40] <Pyromanik> finally, visa sent off.
417: [03:10:46] <Pyromanik> err, visa app.
418: [03:10:48] <spronk> For everything else, there's MasterCard.
419: [03:11:44] <Ryan-Toast> spronk: http://pastebin.com/vZvGnJy1
420: [03:12:16] <spronk> and what's happening?
421: [03:12:22] <spronk> exiting but with no output?
422: [03:12:43] <Ryan-Toast> Yeah, just a blank page.
423: [03:12:54] <spronk> :S
424: [03:13:01] <Ryan-Toast> You know what?
425: [03:13:06] <Pyromanik> Ryan-Toast: getConfigID is a redundant functions
426: [03:13:09] <Ryan-Toast> This seems like a Monday problem.
427: [03:13:12] <Pyromanik> you should eliminate it
428: [03:13:20] <spronk> well
429: [03:13:25] <spronk> getCMSFields is being called from within the CMS
430: [03:13:27] <Ryan-Toast> Pyromanik: I just had it in there for testing
431: [03:13:29] <spronk> hmm
432: [03:13:34] <Pyromanik> Ryan-Toast: k
433: [03:13:45] <spronk> what php v?
434: [03:13:56] <Ryan-Toast> One sec
435: [03:14:18] <Ryan-Toast> 5.4.20
436: [03:14:25] <spronk> hmm
437: [03:15:10] <Ryan-Toast> spronk: I'll just leave it until next week. It's beer time.
438: [03:15:17] <Ryan-Toast> Thanks for the help guys :)
439: [03:15:22] <Ryan-Toast> Much appreciated.
440: [03:15:27] <Pyromanik> Ryan-Toast: lies, 4:30 is beer time!
441: [03:15:38] <Ryan-Toast> Pyromanik: 2:30 is beer time here.
442: [03:15:54] <spronk> it seems pretty weird
443: [03:16:00] <antmas> I JUST PULLED INTO A MEETING
444: [03:16:04] <antmas> ;__;
445: [03:16:06] <simon_w> TYPEHINT ALL THE THINGS!
446: [03:16:10] <antmas> it's Friday :(
447: [03:16:20] <Ryan-Toast> I may try a fresh install on Monday,. and see if that helps.
448: [03:17:28] <Pyromanik> antmas: haahahha, tell them to fuck themselves and get a beer.
449: [03:17:36] <Pyromanik> or better yet, get a beer, walk in, THEN tell them to fuck themselves.
450: [03:18:05] <antmas> I got out :D
451: [03:18:23] <antmas> specifically to help the social club guy go and get MORE beer
452: [03:19:46] <Colin[pi]> jesus microsoft are really desperate aren't they: http://www.youtube.com/watch?v=BHTUlF7NA2o
453: [03:20:05] <Pyromanik> ah, simon_w [User Warning] popCurrent called on ModelAsController controller, but it wasn't at the top of the stack
454: [03:20:14] <Pyromanik> can you help explain to me what is happens?
455: [03:20:55] <Pyromanik> Rule '$Category/$Item!' matched to action 'viewItem'
456: [03:21:12] <Pyromanik> request was page/category/item/randomrubbish
457: [03:21:29] <antmas> Colin[pi]: that was...
458: [03:21:32] <Pyromanik> how can I make it ignore random rubbish and pass over that rule?
459: [03:21:32] <antmas> kinda cool
460: [03:21:33] <antmas> :P
461: [03:21:43] <Colin[pi]> it is cool but reeks of desperation :P
462: [03:21:44] <Pyromanik> to stop giving me the warning?
463: [03:23:00] <Pyromanik> IEtan?
464: [03:23:02] <antmas> Colin[pi]: agreed - "Hey look, Japan and stuff!"
465: [03:23:02] <Pyromanik> wtf
466: [03:23:06] <Pyromanik> so confused right now
467: [03:23:27] <Pyromanik> oh I see
468: [03:23:48] <Pyromanik> is the more literal take of an "Internet Explorer"
469: [03:23:55] <Pyromanik> named tan, I guess.
470: [03:24:14] * Pyromanik feels good that he skipped through it rather than watching.
471: [03:25:03] <Ryan-Toast> GOT IT WORKING, YAY http://pastebin.com/ySZdGi1C
472: [03:25:21] <antmas> I wonder if her story surrounds her constant depressive battle with Firetan and Chrotan
473: [03:25:55] * antmas had a joke in there somewhere - and lost it
474: [03:26:38] <Pyromanik> but Ryan-Toast, if you make gridfield manage them with a relationeditor config then it should set that stuff for you :<
475: [03:27:18] <Pyromanik> chrome such bad browser.
476: [03:28:19] <antmas> "oh, you have Chrome?" "here, have a search bar malware"
477: [03:29:01] <Pyromanik> same with IE
478: [03:29:05] <Pyromanik> same with Fireforkx
479: [03:29:25] <Pyromanik> he only way to get around that is to use Arora!
480: [03:29:36] <Pyromanik> (then D: when it crashes)
481: [03:29:56] <Pyromanik> or y'know... adblockplus and noscript
482: [03:30:51] <antmas> I only ever got it with chrome
483: [03:31:02] <antmas> oh, and FF on pre ver 19
484: [03:31:03] <Ryan-Toast> Pyromanik: It does for everything bar siteConfig
485: [03:31:55] <Ryan-Toast> Pyromanik: More likely that I'm doing it wrong though :) I'll have to squint at the docs again.
486: [03:40:34] * chrisrio quit (Quit: Page closed)
487: [03:41:04] <antmas> http://i.imgur.com/dsehHVg.jpg
488: [03:41:08] <antmas> for ?ss23
489: [03:41:12] <antmas> ss23:
490: [03:42:21] * bennylope quit (Quit: Textual IRC Client: www.textualapp.com)
491: [03:45:27] * Ryan-Toast quit (Quit: Ryan-Toast)
492: [03:48:59] <irogue23> antmas: looks just like him
493: [03:56:30] * ben_ quit (Quit: Leaving)
494: [04:01:26] * DigNZ quit (Quit: DigNZ)
495: [04:02:53] <Pyromanik> 16:41 < antmas> http://i.imgur.com/dsehHVg.jpg
496: [04:02:53] <Pyromanik> 16:41 < antmas> for ?ss23
497: [04:02:53] <Pyromanik> 16:41 < antmas> ss23:
498: [04:03:02] <Pyromanik> looks just lik... WTF irogue23! ZING!
499: [04:03:22] <Pyromanik> SNAP
500: [04:03:23] <Pyromanik> etc
501: [04:03:44] * danfo has left #silverstripe
502: [04:04:03] <Pyromanik> fucking brilliant, one of the girls is having her work hens night, and they've dressed her in a potato sack and given her a whistle... in the shape of a cock, ROFL
503: [04:04:07] * Pyromanik quit (Quit: leaving)
504: [04:04:28] * nickmolhoek quit (Quit: nickmolhoek)
505: [04:07:07] * mobiusnz quit (Read error: Connection reset by peer)
506: [04:08:12] * simon_w quit (Quit: This computer has gone to sleep)
507: [04:24:23] * UncleCheese quit (Quit: UncleCheese)
508: [04:26:56] <spronk> hahaha
509: [04:27:04] <spronk> also
510: [04:27:07] <spronk> jesus fucking christ java
511: [04:29:33] <DaShiVaDan> well i got an hour left at this job
512: [04:29:57] <DaShiVaDan> they bought me pizza, beer, icecream, all sorts of stuff :)
513: [04:30:15] <DaShiVaDan> wish i was hungry
514: [04:31:04] <spronk> heh
515: [04:49:01] * tankr quit (Quit: Leaving.)
516: [04:49:25] * cloph_away has joined #silverstripe
517: [04:49:26] * cloph quit (Ping timeout: 240 seconds)
518: [04:51:29] * Motoservo has joined #silverstripe
519: [04:51:59] * variable_office quit (Quit: Leaving)
520: [05:03:04] * Pathum has joined #silverstripe
521: [05:06:28] * mobiusnz has joined #silverstripe
522: [05:10:38] * mobiusnz quit (Ping timeout: 240 seconds)
523: [05:11:37] * mobiusnz has joined #silverstripe
524: [05:11:37] * mobiusnz quit (Client Quit)
525: [05:11:51] * mobiusnz has joined #silverstripe
526: [05:23:13] * DaShiVaDan quit (Ping timeout: 250 seconds)
527: [05:40:04] * simon_w has joined #silverstripe
528: [05:42:14] <Zauberfisch23> good morning
529: [05:49:21] <Colin[pi]> good evening!
530: [05:49:46] * mobiusnz quit (Quit: Leaving.)
531: [05:52:15] <zippy__> good evening indeed
532: [06:01:26] <EasyCo> Colin[pi] zippy__ http://www.total-knowledge.com/~ilya/mips/ugt.html
533: [06:05:43] <Zauberfisch23> haha
534: [06:05:44] <Zauberfisch23> great
535: [06:08:45] * EasyCo quit (Ping timeout: 272 seconds)
536: [06:18:59] * spronk2 quit (Quit: spronk2)
537: [06:29:33] * pippy_ has joined #silverstripe
538: [06:30:19] * pippy quit (Ping timeout: 265 seconds)
539: [06:37:26] * Motoservo quit (Read error: Connection reset by peer)
540: [06:37:48] * Motoservo has joined #silverstripe
541: [06:38:24] * guci0 has joined #silverstripe
542: [06:38:28] <guci0> Morning!
543: [06:48:12] <Zauberfisch23> good morning
544: [06:49:11] <Colin[pi]> good evening!
545: [06:49:24] <Zauberfisch23> Colin[pi]: its morning unless you are leaving
546: [06:49:45] <Colin[pi]> 5:49PM here
547: [06:49:58] <Zauberfisch23> 06:01 < EasyCo> Colin[pi] [....] http://www.total-knowledge.com/~ilya/mips/ugt.html
548: [06:50:30] * mobiusnz has joined #silverstripe
549: [06:55:37] * mobiusnz quit (Ping timeout: 272 seconds)
550: [07:00:16] <irogue23> ahhh
551: [07:00:18] <irogue23> that was good bbq
552: [07:01:39] <Zauberfisch23> since when does a has_one return an stump object if the relation is not set?
553: [07:03:42] <Zauberfisch23> silverstripe, are you fucking kidding me
554: [07:04:04] <Zauberfisch23> ->filter('ImageID:Negation', 0) => NegationFilter->__construct is deprecated. Use ExactMatchFilter:not instead.
555: [07:05:09] <Zauberfisch23> ->filter('ImageID:not', 0) => Uncaught InvalidArgumentException: ExactMatchFilter does not accept Not as modifiers
556: [07:05:15] <Zauberfisch23> ah, fail
557: [07:05:18] <Zauberfisch23> used Not uppercase
558: [07:05:19] <Zauberfisch23> :/
559: [07:14:47] * willr has joined #silverstripe
560: [07:19:27] * willr quit (Ping timeout: 252 seconds)
561: [07:25:21] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
562: [07:28:22] * willr has joined #silverstripe
563: [07:30:30] * robert__ has joined #silverstripe
564: [07:30:30] * robert__ quit (Changing host)
565: [07:30:30] * robert__ has joined #silverstripe
566: [07:33:06] * robert_ quit (Ping timeout: 252 seconds)
567: [07:35:59] * zfmf has joined #silverstripe
568: [07:41:10] <Zauberfisch23> how comes that:
569: [07:41:46] <Zauberfisch23> SSViewer::fromString('$Title')->process(ArrayData::create(array('Title' => '"Test"')));
570: [07:41:49] <Zauberfisch23> returns "Test"
571: [07:41:50] <Zauberfisch23> but
572: [07:42:09] <Zauberfisch23> SSViewer::fromString('$Title')->process($dataobject)
573: [07:42:10] <Zauberfisch23> returns
574: [07:42:23] <Zauberfisch23> &quot;Test&quot;
575: [07:42:46] * Motoservo has joined #silverstripe
576: [07:46:36] <Zauberfisch23> SSViewer::fromString($this->resultsFormat)->process(ArrayData::create($result->toMap()))
577: [07:46:40] <Zauberfisch23> works
578: [07:51:02] * mobiusnz has joined #silverstripe
579: [07:54:19] * lerni has joined #silverstripe
580: [07:55:48] * mobiusnz quit (Ping timeout: 260 seconds)
581: [08:06:56] * violetina has joined #silverstripe
582: [08:09:30] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
583: [08:34:36] * chillu has joined #silverstripe
584: [08:35:19] * ARNHOE has joined #silverstripe
585: [08:45:14] <Zauberfisch23> good morning chillu
586: [08:45:54] <chillu> Hullo!
587: [08:47:03] * Sjohn has joined #silverstripe
588: [08:47:59] <Zauberfisch23> chillu: this is so weird, i have just updated a ss install here to latest
589: [08:48:04] <Zauberfisch23> and this now works in IE11
590: [08:48:10] <Zauberfisch23> have you fixed the issue already?
591: [08:49:20] <Zauberfisch23> I spoke to soon
592: [08:49:25] <Zauberfisch23> its broken
593: [08:49:30] * svandragt has joined #silverstripe
594: [08:49:53] * svandragt quit (Client Quit)
595: [08:50:11] * svandragt has joined #silverstripe
596: [08:51:53] * mobiusnz has joined #silverstripe
597: [08:54:02] <Sjohn> hi
598: [08:55:37] <Sjohn> A client of ours is getting a http 400 error after filling in the userdefinedform. (We are not btw) Is there something we can do about that?
599: [08:55:50] * mobiusnz quit (Ping timeout: 240 seconds)
600: [08:59:20] <chillu> Zauberfisch23 lol what a heisenbug
601: [09:00:47] <irogue23> Sjohn: that would seem very unusual that they'd receive the error and not you. do they have any corporate AV or proxies that might be messing with the packets?
602: [09:01:21] * micmania1 has joined #silverstripe
603: [09:06:15] * violet- has joined #silverstripe
604: [09:06:50] * violetina quit (Ping timeout: 264 seconds)
605: [09:08:20] <Zauberfisch23> chillu: what do you say to my deal? :P
606: [09:08:38] <Sjohn> iroque23: We're not sure, right now we're trying to locate if there is anything we can do (server sided) about it. But it is quite strange since we dont get any errors.
607: [09:09:20] <Sjohn> Whats an corporate AV is btw?
608: [09:09:23] <chillu> Zauberfisch23: deal?
609: [09:10:04] <Zauberfisch23> tztz, http://logs.simon.geek.nz/index.php?date=2013-11-08#log_1110945
610: [09:16:06] <Zauberfisch23> chillu: this is confusing me, bisect tells me that 5101db94727c1771dbd770160657915d7375d82b is the first bad one
611: [09:16:09] <Zauberfisch23> on cms that is
612: [09:16:13] <Zauberfisch23> https://github.com/silverstripe/silverstripe-cms/commit/5101db94727c1771dbd770160657915d7375d82b3
613: [09:16:16] <Zauberfisch23> https://github.com/silverstripe/silverstripe-cms/commit/5101db94727c1771dbd770160657915d7375d82b
614: [09:16:38] <Zauberfisch23> but as you can see, thats just the config.rb, isn't that just for compass?
615: [09:16:56] <Zauberfisch23> I mean this commit changes the config file, but not the actuall css itself
616: [09:17:43] <chillu> Uhm yeah, that looks unlikely to be the case
617: [09:17:47] <chillu> cause
618: [09:18:02] <chillu> What's the " " issue? ;)
619: [09:19:10] <Zauberfisch23> maybe my bisect is not accurate because of browser cache, even though I think I cleared it every time
620: [09:19:21] <Zauberfisch23> but I can imagine that the UTF8 might be the problem
621: [09:20:08] <Zauberfisch23> the " " issue, right, http://logs.simon.geek.nz/index.php?date=2013-11-08#log_1110927
622: [09:20:55] <Zauberfisch23> should we maybe make the JS trim whitespaces in the returned data in the handlePjaxResponse JS?
623: [09:24:10] <Zauberfisch23> that would probably work, but I am not sure if thats the right action to take as it is just a work around rather than a fix
624: [09:28:09] <Zauberfisch23> also, you can greenbutton PR #2650
625: [09:28:48] <Zauberfisch23> or actually, can you, is html_entity_decode "allowed" there?
626: [10:05:17] <chillu> Zauberfisch23: Sorry I keep getting distracted (just organizing a move hehe). On the space issue, so that's on an ajax response with Content-Type: text/json, right? Which then breaks the JSON handling in jQuery presumably
627: [10:06:51] <chillu> Its usually caused by whitespace outside of the PHP start tag, which will trip you over in terms of CSS rendering as well (can trigger quirks mode in browsers). Last time I've checked fixing that would require us monkeypatching jQuery, just checking again
628: [10:12:04] <Zauberfisch23> chillu: no, error is not in jqeury
629: [10:12:05] <Zauberfisch23> Content-Typetext/html; charset=utf-8
630: [10:12:42] <Zauberfisch23> ok, actually, there are cases where it breaks by json parse
631: [10:13:18] <chillu> in text/html ajax leading whitespace shouldn't be a problem. What does the JS die on?
632: [10:14:06] <Zauberfisch23> the thing I am trying it on now actually dies with a JSON parse error
633: [10:14:13] <Zauberfisch23> so doing it in JS is out the window anyway
634: [10:14:19] <Zauberfisch23> have to fix it server side
635: [10:14:25] <chillu> On #2650, I'm hoping to avoid doing a release branch for 3.1.2-rc1, because its always a pain. Which means we have to keep pull request merging to a minimum until the final is out
636: [10:14:45] <Zauberfisch23> when will that be?
637: [10:16:16] <Zauberfisch23> chillu: back to the " ", so its the same code cloned from git as on other servers where it works
638: [10:16:59] <chillu> Monday NZ time
639: [10:17:07] <Zauberfisch23> I read on stackoverflow someone saying this could be an encoding problem, that the server doesn't calculate the content length correctly
640: [10:17:15] <Zauberfisch23> ok, good, then I'll gladly wait
641: [10:17:39] <chillu> Can you gist a HTTP dump of the response?
642: [10:22:17] <Zauberfisch23> http://paste2.org/E93Bvhdg
643: [10:22:30] <Zauberfisch23> copy from firebug net panel
644: [10:27:27] * willr quit (Quit: willr)
645: [10:28:29] <Zauberfisch23> I can rule out gzip, just turned it of, problem still present
646: [10:33:37] * Motoservo has joined #silverstripe
647: [10:38:32] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
648: [10:40:03] * Colin[pi] quit (Ping timeout: 260 seconds)
649: [10:45:49] * Pathum quit (Quit: Leaving)
650: [10:52:32] * mobiusnz has joined #silverstripe
651: [10:56:59] * mobiusnz quit (Ping timeout: 252 seconds)
652: [11:53:07] * mobiusnz has joined #silverstripe
653: [11:57:26] * mobiusnz quit (Ping timeout: 240 seconds)
654: [12:02:36] * travis-ci has joined #silverstripe
655: [12:02:36] <travis-ci> [travis-ci] ajshort/sapphire#42 (injector-factory - 2ed7c9c : Andrew Short): The build passed.
656: [12:02:36] <travis-ci> [travis-ci] Change view : https://github.com/ajshort/sapphire/compare/dbb2efcbb313^...2ed7c9c54c15
657: [12:02:37] <travis-ci> [travis-ci] Build details : http://travis-ci.org/ajshort/sapphire/builds/13680553
658: [12:02:37] * travis-ci has left #silverstripe
659: [12:35:50] * svandragt quit (Ping timeout: 240 seconds)
660: [12:48:24] * jcwacky has joined #silverstripe
661: [12:49:19] <jcwacky> I can't seem to access non-default fields in updateCMSFields() from an Extension. Any ideas?
662: [12:49:51] * chillu quit (Quit: chillu)
663: [12:50:12] * chillu has joined #silverstripe
664: [12:50:36] * chillu quit (Client Quit)
665: [12:53:02] * chillu has joined #silverstripe
666: [12:53:14] <Zauberfisch23> jcwacky: that is because the extension is called right after SiteTree->getCMSFields()
667: [12:53:28] <Zauberfisch23> that means all fields that are added after that are not accessable in the extension
668: [12:53:32] * mobiusnz has joined #silverstripe
669: [12:57:41] * mobiusnz quit (Ping timeout: 248 seconds)
670: [12:59:16] <jcwacky> Ah yes, that makes sense. Do I need to redeclare the whole field then? In order just to change it's RightTitle?
671: [13:00:25] <jcwacky> I'm extending a class in a module.
672: [13:01:35] * ocm has joined #silverstripe
673: [13:05:12] * zfmf quit (Ping timeout: 265 seconds)
674: [13:09:15] <ocm> howdy!
675: [13:13:11] <jcwacky> Hmm, actually that won't work will it.
676: [13:17:37] * svandragt has joined #silverstripe
677: [13:18:01] * UndefinedOffset has joined #silverstripe
678: [13:18:31] <jcwacky> Ah, found the docs on it! :)
679: [13:25:25] * marvanni has joined #silverstripe
680: [13:28:06] <ocm> allright.. some weird stuff happening here
681: [13:28:10] * r3v3rb has joined #silverstripe
682: [13:28:18] <ocm> just had a call from a client.. the homepage didnt work anymore
683: [13:28:38] <ocm> looking at the problem the homepage urlsgement had changed from 'home' to 'home-3'
684: [13:28:52] <ocm> sitetree_versions gave me not much info..
685: [13:29:19] <ocm> it had the adjustment in there, both publicerID and Publiced on 0 (so it was a system change, but had not been publiced)
686: [13:29:29] <ocm> somehow though it was publiced
687: [13:30:04] <ocm> looking through the access_log I noticed that around the same time /assets/doSync was requested
688: [13:30:25] <ocm> just tested it, and indeed the doSync function changed my page URLSegment from home to home-[i]
689: [13:30:34] <ocm> anyone knows how?!
690: [13:32:20] <r3v3rb> hi all, why am i getting this in 2.4.12 : Cannot use object of type DataObjectSet as array - I have $data = new DataObjectSet(); then I'm looping through some XML and trying to $data->push(new ArrayData(array('Value1' => $result[$i]->Title, 'Value2' => $result[$i]->Link ))); but I get the error
691: [13:33:48] <irogue23> ocm: that sounds awfully like a bug o_O
692: [13:34:58] <ocm> it does sound like so irogue23
693: [13:35:07] <irogue23> ocm: it's 2:30am here so i'm a bit drunk and most others are probably sleeping - maybe raise an issue on github?
694: [13:35:08] <ocm> doing some testing as we speak, to find what causes the bug
695: [13:35:30] <ocm> I have some feeling it has something to do with the subsites module I am using, but unsure at this moment
696: [13:35:35] <irogue23> ahhhhhh
697: [13:35:38] <irogue23> fuckin subsites :P
698: [13:35:47] <ocm> hahaha, not sure about the subites.. it is a feeling
699: [13:35:48] <ocm> :P
700: [13:35:52] <irogue23> yeah, if you can, try to replicate without subsites, as subsites is often the problem :P
701: [13:35:59] <r3v3rb> shoot, I got it - the result is a DOS already :P
702: [13:36:48] <ocm> a DOS?
703: [13:37:08] <ocm> oh, you were replying on your own issues
704: [13:37:08] <ocm> :D
705: [13:39:13] <irogue23> right, bedtime for me!
706: [13:39:38] <ocm> NN
707: [13:44:22] <chillu> Zauberfisch23: Had a look at http://paste2.org/E93Bvhdg, no freaking clue
708: [13:44:46] <Zauberfisch23> this bug is driving me crazy
709: [13:45:13] <chillu> Can you check what happens in GridFieldDetailForm_ItemRequest->edit()?
710: [13:45:23] <Zauberfisch23> I guess I'll just dump this server and setup a new one
711: [13:45:30] <Zauberfisch23> ok, moment
712: [13:45:32] <chillu> Looks like doSave() would trigger return $this->edit(Controller::curr()->getRequest());
713: [13:48:02] <ocm> hmm.. seems the problem still exists without the subsite module
714: [13:51:08] <Zauberfisch23> hmmm, chillu, seems to be happening before ItemRequest->edit() as when I var_dump in edit, I get " myVarDum"
715: [13:52:26] <chillu> Just to confirm, the form submission is a save operation right?
716: [13:54:11] * mobiusnz has joined #silverstripe
717: [13:54:14] <chillu> Maybe its file permission issues with the templates? Although all those templates should already be in use when you first render that view. Does the whitespace already exist if you die() at the top of doSave()?
718: [13:59:02] * mobiusnz quit (Ping timeout: 264 seconds)
719: [14:02:48] <Zauberfisch23> yes, whitespace is there if I die in doSave
720: [14:03:00] <Zauberfisch23> which leaves the conclusion that its not a gridfield bug
721: [14:03:15] <Zauberfisch23> and mostlikely a whitspace in phpfile thingy afterall
722: [14:09:26] * zippy__ quit (Ping timeout: 240 seconds)
723: [14:14:09] <r3v3rb> woot: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set
724: [14:14:22] <r3v3rb> from RestfulService on 2.4.12 on live server!
725: [14:14:35] <r3v3rb> hi Zauberfisch23 btw :D
726: [14:14:46] <Zauberfisch23> chillu: but when I run 'grep -ER '^\s+<\?' ./*' I get only install files and .md
727: [14:15:10] * jrthomer has joined #silverstripe
728: [14:15:35] <chillu> maybe some weirdness in included *.php files from the silverstripe cache folder?
729: [14:15:58] <Zauberfisch23> also nothing for grep -ER '\?>\s' ./*
730: [14:16:08] <Zauberfisch23> actually, I did not grep the cms
731: [14:16:09] <Zauberfisch23> hold on
732: [14:17:58] <Zauberfisch23> nope
733: [14:18:03] <Zauberfisch23> lets see the cache folder
734: [14:18:08] <Zauberfisch23> hey r3v3rb
735: [14:18:23] <r3v3rb> any ideas on the RestfulService Curl stuff above?
736: [14:18:54] <r3v3rb> I don't really want to set safe_mode = off just in case
737: [14:19:44] <Zauberfisch23> nope, found nothing in the cache folder either
738: [14:20:48] <r3v3rb> okay fixed for now the restfulservice for this site will never need to follow any redirects so I just turned it off in the core! shoot me...
739: [14:21:47] * zippy__ has joined #silverstripe
740: [14:28:23] <Zauberfisch23> chillu: thanks for the help
741: [14:28:28] <Zauberfisch23> lets drop it for now
742: [14:28:41] <chillu> Nuking the server?
743: [14:28:45] <Zauberfisch23> yep
744: [14:30:44] * Sjohn quit ()
745: [14:31:49] <Zauberfisch23> I'll probably do that on the weekend or monday
746: [14:47:32] <r3v3rb> on ArrayData is there a combine to merge two sets?
747: [14:48:02] <Zauberfisch23> $set3 = $set1->merge($set2); ?
748: [14:48:12] <r3v3rb> lets try that :D
749: [14:49:46] <Zauberfisch23> but thats not on ArrayData, thats on ArrayList
750: [14:49:56] <Zauberfisch23> there is no merging of ArrayData
751: [14:53:25] * jcwacky quit (Quit: jcwacky)
752: [14:54:35] * mobiusnz has joined #silverstripe
753: [14:58:56] * mobiusnz quit (Ping timeout: 245 seconds)
754: [15:19:46] <r3v3rb> Zauberfisch23: this is the result of my toArray() which I then wanted to merge
755: [15:20:06] <r3v3rb> http://sspaste.com/paste/show/527cff36d32ef
756: [15:20:22] <r3v3rb> there is a lot more in that I only c/p a bit
757: [15:21:02] <r3v3rb> I'm confused is it an array that I can merge or an array of arrayData that will cause me issues
758: [15:26:58] * r3v3rb has left #silverstripe
759: [15:27:01] * marvanni quit ()
760: [15:27:54] * r3v3rb has joined #silverstripe
761: [15:55:20] * mobiusnz has joined #silverstripe
762: [15:57:21] * lerni quit (Quit: lerni)
763: [15:57:43] * chillu quit (Quit: chillu)
764: [15:59:26] * mobiusnz quit (Ping timeout: 240 seconds)
765: [16:00:02] * Colin[pi] has joined #silverstripe
766: [16:11:24] * r3v3rb quit (Quit: r3v3rb)
767: [16:13:03] * DesignerX quit (Ping timeout: 252 seconds)
768: [16:13:27] * marvanni has joined #silverstripe
769: [16:18:24] * chillu has joined #silverstripe
770: [16:21:25] * Colin[pi] quit (Ping timeout: 265 seconds)
771: [16:28:38] * robert__ is now known as robert_
772: [16:36:11] <svandragt> There's no way a instance can belong to two pagetypes? Like a NewsHolder that is also a Section?
773: [16:36:35] <svandragt> I guess I'd have to create a NewsHolderSection?
774: [16:37:30] * ARNHOE quit ()
775: [16:37:44] <svandragt> Or createa a dataextension and apply that to both section and newsholder ah
776: [16:48:43] * svandragt quit (Read error: Connection reset by peer)
777: [16:52:53] * ocm quit (Quit: Try HydraIRC -> http://www.hydrairc.com <-)
778: [17:03:22] * chillu quit (Quit: chillu)
779: [17:21:55] * chillu has joined #silverstripe
780: [17:56:14] * mobiusnz has joined #silverstripe
781: [18:00:36] * mobiusnz quit (Ping timeout: 244 seconds)
782: [18:01:48] * violet- quit (Remote host closed the connection)
783: [18:03:14] * violetina has joined #silverstripe
784: [18:17:39] * chillu quit (Quit: chillu)
785: [18:27:57] * gelignite has joined #silverstripe
786: [18:36:50] * chillu has joined #silverstripe
787: [18:37:52] * r3v3rb has joined #silverstripe
788: [18:56:44] * mobiusnz has joined #silverstripe
789: [18:56:55] * Alexwijn has joined #silverstripe
790: [19:00:01] <r3v3rb> anyidea if I can pass a function into ->sort - I'm trying : $final->sort(strtotime('pubDate'), 'ASC'); but it seems to fail
791: [19:00:31] <r3v3rb> if I remove strtotime it will sort on pubDate but that is a string and inccorect for sorting by date ;)
792: [19:01:02] * mobiusnz quit (Ping timeout: 240 seconds)
793: [19:20:27] <AlphaCactus> um.. you are trying to put an actual time in there? don't you need to just put the name of th efield you want to sort by?
794: [19:20:31] * mobiusnz has joined #silverstripe
795: [19:20:52] <AlphaCactus> $final->sort('pubDate', 'ASC');
796: [19:21:28] <r3v3rb> AlphaCactus: that is a string from an RSS feed so all Wed get sorted together regardless of their week.
797: [19:21:46] <r3v3rb> It all stems from merging two RSS feeds to aggregate on a homepage
798: [19:22:08] <r3v3rb> fortunately both use pubDate as the field name for their dates
799: [19:22:20] <r3v3rb> and both are stored in long format
800: [19:25:49] <AlphaCactus> what is long format exactly?
801: [19:28:16] <r3v3rb> Fri, 08 Nov 2013 02:21:19 GMT
802: [19:28:20] <r3v3rb> for example
803: [19:28:22] * chillu quit (Quit: chillu)
804: [19:28:30] <AlphaCactus> gurk. could you just sort the results manually?
805: [19:28:45] <AlphaCactus> that way you could have a callback cause ur doing it urself
806: [19:29:10] <r3v3rb> yes, I'm realising it maybe the sanest approach
807: [19:36:59] * Liquide has joined #silverstripe
808: [19:44:41] * chillu has joined #silverstripe
809: [19:48:08] * mobiusnz quit (Quit: Leaving.)
810: [20:00:06] <r3v3rb> argh, its crumpling my already tired brian
811: [20:04:43] <zippy__> r3v3rb: Save the date as a timestamp? Sort on that when pulling them out?
812: [20:06:17] <r3v3rb> zippy__: hmm, the data is being pulled from two RSS feeds and merged into one DataObjectSet - at this point I would like to sort the 'pubDate' column but as it's a string and not 'timestamp' or date it throws a wobbly
813: [20:06:55] <r3v3rb> I am going to have to parse the entire dataset twice, once to switch the pubDate to a timestamp, then sort, then return the 5 records I want for the page
814: [20:07:08] <r3v3rb> :\
815: [20:07:12] <r3v3rb> nevermind
816: [20:07:34] <AlphaCactus> does it not come in from the RSS feed already sorted?
817: [20:07:59] <r3v3rb> AlphaCactus: yes, but the two sets get concatenated by ->merge()
818: [20:08:25] <AlphaCactus> could you limit the sets to the first 5 from each before the merge so at least you are only working with 10 items max?
819: [20:09:14] <zippy__> r3v3rb: Are you pulling the two RSS feeds everytime page loads?
820: [20:09:23] <r3v3rb> AlphaCactus: how can I limit ->request()->getBody() ->getValues()
821: [20:09:42] <r3v3rb> zippy__: yup, it's not a big hit time wise
822: [20:09:58] <r3v3rb> I know I should cache the results ;)
823: [20:10:11] <r3v3rb> but I'm lazy
824: [20:10:24] <AlphaCactus> sooooooooper
825: [20:11:37] <zippy__> whats the paste bin site?
826: [20:11:38] <zippy__> !paste
827: [20:11:45] <AlphaCactus> i dunno, how about ->request()->getBody()->getValues()->limit(5);
828: [20:11:49] <AlphaCactus> sspaste
829: [20:12:05] <AlphaCactus> http://sspaste.com/ ?
830: [20:12:32] <zippy__> ta
831: [20:13:42] <r3v3rb> AlphaCactus: ->limit() does not exist on DO in 2.4.12 :(
832: [20:13:50] <AlphaCactus> bugger
833: [20:13:59] <r3v3rb> my thoughts exactly :D
834: [20:14:26] <zippy__> r3v3rb: http://sspaste.com/paste/show/527d4406be3f0 maybe something like that... the only is if two items had the exact same date - which I think would be unlikely...
835: [20:14:49] <AlphaCactus> while( i++ < 5 ) :P
836: [20:15:06] <zippy__> *only issue
837: [20:15:15] <AlphaCactus> zippy__: 2.4.x
838: [20:15:20] <r3v3rb> that's pretty much what I had written in the background :)
839: [20:15:52] <zippy__> Ahh ArrayList isn't in 2.4 is it
840: [20:15:56] <zippy__> ah well, get the gist
841: [20:16:00] <AlphaCactus> yeah
842: [20:16:00] <r3v3rb> i'm going to try implementing this too to cache the lookup: http://stackoverflow.com/questions/6907265/how-to-cache-xml-file-in-php
843: [20:16:48] <zippy__> r3v3rb: I would cache the result of the array once sorted.....
844: [20:16:52] <r3v3rb> yep
845: [20:17:07] <r3v3rb> then test against the files age as the example
846: [20:17:15] <zippy__> yeap (y) sounds good
847: [20:17:26] <r3v3rb> rudimentary but will work okayish
848: [20:19:27] <zippy__> I would probably json encode as well on save, instead of serialize (more readable...)
849: [20:27:42] * Alexwijn quit ()
850: [20:29:18] * mobiusnz has joined #silverstripe
851: [20:31:26] * EasyCo has joined #silverstripe
852: [20:31:31] * EasyCo quit (Client Quit)
853: [20:34:21] * mobiusnz quit (Quit: Leaving.)
854: [20:43:59] * UndefinedOffset quit (Quit: Leaving.)
855: [20:53:39] * UndefinedOffset has joined #silverstripe
856: [21:03:19] <r3v3rb> zippy__: aye, or use RSSFeed to output a formatted RSS feed from the DataobjectSet
857: [21:03:48] <r3v3rb> just playing with it now
858: [21:09:12] * Colin[pi] has joined #silverstripe
859: [21:21:28] * UndefinedOffset quit (Read error: Connection reset by peer)
860: [21:34:29] * mobiusnz has joined #silverstripe
861: [21:38:38] * mobiusnz quit (Ping timeout: 240 seconds)
862: [21:54:45] <r3v3rb> zippy__: lol, RestfulService supports caching out-the-box! didn't need to reinvent the wheel :D but did anyway...
863: [21:56:05] * r3v3rb quit (Quit: r3v3rb)
864: [23:04:17] * chillu quit (Quit: chillu)
865: [23:15:57] * chillu has joined #silverstripe
866: [23:24:35] * Liquide quit ()
867: [23:37:33] * chillu quit (Quit: chillu)
868: [23:59:25] * violetina quit (Remote host closed the connection)

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