#silverstripe IRC Log

IRC log for 13 July 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:14] * ss-helper has joined #silverstripe
3: [00:16:38] <Nightjar> git checkout -b YUSoHard
4: [00:28:49] * micmania1 quit (Quit: micmania1)
5: [00:30:02] <ss-helper> SilverStripe SortableGridField checkbox default - http://stackoverflow.com/questions/38340777/silverstripe-sortablegridfield-checkbox-default
6: [00:45:03] <ss-helper> Silverstripe: User-specific files module - http://stackoverflow.com/questions/38340864/silverstripe-user-specific-files-module
7: [00:45:03] <ss-helper> How can I logout an administrator in SilverStripe 3.1.x after period of inactivity? - http://stackoverflow.com/questions/24158545/how-can-i-logout-an-administrator-in-silverstripe-3-1-x-after-period-of-inactivi
8: [00:49:13] * Stomach quit (Quit: zzz)
9: [00:59:34] <DanaeNZ> there isn't enough coffee!!!
10: [01:05:15] * Nightjar quit (Ping timeout: 246 seconds)
11: [01:07:21] <spronk> COFEEEEEEEEEE
12: [01:07:31] <spronk> also
13: [01:07:31] <spronk> woow amazon
14: [01:07:33] <spronk> aww nightjar
15: [01:07:33] <spronk> he would appreciate the dumbness of what i'm abuot to tweet
16: [01:07:51] * Stomach has joined #silverstripe
17: [01:08:24] <spronk> https://twitter.com/spronkey/status/753033264516833280
18: [01:08:49] <DanaeNZ> ooooooo
19: [01:09:01] <DanaeNZ> gap clearances are for suckers
20: [01:09:12] <spronk> they just put the spark plugs
21: [01:09:15] <spronk> in flimsy boxes
22: [01:09:19] <spronk> and wrapped the whole thing in cardboard :/
23: [01:09:26] <DanaeNZ> that's fucked
24: [01:09:29] <spronk> surely they could have at least taped the fucking boxes shut
25: [01:09:31] <DanaeNZ> hmmm time to catch some pokemon
26: [01:09:35] <DanaeNZ> ha surely
27: [01:12:27] * micmania1 has joined #silverstripe
28: [01:37:26] * UncleCheese has joined #silverstripe
29: [01:46:56] <DanaeNZ> awesome, I put my gyarados in a gym
30: [01:48:33] <DanaeNZ> fucking composer
31: [01:50:45] <spronk> o_O
32: [01:50:50] <spronk> what about composr?
33: [01:51:07] <DanaeNZ> today it is slow
34: [01:51:36] * kerozene quit (Quit: brb)
35: [01:52:47] * kerozene has joined #silverstripe
36: [01:52:54] <spronk> ugh
37: [01:52:54] <spronk> yeah
38: [01:52:59] <spronk> ive found it reaaaally slow lately
39: [01:55:57] <DanaeNZ> I went out for half an hour and nothing had happened
40: [01:55:59] <DanaeNZ> so annoying
41: [01:58:46] <spronk> :|
42: [01:58:46] <spronk> wow
43: [01:58:47] <spronk> wtf
44: [01:58:51] <spronk> ok mine's not THAT slow
45: [01:59:08] <DanaeNZ> is it too early for wine
46: [01:59:19] <DanaeNZ> I'm off on holiday on Friday and Monday
47: [01:59:33] <DanaeNZ> gotta wrap everything up before then
48: [01:59:37] <spronk> well
49: [01:59:38] <spronk> in that case
50: [01:59:40] <spronk> today is like thursday
51: [01:59:40] <spronk> so
52: [01:59:41] <spronk> no
53: [02:00:50] <DanaeNZ> ssiiiggghhh
54: [02:01:47] <DanaeNZ> i wonder why my subsites have suddenly started falling into infinite redirect loops
55: [02:05:08] <spronk> :D"
56: [02:05:12] <spronk> just to fuck you off
57: [02:05:19] <spronk> because that is what subsites does
58: [02:05:24] <ss23> he's right
59: [02:05:27] <ss23> I checked the codebase once
60: [02:05:37] <ss23> a big ole if rand() > 10 { go_fuck_yourself() }
61: [02:05:44] <spronk> yep
62: [02:05:46] <spronk> it's right there
63: [02:05:49] <DanaeNZ> hahaha
64: [02:05:51] <spronk> SubsitesVirtualPage.php line 37
65: [02:05:51] <ss23> god we should probably take it out
66: [02:06:15] <spronk> anyone got a compound sliding mitre saw? :P
67: [02:06:36] <DanaeNZ> I just can never decide to have multiple websites or just manage it with subsites
68: [02:06:44] <DanaeNZ> multiple sites goes badly
69: [02:06:49] <DanaeNZ> subsites goes badly
70: [02:06:58] <DanaeNZ> you can't win
71: [02:10:13] <ss23> subsites for many identical sites with only minor differences in how they look only (no codebase difference)
72: [02:10:20] <ss23> multiple sites if the codebase is ever going to be different
73: [02:10:41] <DanaeNZ> that's what I figure
74: [02:10:57] <DanaeNZ> I chose right then
75: [02:11:06] <DanaeNZ> now to find where this redirection is coming from
76: [02:13:39] * Nightjar has joined #silverstripe
77: [02:18:22] * kerozene quit (Quit: brb)
78: [02:18:51] * kerozene has joined #silverstripe
79: [02:31:49] <micmania1> DanaeNZ: Nightjar lives for subsite redirects
80: [02:32:25] <DanaeNZ> I might ask in a minute I've moved to a different project
81: [02:39:04] * Stomach_ has joined #silverstripe
82: [02:40:52] * Stomach quit (Ping timeout: 252 seconds)
83: [02:56:17] * Nightjar quit (Ping timeout: 244 seconds)
84: [03:01:21] * Stomach_ quit (Quit: zzz)
85: [03:02:44] * Stomach has joined #silverstripe
86: [03:03:29] * Nightjar has joined #silverstripe
87: [03:08:44] * DanaeNZ quit (Remote host closed the connection)
88: [03:09:21] * DanaeNZ has joined #silverstripe
89: [03:13:51] * DanaeNZ quit (Ping timeout: 244 seconds)
90: [03:15:45] <Nightjar> micmania1, you confusing me with spronk holmes.
91: [03:16:09] <spronk> :L|
92: [03:28:40] * DanaeNZ has joined #silverstripe
93: [03:38:49] * Stomach quit (Quit: zzz)
94: [03:43:38] * Stomach has joined #silverstripe
95: [03:44:10] <Nightjar> rofl spronk - dem sparkplugs tho...
96: [03:44:14] <spronk> ikr
97: [03:44:24] <Nightjar> getcha feeler blades out
98: [03:44:28] <spronk> mm :<
99: [03:44:35] <spronk> though
100: [03:44:39] <spronk> really have to do that anyway these days
101: [03:44:44] <Nightjar> o.0
102: [03:44:51] <spronk> last set i bought from supercheap
103: [03:44:58] <Nightjar> I suppose it never hurts anyway
104: [03:44:59] <spronk> 1.1mm, 0.9mm, 1.2mm, 1.0mm
105: [03:45:05] <Nightjar> dafuq, haha
106: [03:45:05] <Nightjar> rude
107: [03:45:07] <spronk> mm
108: [03:45:15] <spronk> these ones are better
109: [03:45:19] <spronk> 1.1, 1.2, 1.1, 1.1
110: [03:52:36] * Phlunk3 has joined #silverstripe
111: [03:55:35] * Stomach quit (Quit: zzz)
112: [04:39:25] <spronk> also
113: [04:39:25] <spronk> https://www.youtube.com/watch?v=6N4gEJ_ED98&feature=youtu.be
114: [04:39:33] <spronk> samuel L jackson explains game of thrones
115: [04:40:33] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
116: [04:42:36] * pippy quit (Ping timeout: 250 seconds)
117: [04:45:38] <Nightjar> will check when get home.
118: [04:47:00] <DanaeNZ> the problem with not watching GoT but just starting to read the books is that you suddenly care about spoilers
119: [04:48:35] <spronk> :)
120: [04:48:37] <spronk> WATCH GAME OF THRONEZ
121: [04:58:29] * JamieT has joined #silverstripe
122: [04:59:12] <JamieT> Hello, is it possible to access a CustomSiteConfig variable in the SiteConfig?
123: [05:04:38] * micmania1 quit (Quit: micmania1)
124: [05:05:40] <DanaeNZ> JamieT: Please elaborate? Do you mean in the actual CMS user interface?
125: [05:07:16] * Stomach has joined #silverstripe
126: [05:12:56] * JamieT quit (Ping timeout: 250 seconds)
127: [05:21:09] * JamieT has joined #silverstripe
128: [05:21:24] <JamieT> Sorry i meant, I've created a customsiteconfig and a few $db fields, and i want to access them in the /mysite/_config.php
129: [05:24:08] <DanaeNZ> hmmm I think so
130: [05:24:24] <DanaeNZ> SiteConfig::current_site_config()
131: [05:24:32] <DanaeNZ> ->yourfield
132: [05:24:45] <DanaeNZ> it will get your custom fields
133: [05:27:54] * Stomach quit (Quit: zzz)
134: [05:33:05] * Stomach has joined #silverstripe
135: [05:35:56] * Nightjar quit (Quit: Leaving)
136: [05:51:04] * Stomach quit (Ping timeout: 250 seconds)
137: [05:58:36] <JamieT> @DanaeNZ Fatal error: Call to a member function hasField() on a non-object in ....[PROJECTNAME].../framework/model/DataObject.php on line 238
138: [05:59:06] <JamieT> i thought that should work too
139: [06:01:09] <DanaeNZ> It's hard to say from that debug line
140: [06:01:12] <DanaeNZ> !paste
141: [06:01:12] <ss-helper> Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
142: [06:01:22] <DanaeNZ> if you have a full trace paste it there
143: [06:10:39] <JamieT> https://gist.github.com/jamiegiftbit/adb3b31a448a43b05c08a58bd14ee0c3
144: [06:12:10] <JamieT> i don't have a full trace
145: [06:15:16] <Zauberfisch> JamieT: at this point in time, the database isn't ready yet
146: [06:15:30] <Zauberfisch> thus, there are no dataobjects fetches yet
147: [06:15:46] <Zauberfisch> meaning that SiteConfig::current_site_config() probably returns null
148: [06:17:49] <JamieT> interesting. i thought maybe something like that was happening because the object i was trying to reference didn't have values for the properties i ewas looking for
149: [06:18:16] <Zauberfisch> I mean it makes perfect sense that you can't query the database in _config.php
150: [06:18:22] <JamieT> but then i created the database fields and populated then in the admin
151: [06:18:24] <Zauberfisch> because that file is suppose to set configurations
152: [06:18:31] <JamieT> aw
153: [06:18:32] <Zauberfisch> including the database config
154: [06:19:11] <Zauberfisch> but even if it was possible, I have a strong feeling what ever you are trying to do does not belong in that file anyway
155: [06:19:28] <Zauberfisch> could you perhaps outline your goal?
156: [06:19:29] <JamieT> ok, so i will need to rethink this approach. i was attempting to set some wording for (essentially) a sub site based on a switch case in the _config that matches the domain
157: [06:20:27] <JamieT> thanks Zauberfisch, you make perfect sense
158: [06:21:06] <JamieT> i've often seen you answer other questions here and on SO and you always have great input, so thank you
159: [06:21:47] <JamieT> and thanks DanaeZN for your thoughts as well. i will need to rethink my approach
160: [06:22:55] <Zauberfisch> what ever it is you try to set, it might just aswell be possible to do it in the controller
161: [06:23:18] <Zauberfisch> or with logic in a getter that returns a different value depending on the domain
162: [06:25:31] <JamieT> maybe translation files could be useful for something like this. i'm trying to have difference wording for a page, based on the the domain, which is using the same page data for the most part but switching theme colours
163: [06:26:08] <JamieT> the getter approach is my next go-to
164: [06:32:58] * UncleCheese has joined #silverstripe
165: [06:38:18] * guci0 quit (Ping timeout: 250 seconds)
166: [06:47:50] * JamieT quit (Ping timeout: 250 seconds)
167: [06:54:42] * DanaeNZ quit (Quit: TIME TO FEED)
168: [06:59:25] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
169: [07:02:18] * Sj0hn has joined #silverstripe
170: [07:10:08] * arnhoe has joined #silverstripe
171: [07:12:21] <Sj0hn> Hi, I'm trying to write a Base64 DataUrl to a dataobject with a form. I do this by passing the DataUrl as value in a HiddenField.
172: [07:12:30] <Sj0hn> When I send the form nothing is added to my DataObject. Im not sure where to begin on this.. These are the parts of my code: http://pastie.org/10905658
173: [07:15:00] * swaiba has joined #silverstripe
174: [07:35:45] * Stomach has joined #silverstripe
175: [07:39:16] <Sj0hn> It seems it didnt work with the hiddenfield. Used Textfield instead.
176: [07:39:25] * Sj0hn quit (Quit: Page closed)
177: [07:41:16] * micmania1 has joined #silverstripe
178: [07:53:01] * wmk has joined #silverstripe
179: [08:06:32] * Tron has joined #silverstripe
180: [08:07:29] <Tron> Hi guys, does anyone here use phpstorm for their IDE?
181: [08:23:39] <wmk> Tron, many of us, yes. Or the big brother idea...
182: [08:37:17] <Tron> excellent, know how to get this going by any chance
183: [08:37:18] <Tron> https://github.com/studiobonito/phpstorm-templates-silverstripe
184: [08:37:46] <Tron> I am on mac and have put it in here /Users/Heath/Library/Preferences/PhpStorm2016.1
185: [08:50:42] * slievr has joined #silverstripe
186: [08:51:58] * agent44 has joined #silverstripe
187: [08:52:36] <Tron> wmk, got it =)
188: [08:53:04] <wmk> ;)
189: [08:53:43] <wmk> Tron, you might be interested in http://www.silverstrip.es/blog/easier-coding-with-phpstorm-templates/
190: [08:53:51] <wmk> feel free to leave a comment there
191: [09:03:13] * agent44 quit (Quit: agent44)
192: [09:04:31] * agent44 has joined #silverstripe
193: [09:13:29] * Stomach quit (Quit: zzz)
194: [09:36:33] * UncleCheese has joined #silverstripe
195: [09:48:37] * micmania1 quit (Quit: micmania1)
196: [09:52:40] * Pyromanik has joined #silverstripe
197: [09:53:28] <swaiba> Pyromanik o/
198: [09:53:53] <Pyromanik> \o swaiba :)
199: [09:57:11] * agent44 quit (Ping timeout: 250 seconds)
200: [10:00:56] * agent44 has joined #silverstripe
201: [10:07:59] <Zauberfisch> hey guys
202: [10:08:02] <Zauberfisch> it's been a while
203: [10:08:08] <wmk> hey Zauberfisch
204: [10:08:12] <Pyromanik> Hello Zauberfisch ! :>
205: [10:08:12] <Zauberfisch> what was the merge strategy again between version branches?
206: [10:08:13] <swaiba> Zauberfisch o/
207: [10:08:17] <Zauberfisch> upwards, right?
208: [10:08:18] <Pyromanik> It has been a while for me too
209: [10:08:28] <Zauberfisch> 3 into 3.1. 3.1 into 3.2 and so on?
210: [10:08:33] <Pyromanik> Yep.
211: [10:08:35] <Zauberfisch> or the other way around?
212: [10:08:39] <Pyromanik> Semantic versioning
213: [10:08:40] <Zauberfisch> 3.1 into 3?
214: [10:08:48] <Pyromanik> o.0
215: [10:08:56] <Pyromanik> Never seen software go that way before
216: [10:09:11] <Zauberfisch> no idea
217: [10:09:18] <Zauberfisch> haven't really thought this question through before asking
218: [10:09:24] <Pyromanik> Apply generally normal math, except that sometimes there's an extra dot.
219: [10:09:42] <Pyromanik> 3 < 3.1 < 3.2 < 3.3 < 4, etc
220: [10:09:58] <Pyromanik> (that's less than, not 'move to')
221: [10:10:29] <Pyromanik> Crocodiles like eating bigger numbers!
222: [10:11:26] <Pyromanik> where the math idea falls down though is that 3.3 < 3.19
223: [10:13:21] <Zauberfisch> guess I will pull request towards 3
224: [10:13:26] <Zauberfisch> oh, wait
225: [10:13:53] <Zauberfisch> no. could it be that it's actually 3.1 -> 3.2 -> 3.3 -> 3.4 -> 3?
226: [10:14:10] <Pyromanik> ooooh
227: [10:14:13] <Pyromanik> hmm
228: [10:14:31] <Pyromanik> master branch for that line of support, I gotcha.
229: [10:14:38] <Pyromanik> yeah, uhh...
230: [10:15:02] <Pyromanik> If it's a bugfix I'd PR against master.
231: [10:15:12] <ss-helper> SilverStripe GridFieldExtension module GridFieldRequestHandler - http://stackoverflow.com/questions/38348455/silverstripe-gridfieldextension-module-gridfieldrequesthandler
232: [10:15:32] <Pyromanik> if you need it backported, I'd PR against that branch, depending on specificity
233: [10:15:47] <Pyromanik> I'm not 100% sure now you've pointed it out Zauberfisch ! D:
234: [10:15:57] <Pyromanik> It always confsues me :S
235: [10:16:00] <Zauberfisch> Pyromanik: no, if it's a bugfix it should actually go as low as possible to avoid the need backporting and have it in the bugfix releases instead
236: [10:16:03] <Pyromanik> but yeh, probably 3 would be fine.
237: [10:16:06] <Zauberfisch> Pyromanik: I am confused now too
238: [10:16:20] <Zauberfisch> PRed against 3. and commented to ask if I should re-PR against 3.1 or 3.4
239: [10:16:24] <Pyromanik> Zauberfisch, yeah, I can agree.
240: [10:16:32] <Pyromanik> Seems safest :>
241: [10:19:17] * micmania1 has joined #silverstripe
242: [10:21:20] <Pyromanik> areet micmania1? How was football?
243: [10:21:26] <micmania1> we lost :(
244: [10:21:28] <Pyromanik> called off coz of the wind again?
245: [10:21:29] <Pyromanik> oh
246: [10:21:30] <Pyromanik> :/
247: [10:29:11] <Pyromanik> HAHHAHAAHAHHAHAH Can confirm; scary as fuck. http://imgur.com/gallery/11PHElU
248: [10:29:25] <Pyromanik> Especially with all that no-helmet business :<
249: [10:34:24] <Zauberfisch> anyone used FileField lately?
250: [10:34:35] <Zauberfisch> not saving files for me :S
251: [10:34:38] <Zauberfisch> in the CMS
252: [10:34:46] <Pyromanik> Is it still a thing?
253: [10:36:24] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
254: [10:36:35] <Pyromanik> Did you remember/forget the <fieldname>ID thing?
255: [10:39:36] <Zauberfisch> Nah, the issue is actually that the file is not sent what so ever
256: [10:39:45] <Zauberfisch> the ajax request just doesn't contain the file
257: [10:39:51] <Zauberfisch> in other words, the javascript is broken
258: [10:40:04] <Pyromanik> oh
259: [10:40:08] <Zauberfisch> question is: is that because Is subclassed FileField
260: [10:40:24] <Zauberfisch> or did someone change the js handling without testing FileField
261: [10:40:57] <Pyromanik> probably the latter, because about everything is linked to UploadField these days, not FileField
262: [10:41:23] * Azure quit (Ping timeout: 250 seconds)
263: [10:42:54] <Zauberfisch> yeah, I fear that to be the case aswell
264: [10:43:30] <Zauberfisch> but I can't find anything in git that would cause this bug to appear in the past few months
265: [10:43:49] <Pyromanik> Maybe it's been there since 3.early
266: [10:44:16] <Pyromanik> I seem to recall filefield being... seldom used. Never seen it used in the CMS over Uploadfield before.
267: [10:44:29] <Pyromanik> or maybe I tried once and gave up. I don't recall, long time ago.
268: [10:45:57] <Zauberfisch> well, I could have sworn that this stuff already worked a few months back
269: [10:46:01] <Zauberfisch> actually
270: [10:46:07] <Zauberfisch> I guess I can try that
271: [10:46:10] <Zauberfisch> and roll back
272: [10:47:26] * Azure has joined #silverstripe
273: [10:48:20] <Zauberfisch> Pyromanik: reason why I am using FileField is because it's easier in my usecase
274: [10:48:23] <Zauberfisch> and more suitablw
275: [10:48:26] <Zauberfisch> suitable*
276: [10:48:43] <Zauberfisch> the file is not acutally being saved. I made a custom csv importer
277: [10:48:57] <Pyromanik> Yeah, like I say... I seem to recall some kind of similar experience ages ago, but that's 3+ years, before I left NZ
278: [10:49:10] <Pyromanik> I can't even remember if it really happened :<
279: [10:49:13] <Zauberfisch> basically I have subclased FileField and have overwritten the method that saves the file. and instead of saving it to assets I parse it and create database records
280: [10:49:17] <ss23> anyone know ruby and wanna help me?
281: [10:49:27] <ss23> :(
282: [10:49:30] <Zauberfisch> ss23: no and no :P
283: [10:49:33] <Pyromanik> Zauberfisch, so... if you use standard filefield, does it work?
284: [10:49:38] * Tron quit (Ping timeout: 250 seconds)
285: [10:49:40] <Zauberfisch> Pyromanik: no
286: [10:49:41] <Pyromanik> maybe the JS is stupid and binds to classname or something
287: [10:49:45] <ss23> you know I'm desperate when I'm asking about ruby in here
288: [10:49:48] <Pyromanik> oic, bl
289: [10:49:48] <Zauberfisch> ss23: nah, I know a little bit
290: [10:49:52] <Pyromanik> ss23, fuck japanese python.
291: [10:49:55] <Zauberfisch> ss23: what's up?
292: [10:49:56] <Pyromanik> just use real python.
293: [10:49:56] <ss23> lol
294: [10:49:58] <Zauberfisch> Pyromanik: hahaha
295: [10:50:04] <ss23> Zauberfisch: IT's not SS related, wanna take to PM or here?
296: [10:50:18] <Zauberfisch> ss23: here until I am sure I can help
297: [10:50:26] <Zauberfisch> highly likely that I won't
298: [10:50:38] <Pyromanik> try #rubyfofoos
299: [10:50:40] <Zauberfisch> unless you prefer PM
300: [10:50:50] <ss23> Zauberfisch: https://github.com/wpscanteam/wpscan this project can do wordpress plugin enumeration, but it has a bug where if the wordpress site redirects to a "please log in" page for a given plugin URL, it defaults to "okay that exists", instead of "that doesn't exist"
301: [10:51:01] <Zauberfisch> Pyromanik: assumed the same thing at first. but I didn't find any js for it
302: [10:51:13] <ss23> Zauberfisch: The code looks simple and readable in theory, but I wanna just add an edge case detection for "if it's a 404 *or* a 302, consider it not existing"
303: [10:51:21] <ss23> Zauberfisch: I just need someone to take a quick gander and figure out where the code actually is to add that
304: [10:51:34] <Zauberfisch> Pyromanik: my current guess is: jquery.ajax does not include <input type=file>. However the jquer.form plugin adds handling for file inputs
305: [10:51:47] <Zauberfisch> perhaps at some point someone decided we no longer use jquery.form
306: [10:51:58] <ss23> Zauberfisch: in the main ruby file, wp-scan.rb, https://github.com/wpscanteam/wpscan/blob/master/wpscan.rb#L296 indicates that it just calls aggressive_detection
307: [10:52:21] <ss23> Zauberfisch: https://github.com/wpscanteam/wpscan/blob/master/lib/common/collections/wp_items/detectable.rb#L15 which is here
308: [10:52:26] <ss23> so I think "oh yay I just add a condition here"
309: [10:52:27] <Pyromanik> ss23, ahahhahahahaha gl with that
310: [10:52:28] <ss23> but idk... where or how
311: [10:52:38] <ss23> like, I dunno which line is checking for a 404
312: [10:52:51] <ss23> if target_item.exists?(exist_options, response) this I think?
313: [10:52:51] <Pyromanik> DSL on DSL on DSL the language itself changes every 20 seconds and with every layer of gem.
314: [10:53:27] <ss23> seems so simple...
315: [10:53:38] <Pyromanik> Zauberfisch, that could be the case, because uploadfield isn't a technical type=file element, right?
316: [10:54:22] <Zauberfisch> Pyromanik: nope, UploadField doesn't use that anymore because it has it's own JS that does uploads on the fly
317: [10:54:36] <Zauberfisch> so I see how someone might think that jquery.form is no longer needed
318: [10:55:16] <Pyromanik> neglect I guess, yeh hmm
319: [10:55:27] <swaiba> hmmm
320: [10:55:44] <ss23> idk what that syntax even means... if target_item.exists?(exist_options, response)
321: [10:55:45] <swaiba> I've just installed 3.4.0 and made a basic model admin with dataobjects with summary fields...
322: [10:55:53] <swaiba> but NONE of the search filters are working....
323: [10:56:00] <swaiba> any advice?
324: [10:56:12] <Pyromanik> ss23, try changing exist_options
325: [10:56:24] <swaiba> note: I've not read the upgrade notes so if it's in there just shout at me )
326: [10:56:31] <swaiba> :)
327: [10:56:35] <Pyromanik> swaiba, set searchable_fields also
328: [10:56:50] <swaiba> oh it's doesn't go just from summary any more?
329: [10:56:51] <ss23> yeah but to *what*, Pyromanik, it's clearly not just an array of http response codes :(
330: [10:56:55] <Pyromanik> if it then works, perhaps make an issue of it.
331: [10:57:06] <swaiba> k Pyromanik thanks
332: [10:57:15] <Pyromanik> ss23, idk, isn't there a DSL for like thisthing.DEBUG
333: [10:57:16] <Pyromanik> ?
334: [10:57:23] <ss23> idk what that means
335: [10:57:27] <Pyromanik> neither
336: [10:57:28] <Pyromanik> it's ruby
337: [10:57:33] <Pyromanik> I don't know what any of it means.
338: [10:58:02] <Pyromanik> and just when you start to think you can read it, some munter applies a gem and the whole shitcan redoubles it's obfuscation efforts.
339: [10:58:52] <Zauberfisch> ss23: https://github.com/wpscanteam/wpscan/blob/442884b5c5a9526d9a55e53b497bbb1c34f39681/lib/common/models/wp_item/existable.rb#L31
340: [10:58:56] <Zauberfisch> this lookes like it
341: [10:59:05] <Zauberfisch> main calls WpPlugins.aggressive_detection
342: [10:59:17] <Zauberfisch> WpPlugins.aggressive_detection calls target_item.exists
343: [10:59:25] <Zauberfisch> target_item.exists calls target_item.exists_from_response
344: [11:01:01] <ss23> ah
345: [11:01:01] <ss23> :D
346: [11:01:05] <ss23> that was the bit I was missing
347: [11:01:06] <ss23> ty Zauberfisch ^.^
348: [11:01:16] <Zauberfisch> if response.has_valid_hash?(options[:error_404_hash], options[:homepage_hash])
349: [11:01:54] <Zauberfisch> I guess that md5s the response body and compres it to a md5 of the 404 and homepage to see if it's one of those pages
350: [11:02:17] <Zauberfisch> so like 34, 35 or 36 right there would probably be the best place to add additional checks
351: [11:02:21] <ss23> yeah. In this case I can hack in the fix I need and just create an issue for a "real" fix, but it'll probably be like "take a hash of the login page and confirm it's not that or a 404 or home page"
352: [11:02:52] <ss23> ARGH
353: [11:02:54] <ss23> my thing is a 302
354: [11:02:57] <ss23> IF it's a 302 it should be false
355: [11:02:59] <ss23> BUT IT'S TRUE
356: [11:03:00] <ss23> asdflknasdflknasldfknasdf
357: [11:03:19] <Zauberfisch> it's true?
358: [11:03:21] <Zauberfisch> wait
359: [11:03:24] <Zauberfisch> that doesn't make sense
360: [11:03:51] <ss23> It might be doing some internal magical "Do the redirect first then look at the thing"
361: [11:04:12] <ss23> fuck I hate computers so much
362: [11:04:16] <Zauberfisch> you will have to debug it I guess
363: [11:05:16] * kinglozzer has joined #silverstripe
364: [11:05:36] <swaiba> Pyromanik FYI it was stateful gridfield someone installed
365: [11:06:00] <swaiba> great module for remembering where you are when going "back" from records... but breaks search!
366: [11:08:29] <Pyromanik> ah, pagination.
367: [11:08:41] <Pyromanik> everyone's favourite thing to hate that they can't live without
368: [11:15:13] <ss-helper> SilverStripe remove FieldGroup - http://stackoverflow.com/questions/38350059/silverstripe-remove-fieldgroup
369: [11:18:37] <Pyromanik> Ha! It's Harrison Ford's birthday apparently
370: [11:18:51] <Pyromanik> And Patrick Stewart too.
371: [11:32:25] * micmania1 quit (Quit: micmania1)
372: [11:45:14] <ss-helper> Silverstripe 3.1 wont change to dev env - http://stackoverflow.com/questions/38182206/silverstripe-3-1-wont-change-to-dev-env
373: [11:46:00] * slievr quit (Quit: Leaving.)
374: [11:55:14] * slievr has joined #silverstripe
375: [12:00:06] * Pyromanik quit (Quit: Leaving)
376: [12:00:14] <ss-helper> SilverStripe remove FieldGroup - http://stackoverflow.com/questions/38350059/silverstripe-remove-fieldgroup
377: [12:13:08] * ryanpotternz has joined #silverstripe
378: [12:13:27] * ryanpotternz has left #silverstripe
379: [12:15:18] * UndefinedOffset has joined #silverstripe
380: [12:52:04] * muskie9 has joined #silverstripe
381: [12:53:24] <wmk> hmm, somehow my tests don't seem to start sqlite, although $databaseConfig tells silverstripe to use sqlite...
382: [12:57:42] <wmk> it's connected... but tests last as long as with mysql
383: [13:04:18] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
384: [13:05:33] * muskie9 has joined #silverstripe
385: [13:24:34] * Azure quit (Ping timeout: 240 seconds)
386: [13:30:26] <slievr> does silverstripe have anything built in to return a dataobjects fields (including file fields) with the values in them. Currently doing $object->scaffoldFormFields(array('ajaxSafe' => true))->setValues($object->toMap());
387: [13:43:19] * Azure has joined #silverstripe
388: [13:50:56] * TombL quit (Ping timeout: 272 seconds)
389: [13:56:34] * wmk quit (Ping timeout: 240 seconds)
390: [13:58:42] * brasileric has joined #silverstripe
391: [14:00:07] <brasileric> hi. Any idea how I can set the locale in a controller (extends Controller) ? I call this controller by a cron and want to use the translatable labels
392: [14:01:00] <muskie9> brasileric if you have translatable installed you could try Translatable::set_default_locale(<locale>); // e.g. 'de_DE' or 'fr_FR'
393: [14:01:14] <muskie9> actually: Translatable::set_current_locale('de_DE');
394: [14:01:24] <muskie9> set_current_locale is probably the one
395: [14:05:21] <brasileric> muskie9: thanks, but that doesn't work :(
396: [14:45:17] <ss-helper> How to set locale in controller - http://stackoverflow.com/questions/38354550/how-to-set-locale-in-controller
397: [15:15:17] <ss-helper> Create custom field inside OptionsetField in Silverstripe CMS 3.1 - http://stackoverflow.com/questions/38355316/create-custom-field-inside-optionsetfield-in-silverstripe-cms-3-1
398: [15:28:35] * arnhoe quit ()
399: [15:41:32] * UndefinedOffset quit (Quit: Leaving.)
400: [15:47:48] * UndefinedOffset has joined #silverstripe
401: [15:55:59] * brasileric quit (Remote host closed the connection)
402: [16:16:15] * krofek__ quit (Ping timeout: 276 seconds)
403: [16:33:12] * slievr quit (Quit: Leaving.)
404: [16:38:40] * kinglozzer quit ()
405: [16:40:52] * swaiba quit (Remote host closed the connection)
406: [17:20:06] * agent44 quit (Quit: zzz)
407: [17:22:33] * TombL has joined #silverstripe
408: [17:28:27] * slievr has joined #silverstripe
409: [17:34:48] * DimiStripe quit (Quit: DimiStripe)
410: [17:58:08] * slievr quit (Quit: Leaving.)
411: [18:21:39] * slievr has joined #silverstripe
412: [18:40:02] <muskie9> anyone ever used subsites in a way like: http://mysite.com, http://mysite.com/sub1 and http://mysite.com/sub2
413: [19:22:33] * Phlunk3 quit (Remote host closed the connection)
414: [19:37:25] * UndefinedOffset quit (Quit: Leaving.)
415: [19:46:20] * gelignite has joined #silverstripe
416: [19:46:57] * micmania1 has joined #silverstripe
417: [19:51:05] * Stomach has joined #silverstripe
418: [19:51:34] * micmania1 quit (Ping timeout: 252 seconds)
419: [20:04:12] * UndefinedOffset has joined #silverstripe
420: [20:41:19] * UndefinedOffset quit (Quit: Leaving.)
421: [20:49:35] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
422: [20:57:51] * UndefinedOffset has joined #silverstripe
423: [20:59:50] * UndefinedOffset quit (Client Quit)
424: [21:03:41] * pippy has joined #silverstripe
425: [21:14:23] * zippy has joined #silverstripe
426: [21:14:30] <zippy> Morning
427: [21:22:49] * robbiea has joined #silverstripe
428: [21:28:56] <robbiea> hey guys. QQ re: form fields and AJAX. I've got a markdown field which extends TextareaField, and it needs a snippet of javascript to instantiate the editor. I'm currently using Requirements::customScript inside the FieldHolder() method of my form field which works on a full page load, but when loading a page with ajax in the CMS it strips the script tags out - is there another method I should use instead?
429: [21:31:37] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
430: [21:35:33] <Stomach> LeftAndMain::$extra_requirements_javascript
431: [21:36:41] <Stomach> "Used mainly to work around the missing "lazy loading" functionality for getting css/javascript required after an ajax-call (e.g. loading the editform)."
432: [21:36:44] <Stomach> @robbiea ^ :)
433: [21:37:14] <robbiea> Yeah, problem being that the snippet needs to reference the ID of the specific field that is created...
434: [21:37:19] <robbiea> Stomach:
435: [21:37:53] <Stomach> why?
436: [21:37:59] <Stomach> surely you can work around that ;)
437: [21:38:05] <robbiea> I'm trying :)
438: [21:38:16] <Stomach> I can give you a hand if you !paste it
439: [21:38:20] <Stomach> !paste
440: [21:38:21] <ss-helper> Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
441: [21:38:46] <robbiea> specifically because there are some pages with more than one editor, so I'm using the FormField's ID as the identifier when instantiating the plugin with Javascript
442: [21:38:58] <robbiea> refrence: https://github.com/robbieaverill/silverstripe-markdowntextareafield 2.0 branch
443: [21:39:37] <Stomach> you can grab its ID in the javascript I imagine on an each
444: [21:39:38] <robbiea> https://github.com/robbieaverill/silverstripe-markdowntextareafield/blob/2.0/forms/MarkdownTextareaField.php#L37-L66
445: [21:39:59] <robbiea> you reckon?
446: [21:40:02] <Stomach> yeah definitely
447: [21:40:16] <Stomach> just loop through all those elements then attach it to $(this) instead
448: [21:40:59] <Stomach> $('.markdowntextareafield').each(function(markdownField) { // instantiate with markdownField.attr('ID') or something });
449: [21:41:09] <Stomach> sorry I don't write much jQuery anymore so unsure if thats right
450: [21:41:21] <robbiea> so that would be executed when the page loads right?
451: [21:41:27] <Stomach> yeah
452: [21:41:38] <Stomach> keep it in the entwine
453: [21:41:43] <Stomach> then it will run when that field matches
454: [21:41:45] <robbiea> what happens if you load the main admin page then navigate through 3 or 4 clicks to get to the page that has markdown
455: [21:41:49] <robbiea> right
456: [21:41:58] <robbiea> that's good to know
457: [21:42:02] <Stomach> so use an onmatch with entwine
458: [21:42:13] <robbiea> ok, i'll give that a go now. Thanks!
459: [21:42:45] <Stomach> like in this example: https://github.com/silverstripe/silverstripe-framework/blob/3.4/javascript/AssetUploadField.js
460: [21:43:25] <robbiea> appreciate that
461: [21:43:28] <robbiea> :)_
462: [21:43:30] * Azure quit (Quit: Oops.)
463: [21:43:42] <Stomach> gimme a yell if you have any more issues and I'll install the module and help out properly :)
464: [21:44:40] <robbiea> cheers dude :) I've passed that info on to my frontend wizard teammate so hopefully he can make it work :)
465: [21:51:48] <Stomach> good luck!
466: [21:51:51] <robbiea> haha, thanks
467: [22:05:24] * Exor has joined #silverstripe
468: [22:06:04] * robbiea quit (Remote host closed the connection)
469: [22:12:09] * Nightjar has joined #silverstripe
470: [22:13:38] * Azure has joined #silverstripe
471: [22:14:10] <Nightjar> ran composer require vendor/package
472: [22:14:21] <Nightjar> MUCH SLOW, SUCH UNHAPPY, WOW
473: [22:21:12] * DanaeNZ has joined #silverstripe
474: [22:32:28] * Nightjar quit (Ping timeout: 250 seconds)
475: [22:32:32] * muskie9 has joined #silverstripe
476: [22:33:22] * Nightjar has joined #silverstripe
477: [22:35:07] <Exor> Hi all, I'm using Silverstripe 3.3 with the MSSQL module and SQL Server 2012 database. I appear to get a malformed query (http://pastebin.com/raw/QbuUyP1n) whenever I do something like: $query = new DataQuery('BlogPost'); $query->execute();
478: [22:35:31] <Exor> I guess the problem is the N'SiteTree' which appears in the query. Anyone experience this before?
479: [22:37:44] <muskie9> Exor why not use the ORM to do the query rather than building your own data query
480: [22:40:34] <Exor> I typically do - but this error occurs when I try to add a blog post to a new blog page I've created (using a third-party module). My application code seems correct so I'm running out of ideas as to what could be causing the problem.
481: [22:41:21] <Exor> "third-party module" - maybe that was incorrect. It's the silverstripe/blog one. I've used it before successfully but only with MySQL databases.
482: [22:42:58] <muskie9> are you using the correct version of each module (MSSQL and Blog) for you SS version? at one point I ran into MSSQL issues when using master branch of the MSSQL module cause it was for a newer version of SS (possibly 4.x.x)
483: [22:50:04] * Nightjar quit (Ping timeout: 240 seconds)
484: [22:54:14] * Nightjar has joined #silverstripe
485: [22:55:26] <Nightjar> Exor, code?
486: [22:56:10] <Exor> :muskie9 According to http://addons.silverstripe.org/add-ons/silverstripe/mssql version 1.0.0 is for SS 3 but on the GitHub page there is a comment under 1.0.0 saying "Lock 1 branch to ^4"...
487: [22:56:47] <Exor> For the release branch I mean.
488: [22:58:16] <muskie9> based on the composer file for 1.0.0 it shows support >= 3.2.x (not including 4), so that tag _should_ work for 3.3...
489: [22:59:22] <muskie9> last I used the module I had "silverstripe/mssql": "0.10.x-dev" as the requirement in composer... but that was a 3.1.x site
490: [23:00:00] <muskie9> maybe try the 0.10 branch
491: [23:01:04] <Exor> @Nightjar What code would you like to see? I just pulled the module in via composer.
492: [23:01:36] <Exor> @muskie9 I'll give it a go.
493: [23:12:43] * micmania1 has joined #silverstripe
494: [23:15:25] <ss-helper> Random object per page request with SilverStripe [closed] - http://stackoverflow.com/questions/15797540/random-object-per-page-request-with-silverstripe
495: [23:19:55] <Nightjar> Exor, I mean, your code.
496: [23:20:28] <Nightjar> I'm just interested to see the usecase for DataList('ClassName')
497: [23:20:40] <Nightjar> over ClassName::get()
498: [23:22:17] <Nightjar> But yeh, that query is either missing a case or and if or the like in the select.
499: [23:26:17] * Azure quit (Read error: Connection reset by peer)
500: [23:26:57] * Azure has joined #silverstripe

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