#silverstripe IRC Log

IRC log for 3 February 2014

All timestamps are in UTC.

1: [00:14:20] * Nimle has joined #silverstripe
2: [00:16:52] <Nimle> Hi guys, what is the best way to get a single field value from database rather than all record? for example, ::get()->filter... returns a record which needs a loop to get a value. I want to get a single field value. I want something like MyDataObject::get("name")->value(). is it possible?
3: [00:20:58] <simon_w> Nimle, MyDataObject::get()->first()->value
4: [00:21:32] <Nimle> But I only want Surname field
5: [00:21:38] <Nimle> how to show the name of field I want
6: [00:26:00] * Kapdap quit (Ping timeout: 252 seconds)
7: [00:26:16] * pippy__ quit (Ping timeout: 265 seconds)
8: [00:26:20] * madmatt__ has joined #silverstripe
9: [00:27:19] * [lewellyn] has joined #silverstripe
10: [00:28:11] * variable_office quit (Ping timeout: 252 seconds)
11: [00:28:54] * Nimle quit (Ping timeout: 245 seconds)
12: [00:29:23] * Zauberfisch quit (Ping timeout: 272 seconds)
13: [00:29:26] * FrozenFire quit (Ping timeout: 272 seconds)
14: [00:30:26] * robert_ quit (*.net *.split)
15: [00:30:29] * jrthomer quit (*.net *.split)
16: [00:30:30] * ss23 quit (*.net *.split)
17: [00:30:30] * irogue quit (*.net *.split)
18: [00:30:48] * TRB143 quit (*.net *.split)
19: [00:31:06] * ec8or_ has joined #silverstripe
20: [00:31:16] * spronk quit (Ping timeout: 245 seconds)
21: [00:31:22] * madmatt quit (Ping timeout: 245 seconds)
22: [00:31:23] * ajmitch_ has joined #silverstripe
23: [00:31:23] * werner_ has joined #silverstripe
24: [00:31:25] * Kapdap_ has joined #silverstripe
25: [00:31:32] * pippy has joined #silverstripe
26: [00:32:02] * ajmitch_ quit (Changing host)
27: [00:32:02] * ajmitch_ has joined #silverstripe
28: [00:32:11] * Super-ru quit (Ping timeout: 245 seconds)
29: [00:32:43] * ec8or_ quit (Remote host closed the connection)
30: [00:33:45] * Azure_ has joined #silverstripe
31: [00:34:16] * cloph_away quit (*.net *.split)
32: [00:34:45] * lab-notes quit (*.net *.split)
33: [00:34:51] * lewellyn quit (*.net *.split)
34: [00:35:16] * Ryan-Toast quit (*.net *.split)
35: [00:36:02] * ec8or__ quit (*.net *.split)
36: [00:37:22] * simon_w quit (*.net *.split)
37: [00:37:41] * wmk quit (*.net *.split)
38: [00:37:45] * Azure quit (*.net *.split)
39: [00:38:22] * geekdenz1 quit (*.net *.split)
40: [00:39:25] * simon_w has joined #silverstripe
41: [00:39:25] * Super-ru has joined #silverstripe
42: [00:39:47] * simon_w|air quit (*.net *.split)
43: [00:39:50] * catcher quit (*.net *.split)
44: [00:40:00] * ajmitch quit (*.net *.split)
45: [00:40:34] * violetina quit (Read error: Connection reset by peer)
46: [00:41:07] * simon_w quit (*.net *.split)
47: [00:41:07] * Super-ru quit (*.net *.split)
48: [00:43:14] * wmk has joined #silverstripe
49: [00:43:45] * werner_ quit (*.net *.split)
50: [00:43:52] * unsignedint quit (*.net *.split)
51: [00:43:55] * discorpia quit (*.net *.split)
52: [00:44:22] * jrthomer has joined #silverstripe
53: [00:44:22] * irogue has joined #silverstripe
54: [00:44:29] * pippy__ has joined #silverstripe
55: [00:44:33] * FrozenFire has joined #silverstripe
56: [00:44:39] * werner_ has joined #silverstripe
57: [00:45:13] * Kittens_ quit (Write error: Broken pipe)
58: [00:46:40] * ss-log quit (Excess Flood)
59: [01:10:31] * ss-log quit (Ping timeout: 265 seconds)
60: [01:10:47] * ss-log has joined #silverstripe
61: [01:36:11] * ss-log has joined #silverstripe
62: [01:41:15] * ss-log quit (Ping timeout: 272 seconds)
63: [18:49:28] * ss-log has joined #silverstripe
64: [18:49:45] <simon_w|air> That's hopeful, though no ident
65: [19:06:02] * Azure_ has joined #silverstripe
66: [19:06:24] * antmas has joined #silverstripe
67: [19:06:43] * derek-b quit (Quit: No Ping reply in 180 seconds.)
68: [19:07:06] * derek-b has joined #silverstripe
69: [19:07:29] * derek-b quit (Remote host closed the connection)
70: [19:08:29] * lerni has joined #silverstripe
71: [19:08:59] * ObiWanSh_ quit (Quit: Leaving...)
72: [19:11:24] * ObiWanSh_ has joined #silverstripe
73: [19:11:52] * Arccosine has joined #silverstripe
74: [19:13:33] * SphereSilverNL has joined #silverstripe
75: [19:21:11] <SphereSilverNL> Evening
76: [19:23:02] <antmas> Morning!
77: [19:23:16] <SphereSilverNL> You're probably upsidedown from me?
78: [19:23:41] <antmas> likely - it's UTC+12 in NZ
79: [19:24:14] <SphereSilverNL> I'll go sit upsidedown than, that'll probably communicate a bit easier
80: [19:25:34] <SphereSilverNL> I'm gonna sit straight up again. Sitting upsidedown hurts my neck
81: [19:25:44] * Kittens quit (Ping timeout: 265 seconds)
82: [19:28:09] * Kittens has joined #silverstripe
83: [19:32:00] * Azure_ quit (Quit: Textual IRC Client: www.textualapp.com)
84: [19:32:17] <guzzlefry> ugh
85: [19:32:24] * Azure_ has joined #silverstripe
86: [19:32:29] <guzzlefry> this damn pagination bug
87: [19:32:33] * Azure_ quit (Max SendQ exceeded)
88: [19:33:13] * Azure_ has joined #silverstripe
89: [19:33:52] * Azure_ quit (Max SendQ exceeded)
90: [19:34:34] * Azure_ has joined #silverstripe
91: [19:34:39] <simon__w> antmas, it's +13 :p
92: [19:34:41] * simon__w is now known as simon_w
93: [19:34:44] * Azure_ quit (Max SendQ exceeded)
94: [19:35:24] * Azure_ has joined #silverstripe
95: [19:35:30] * Azure_ quit (Max SendQ exceeded)
96: [19:35:31] <ObiWanSh_> I'm getting a blank page when trying to access http://localhost:8888/silverstripe/admin/pages --nothing in error logs. Has anyone had this before?
97: [19:36:07] <simon_w> ObiWanSh_, turn display_errors On
98: [19:37:43] * nickmolhoek has joined #silverstripe
99: [19:38:12] <antmas> simon_w: oh
100: [19:38:15] <antmas> whoops
101: [19:38:17] <antmas> :P
102: [19:38:48] <ObiWanSh_> thx. the error_log shows
103: [19:38:55] <ObiWanSh_> httpd: Could not reliably determine the server's fully qualified domain name, using Shannons-MacBook-Pro.local for ServerName
104: [19:38:55] <ObiWanSh_> [Mon Feb 03 11:09:42 2014] [notice] Digest: generating secret for digest authentication ...
105: [19:38:55] <ObiWanSh_> [Mon Feb 03 11:09:42 2014] [notice] Digest: done
106: [19:38:57] <ObiWanSh_> [Mon Feb 03 11:09:42 2014] [notice] Apache/2.2.24 (Unix) DAV/2 mod_ssl/2.2.24 OpenSSL/0.9.8y configured -- resuming normal operations
107: [19:40:35] <ObiWanSh_> I don't think that is related to the blank admin page though
108: [19:40:49] <guzzlefry> Probably not.
109: [19:40:57] <simon_w> It's not
110: [19:41:13] * Azure_ has joined #silverstripe
111: [19:41:14] <simon_w> If you do a phpinfo(); does it say display_errors is On?
112: [19:41:31] <ObiWanSh_> it does, yes
113: [19:41:41] <simon_w> And now what happens if you go back to the CMS?
114: [19:42:23] <ObiWanSh_> I can access my page through http://localhost:8888/silverstripe/ --but http://localhost:8888/silverstripe/admin/pages is blank
115: [19:43:04] * Azure_ is now known as Azure
116: [19:44:51] <simon_w> And is your site in dev mode?
117: [19:44:56] <ObiWanSh_> It is, yes
118: [19:46:28] <simon_w> And is there any source output at all?
119: [19:47:01] <ObiWanSh_> not that I can tell, verifying dev mode is enabled
120: [19:49:21] <ObiWanSh_> dev mode is enabled. I'm getting a 500 internal server error when trying to access admin/pages
121: [19:49:27] * OxFF1 has joined #silverstripe
122: [19:55:41] <ObiWanSh_> fresh install time?
123: [19:55:56] <antmas> hmmmm
124: [19:56:03] <antmas> to take Friday off...
125: [19:58:45] * Comrade has joined #silverstripe
126: [19:59:06] * Comrade quit (Client Quit)
127: [20:01:56] <guzzlefry> Anyone here familiar with the inner workings of PaginatedList?
128: [20:01:59] * Arccosine quit (Ping timeout: 265 seconds)
129: [20:02:55] <simon_w> guzzlefry, if I open it, yes :p
130: [20:03:06] <guzzlefry> meh
131: [20:03:22] <guzzlefry> simon_w: I've been working on this pagination bug for weeks. :/
132: [20:03:38] <simon_w> Ooh, I have a macro for that
133: [20:03:40] <simon_w> FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT
134: [20:03:46] <guzzlefry> :P
135: [20:03:50] <guzzlefry> I'm not smart enough!
136: [20:04:06] <simon_w> Well, what's the bug?
137: [20:07:02] <guzzlefry> So I have 32 items that are pagniated, limit of 10. It's dropping the 13th (on page 2) and 23th (on page 3) items. Then, it's taking the last two items on page 3, and repeating them on the final page (4).
138: [20:07:55] <simon_w> DataList or ArrayList?
139: [20:08:45] <guzzlefry> datalist
140: [20:09:06] <simon_w> If you do a ?showqueries=1, what's the query look like?
141: [20:15:04] <guzzlefry> simon_w: https://gist.github.com/yearofthegus/1edba74f1e644ceb46ad
142: [20:15:07] <guzzlefry> That's for page 3
143: [20:15:55] <simon_w> CatalogNumber is unique?
144: [20:17:00] <guzzlefry> yes
145: [20:17:04] <guzzlefry> Although...
146: [20:17:15] <guzzlefry> It's a numeric string, I wonder if that's causing it.
147: [20:17:32] <guzzlefry> Format is basically 00xx, so 0010, 0023, etc.
148: [20:17:46] <simon_w> Nah, should be fine
149: [20:18:02] <simon_w> So, you're only seeing 9 things on that page?
150: [20:18:03] <antmas> wait, a numeric string is the identifier?
151: [20:18:10] <antmas> or did I read that wrong...
152: [20:18:37] <guzzlefry> antmas: It's not used as an identifier in the database.
153: [20:18:58] <antmas> guzzlefry: right, nevermind
154: [20:20:43] * Ryan-Toast has joined #silverstripe
155: [20:20:55] <Ryan-Toast> Why the shit do I keep getting disconnected?
156: [20:21:06] <simon_w> DDOS
157: [20:21:13] <guzzlefry> 14 year olds
158: [20:21:31] <Ryan-Toast> Really? Sigh.
159: [20:22:20] <guzzlefry> simon_w: So that query is pulling in catalog item #s 0011 through 0001, but 0009 is dropped.
160: [20:22:51] <guzzlefry> Which...makes this even more confusing.
161: [20:22:52] * chillu_23 has joined #silverstripe
162: [20:23:01] <chillu_23> Zauberfisch: I've merged 3.1 into master BTW
163: [20:23:02] <guzzlefry> Sounds MySQL related now, doesn't it?
164: [20:23:38] <simon_w> guzzlefry, yeah
165: [20:23:52] <chillu_23> Zauberfisch: Also merged the compser version tips from addons to http://doc.silverstripe.org/framework/en/topics/module-development, and added a link on addons.ss.org to this page (not deployed yet)
166: [20:23:57] <simon_w> guzzlefry, unless 0009 isn't physical
167: [20:24:12] <guzzlefry> oh...
168: [20:24:16] <guzzlefry> checking :P
169: [20:25:08] <guzzlefry> yeah...wtf
170: [20:25:17] <guzzlefry> simon_w: If I drop the LIMIT/OFFSET it shows up.
171: [20:25:38] * ObiWanSh_ quit (Quit: Leaving...)
172: [20:25:41] <guzzlefry> Off to #mysql I guess? :P
173: [20:26:08] <simon_w> guzzlefry, and does it show up in the right place?
174: [20:26:19] <guzzlefry> yessir
175: [20:26:30] <simon_w> Yay, MySQL!
176: [20:26:53] <guzzlefry> reinforcing my Postgres fanboyism :P
177: [20:26:58] <guzzlefry> time to go bug them
178: [20:27:09] * ObiWanShanobi has joined #silverstripe
179: [20:27:17] * Kittens quit (Ping timeout: 248 seconds)
180: [20:28:33] * willr has joined #silverstripe
181: [20:30:22] * micmania1 has joined #silverstripe
182: [20:30:46] * kinglozzer has joined #silverstripe
183: [20:31:41] <guzzlefry> meh
184: [20:31:47] <guzzlefry> The one time #mysql is dead. :P
185: [20:39:28] * UncleCheese has joined #silverstripe
186: [20:41:04] * Kittens has joined #silverstripe
187: [20:45:25] <guzzlefry> simon_w: It's DISTINCT...
188: [20:45:31] <guzzlefry> Anyway to drop it?
189: [20:45:52] <simon_w> guzzlefry, it's breaking because of DISTINCT?
190: [20:45:58] <simon_w> That's just stupid
191: [20:45:59] <guzzlefry> yes
192: [20:46:01] <simon_w> Also, no
193: [20:46:09] <guzzlefry> Apparently MySQL can't handle it. :P
194: [20:46:23] * terryapodaca has joined #silverstripe
195: [20:47:08] <simon_w> Just switch to Postgres :p
196: [20:47:16] <simon_w> ss23, IS YOUR BUILDING ON FIRE?
197: [20:48:26] <SphereSilverNL> Let me check that
198: [20:48:46] <SphereSilverNL> Well, my building isn't on fire
199: [20:48:51] <SphereSilverNL> I think
200: [20:49:14] <SphereSilverNL> Ow crap, who ot a fire extuinguisher?
201: [20:49:31] <SphereSilverNL> ot==got
202: [20:49:34] <guzzlefry> So, my next question is. Why is DISTINCT appended to every single SELECT query?
203: [20:49:48] <SphereSilverNL> To make sure there are no doubles?
204: [20:49:55] <simon_w> guzzlefry, so you can do joins
205: [20:50:24] <guzzlefry> I've never needed to use DISTINCT for a join...
206: [20:53:14] <SphereSilverNL> You're using MySQL?
207: [20:53:30] <guzzlefry> yes
208: [20:54:07] <guzzlefry> simon_w: What about doing something like DataList::alterDataQuery, then calling setDistinct(false)?
209: [20:54:13] <guzzlefry> Although I'm not sure on the actual code lines. :P
210: [20:55:22] <SphereSilverNL> Could you please explain why you wouldn't want your primary object to be distinct?
211: [20:56:18] <guzzlefry> Joins on two primary keys should result in unique stuff.
212: [20:56:19] <antmas> guzzlefry: unless you want double ups to show ^^^ I don't know any other way than distinct
213: [20:56:20] <guzzlefry> iirc...
214: [20:56:41] <antmas> guzzlefry: not necessarily all the time
215: [20:57:07] <guzzlefry> hrm
216: [20:57:09] <guzzlefry> when wouldn't it?
217: [20:57:30] <antmas> TableA TableB - A has many Bs
218: [20:57:31] <antmas> etc
219: [20:58:23] <antmas> that's not really 'double-ups' - but you get my drift
220: [20:58:30] <guzzlefry> So you'd get A1 B1, A1 B2, etc?
221: [20:58:37] <antmas> guzzlefry: yeah
222: [20:58:53] <guzzlefry> But with distinct, wouldn't you lose that B2 information?
223: [20:59:19] <antmas> guzzlefry: depends on where the distinct is set
224: [20:59:47] <spronk> freenode working today? O_o
225: [20:59:49] * Kittens quit (Ping timeout: 248 seconds)
226: [20:59:57] <guzzlefry> OH
227: [21:00:16] <antmas> then again, A1 + B1, A1 + B2 are both 'unique' :P
228: [21:00:19] <guzzlefry> antmas: I see now, the DISTINCT is on ClassName, so if you're doing inheritance that makes sense. :P
229: [21:00:20] <antmas> if you think of it that way
230: [21:00:58] <guzzlefry> I think, at least...
231: [21:01:32] <antmas> guzzlefry: I'm talking DB specifically, but yeah I guess you're right
232: [21:01:42] <guzzlefry> man, so this sucks. :P
233: [21:02:33] * willr quit (Quit: willr)
234: [21:04:38] <antmas> ss23: is Rusell new? :P
235: [21:04:46] <antmas> Russell*
236: [21:07:13] * UndefinedOffset quit (Quit: Leaving.)
237: [21:08:07] * Kittens has joined #silverstripe
238: [21:12:37] <ss23> antmas: New to your project
239: [21:12:40] <ss23> simon_w: NO :O
240: [21:12:45] <ss23> simon_w: Should it be? o.o
241: [21:13:56] <guzzlefry> 0.o
242: [21:13:59] <guzzlefry> I'm missing something. :P
243: [21:14:31] <simon_w> ss23, yes
244: [21:16:12] <antmas> crap
245: [21:16:23] <antmas> polls are only available for 3.1 :<
246: [21:16:38] <ss23> aw lame
247: [21:17:15] <antmas> I wish the 3.1 project would start already, I'm itching to just update everything
248: [21:18:38] * willr has joined #silverstripe
249: [21:21:36] * Kittens quit (Ping timeout: 251 seconds)
250: [21:22:11] <antmas> ss23: any idea what It'd take to get polls onto 3.0?
251: [21:22:13] <ss23> so I think Freenode is stable now
252: [21:22:18] <ss23> antmas: No idea what polls are, sorry
253: [21:22:27] <antmas> ss23: np
254: [21:22:29] <ss23> +v-o ss23 ss23
255: [21:22:32] <ss23> dammit
256: [21:22:56] <guzzlefry> simon_w: How well does PostreSQL work with SilverStripe?
257: [21:23:06] <guzzlefry> out of the box support?
258: [21:23:08] <simon_w> guzzlefry, fine
259: [21:23:17] <simon_w> You just need to install the postgresql module
260: [21:23:23] <guzzlefry> ah
261: [21:23:46] <guzzlefry> Also, if I remove the "CatalogItem"."URLSegment" column from the query, I start to get the correct result set.
262: [21:24:25] * antmas looks at project list
263: [21:24:28] <antmas> damn
264: [21:24:32] * SphereSilverNL quit (Remote host closed the connection)
265: [21:24:39] <antmas> 3.1 update doesn't start until July :(
266: [21:24:57] <guzzlefry> antmas: It doesn't make sense! :P
267: [21:25:35] * willr_ has joined #silverstripe
268: [21:25:35] * willr_ quit (Changing host)
269: [21:25:35] * willr_ has joined #silverstripe
270: [21:25:36] * willr quit (Ping timeout: 265 seconds)
271: [21:25:37] * willr_ is now known as willr
272: [21:25:47] <antmas> guzzlefry: hmm?
273: [21:27:24] <antmas> holy crap, this conference is at the Langham
274: [21:27:27] <antmas> nice
275: [21:27:28] <antmas> :D
276: [21:27:49] <guzzlefry> I need a drink.
277: [21:28:10] <simon_w> I just finished mine
278: [21:28:45] <guzzlefry> I'm going to need billions.
279: [21:30:02] <antmas> guzzlefry: is this that store you're working on?
280: [21:30:55] <guzzlefry> Another store.
281: [21:38:17] * ss23_ has joined #silverstripe
282: [21:39:31] <ss23_> REALLY
283: [21:39:36] <ss23_> THE FUCKING TIME I COME ON
284: [21:39:38] <ss23_> AND IT DIES AGAIN
285: [21:42:14] * geekdenz quit (Ping timeout: 245 seconds)
286: [21:42:16] * Super-ru quit (Ping timeout: 245 seconds)
287: [21:42:31] * ss23 quit (Ping timeout: 245 seconds)
288: [21:42:41] <guzzlefry> ss23_: use whatever network I'm on. :P
289: [21:42:43] * TRB143 quit (Ping timeout: 245 seconds)
290: [21:42:57] * TRB143___ has joined #silverstripe
291: [21:43:12] <guzzlefry> s/network/server
292: [21:43:17] * Super-ru has joined #silverstripe
293: [21:45:46] * ss23_ is now known as ss23
294: [21:51:13] * geekdenz has joined #silverstripe
295: [21:52:45] * Pyromanik has joined #silverstripe
296: [21:54:17] <Pyromanik> IDEK
297: [21:54:23] <Pyromanik> IDEFK
298: [21:54:36] <Pyromanik> idkfa
299: [21:54:38] <Pyromanik> iddqd
300: [21:54:45] <ss23> I think someone broke Pyromanik
301: [21:54:48] <simon_w> idepr
302: [21:54:49] <Pyromanik> come at me bro
303: [21:54:56] <simon_w> iderp
304: [21:55:01] <Pyromanik> ooh, epr. Clipping mode?
305: [21:57:24] <Pyromanik> simon_w?
306: [21:57:37] <Pyromanik> oh you misspelt iderp :<
307: [21:57:40] <Pyromanik> guts2me
308: [21:59:40] <Pyromanik> all guns & ammo & keys + degreelessness mode
309: [21:59:56] <antmas> Pyromanik: lolwut
310: [21:59:59] <Pyromanik> it's how pros hax servers, they get all the keys.
311: [22:00:05] <ss23> antmas: doom hacks
312: [22:00:06] <Pyromanik> idkfa
313: [22:00:12] <ss23> "hacks"
314: [22:00:14] <ss23> cheats I should say
315: [22:00:15] <Pyromanik> how the fuck does one not get this references?
316: [22:00:17] <antmas> ss23: oh yeah, I got that :D
317: [22:00:22] <Pyromanik> yes, cheats.
318: [22:00:31] <antmas> just wondering what Pyromanik is up to :p
319: [22:00:32] <Pyromanik> but keys, get it? like the private kind!
320: [22:00:40] <Pyromanik> antmas, just IDEK
321: [22:00:46] <antmas> OH
322: [22:00:50] <Pyromanik> then I was all nah, need more fuck.
323: [22:00:50] <antmas> nervermind
324: [22:00:53] <Pyromanik> IDEFK
325: [22:00:59] <antmas> I need coffee
326: [22:01:03] <Pyromanik> and I'm like "that's pretty close to..."
327: [22:01:07] <Pyromanik> idkfa
328: [22:01:19] <antmas> is iddqg god mode?
329: [22:01:21] * DarrenInwood has joined #silverstripe
330: [22:01:23] <Pyromanik> and then that can't be done without the iddqd because degreelessness mode is just boss.
331: [22:01:26] <antmas> iddqD*
332: [22:01:28] <ss23> I think you've had too mcuh coffee
333: [22:01:48] <Pyromanik> antmas, "degreelessness mode"
334: [22:01:49] <antmas> this is my Monday :P
335: [22:01:53] <Pyromanik> but yes. 'godmode'
336: [22:01:57] <terryapodaca> Well, i know most of you didn't watch it, but that was the crappiest Super Bowl
337: [22:02:03] <simon_w> Hmm, other people are likely to show up soon. I guess I should start actually working
338: [22:02:09] <antmas> terryapodaca: I watched it
339: [22:02:26] <antmas> terryapodaca: but yeah...
340: [22:02:29] <terryapodaca> was hoping for at least a close and exciting game
341: [22:02:29] <Pyromanik> terryapodaca, lol super bowl.
342: [22:02:35] <Pyromanik> it's like a bowl of super.
343: [22:02:49] <terryapodaca> it was a bowl of crap!
344: [22:03:03] <Pyromanik> See now what I'd pay to watch is 2 whole teams of terry crews face off at each other in a comedic football match
345: [22:03:18] <Pyromanik> winner makes the most jokes
346: [22:03:29] <Pyromanik> or something
347: [22:03:34] <terryapodaca> I'd lose
348: [22:03:47] <DarrenInwood> Morning all :-) Can anyone confirm for me in 3.1, that you can't just rely on the SiteConfig->AdminEmail to set the admin email any more, and you have to hardcode in Config::inst()->update('Email', 'admin_email', 'blah@blah.com') now?
349: [22:04:45] <simon_w> DarrenInwood, well, you've obviously got some custom code to add AdminEmail to SiteConfig. Just update the bit that used to set the Email::admin_email to use the correct method
350: [22:04:46] <DarrenInwood> Just discovered our 3.1 sites aren't sending forgot password emails as we'd assumed the SiteCOnfig took care of it like in 3.0 =]
351: [22:05:26] <DarrenInwood> Right you are. how embarrassing. ;-)
352: [22:05:55] <DarrenInwood> I'll just have another coffee now...
353: [22:06:54] <antmas> guis guis
354: [22:06:57] <antmas> halp
355: [22:07:13] <antmas> what can I use to get Friday off? :P
356: [22:07:28] <simon_w> antmas, go to the 7s
357: [22:07:28] * lerni quit (Quit: lerni)
358: [22:07:39] <antmas> simon_w: pffft, rugby
359: [22:07:47] <simon_w> Last year of having to be in the same city as them. Yay!
360: [22:07:56] <willr> antmas work at DNA?
361: [22:08:02] <DarrenInwood> go to camp a low hum instead ;-)
362: [22:08:06] <simon_w> willr, TDC
363: [22:08:08] <willr> that'll get you fridays off
364: [22:08:10] <DarrenInwood> thanks guys
365: [22:08:18] <antmas> lol
366: [22:08:20] <simon_w> oh, no s
367: [22:08:21] <antmas> willr: *
368: [22:08:29] <simon_w> antmas, "sick" leave :p
369: [22:08:42] <antmas> naw
370: [22:08:52] <antmas> maybe my parents are coming up this weekend :P
371: [22:08:58] <Ryan-Toast> You could become legit sick like I think I am at the moment.
372: [22:09:14] <antmas> Ryan-Toast: I am...kinda - headcold :D
373: [22:09:22] <antmas> but actually :(
374: [22:09:37] <Ryan-Toast> I think I'm going to vomit today at some stage.
375: [22:10:06] <antmas> Ryan-Toast: do it on your favourite colleauge, then both of you go home :D
376: [22:10:12] <Ryan-Toast> antmas: aww yiss
377: [22:11:00] <antmas> man, I hope i can stay at the Langham
378: [22:11:03] <antmas> place looks pimp
379: [22:12:19] * DarrenInwood quit (Ping timeout: 245 seconds)
380: [22:14:01] <catcher> yeah, that superbowl was garbage.
381: [22:16:46] <ss23> Fatal error: Call-time pass-by-reference has been removed in ...
382: [22:16:48] <ss23> #fuck
383: [22:18:24] <simon_w> Haha!
384: [22:24:19] <guzzlefry> 0.o
385: [22:26:14] <antmas> hmmmm Call to a member function getModules() on a non-object in /var/www/sitename/framework/dev/Deprecation.php on line 92
386: [22:26:24] <antmas> what is!
387: [22:27:59] <guzzlefry> That looks familiar.
388: [22:28:10] <guzzlefry> antmas: Exception?
389: [22:29:03] <antmas> guzzlefry: trying to track it down
390: [22:29:56] <antmas> this is a 3.1 module - am going to make it work on 3.0 :P
391: [22:30:27] <Pyromanik> #fuck
392: [22:30:31] <Pyromanik> bedtime :<
393: [22:32:51] <simon_w> antmas, xdebug :p
394: [22:40:39] * camfindlay has joined #silverstripe
395: [22:41:22] <camfindlay> hey simon_w just shared you draft of your performance article to have a look over :)
396: [22:45:13] * an_Eskimo has joined #silverstripe
397: [22:46:07] <an_Eskimo> Hey guys, does anyone know why, when using the Multiform module, it doesn't relate the uploaded files to the dataobject that I am creating on submit
398: [22:46:27] <guzzlefry> Anyone know of a way to strip out large strings of text from SQL code and replace them with something short yet random?
399: [22:46:40] <guzzlefry> Hitting this 8000 character limit with SQL Fiddle. :/
400: [22:47:30] <antmas> ffff
401: [22:47:39] <guzzlefry> hate today :P
402: [22:47:45] * antmas has no idea where to put a breakpoint
403: [22:48:12] <guzzlefry> yay breakpoints
404: [22:48:24] <Ryan-Toast> Navigating the docs is fucking annoying.
405: [22:48:38] <Ryan-Toast> Broken links everywhere.
406: [22:48:38] <guzzlefry> antmas: Is it throwing an exception?
407: [22:53:39] <antmas> guzzlefry: hmmm, no just a fatal
408: [22:54:52] <ss23> Bah
409: [22:55:03] <ss23> Old PHP on some of our boxes segfaults when you isDev=1
410: [22:55:06] <ss23> Makes debugging so much harder :/
411: [22:55:10] <antmas> not much of a description in the error log :P
412: [22:55:34] <ss23> antmas: stacktrace before the line it fatals on, so yo ucan trace execution flow?
413: [22:56:40] <antmas> ss23: oh? the stacktrace is looking over 10 files (lines)
414: [22:56:49] <guzzlefry> ss23: I've hit issues where /dev/build won't work unless you append ?showqueries to it..
415: [22:56:52] <guzzlefry> makes no sense :P
416: [22:57:09] <simon_w> camfindlay, looks good to me
417: [22:57:58] <antmas> so, errr, this http://www.sspaste.com/paste/show/52f01bdfba44f
418: [22:58:23] <ss23> lol guzzlefry
419: [22:59:58] <camfindlay> simon_w cheers I'll do a final proof read shortly, might run off to the library to focus on some writing
420: [23:00:11] <ss23> antmas: Almost looks like mismatch of Framework and CMS versions
421: [23:00:18] <ss23> simon_w: Any ideas re antmas's stacktrace + error?
422: [23:00:50] <simon_w> That'd require a 3.0 checkout. Effort :p
423: [23:00:51] * gelignite quit (Quit: http://bit.ly/nkczDT)
424: [23:01:15] <ss23> simon_w: I just mean by looking at the trace and having an idea :P
425: [23:01:32] <antmas> ss23: o.O a mismatch
426: [23:01:36] <simon_w> ss23, it's the Deprecation API breaking
427: [23:01:48] <ss23> Man, SilverStripe, what the hell. It's doing ~900x queries of "select id, classaname, region, foobar where id = 1" then "where id = 2" "where id = 3" etc
428: [23:01:58] <ss23> THAT EXPLAINS WHY THIS PAGE IS SLOW
429: [23:02:14] <guzzlefry> Someone accidentally a loop.
430: [23:02:22] <ss23> I think this is 100% default model admin
431: [23:02:32] <guzzlefry> 0.o
432: [23:02:40] <guzzlefry> /fixit
433: [23:02:43] <ss23> lol
434: [23:02:52] <ss23> Will verify it first :P
435: [23:03:05] <ss23> grep foreach mysite/ -Ri
436: [23:03:06] <ss23> :D
437: [23:03:06] <antmas> simon_w: so, any ideas whatdo?
438: [23:03:13] <simon_w> antmas, fix it!
439: [23:03:21] <antmas> ;__;
440: [23:04:29] * Colin[pi] has joined #silverstripe
441: [23:04:56] <antmas> hmmmm
442: [23:05:01] <Colin[pi]> HAI ANTMAS
443: [23:05:05] <antmas> depcrecation notice version maybe?
444: [23:05:11] <antmas> Colin[pi]: HAAAAAAAIIII
445: [23:05:17] * antmas squees
446: [23:05:17] <Colin[pi]> UGUU
447: [23:05:19] <Colin[pi]> ^_^
448: [23:05:33] <Colin[pi]> well freenode has finished it's brain fart?
449: [23:05:36] * kinglozzer quit (Quit: Leaving)
450: [23:06:17] <antmas> ah
451: [23:06:19] <antmas> there we go
452: [23:06:24] <antmas> wrong deprecation notice version
453: [23:06:33] <antmas> so, now the fun begins :D
454: [23:06:51] <ss23> Colin[pi]: We think so, though it did fall voer for me again this mornign
455: [23:07:05] <antmas> so, first up - uncaught reflectionException - does not exist
456: [23:07:16] <Colin[pi]> hey simon_w: do you drive?
457: [23:07:23] <simon_w> Colin[pi], nope
458: [23:07:29] <Colin[pi]> phew
459: [23:07:38] <Colin[pi]> because canberra drivers suck
460: [23:07:52] <Colin[pi]> almost had not one, not two, but three accidents this morning ^_^
461: [23:08:06] <simon_w> Colin[pi], you're not blaming it on NSW drivers? :p
462: [23:08:12] * catcher quit (Quit: Leaving)
463: [23:08:16] * PapaBear has joined #silverstripe
464: [23:08:17] <Colin[pi]> nope, canberra ones are far, far worse
465: [23:09:07] <antmas> dafuq, it doesn't tell me the class name that doesn't exist o.O
466: [23:09:37] <simon_w> antmas, do you have $manifest = new SS_ClassManifest(BASE_PATH, false, $flush); in Core.php?
467: [23:10:03] <antmas> simon_w: lemme check
468: [23:10:36] <antmas> simon_w: yes
469: [23:10:53] <simon_w> How are you turning that into a non-object?
470: [23:12:21] <antmas> simon_w: turning what?
471: [23:12:25] <ss23> Bah, nothing in this code seems to be manually looping over anything, why is SS being stupid :/
472: [23:12:28] <simon_w> $manifest
473: [23:12:49] <Colin[pi]> ss23: pebkac?
474: [23:12:54] <Colin[pi]> ;)
475: [23:13:02] <ss23> Colin[pi]: I DIDN't WRITE THE SITE :O
476: [23:13:06] <antmas> simon_w: I don't think I am... at least there's nothing obvious in this code
477: [23:13:20] <ss23> xdebug would tell me I bet...
478: [23:13:31] * camfindlay quit (Quit: camfindlay)
479: [23:14:56] <simon_w> antmas, it only breaks when you add the module, right?
480: [23:15:05] <antmas> simon_w: yah
481: [23:15:09] <simon_w> Linky?
482: [23:15:17] <antmas> 2 secs
483: [23:15:34] <antmas> simon_w: https://github.com/mateusz/silverstripe-polls/tree/master/code
484: [23:16:24] <simon_w> Oh, Hamish broke it
485: [23:16:46] <antmas> simon_w: hmmm?
486: [23:16:50] <simon_w> Him and his over-engineered code
487: [23:17:08] <guzzlefry> dangit
488: [23:17:14] <simon_w> antmas, the require_once('core/Core.php') is now in a function, so not global scope
489: [23:17:26] <simon_w> antmas, add global $manifest; to Core.php just before the $manifest = ...
490: [23:17:44] <antmas> simon_w: aight
491: [23:18:33] <guzzlefry> simon_w: So I think my problem is related to using DISTINCT against TEXT data... :P
492: [23:19:06] <simon_w> antmas, fixed it?
493: [23:19:17] <simon_w> I wanna click the green button!
494: [23:19:33] <antmas> simon_w: 'global $manifest'?
495: [23:19:39] <Colin[pi]> no colin /dev/buld will not work
496: [23:19:44] <simon_w> antmas, and a semicolon
497: [23:19:49] <antmas> :P
498: [23:19:53] <antmas> nope, same problem
499: [23:19:56] * chillu_23 quit (Quit: chillu_23)
500: [23:20:12] <simon_w> So it looks like:
501: [23:20:13] <simon_w> global $manifest;
502: [23:20:13] <simon_w> $manifest = new SS_ClassManifest(BASE_PATH, false, $flush);
503: [23:20:13] <simon_w> ?
504: [23:20:19] <antmas> simon_w: yes
505: [23:22:00] <antmas> hmmm
506: [23:22:03] <antmas> hungry
507: [23:26:00] * antmas looks over at simon_w in anticipation
508: [23:26:05] <antmas> @.@
509: [23:26:19] <simon_w> antmas, hmm, that's all I needed to do to get it working
510: [23:26:56] <antmas> simon_w: dang
511: [23:27:13] <simon_w> Did you typo $manifest?
512: [23:27:25] <simon_w> (https://github.com/silverstripe/silverstripe-framework/commit/ed4d32581d1df93e538468a98da109f65a4d1f13 is the entire change)
513: [23:28:04] <antmas> simon_w: nope
514: [23:30:22] <antmas> yeah, just doesn't want to go :(
515: [23:33:51] <Colin[pi]> exact wording from a client "I found that when I copied and pasted the following link into a search engine, it gives a page not found"
516: [23:34:14] <Colin[pi]> (the link has a file..htm instead of file.htm)
517: [23:34:19] <Colin[pi]> *twitch twitch*
518: [23:34:23] <ss23> lol
519: [23:34:43] * chillu_23 has joined #silverstripe
520: [23:36:24] <simon_w> So, that issue I sent to security@ss last year still hasn't been fixed
521: [23:36:39] <ss23> simon_w: Which one? Flush bypass?
522: [23:36:44] <simon_w> yeah
523: [23:36:51] <ss23> *shrug*
524: [23:36:57] <ss23> I sent it before you, and still hasn't been fixed for me either
525: [23:37:00] * guzzlefry has left #silverstripe
526: [23:37:07] <ss23> I even told Hamish IRL
527: [23:37:09] <ss23> You know...
528: [23:37:15] <ss23> We could just tell that guy about it
529: [23:37:15] <ss23> :P
530: [23:37:18] <ss23> And let him do the work for us
531: [23:38:30] <simon_w> I'm thinking about writing a disclosure post
532: [23:38:36] <antmas> hmmm
533: [23:39:06] <antmas> it lets me get as far as the CMS, just not into the 'Polls' panel (line 846 injector error)
534: [23:39:24] <simon_w> antmas, well, that's a different error entirely!
535: [23:41:30] <antmas> ugh
536: [23:42:15] <antmas> simon_w: the exception still points at the reflectionclass though
537: [23:42:34] <antmas> just normally, It'd tell you what class it is :<
538: [23:42:41] <simon_w> antmas, uh, the error I was fixing was about Deprecation
539: [23:43:24] <antmas> simon_w: o.O but that's not what I posted
540: [23:44:21] <simon_w> <antmas> so, errr, this http://www.sspaste.com/paste/show/52f01bdfba44f
541: [23:44:23] <simon_w> yes it is!
542: [23:44:52] <antmas> simon_w: well, yeah :P
543: [23:45:13] <antmas> but this - uncaught reflectionException - does not exist
544: [23:46:34] <antmas> my bad, they're related, as this ^^^ is the exception
545: [23:47:31] <Colin[pi]> oh jquery
546: [23:47:37] <Colin[pi]> 'HierarchyRequestError' that's a new one
547: [23:48:09] <simon_w> antmas, so, trying to construct a class that doesn't exist through the injector
548: [23:48:43] <antmas> simon_w: yes, but it's not highlighting the class
549: [23:48:55] <simon_w> antmas, call stack
550: [23:50:47] <antmas> outside of framework and CMS, it's Poll.php
551: [23:52:36] <antmas> meh, i'll look again after lunch :P
552: [23:55:31] <Colin[pi]> oh ho ho, jquery complains when I put two elements with the same ID... pffft get over it jquery
553: [23:56:02] * bennylope has joined #silverstripe
554: [23:59:03] <spronk> ugh
555: [23:59:05] <spronk> seriously
556: [23:59:08] <spronk> fuck /dev/build

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