#silverstripe IRC Log

IRC log for 28 May 2015

All timestamps are in UTC.

1: [00:00:14] * irogue_ has joined #silverstripe
2: [00:02:52] * antmas quit (Ping timeout: 246 seconds)
3: [00:05:40] <Ryan-Toast> adrexia: you’re going to hate these underscores, but I’m warming to them :P
4: [00:05:53] <adrexia> lol
5: [00:06:13] <adrexia> it doesn't really take long, eh?
6: [00:06:21] <Ryan-Toast> also, sorry DanaeNZ - you don’t really have a choice :P
7: [00:06:50] <adrexia> I hated the variablenamewithoutcamelcasedashesorunderscores thing in mahara
8: [00:06:55] <adrexia> and now it's just a thing
9: [00:07:00] <DanaeNZ> Ryan-Toast: it don’t matter to me as long as it’s consistent, lol
10: [00:07:12] <Ryan-Toast> DanaeNZ: Woah, you want consistancy?
11: [00:07:19] <DanaeNZ> adrexia: ooooh dats naaaasssty
12: [00:07:21] * antmas has joined #silverstripe
13: [00:07:28] <adrexia> can be, yes
14: [00:07:29] <DanaeNZ> Ryan-Toast: pf
15: [00:07:31] <DanaeNZ> pffff*
16: [00:07:34] <DanaeNZ> fucken osx
17: [00:07:36] <Ryan-Toast> pffffffft
18: [00:07:40] <adrexia> I do prefer easier to read variables
19: [00:07:45] <DanaeNZ> i want multiple repetitions of a character
20: [00:07:48] <DanaeNZ> and i want it now
21: [00:07:52] <DanaeNZ> noooooow*
22: [00:08:20] <Colin[pi]> mahfuz: what type of field is ProfileType?
23: [00:15:46] <mahfuz> Colin[pi] Its OptionsetField
24: [00:16:31] <mahfuz> How to loop through the $Options ? Its not getting any value
25: [00:16:34] * Stomach quit (Quit: zzz)
26: [00:16:57] * Stomach has joined #silverstripe
27: [00:28:36] <DanaeNZ> mahfuz: try putting it in a <%with $Field %> block
28: [00:29:02] <DanaeNZ> the loop i mean
29: [00:29:39] * zippy quit (Ping timeout: 256 seconds)
30: [00:30:25] <Colin[pi]> DanaeNZ mahfuz: waits does OptionsetField even have a $Options?
31: [00:31:00] <Colin[pi]> it has a $Source ?
32: [00:34:43] * antmas quit (Ping timeout: 246 seconds)
33: [00:35:26] * novaweb has joined #silverstripe
34: [00:35:37] <DanaeNZ> Colin[pi]: according to the base template it uses Options
35: [00:35:54] <DanaeNZ> I think that mahfuz is in the scope of $Fieldholder
36: [00:36:14] <Colin[pi]> yeah in the Field method it loads up an ArrayList and uses ->customise()
37: [00:36:26] <Colin[pi]> 'Options' => new ArrayList($options)
38: [00:36:48] <novaweb> Yo, who’s the current dev team manager/person responsible for hiring the senior dev position advertised?
39: [00:36:55] <novaweb> (wgtn)
40: [00:37:51] <ss-helper> Re: [silverstripe-dev] Re: SilverStripe Blog Module - Looking forward and a fresh start - https://groups.google.com/d/msg/silverstripe-dev/m-ZbT8wkhPM/nsKINnRpGMQJ
41: [00:44:46] <adrexia> novaweb CJ and Paul are the dev managers
42: [00:45:21] <adrexia> but there are a bunch of people involved in hirign I beleive
43: [00:48:01] <adrexia> http://www.silverstripe.com/about-us/team/operations/clarion-coughlan/ and http://www.silverstripe.com/about-us/team/development/paul-meyrick/
44: [00:48:17] <mahfuz> DanaeNZ I tried <% with $Field %> and flushed but didn't work
45: [00:48:23] * cloph is now known as cloph_away
46: [00:48:59] <mahfuz> DanaeNZ and Colin[pi] I copied the template code from OptionsetField.ss
47: [00:49:04] <DanaeNZ> mahfuz: chuck a $Debug outside of the $Options
48: [00:49:08] <mahfuz> and modified
49: [00:49:08] <DanaeNZ> see what it shows up
50: [00:49:33] <mahfuz> ok let me see
51: [00:49:44] * Stomach quit (Quit: zzz)
52: [00:52:47] * novaweb quit (Quit: novaweb)
53: [01:05:46] <mahfuz> DanaeNZ its giving this output OptionsetField (ProfileType: : ) =
54: [01:07:06] <DanaeNZ> *shrugs*
55: [01:12:35] * Stomach has joined #silverstripe
56: [01:14:40] * Tanger has joined #silverstripe
57: [01:17:03] * chocolatemoose has joined #silverstripe
58: [01:19:49] <DanaeNZ> mahfuz: what does your field creation look like? (ie php)
59: [01:20:54] <mahfuz> $profiletype = new OptionsetField('ProfileType', '', Dataobject::get("ProfileType")->sort(array('ProfileName' => 'ASC' ))->map("ID", "ProfileName"));
60: [01:20:55] * joelpittet quit (Remote host closed the connection)
61: [01:21:53] * joelpittet has joined #silverstripe
62: [01:22:09] * joelpittet quit (Remote host closed the connection)
63: [01:22:43] * joelpittet has joined #silverstripe
64: [01:25:47] <DanaeNZ> oh
65: [01:26:19] <DanaeNZ> oh wait no that looks right
66: [01:26:31] <DanaeNZ> i guess just extract that ::get() and see what it is returning
67: [01:26:53] <mahfuz> DanaeNZ if I use $Field or $FieldHolder it gives output
68: [01:27:51] <mahfuz> but if I wanted to use that loop it doesn't show anything except for a radio button no label or not all the radio buttons
69: [01:28:03] <mahfuz> The loop is not getting the data
70: [01:28:07] * Sticks has joined #silverstripe
71: [01:28:40] <DanaeNZ> what about looping $Field.Options
72: [01:28:50] <DanaeNZ> still sounds like you’re in the wrong scope
73: [01:29:43] <mahfuz> Yeah I also tried that. Any way DanaeNZ thanks a lot for your input and time. I am trying to do it some other way.
74: [01:30:21] <DanaeNZ> mahfuz: you should just copy the ss template and paste it into your themes/forms folder tbh
75: [01:30:47] <DanaeNZ> ss will intuitively find the templates of the same name and use your custom ones over the default ss ones
76: [01:44:34] * antmas has joined #silverstripe
77: [01:48:40] * cloph_away quit (Ping timeout: 252 seconds)
78: [01:49:12] * cloph_away has joined #silverstripe
79: [01:50:17] <DanaeNZ> https://github.com/silverstripe/silverstripe-cms/issues/773
80: [01:50:19] <DanaeNZ> guuuhhhh
81: [01:50:51] * micmania1 quit (Quit: micmania1)
82: [01:56:19] * zippy has joined #silverstripe
83: [01:56:23] <zippy> antmas: !
84: [01:56:37] <zippy> antmas: http://www.tasman.govt.nz/tasman/settlements/motueka/motueka-photos/ images are broken, and when I click I want larger it wants me to login
85: [01:57:01] <antmas> zippy: ffs
86: [01:57:03] <antmas> lol
87: [01:57:04] <zippy> antmas: also, when I trying login with admin / admin it says "Logging to debug log failed" :)
88: [01:57:15] <antmas> hahaha
89: [01:58:44] <antmas> I hate that AD login setup
90: [02:01:52] * tmro quit (Ping timeout: 258 seconds)
91: [02:07:58] <ss-helper> Re: [silverstripe-dev] Re: SilverStripe Blog Module - Looking forward and a fresh start - https://groups.google.com/d/msg/silverstripe-dev/m-ZbT8wkhPM/4DnBuD0wCN8J
92: [02:08:13] <Colin[pi]> isn't there a shortcut method that allows me to define a DataObject from an array of values?
93: [02:08:17] <Colin[pi]> can't seem to find it
94: [02:08:40] <zippy> Colin[pi]: don'y uo pass it in? new Foo(array());
95: [02:08:58] <Colin[pi]> zippy: to update an existing one
96: [02:09:23] <zippy> foreach(array as $f=>$v) { $obj->$f = $v; }
97: [02:09:24] <zippy> :)
98: [02:09:28] <Colin[pi]> lol :P
99: [02:10:05] <zippy> and then someone edits the form and adds in an ID field :) oh jebus
100: [02:10:26] <Colin[pi]> hehe
101: [02:10:30] * Stomach quit (Quit: zzz)
102: [02:12:00] <chocolatemoose> is it possible to use a gridfield without using dataobjects / a datalist, can you just define the structure using an array or json string for example?
103: [02:12:44] * novaweb has joined #silverstripe
104: [02:13:03] * Stomach has joined #silverstripe
105: [02:14:50] <MichalKleiner> hey guys, is it possible to completely turn off every JS loaded by the framework/cms and only keep loading what the theme provides? some form JS/CSS is interfering with our front-end stuff and we'd like to turn those off. But my colleague says that he managed to turn it off but it got turned off for the admin interface as well..
106: [02:15:58] <MichalKleiner> would Requirements::clear() work?
107: [02:16:47] <novaweb> Requirements::block?
108: [02:16:52] <Colin[pi]> MichalKleiner: either that or ::block()
109: [02:16:53] <chocolatemoose> yeah, I'd try block
110: [02:16:54] <Colin[pi]> ^
111: [02:21:26] <antmas> zippy: photos werkin?
112: [02:22:25] <zippy> MichalKleiner: jquery eh?
113: [02:22:35] <MichalKleiner> and form toggles
114: [02:22:59] <ss-helper> Re: Config - override all vs merging - https://groups.google.com/d/msg/silverstripe-dev/LRj6AhKIaMg/Tb6OPlQOtEkJ
115: [02:23:01] <MichalKleiner> but clear() doesn't seem to be working.. we can't list all the files
116: [02:23:23] <chocolatemoose> clear only works for requirements that have already been included
117: [02:23:46] * micmania1 has joined #silverstripe
118: [02:24:06] <MichalKleiner> I see.. and block works for future reqs
119: [02:24:09] <zippy> antmas: yeap ta
120: [02:24:16] <chocolatemoose> block works for both
121: [02:24:28] <MichalKleiner> but block doesn't have general option
122: [02:25:55] <MichalKleiner> cheers, will try tha
123: [02:25:58] <MichalKleiner> that
124: [02:27:15] <Tanger> Hey guys, what's your workflow like using composer and git? How do you deal with externals?
125: [02:28:19] * Kowiana has joined #silverstripe
126: [02:29:12] <Ryan-Toast> Tangers: what do you mean by externals?
127: [02:32:04] <MichalKleiner> like external workers/contractors?
128: [02:32:30] <zippy> Tanger: one one project I have I don't get server access, what is in the repo is on the server, so I have to commit the whole vendor and all the composer files for them to show up
129: [02:32:33] <Tanger> Sorry, I mean remote repositories
130: [02:32:43] <Tanger> We manage 4-5 modules in-house
131: [02:32:45] <zippy> Tanger: On another project, then vendor isn't in, and on the remote server I do a composerinstall
132: [02:33:02] <irogue_> Tanger: as long as those modules are in git repos, no problem
133: [02:33:08] <zippy> git submodules?
134: [02:33:16] <MichalKleiner> git submodules are not good
135: [02:33:18] <Tanger> They are, but I'm not a huge fan of submodules
136: [02:33:21] <Tanger> Yeah
137: [02:33:27] <MichalKleiner> not mature enough to be productively used
138: [02:33:28] <Tanger> Submodules is painful to deploy
139: [02:33:57] <Tanger> We use SVN currently because of it's externals commands
140: [02:33:59] <MichalKleiner> we either use packagist, custom satis for private repos or even ZIP file installs
141: [02:34:16] <irogue_> you can just specify the git repo url in your composer.json
142: [02:34:30] <zippy> I've had pretty good success with submodules and using springloops
143: [02:35:11] <simon_w|air> If you can run composer as part of your deploy, then you can use submodules
144: [02:36:17] <MichalKleiner> you can use svn repo as a dependency too
145: [02:36:18] <MichalKleiner> https://getcomposer.org/doc/05-repositories.md#subversion-options
146: [02:37:07] <Tanger> Nice, thanks
147: [02:37:48] <Tanger> Looking to move (potentially) from SVN to a git/composer based system
148: [02:38:29] <irogue_> Tanger: https://gist.github.com/edlinklater/c8c493e7a83a0596545d
149: [02:38:41] <irogue_> all of our dependencies are managed using composer, using this mechanism for private internal repos
150: [02:39:01] <MichalKleiner> doesn't have to be composer.. but definitely consider using git over svn
151: [02:41:32] * Shrike_Finland has joined #silverstripe
152: [02:53:30] * novaweb quit (Quit: novaweb)
153: [02:54:01] * novaweb has joined #silverstripe
154: [02:54:02] * novaweb quit (Client Quit)
155: [02:54:16] <MichalKleiner> * instead of
156: [03:09:15] * UncleCheese has joined #silverstripe
157: [03:23:13] * joelpittet quit (Remote host closed the connection)
158: [03:26:55] * antmas quit (Quit: Page closed)
159: [03:28:02] * joelpittet has joined #silverstripe
160: [03:29:39] * Stomach quit (Quit: zzz)
161: [03:31:28] * UncleChe_ has joined #silverstripe
162: [03:31:35] * UncleChe_ quit (Read error: Connection reset by peer)
163: [03:40:38] * Stomach has joined #silverstripe
164: [03:49:19] * shaunhunter quit (Ping timeout: 246 seconds)
165: [04:04:26] * LimRes has joined #silverstripe
166: [04:05:37] <LimRes> Hello SS Peeps. Can anyone tell me how to access a controller from an extension to MemberLoginForm (or any subclass for that matter) so that I can call redirect()? Used to be through Director:: but now it wants a controller.
167: [04:06:04] <LimRes> Tried $this->getOwner()->redirect('foo')
168: [04:06:10] <simon_w|air> LimRes, Controller::curr()
169: [04:06:13] <LimRes> and a million other things
170: [04:09:12] <LimRes> Beauty thanks Simon. Now any tips on how this might interact with Security::set_default_login_dest('foo'); ? It seems to be trying to access foo/foo now that I am doing a redirect
171: [04:10:04] <Colin[pi]> LimRes simon_w|air: actually $this->owner would be the form, right? and the form has a controller attribute, so you could use $this->owner->getController()
172: [04:10:26] <LimRes> I tried that
173: [04:10:48] <Colin[pi]> hmm I would think that would work *shrug*
174: [04:11:00] <LimRes> ah maybe I tried $this->owner()->redirect()
175: [04:11:07] <LimRes> without getController
176: [04:11:20] <LimRes> but Controller::curr is working
177: [04:11:40] <LimRes> Just confuzzled as to how it is concatenating urls foo/foo :P
178: [04:11:42] <Colin[pi]> ::curr() works most of the time, but 10% of the time I've found that some situation will crop up where it shits itself
179: [04:11:57] <LimRes> ok
180: [04:12:14] <LimRes> I'll watch for it and keep $this->owner->getController() in my remarks
181: [04:12:19] <Colin[pi]> but depends what you're doing and how complicated :D
182: [04:12:41] <LimRes> shud be very straightforward
183: [04:13:05] <LimRes> just trying to get custom login not to fail when I put in bad credentials THEN correct credentials
184: [04:13:14] <LimRes> it was landing on a page-not-found/LoginForm
185: [04:13:30] <LimRes> so trying to manually redirect
186: [04:14:46] <Colin[pi]> controller
187: [04:14:49] <Colin[pi]> does my head in
188: [04:14:50] <Colin[pi]> errrytime
189: [04:16:53] <LimRes> Well it's fine now that I am using redirectBack...
190: [04:17:14] <LimRes> Thanks guys!!!!
191: [04:20:25] <zippy> why do desginers like 70px high form controls these days
192: [04:20:34] <zippy> enter your text here!!
193: [04:20:56] * wmk has joined #silverstripe
194: [04:21:21] <Colin[pi]> zippy: everything got be HUGE
195: [04:21:25] <Colin[pi]> for some reasonm
196: [04:21:36] <zippy> and super large heading fonts
197: [04:22:25] <Colin[pi]> zippy: yeah I dunno. lol design
198: [04:22:41] * travis-ci has joined #silverstripe
199: [04:22:42] <travis-ci> silverstripe/silverstripe-framework#4883 (3.1 - e8d652b : Damian Mooyman): The build passed.
200: [04:22:42] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/50d88edd37df...e8d652b1aabf
201: [04:22:42] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64359897
202: [04:22:42] * travis-ci has left #silverstripe
203: [04:22:46] <simon_w|air> Otherwise they can't read it on their 4k displays, running at full resolution about 30cm away from their faces?
204: [04:24:37] * Kingy[a] is now known as Kingy
205: [04:25:13] <Kingy> moin moin
206: [04:25:16] <Colin[pi]> ermahgerd it's Kingy
207: [04:25:27] <Kingy> \o/
208: [04:25:28] * Colin[pi] waves
209: [04:25:47] <Kingy> how you doing man
210: [04:26:30] <Colin[pi]> good! the usual bs
211: [04:26:36] <Colin[pi]> computers pissing me off etc.
212: [04:26:39] <Colin[pi]> and u?
213: [04:27:05] <Kingy> yeah good good, real busy with work
214: [04:27:18] <Kingy> getting ready to come back home for a couple months
215: [04:27:34] <Colin[pi]> sweet
216: [04:27:49] * LimRes quit (Ping timeout: 246 seconds)
217: [04:30:41] * Stomach quit (Quit: zzz)
218: [04:32:28] * micmania1 quit (Quit: micmania1)
219: [04:34:11] * micmania1 has joined #silverstripe
220: [04:34:17] <Colin[pi]> UncleCheese: watched your thingy, good stuff
221: [04:34:24] <UncleCheese> ?
222: [04:34:27] <Colin[pi]> lesson
223: [04:34:32] <UncleCheese> nice
224: [04:34:42] <zippy> hm, so, I have a ListBoxField with ->setMultiple(true) -- but when I submit I get an error, throw new InvalidArgumentException('No array values allowed with multiple=false');
225: [04:35:17] <zippy> UncleCheese: with the ajax issue of going to another page and clicking back and getting partial, I had to set the $.ajax cache to false
226: [04:35:30] <zippy> Ryan-Toast: did you teset that
227: [04:35:30] <Colin[pi]> UncleCheese: I do think it's ironic how the lesson shows the correct way to ajax paginate and the lessons page itself doesn't do that ;D
228: [04:35:34] <UncleCheese> with the updated code, too?
229: [04:35:35] <Ryan-Toast> zippy: hmm?
230: [04:35:50] <zippy> Ryan-Toast: you try that ajax fix I had mentioned
231: [04:35:59] <Ryan-Toast> zippy: I did not, pretty flat tack atm
232: [04:36:15] <zippy> ...
233: [04:36:18] * zippy is disappointed
234: [04:36:33] <UncleCheese> Ryan-Toast was it you i was working with on updating the JS to use different urls?
235: [04:36:42] <Ryan-Toast> UncleCheese: yarp
236: [04:36:50] <UncleCheese> yeah zippy i need to update that js
237: [04:37:02] <zippy> UncleCheese: I didn't really like doing different urls, but found setting the cache to false fixed the issue for me
238: [04:37:04] * Shrike_Finland quit (Quit: Leaving.)
239: [04:37:14] <UncleCheese> there's a fix for that issue.. basically i lied when i said that ajax should share an endpoint with non-ajax
240: [04:37:21] <Colin[pi]> :O
241: [04:37:28] <UncleCheese> it might do, but it's really not the best way to do it, i don't think
242: [04:37:55] <Ryan-Toast> zippy: actually I did try that, didn’t fix the initial popstate issue on chrome
243: [04:38:12] <Ryan-Toast> and it came with a host of other issues.
244: [04:38:40] <zippy> yea the intial popstate when you click back and nothing happens, need to do; http://logs.simon.geek.nz/index.php?date=2015-05-27#log_1654701
245: [04:39:29] <zippy> UncleCheese: you think it should cache the ajax, even throu the browser header says no-cache
246: [04:40:00] <zippy> afk 10
247: [04:53:05] * Error404NotFound has joined #silverstripe
248: [04:54:21] * Hailwood quit (Quit: Leaving)
249: [04:56:38] <MichalKleiner> guys, what would be the best way to add extra css class to a form field? addExtraClass puts it to the wrapper and the field, we need only the field. Maybe setAttribute('class', 'class-name') ?
250: [04:56:50] <MichalKleiner> some JS is tied to the class and if it's there two times it causes issues
251: [04:57:09] <UncleCheese> MichalKleiner you're going to run into trouble with that, unforunately
252: [04:57:23] <MichalKleiner> custom field template then?
253: [04:57:23] <UncleCheese> it applies the class to both elements
254: [04:57:27] <UncleCheese> aybe
255: [04:57:29] <UncleCheese> maybe
256: [04:57:41] <MichalKleiner> or amend the JS to cope with it
257: [04:58:01] <MichalKleiner> that's a valid way too, I just thought if someone knows about some elegant way
258: [05:00:09] * Error404NotFound quit (Ping timeout: 240 seconds)
259: [05:11:24] * irogue_ quit (Quit: Textual IRC Client: www.textualapp.com)
260: [05:12:21] * Error404NotFound has joined #silverstripe
261: [05:13:25] * adi_ has joined #silverstripe
262: [05:13:27] * wmk quit (Ping timeout: 265 seconds)
263: [05:13:30] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
264: [05:13:44] <adi_> plz give me complete tutorial on how to submit form with ajax
265: [05:14:38] <chocolatemoose> http://ajax-silverstripe.mmkdigital.com/#/1
266: [05:15:29] * DanaeNZ quit (Quit: DanaeNZ)
267: [05:17:09] * Audlex has joined #silverstripe
268: [05:18:44] <adi_> i need all source files for working ajax example plz
269: [05:22:55] <UncleCheese> adi_ it's trivial. you just need to attach a submit handler to your form
270: [05:23:28] <UncleCheese> there's nothing special about the way you would do that in silverstripe
271: [05:23:33] * travis-ci has joined #silverstripe
272: [05:23:34] <travis-ci> silverstripe/silverstripe-framework#4886 (3.1.13 - b21fd84 : Hamish Friedlander): The build was fixed.
273: [05:23:34] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/a978b891e13d...b21fd8480aad
274: [05:23:34] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64363276
275: [05:23:34] * travis-ci has left #silverstripe
276: [05:23:42] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
277: [05:29:46] * Ryan-Toast quit (Quit: Ryan-Toast)
278: [05:33:45] * novaweb has joined #silverstripe
279: [05:42:04] <adi_> ok.. i have two pages homepage.php and homepage.ss i am trying to submit form with ajax but its not working
280: [05:46:57] * travis-ci has joined #silverstripe
281: [05:46:58] <travis-ci> nyeholt/silverstripe-framework#1 (3.1 - e8d652b : Damian Mooyman): The build passed.
282: [05:46:59] <travis-ci> Change view : https://github.com/nyeholt/silverstripe-framework/compare/2b1e5d13cfc9...e8d652b1aabf
283: [05:46:59] <travis-ci> Build details : http://travis-ci.org/nyeholt/silverstripe-framework/builds/64365005
284: [05:46:59] * travis-ci has left #silverstripe
285: [05:47:58] * Cheddam quit (Ping timeout: 256 seconds)
286: [05:53:33] <adi_> plz help i have two pages homepage.php and homepage.ss i am trying to submit form with ajax but its not working
287: [05:54:03] * travis-ci has joined #silverstripe
288: [05:54:04] <travis-ci> nyeholt/silverstripe-framework#2 (3.1.13 - b21fd84 : Hamish Friedlander): The build passed.
289: [05:54:04] <travis-ci> Change view : https://github.com/nyeholt/silverstripe-framework/compare/79cfa2bb640c^...b21fd8480aad
290: [05:54:04] <travis-ci> Build details : http://travis-ci.org/nyeholt/silverstripe-framework/builds/64365113
291: [05:54:04] * travis-ci has left #silverstripe
292: [05:57:14] * jack_ has joined #silverstripe
293: [05:57:26] <jack_> plz help i have two pages homepage.php and homepage.ss i am trying to submit form with ajax but its not working
294: [05:57:46] * adi_ quit (Ping timeout: 246 seconds)
295: [05:58:17] * jack_ quit (Client Quit)
296: [05:58:37] * anil_ has joined #silverstripe
297: [05:58:44] <anil_> i have two pages homepage.php and homepage.ss i am trying to submit form with ajax but its not working
298: [06:04:16] * travis-ci has joined #silverstripe
299: [06:04:17] <travis-ci> nyeholt/silverstripe-framework#3 (fix_hostname-whitelist - 9c8fa51 : Marcus Nyeholt): The build has errored.
300: [06:04:17] <travis-ci> Change view : https://github.com/nyeholt/silverstripe-framework/commit/9c8fa5132137
301: [06:04:17] <travis-ci> Build details : http://travis-ci.org/nyeholt/silverstripe-framework/builds/64366950
302: [06:04:17] * travis-ci has left #silverstripe
303: [06:07:59] * novaweb quit (Quit: novaweb)
304: [06:14:45] * Sticks quit (Ping timeout: 256 seconds)
305: [06:18:55] * chocolatemoose quit (Remote host closed the connection)
306: [06:25:33] <anil_> i have two pages homepage.php and homepage.ss i am trying to submit form with ajax but its not working
307: [06:26:46] <simon_w|air> Kingy, less CS:GO, more work!
308: [06:27:22] <simon_w|air> anil_, not working in what way?
309: [06:28:04] <anil_> when i click on submit button template is rendered
310: [06:28:18] <anil_> that is only form is shown
311: [06:28:30] <anil_> how can i send you the code files
312: [06:32:40] * joelpittet quit ()
313: [06:32:47] * Colin[pi] quit (Ping timeout: 265 seconds)
314: [06:35:21] * micmania1 quit (Quit: micmania1)
315: [06:37:00] * Eliseth has joined #silverstripe
316: [06:38:25] * ss-helper quit (Remote host closed the connection)
317: [06:38:38] * ss-helper has joined #silverstripe
318: [06:39:26] * travis-ci has joined #silverstripe
319: [06:39:27] <travis-ci> silverstripe/silverstripe-framework#4889 (3.1.13 - f55eb5e : Damian Mooyman): The build passed.
320: [06:39:27] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/b21fd8480aad...f55eb5e2cfc8
321: [06:39:27] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64367647
322: [06:39:27] * travis-ci has left #silverstripe
323: [06:44:08] * spronk quit (Quit: I may need a longer sleep timer...)
324: [06:51:50] <nontgor> is there anyway to make allowed_children configurable? Just tried it and it errored on building the config manifest
325: [06:53:24] * travis-ci has joined #silverstripe
326: [06:53:25] <travis-ci> silverstripe/silverstripe-cms#1222 (3.0.14 - 581cd31 : Hamish Friedlander): The build passed.
327: [06:53:25] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.0.14
328: [06:53:25] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/64369667
329: [06:53:25] * travis-ci has left #silverstripe
330: [06:54:03] * _SjG_ quit (Read error: Connection reset by peer)
331: [06:59:01] * travis-ci has joined #silverstripe
332: [06:59:02] <travis-ci> silverstripe/silverstripe-framework#4890 (3.0.14 - c14e7f6 : Damian Mooyman): The build passed.
333: [06:59:02] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/5f6ac27934f4^...c14e7f6b764a
334: [06:59:02] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64369701
335: [06:59:02] * travis-ci has left #silverstripe
336: [07:05:14] <nontgor> My scenario regarding allowed children is this. I have a class called PageWithImage (a page with an image), contained in PageWithImageFolder
337: [07:06:01] <nontgor> I would like to add pages from third party modules also, but I cant as they do not extend PageWithImage. I can add an image via an extension, but can the allowed_children check be altered to check for an extension also?
338: [07:06:46] * arnhoe has joined #silverstripe
339: [07:08:14] * Sticks has joined #silverstripe
340: [07:10:30] * wmk has joined #silverstripe
341: [07:14:04] * mahfuz quit (Ping timeout: 246 seconds)
342: [07:16:19] * novaweb has joined #silverstripe
343: [07:19:09] * novaweb quit (Client Quit)
344: [07:24:15] * adrexia_ has joined #silverstripe
345: [07:24:32] * jarr0dsz has joined #silverstripe
346: [07:32:57] <nontgor> added my issue as an issue on github https://github.com/silverstripe/silverstripe-cms/issues/1208
347: [07:33:14] <nontgor> mmmm, maybe it could be done through non YAML config
348: [07:33:37] <TombL> Hi, does anyone have an idea why using "Remember me" on the loginform would lead to "Fatal error: Call to a member function addslashes() on a non-object in C:\wamp2.4\www\order.torpfrys.fi\framework\core\Convert.php on line 122" ? It seems that DB::getConn() returns null.
349: [07:34:36] * Error404NotFound quit (Ping timeout: 258 seconds)
350: [07:36:36] <nontgor> TombL: Has it suddenly just broken or has it always not worked?
351: [07:36:55] <swaiba> TombL - nope but I'm aware of the constant discussion on how it doesn't work (without making an err)
352: [07:37:31] <TombL> okay, it is ironic how I just now, after asking here, may have found why it broke.
353: [07:37:49] <TombL> seems to be some issue with a dataextension that I have added
354: [07:37:59] * travis-ci has joined #silverstripe
355: [07:38:00] <travis-ci> silverstripe/silverstripe-framework#4892 (3.1.13 - 04b803d : Damian Mooyman): The build passed.
356: [07:38:00] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/3.1.13
357: [07:38:00] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64370807
358: [07:38:00] * travis-ci has left #silverstripe
359: [07:38:53] * Colin[pi] has joined #silverstripe
360: [07:42:13] * Error404NotFound has joined #silverstripe
361: [07:48:10] * Sticks quit (Quit: Leaving)
362: [07:53:31] <ss-helper> SIlverStripe Security Release 3.0.14 / 3.1.13 - https://groups.google.com/d/msg/silverstripe-announce/FsbOYpcxGik/4t0GZiUIFlAJ
363: [07:55:48] * travis-ci has joined #silverstripe
364: [07:55:49] <travis-ci> silverstripe/silverstripe-cms#1223 (3.1.13 - 0557c0d : Damian Mooyman): The build was fixed.
365: [07:55:49] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.1.13
366: [07:55:49] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/64370829
367: [07:55:49] * travis-ci has left #silverstripe
368: [07:58:22] * travis-ci has joined #silverstripe
369: [07:58:24] <travis-ci> silverstripe/silverstripe-framework#4893 (3.1.13 - 04b803d : Damian Mooyman): The build passed.
370: [07:58:24] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/79cfa2bb640c^...04b803dfc6dc
371: [07:58:24] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64371583
372: [07:58:24] * travis-ci has left #silverstripe
373: [08:07:10] * Kingy is now known as Kingy[a]
374: [08:07:48] * kinglozzer has joined #silverstripe
375: [08:10:41] * zippy has joined #silverstripe
376: [08:12:29] * travis-ci has joined #silverstripe
377: [08:12:30] <travis-ci> silverstripe/silverstripe-framework#4894 (3.1 - 50e33b8 : Damian Mooyman): The build passed.
378: [08:12:30] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/e8d652b1aabf...50e33b8e5ef9
379: [08:12:30] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64371684
380: [08:12:30] * travis-ci has left #silverstripe
381: [08:14:35] * Py3120k has joined #silverstripe
382: [08:14:53] <Py3120k> Morena
383: [08:16:52] <Py3120k> ooh, security release
384: [08:16:54] <Py3120k> :>
385: [08:17:55] <kinglozzer> Morning Py3120k
386: [08:18:05] <Py3120k> 'lo kinglozzer
387: [08:18:28] <kinglozzer> Can we all chuckle at http://www.silverstripe.org/software/download/security-releases/ss-2015-014 now? :P
388: [08:19:23] <zippy> :)
389: [08:19:40] <zippy> why not just allow flush if in dev mode, command line, or if your ip is in a white list
390: [08:21:34] <zippy> kinglozzer: https://github.com/silverstripe/silverstripe-framework/commit/9c8fa5132137ef050dcbd12a5b5e7634cfab51fa thats a bit too much logic for the Constants file isn't it?
391: [08:21:48] <kinglozzer> zippy: Yeah I was just looking at that...
392: [08:22:01] <kinglozzer> Do we need an isset($_SERVER['HTTP_HOST']) too?
393: [08:22:10] <kinglozzer> Dunno if that's guaranteed to be in there
394: [08:22:12] <zippy> mmm for the command line, I think so
395: [08:22:27] <zippy> typically I just use .htaccess to redirect people
396: [08:22:28] * travis-ci has joined #silverstripe
397: [08:22:28] <travis-ci> silverstripe/silverstripe-framework#4895 (3.0.14 - 01255c1 : Damian Mooyman): The build passed.
398: [08:22:29] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/c14e7f6b764a...01255c109bf6
399: [08:22:29] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64372640
400: [08:22:29] * travis-ci has left #silverstripe
401: [08:22:47] <kinglozzer> I was gonna complain about semver too, but I think it's possibly because it's part of the X-Forwarded-Host fix that it was added there
402: [08:23:24] <kinglozzer> zippy: Yeah we use .htaccess too
403: [08:23:33] <zippy> less code = better...
404: [08:23:40] <zippy> less bugs, like that flush thing
405: [08:23:50] <zippy> anyway ,that x-forwarded-host looks intersting as well
406: [08:24:33] <Py3120k> zippy: kinglozzer there used to be an IP whitelist.
407: [08:24:38] <kinglozzer> Yeah, it's pretty unlikely to affect most people
408: [08:24:40] <Py3120k> back in 2.2 and maybe 2.3
409: [08:24:51] <zippy> wasn't that dev server ip or sometihng
410: [08:25:14] <kinglozzer> You need an HTTP cache that caches headers, and even then there's only a tiny chance of actually getting your malicious header saved in the cache
411: [08:25:18] <kinglozzer> But still, needed fixing
412: [08:25:28] <Py3120k> zippy: mebbe.
413: [08:25:28] <kinglozzer> Or at least, people needed notifying :P
414: [08:25:38] <Py3120k> can't remember, it was yonks ago and I never actually used it
415: [08:25:48] <Py3120k> default was localhost though
416: [08:26:43] <Py3120k> swaiba: spam bot incoming! http://www.silverstripe.org/community/forums/forum-module-forum/show/102431
417: [08:27:00] <zippy> yea I think lol
418: [08:27:11] <swaiba> Py3120k - roger that - blaster at the ready
419: [08:27:15] <zippy> Py3120k: mm I think it was like, run in dev mode if on server
420: [08:27:20] <Py3120k> We've had that tactic before. Asked a semi relivant question, then a day later the post was edited to a billion spam links
421: [08:27:21] <zippy> ip **** whatever
422: [08:27:38] <Py3120k> swaiba: you actually called me up on it because I'd answered, haha
423: [08:27:47] * travis-ci has joined #silverstripe
424: [08:27:48] <travis-ci> silverstripe/silverstripe-framework#4896 (3.0.14 - 01255c1 : Damian Mooyman): The build passed.
425: [08:27:48] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/3.0.14
426: [08:27:48] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64372658
427: [08:27:48] * travis-ci has left #silverstripe
428: [08:27:51] <zippy> maybe should post on the google group about it
429: [08:27:59] <Py3120k> zippy: I thought it wac remote_host
430: [08:28:02] <Py3120k> but could well be wrong.
431: [08:28:16] <swaiba> Py3120k - really? looks like just a mispost
432: [08:28:19] <Py3120k> because it defaulted to 127.0.0.1
433: [08:28:32] <Py3120k> so it'd ALWAYS be in dev mode if that was the case zippy
434: [08:28:33] <Py3120k> :P
435: [08:28:38] <Py3120k> swaiba: possibly.
436: [08:28:52] <zippy> Py3120k: yea so I am proposing something different.
437: [08:29:03] <Py3120k> right
438: [08:29:10] <zippy> REMOTE_ADDR; so if MY IP was whitelisted, I could run a flush on the site, but not you
439: [08:29:23] <Py3120k> zippy: that's exactly what I'm saying! o.0
440: [08:29:33] <zippy> you said remote_host
441: [08:29:47] <zippy> .....
442: [08:33:09] <kinglozzer> zippy: We just do that in _ss_environment and change dev/test/live mode for matching IPs
443: [08:33:50] <zippy> true, the only issue it would create going full dev is things being cached possible
444: [08:33:53] <zippy> *possibly
445: [08:34:22] <zippy> like, when a production site goes live you wouldn't really want to change to dev (on large sites) as you might get pages cached which shouldn't. That an edge case possiblity?
446: [08:34:26] * jarr0dsz quit (Quit: My Mac has gone to sleep. ZZZzzz…)
447: [08:34:44] <kinglozzer> Depends on the caching mechanism, but yeah that's possible
448: [08:35:31] <zippy> so perhaps an ALLOWS_FLUSH_IPS would suffice
449: [08:35:40] <zippy> then you wouldn't need a token, or do a redirect or anything
450: [08:36:03] * travis-ci has joined #silverstripe
451: [08:36:04] <travis-ci> silverstripe/silverstripe-cms#1224 (3.0.14 - 581cd31 : Hamish Friedlander): The build passed.
452: [08:36:04] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.0.14
453: [08:36:04] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/64372677
454: [08:36:04] * travis-ci has left #silverstripe
455: [08:37:33] <Py3120k> zippy: confusion, whatever
456: [08:38:18] <kinglozzer> Right, well.. I've got 97 SilverStripe sites to upgrade today
457: [08:38:25] * kinglozzer needs automation
458: [08:38:26] <zippy> O.o
459: [08:40:04] <zippy> separation of sites; do you guys run the sites under separate users?
460: [08:43:18] <kinglozzer> zippy: As in, separate apache users?
461: [08:43:26] <zippy> well, system users yea
462: [08:43:37] <zippy> so they are all not www-data or whatever.
463: [08:43:52] <kinglozzer> Nope, they're all the same on ours
464: [08:44:26] <Tanger> zippy: Virtual Hosts?
465: [08:44:28] <zippy> In the past I have used http://mpm-itk.sesse.net/ which is quite good, but that was 5-6 years ago...
466: [08:44:31] <zippy> Tanger: yea
467: [08:44:37] <Tanger> Yeah, we do
468: [08:44:45] <zippy> to prevent user A from creating a file and reading user B's file
469: [08:45:15] * travis-ci has joined #silverstripe
470: [08:45:15] <travis-ci> silverstripe/silverstripe-framework#4897 (3.0 - 01255c1 : Damian Mooyman): The build passed.
471: [08:45:16] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/94b2963ad853...01255c109bf6
472: [08:45:16] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64372820
473: [08:45:16] * travis-ci has left #silverstripe
474: [08:45:19] <zippy> Tanger: ITK or Tanger php fpm?
475: [08:45:42] <zippy> kinglozzer: a lot of code gets pushed around for a release eh
476: [08:46:26] <Tanger> php-fpm
477: [08:46:50] <Tanger> Installed on DirectAdmin, which we use to manage our virtualhosts
478: [08:48:39] <zippy> Tanger: with php-fpm do you notice it wastes resoruces, because doesn't it create a pool of workers for each virtual host?
479: [08:48:40] <kinglozzer> zippy: Yup! Plus I think Travis is acting up a bit atm
480: [08:48:48] <kinglozzer> Seems to take hours for builds lately
481: [08:49:00] <zippy> so if you have say, 100 sites, you could have 100 idle workers if they all each have set a min of 1
482: [08:49:05] <zippy> or doesn't it work like that
483: [08:49:13] * r_hector has joined #silverstripe
484: [08:50:17] * novaweb has joined #silverstripe
485: [08:52:54] <Tanger> zippy: Yeah, I believe it results in the case that you have multiple idle workers wasting time. I don't think it's super common case though
486: [08:53:34] <zippy> I wonder what happens if you set max idle workers to 0 :)
487: [08:53:53] <zippy> and when does it kill a worker off (idle straight away, or idle after 30 seconds)
488: [08:54:11] <zippy> in which case a new connection might have a 100ms delay (or something) as it creates a new process...
489: [08:54:16] <zippy> hmm
490: [08:54:56] * novaweb quit (Client Quit)
491: [08:55:19] <zippy> could use ondemand... but there not sure if you can cap it
492: [08:55:24] <Tanger> Haha, yeah, I reckon you'd get slowed by the overhead of assembling/dissassembling workers
493: [08:56:57] <zippy> mmm not so sure
494: [08:56:59] <zippy> Tanger: https://ma.ttias.be/a-better-way-to-run-php-fpm/
495: [08:57:24] <zippy> for low traffic sites... might be worth it
496: [08:59:35] * g4b0_ has joined #silverstripe
497: [09:00:26] <Tanger> Hmmm, yeah. I wonder how big the traffic needs to be before a dynamic setup would be more efficient
498: [09:00:46] <g4b0_> hi all
499: [09:01:25] <Tanger> Oooh, didn't know that all pools share the same APC cache
500: [09:01:29] <Tanger> Hi g4b0_
501: [09:02:13] <g4b0_> is there any counter-indication in setting create_table_options to myisam for every DO?
502: [09:02:29] <g4b0_> why does SS switched from MyIsam to innodb?
503: [09:06:40] <Tanger> What's the benefit of setting create_table_options on DO's?
504: [09:07:28] <g4b0_> the benefit is that at the next /dev/build my tables will be MyIsam instead of InnoDB
505: [09:07:54] <g4b0_> I'm having some performace issue
506: [09:10:40] <Tanger> Back up your DB and give it a shot I say :D
507: [09:10:45] <Tanger> Go balls deep
508: [09:11:09] <g4b0_> I don't know if SS use transactions in core...
509: [09:11:29] * Tanger quit (Quit: sleep())
510: [09:25:02] <g4b0_> Fatal error: Cannot access private property DataObject::$create_table_options
511: [09:25:04] <g4b0_> mmm
512: [09:25:18] <g4b0_> how can I change it through YAML?
513: [09:28:28] <kinglozzer> Only another 70 sites left to upgrade :|
514: [09:30:10] <kinglozzer> g4b0_: If you're trying to set it in PHP, Conig::inst()->update('DataObject', 'create_table_options', array('MyKey' => 'MyVal'));
515: [09:30:24] <kinglozzer> YAML should just be like any other setting
516: [09:30:37] <kinglozzer> DataObject: create_table_options: MyKey: MyVal
517: [09:30:38] <kinglozzer> etc
518: [09:33:03] * bemusedrat has joined #silverstripe
519: [09:35:41] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
520: [09:48:24] <g4b0_> thanks a lot kinglozzer
521: [10:21:19] * Py3120k quit (Ping timeout: 246 seconds)
522: [10:32:52] * anil_ quit (Ping timeout: 246 seconds)
523: [10:33:19] * oetiker has joined #silverstripe
524: [10:36:35] * g4b0_ quit (Ping timeout: 272 seconds)
525: [10:57:38] * Stomach has joined #silverstripe
526: [11:08:20] * Py115k has joined #silverstripe
527: [11:09:29] <Py115k> Well that's nice. Just finished a day and a half worth of work.
528: [11:09:40] <Py115k> for a ticket, adding a single column to a report.
529: [11:10:00] <Py115k> GG, cost/benefit awareness++
530: [11:10:17] <Py115k> users gonna luser
531: [11:10:21] <Py115k> clients gonna client.
532: [11:10:27] <Py115k> etc gonna etc.
533: [11:10:54] <Py115k> <X plural> gonna <X singular>
534: [11:13:46] * Stomach quit (Quit: zzz)
535: [11:22:02] * ss-helper quit (Ping timeout: 272 seconds)
536: [11:28:16] * adrexia_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
537: [11:29:10] * bemusedrat quit (Quit: Leaving)
538: [11:32:59] <kinglozzer> Py115k: I like how "client" and "user" have become verbs
539: [11:33:14] <kinglozzer> "He cliented all over the project" etc
540: [11:33:31] <kinglozzer> "He's gonna client it to pieces"
541: [11:33:34] <kinglozzer> Many uses :P
542: [11:34:07] * Py115k quit (Ping timeout: 246 seconds)
543: [11:34:30] <swaiba> Py115k a taylor swift fan?
544: [11:40:18] * ss-helper has joined #silverstripe
545: [11:50:32] * ss23 cries
546: [11:50:50] <ss23> after making fun of micmania doing a release last night, I have to do one tonight :(
547: [12:04:42] * novaweb has joined #silverstripe
548: [12:09:41] * novaweb quit (Ping timeout: 272 seconds)
549: [12:16:38] * UndefinedOffset has joined #silverstripe
550: [12:25:42] * g4b0_ has joined #silverstripe
551: [12:46:04] * travis-ci has joined #silverstripe
552: [12:46:05] <travis-ci> silverstripe/silverstripe-framework#4898 (docs-fix-caption-field-name - 06730bc : Myles Beardsmore): The build has errored.
553: [12:46:05] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/commit/06730bc1b3d7
554: [12:46:05] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64408441
555: [12:46:05] * travis-ci has left #silverstripe
556: [13:05:49] * babak quit (Quit: Connection closed for inactivity)
557: [13:10:11] * franckysnow has joined #silverstripe
558: [13:11:10] * Colin[pi] quit (Ping timeout: 258 seconds)
559: [13:33:28] * franckysnow quit (Ping timeout: 246 seconds)
560: [13:51:05] * travis-ci has joined #silverstripe
561: [13:51:06] <travis-ci> silverstripe/silverstripe-framework#4900 (3.1 - e930bcf : Will Morgan): The build passed.
562: [13:51:07] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/50e33b8e5ef9...e930bcf7b959
563: [13:51:07] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64409344
564: [13:51:07] * travis-ci has left #silverstripe
565: [14:08:37] <Eliseth> I have a custom form template: themes/mytheme/templates/forms/TextFormField_holder.ss and calling it using it ->setFieldHolderTemplate('TextFormField_holder')
566: [14:08:51] <Eliseth> But it's not loaded, it's showing the default layout instead. Any thoughts?
567: [14:09:39] <Eliseth> (on a TextField obviously)
568: [14:11:32] * travis-ci has joined #silverstripe
569: [14:11:32] <travis-ci> silverstripe/silverstripe-framework#4901 (3.1 - 9324cc9 : Will Morgan): The build was broken.
570: [14:11:33] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/e930bcf7b959...9324cc916cef
571: [14:11:33] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64409587
572: [14:11:33] * travis-ci has left #silverstripe
573: [14:28:11] * Matt___ has joined #silverstripe
574: [14:32:03] <Matt___> Any pointers on how to write a custom log handler? E.g. capture the error message and level and deal with it in my own way?
575: [14:38:19] * g4b0_ quit (Quit: Sto andando via)
576: [14:40:48] <swaiba> Eliseth - only can think of flushing it
577: [14:41:01] <swaiba> Matt___ what sort of pointers?
578: [14:41:19] <swaiba> sounds like you want to make an object, with a method to take message and level..?
579: [14:53:40] <Matt___> Something like that :) (by pointers I mean more of 'hints and tips')
580: [15:17:26] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
581: [15:20:39] * r_hector quit (Remote host closed the connection)
582: [15:25:50] <swaiba> Matt___ dont' use a lot of resources - i.e. avoid making tons of logs and filling disk / db :)
583: [15:26:58] <kinglozzer> My only tip is: don't do it yourself, use this: https://github.com/camspiers/silverstripe-loggerbridge/ :P
584: [15:28:31] <Matt___> What I'm trying to achieve basically, is I have a database with a list of sites that we've developed, and just looking to see if there was a way of saving those errors in the same database . So we could look at like Site A, see all the errors and mark them as 'fixed' or whatever
585: [15:28:48] <Matt___> Basically if there's an error, send details via API
586: [15:29:10] <Matt___> but I don't know where to even start with capturing the details of a SS error in order to send them
587: [15:32:06] <swaiba> Matt___ soundslike what you really want is to implement message queues to consume the messages and then an ELK stack on the other end
588: [15:32:59] <swaiba> googled example - https://github.com/rackspace-cookbooks/elkstack
589: [15:35:20] <Matt___> Cheers - I'll have a look
590: [15:36:16] <swaiba> Matt___ - http://www.sspaste.com/paste/show/556735e580932
591: [15:36:35] <swaiba> this is an example *email* logger that uses SS_Log and adds some more info
592: [15:37:15] <Matt___> Ah ok
593: [15:37:25] <Matt___> That certaiinly helps!
594: [15:37:28] <Matt___> *certainly
595: [15:38:51] * arnhoe quit ()
596: [15:39:19] * Robke has joined #silverstripe
597: [15:39:21] <Robke> hello
598: [15:39:40] <Robke> does anyone had issues with IE9 and userdefined forms submit?
599: [15:43:27] * travis-ci has joined #silverstripe
600: [15:43:27] <travis-ci> silverstripe/silverstripe-framework#4902 (3.1 - 8a74dc3 : Loz Calver): The build passed.
601: [15:43:28] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/9324cc916cef...8a74dc3e0feb
602: [15:43:28] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64417923
603: [15:43:28] * travis-ci has left #silverstripe
604: [15:50:19] * Matt___ quit (Ping timeout: 246 seconds)
605: [15:56:17] * jcwacky has joined #silverstripe
606: [15:57:02] * jcwacky quit (Client Quit)
607: [15:57:24] * jcwacky has joined #silverstripe
608: [15:57:52] * Robke quit (Quit: Leaving)
609: [15:58:13] <jcwacky> So I’ve created an Extension for Member that adds $has_many "AlumniFolders" => "Folder”, but can’t find where this relationship is stored in the database. Can someone advise?
610: [15:59:38] <kinglozzer> jcwacky: AlumniFolders table will have a column MemberID
611: [15:59:52] <kinglozzer> (provided you've remembered to do the has_one in the other direction)
612: [16:00:36] <jcwacky> That’s the thing. I havn’t added a has_one (yet), but it’s still saving the data somewhere.
613: [16:02:43] <kinglozzer> Hmm, Folder extends File which has_one Owner => Member, maybe it's doing something weird with that existing relationship
614: [16:02:46] <jcwacky> Ah, looks like it’s using “OwnerID”! Presumably because of no has_one.
615: [16:02:47] <swaiba> Robke - I have an issue with IE*
616: [16:02:49] <kinglozzer> ^^
617: [16:02:53] <swaiba> it's rubbish
618: [16:04:09] <kinglozzer> jcwacky: It *should* be okay once you do a has_one. If it's not, you might need to use dot notation to distinguish between the two relations: http://docs.silverstripe.org/en/developer_guides/model/relations/#has-many
619: [16:04:25] <kinglozzer> (scroll to 3rd example in that section)
620: [16:04:35] <kinglozzer> It should work fine though
621: [16:09:13] * franckysnow has joined #silverstripe
622: [16:10:52] <franckysnow> Hey guys! After playing a bit with Silverstripe (and doing lesson 4 of the tutorials), I received a "[Warning] SQLite3Result::finalize(): The SQLite3Result object has not been correctly initialised" when loading the homepage of my local silverstripe installation. Any idea from where that may come from?
623: [16:11:22] <jcwacky> kinglozzer: Thanks, yep, it was good. Actually a many_many relationship.
624: [16:12:23] <jcwacky> Next challenge is to make the AlumniFolders field compatable with the Members CSV import...
625: [16:16:04] <kinglozzer> franckysnow: Do you get a stack trace with it? I assume you're using: https://github.com/silverstripe-labs/silverstripe-sqlite3/tree/1.3 ?
626: [16:23:49] * ss-helper quit (Ping timeout: 255 seconds)
627: [16:30:36] * kinglozzer home time!
628: [16:30:37] <kinglozzer> ciao
629: [16:30:37] * kinglozzer quit ()
630: [16:32:56] * stnvh quit (Quit: quit)
631: [16:34:10] * babak has joined #silverstripe
632: [16:37:46] * swaiba quit (Remote host closed the connection)
633: [16:40:23] * ss-helper has joined #silverstripe
634: [16:50:29] * joelpittet has joined #silverstripe
635: [17:25:26] * joelpittet quit ()
636: [17:39:25] * muskie9 has joined #silverstripe
637: [17:41:25] * Liquide has joined #silverstripe
638: [17:41:40] <franckysnow> kinglozzer: i was getting a stacktrace looking in apache2 error log. Was an error in a php file. However how could I troubleshoot this issue without having access to these log files (e.g. not running locally but with my hosting provider)?
639: [17:41:58] * franckysnow quit (Quit: Page closed)
640: [18:01:28] * wmk quit (Ping timeout: 265 seconds)
641: [18:01:41] * jcwacky quit (Quit: jcwacky)
642: [18:32:54] * Err404NotFound has joined #silverstripe
643: [18:32:54] * Error404NotFound quit (Disconnected by services)
644: [18:49:14] * wmk has joined #silverstripe
645: [19:01:56] * Stomach has joined #silverstripe
646: [19:06:03] <wmk> hey Stomach
647: [19:06:29] <wmk> still stuck on that nginx problem
648: [19:07:16] * Stomach quit (Quit: zzz)
649: [19:20:52] * Stomach has joined #silverstripe
650: [19:21:02] <Stomach> hey hey
651: [19:21:15] <Stomach> still gateway error in CMS wmk ?
652: [19:21:28] * novaweb has joined #silverstripe
653: [19:21:40] <wmk> nope, in modeladmin filter doesn't work
654: [19:22:01] <wmk> works on apache, doesn't work on nginx
655: [19:22:27] <wmk> though modeladmin has param and getList() is called and has the right sql
656: [19:22:37] <wmk> it just doesn't filter
657: [19:23:56] <wmk> i checked the params you showed me (buffer size), but they're ok
658: [19:35:40] <Stomach> have you tried upping them from that default?
659: [19:39:33] <wmk> hmm
660: [19:41:02] <wmk> what i wonder - where could i see an error if those values need to be increased?
661: [19:41:45] <Stomach> there should be an nginx error log
662: [19:41:50] <wmk> nothing in there
663: [19:42:05] <wmk> this error even occurs on a fresh VM
664: [19:42:05] <Stomach> is it in the apache log instead?
665: [19:43:08] <wmk> nope
666: [19:43:12] <wmk> no apache log on this machine
667: [19:43:57] <wmk> i have subsites and translatable installed, though both don't affect that modeladmin
668: [19:44:13] <wmk> (but catalogpage)
669: [19:48:04] <wmk> at least i can reproduce that behaviour locally
670: [19:48:16] <wmk> !debug
671: [19:48:16] <ss-helper> Maybe it's time to start xdebug and see whats going on... check out http://docs.silverstripe.org/en/developer_guides/debugging/ and http://xdebug.org/docs/
672: [20:01:22] * Err404NotFound quit (Quit: User guilty of hitting the Big Red X...)
673: [20:04:41] * Stomach quit (Quit: zzz)
674: [20:04:59] * joelpittet has joined #silverstripe
675: [20:36:03] * UndefinedOffset quit (Quit: Leaving.)
676: [20:37:17] * Kowiana has joined #silverstripe
677: [20:50:26] * zippy has joined #silverstripe
678: [20:54:12] * DanaeNZ has joined #silverstripe
679: [20:55:31] * ss-helper quit (Remote host closed the connection)
680: [20:55:47] * ss-helper has joined #silverstripe
681: [21:02:31] * Phlunk3 has joined #silverstripe
682: [21:06:32] <DanaeNZ> what do you guys keep in your phpunit.xml?
683: [21:06:49] <DanaeNZ> I think I need to put the flush in there somewhere
684: [21:08:19] <zippy> DanaeNZ: you like to flush on each test?
685: [21:08:30] <DanaeNZ> zippy: I thought it was required
686: [21:08:31] <zippy> unless it's been merged, it typically will flush on every request
687: [21:08:54] <DanaeNZ> zippy: ah if it does it automatically then sweet
688: [21:09:08] <zippy> I don't think it should do it auto IMHO
689: [21:09:22] <DanaeNZ> yeah I remember we wrote an extension to disable it
690: [21:09:33] <zippy> there is a patch in core to disable it
691: [21:09:34] <DanaeNZ> you can pass through flush or not flush, or just dev build
692: [21:09:41] <DanaeNZ> makes it like 200% faster
693: [21:09:47] <zippy> yeap
694: [21:09:56] <DanaeNZ> might not bother for now
695: [21:10:02] <DanaeNZ> til i get frustrated
696: [21:10:13] <zippy> it fucked me off from word go
697: [21:10:28] <zippy> i run tests all the time, make a change, test, change, test
698: [21:12:01] * Ryan-Toast has joined #silverstripe
699: [21:21:40] <wmk> !!!!
700: [21:22:42] <Ryan-Toast> ! ! ! ! !
701: [21:23:16] <wmk> i installed that buggy version of betterbuttons that causes a weird behaviour on nginx (not on apache)
702: [21:23:23] <wmk> and got reverted the same day
703: [21:23:49] <wmk> <insert bad words here>
704: [21:24:10] * micmania1 has joined #silverstripe
705: [21:25:23] <zippy> micmania1: I just saw your patch with the reflection change
706: [21:25:34] <micmania1> zippy: thoughts?
707: [21:26:35] <zippy> simon_w and I had experimented with changing the static config parser to use reflection, he had actually written a patch to do that with hack, I ported it over to work with normal php and noticed good speed improvement on flush but high memory usuage (loads in all classes)......
708: [21:26:40] <zippy> you way looks quite good, doing it as needed
709: [21:27:16] <zippy> I haven't had a good look over, but do like the idea of it
710: [21:27:20] <zippy> be good to eek out some more speed
711: [21:27:37] <zippy> (thou this doesn't do much on page load, it would speed up flush since it wouldn't check those static configs)
712: [21:28:00] <zippy> I might grab it and apply it locally and have a play
713: [21:29:40] <micmania1> When I done it I was expecting it to be slower because it doesn’t use cache but it was just the same
714: [21:29:45] <micmania1> saved quite a bit of memory though
715: [21:30:35] <zippy> does it cache to save subsequent lookups?
716: [21:30:37] * veb has joined #silverstripe
717: [21:30:46] <zippy> mind you, since the file would be in memory at that point probably a lot quicker anyway
718: [21:30:56] <micmania1> nope, 100% reflection
719: [21:31:03] <micmania1> unless you Config::inst()->update()
720: [21:31:29] <micmania1> then it saved the new value in a php cache Config::$cache or w/e
721: [21:31:52] <zippy> didn't want to save the valie to config cache after lookup/>
722: [21:32:27] <micmania1> My change saves 0.5mb on a base install on the home page. I haven’t tested but I would guess that it saves a lot more in real-world usage
723: [21:32:58] <micmania1> Just need to get rid of ClassManifest now :p
724: [21:33:15] <zippy> it's nice to remove all that regex eh! god damn
725: [21:33:27] <zippy> micmania1: I had some success swapping out to use composers autoloader
726: [21:33:34] * joelpittet quit ()
727: [21:34:11] <micmania1> zippy: have you got it online somewhere I can see? I was looking into it but ClassInfo is a bit of a mess
728: [21:34:21] <zippy> ClassInfo is cray cray
729: [21:34:22] <micmania1> It relies on the manifest too much at the moment
730: [21:35:01] <zippy> no it was a local 'I wonder if I can use composer instead'
731: [21:35:31] <micmania1> oh, yeah. I’m trying to get a few people together next hackday to try and brainstorm the whole autoloading stuff
732: [21:35:48] <zippy> my thinking was I could namespace the mysite/code/ stuff, and then take advantage of ps-4 autoloading
733: [21:35:49] <micmania1> hopefully to get rid of class manifest but begin a discussion on namespacing too
734: [21:36:05] <zippy> so you could add in a new class, and then it'd work without a flush (to build the manifest)
735: [21:36:18] <micmania1> oh, yeah I’ve seen that before with modules but it seemed ot be a lot of work to get it working with cms/framework
736: [21:36:39] <zippy> I wasn't goign to worry about cms/framework since people "shouldnt" change code in there
737: [21:36:43] <zippy> just the mysite folder
738: [21:36:49] <zippy> since that is where you'r generally adding code
739: [21:37:22] <zippy> or do you mean having to then do things like \SS_Request $request etc
740: [21:37:30] <micmania1> yeah, you can just add _manifest_exclude in the src folder of your module and you should be able to use your own autoloading
741: [21:38:22] <micmania1> I can’t remember which module I seen it in
742: [21:38:50] * wmk quit (Ping timeout: 256 seconds)
743: [21:39:03] <zippy> well, wouldn't even need the add_manifest_exclude at all
744: [21:39:56] * Cheddam has joined #silverstripe
745: [21:41:13] <micmania1> hmmmm. I guess but you’d still get all your classes in ClassManifest so the memory consumption would still be high
746: [21:47:56] <MichalKleiner> moin
747: [21:49:05] * DimiStripe has joined #silverstripe
748: [21:49:10] <zippy> with a many many, I thought you could mass add an array?
749: [21:49:11] <zippy> eg
750: [21:49:22] <zippy> $foo->Students->add(array(1,2,3,4));
751: [21:49:29] <zippy> sorry, Students()
752: [21:49:44] <DanaeNZ> zippy: yeah, think it’s addMany
753: [21:50:15] <zippy> DanaeNZ: right you are!
754: [21:50:18] <DanaeNZ> mmm addMany() and you pass a datalist
755: [21:50:43] <DanaeNZ> but I’m pretty sure you can use an array of IDs too
756: [21:51:56] <zippy> yea it works thanks
757: [21:53:34] * Hailwood has joined #silverstripe
758: [21:55:54] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
759: [21:56:16] <Hailwood> Hey guys, can you do eager loading in Silverstripe? Something like SomeDataObject::get()->load('SomeBelongsToRelation'); so that later when I loop over going foreach($someDataObjects as $sdo){ echo $sdo->SomeBelongsToRelation->Title; } I'm not executing a query for every SomeDataObject?
760: [22:12:01] * micmania1 quit (Quit: micmania1)
761: [22:15:18] * DimiStripe quit (Quit: DimiStripe)
762: [22:22:00] <DanaeNZ> do we not have LessThanOrEqualTo SearchFilters ;^;
763: [22:22:38] <DanaeNZ> oh wait no there is is
764: [22:22:44] <DanaeNZ> LessThanOrEqual
765: [22:22:58] <Hailwood> No one knows about eager loading?
766: [22:23:22] * zippy quit (Ping timeout: 272 seconds)
767: [22:25:16] * zippy has joined #silverstripe
768: [22:28:24] * irogue_ has joined #silverstripe
769: [22:29:22] <simon_w|air> Hailwood, you can't
770: [22:34:47] <zippy> With the form, when the user has sent it off you can set a sessionMessage; eg $form->sessionMessage('Thanks! Your awesome!', 'good');
771: [22:35:04] <zippy> but that is always on the page when you refresh, is it possible to clear it after first seen?
772: [22:35:18] <zippy> in my form if I do $form->clearMessage() then it wont show the first time
773: [22:35:23] <zippy> seems it needs a custom flash
774: [22:36:26] <zippy> hm, I can do $clearMessage in my template after I have rendered the form... I guess that will do
775: [22:36:32] <simon_w|air> zippy, don't override forTemplate() in your Form subclass
776: [22:36:49] <zippy> I don't
777: [22:36:59] <zippy> but i am also not doing $Form or $Whaterver
778: [22:37:12] <zippy> I am looping over the form elements, need more control of the layout
779: [22:37:29] <simon_w|air> If you're not going through forTemplate(), then you don't get the builtin clearing
780: [22:38:23] <zippy> that explains it
781: [22:40:51] <zippy> simon_w|air: was talking with micmania1 earlier, gone and removed the static manifest for reflection
782: [22:51:15] <Hailwood> simon_w|air, Is there any reason in particular this isn't implemented?
783: [22:52:12] <simon_w|air> Hailwood, because it hasn't come up in SS Ltd's client work
784: [22:54:34] * micmania1 has joined #silverstripe
785: [22:54:34] <irogue_> Hailwood, because there hasn't been a pull request for it?
786: [23:09:17] * mahfuz has joined #silverstripe
787: [23:13:05] * Colin[pi] has joined #silverstripe
788: [23:14:46] <Colin[pi]> morning all o/
789: [23:15:29] <simon_w|air> Oh no, it's him!
790: [23:16:04] <Colin[pi]> I see my reputation precedes me
791: [23:16:06] <Colin[pi]> ;D
792: [23:16:15] <zippy> :)
793: [23:16:25] <Colin[pi]> hey zippy
794: [23:16:30] <zippy> hows it
795: [23:16:57] <Colin[pi]> it's Friday \o/
796: [23:18:26] <simon_w|air> Going to the theatre tonight
797: [23:18:37] <simon_w|air> Where the theatre is at a high school
798: [23:18:50] <Colin[pi]> simon_w|air: ooh la la
799: [23:18:56] <Colin[pi]> what's the show?
800: [23:19:10] <simon_w|air> Colin[pi], going to be close enough to egg your house! :p
801: [23:19:22] <simon_w|air> Romeo & Juliet
802: [23:19:34] <Colin[pi]> simon_w|air :P
803: [23:19:41] <Colin[pi]> where is it, Erindale?
804: [23:19:59] <simon_w|air> Canberra College
805: [23:20:04] <Colin[pi]> ahh
806: [23:20:08] * DimiStripe has joined #silverstripe
807: [23:26:16] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
808: [23:26:56] * UncleCheese has joined #silverstripe
809: [23:31:02] * Colin[pi] waves at UncleCheese
810: [23:31:06] <UncleCheese> hi
811: [23:31:45] * spronk has joined #silverstripe
812: [23:32:48] * irogue_ waves at spronk
813: [23:32:55] <spronk> HARO
814: [23:36:39] * Colin[pi] waves at spronk and glares at irogue_
815: [23:41:24] <ss23> racist
816: [23:41:34] <Colin[pi]> lol :P
817: [23:42:02] * willr has joined #silverstripe
818: [23:50:04] <spronk> just because i'm 1/32nd
819: [23:50:17] <spronk> no need to be Brown Jealous.

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