#silverstripe IRC Log

IRC log for 20 February 2015

All timestamps are in UTC.

1: [00:00:52] * EasyCo has joined #silverstripe
2: [00:03:43] * micmania1 has joined #silverstripe
3: [00:03:59] <ss23> Hailwood: Speak of the devil!
4: [00:06:10] * muskie9_afk is now known as muskie9
5: [00:06:24] * travis-ci has joined #silverstripe
6: [00:06:24] <Hailwood> micmania1, We were just having a chat about your packages - I'm interested in your blog package - what kind of state is it in?
7: [00:06:25] <travis-ci> tractorcow/silverstripe-cms#21 (3 - 2fdf9d7 : Damian Mooyman): The build passed.
8: [00:06:25] <travis-ci> Change view : https://github.com/tractorcow/silverstripe-cms/compare/d140fa0b5e0a^...2fdf9d732006
9: [00:06:25] <travis-ci> Build details : http://travis-ci.org/tractorcow/silverstripe-cms/builds/51450834
10: [00:06:25] * travis-ci has left #silverstripe
11: [00:07:34] <micmania1> Hailwood: 1.0.8 is stable
12: [00:07:52] <camfindlay> Hailwood: it’s actually having some work done on it at the moment too https://groups.google.com/forum/?fromgroups#!topic/silverstripe-dev/m-ZbT8wkhPM
13: [00:08:06] <muskie9> blud still have a blanks screen?
14: [00:08:35] <mahfuz> Stomach - $searchable_fields also not working, increasing the number of $searching_fields just gives more field options in the search box to type
15: [00:09:03] <blud> http://camping-marinadicasinca.com/
16: [00:09:11] <blud> that's more precise
17: [00:09:13] <blud> now
18: [00:10:08] <muskie9> looks like once of your classes might not've been uploaded
19: [00:10:18] <muskie9> namely FluentOldPageDredirectFix
20: [00:10:29] <muskie9> er FluentOldPageRedirectFix
21: [00:11:07] <Hailwood> micmania1, camfindlay I see - that's good news - So should I use 1.0.8 from micmania or use the develop branch from silverstripe/blog?
22: [00:11:18] <micmania1> 1.0.8
23: [00:11:26] <camfindlay> ^
24: [00:11:50] <camfindlay> at least until we have done a proper release over on ss/blog
25: [00:11:50] <Hailwood> Sweet - This does look very nice
26: [00:12:20] <Hailwood> Once ss officiates the takeover realistically I should just be able to update the package name and keep rolling right?
27: [00:13:10] <ss23> Poor micmania1, getting his packages taken from him :(
28: [00:14:02] <micmania1> Hailwood: there may be breaking changes but hopefully there shouldn’t be too much work to upgrade.
29: [00:14:17] <Ryan-Toast> Changelog link still doesn’t work on the blog post ><
30: [00:14:33] * Liquide quit ()
31: [00:15:16] <Hailwood> micmania1, Less work to upgrade now and upgrade again later than to build another custom management interface for the old ss blog and then update later.
32: [00:18:14] <blud> thank you muskie
33: [00:18:31] <blud> ran a dev/build
34: [00:18:39] <blud> looks fine now
35: [00:19:05] * irogue_ quit (Read error: No route to host)
36: [00:21:01] <zippy> Stomach: 40 mins
37: [00:22:29] <blud> my ftp cliend never raised an error about these file, strange
38: [00:22:32] <blud> thank you anyway
39: [00:23:05] <muskie9> blud been there, glad I could help
40: [00:23:26] <blud> 1:30AM there, time to sleep
41: [00:23:28] <blud> :)
42: [00:23:43] <blud> next make a branch for the booking system
43: [00:26:28] <mahfuz> Stomach: Could you please look at the code to see what could be done to show SuburbName may be along with the ID or alone in place of the ID which is currently showing.
44: [00:30:51] <MichalKleiner> blud hi to Marseille
45: [00:30:59] <blud> hi !
46: [00:31:15] <blud> well it's more like good night now
47: [00:32:17] <MichalKleiner> hey guys, is there any feature of your/general deployment system that you value or miss or so.. looking for some inspiration.. e.g. Capistrano does this and that but would be good to have this etc.
48: [00:32:27] <MichalKleiner> gn
49: [00:33:17] <Ryan-Toast> MichalKleiner: Someone else dealing with it.
50: [00:33:30] <MichalKleiner> yeah that's a good function to have
51: [00:33:35] <Ryan-Toast> :P
52: [00:34:37] <blud> now i've got this error : } default: return $c; } } return $c; } protected function peek() { $this->lookAhead = $this->get(); return $this->lookAhead; } } // -- Exceptions --------------------------------------------------------------- class JSMinException extends Exception {} ?> Fatal error: Class 'JSMin' not found in /home/campingmmy/www/framework/view/Requirements.php on line 1185
53: [00:34:38] <MichalKleiner> but once it's all set up it's "one click" for production or automatic for dev/uat
54: [00:34:46] <blud> in admin/pages
55: [00:34:49] <zippy> Stomach: England have won the toss and are batting first
56: [00:35:11] <zippy> MichalKleiner: Springloops & dploy.io
57: [00:35:19] <muskie9> blud sounds like another file/class missing
58: [00:35:47] <muskie9> what ftp client do you use?
59: [00:35:53] <blud> transmit
60: [00:36:09] <blud> :'(
61: [00:36:45] <Hailwood> micmania1, When listing out the blog posts am I correct in my belief I want to loop $PaginatedList ?
62: [00:37:02] <blud> very strange cause I was able to access the admin pages one time
63: [00:37:38] <muskie9> maybe flush the admin section?
64: [00:38:26] <muskie9> blud have you looked into deployment services that connect to your repos? I've been using https://www.deployhq.com and haven't had any issues
65: [00:39:02] <blud> will give it a try
66: [00:39:08] <blud> you mean admin/?flush ?
67: [00:39:20] <muskie9> I'd do /admin/pages?flush=all
68: [00:39:35] * micmania1 quit (Quit: micmania1)
69: [00:40:29] * travis-ci has joined #silverstripe
70: [00:40:30] <travis-ci> silverstripe/silverstripe-framework#4187 (speed-up-dev-build - 9aad0a0 : Stig Lindqvist): The build has errored.
71: [00:40:30] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/commit/9aad0a08161b
72: [00:40:30] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/51455394
73: [00:40:30] * travis-ci has left #silverstripe
74: [00:40:56] <Ryan-Toast> MichalKleiner: I’d like a +
75: [00:41:06] <Ryan-Toast> postScript that installs all my npm biz.
76: [00:41:12] <ss23> Anyone had a problem when upgrading from 2.4 to 3.1 where the "Export to CSV" button will display a CSS-less table instead of prompting to dl the file?
77: [00:41:47] <MichalKleiner> Ryan-Toast: codeship allows for this.. actually testing that at the moment
78: [00:42:19] <MichalKleiner> get code fetched from repo, composer install, npm install, bower install, grunt build, tar it & ship it
79: [00:42:31] <Ryan-Toast> yarp, that would be baller.
80: [00:42:54] <MichalKleiner> on the server there we have a Fabric script (can be bash too) that unpacks it and places it proper tree structure with some nice symlinks, password replacements etc
81: [00:43:09] <zippy> ss23: yes
82: [00:43:45] <zippy> there is a issue and fix on github for it
83: [00:44:00] <MichalKleiner> Ryan-Toast I guess I will have this working by COB today..
84: [00:44:10] <Ryan-Toast> MichalKleiner: Call of Beers?
85: [00:44:14] <MichalKleiner> haha
86: [00:44:28] * oddnoc quit (Quit: beer:30)
87: [00:44:28] <MichalKleiner> close of business but Friday's version could be that one
88: [00:45:23] <Ryan-Toast> I think it should be :D
89: [00:45:44] <ss23> zippy: Link? :O
90: [00:46:59] <zippy> ss23: you adding versions to topic?
91: [00:47:13] <zippy> :P
92: [00:47:14] <zippy> ss23: https://github.com/silverstripe/silverstripe-framework/issues/3855
93: [00:47:24] <zippy> Hailwood: had the issue the other week
94: [00:47:36] <Stomach> mahfuz - sure
95: [00:47:43] <Stomach> zippy - they are gonna get smaaasshed
96: [00:47:50] <zippy> NZ are?
97: [00:47:50] <Stomach> mahfuz - can you upload a screenshot of the result?
98: [00:47:56] <Stomach> zippy - no england is
99: [00:48:05] <zippy> hopefully
100: [00:48:07] <ss23> Wow zippy
101: [00:48:09] <ss23> I see, PHP version
102: [00:48:22] <zippy> maybe
103: [00:48:31] <zippy> what version you running there?
104: [00:48:36] <zippy> and os
105: [00:48:45] <Hailwood> zippy, Is that the export issue?
106: [00:48:48] <ss23> PHP 5.3.3-7+squeeze25 with Suhosin-Patch (cli) (built: Feb 2 2015 16:30:12)
107: [00:48:48] <zippy> yea
108: [00:48:53] <ss23> squeeze-lts
109: [00:48:56] <zippy> I think it is Suhosin patch
110: [00:49:06] <zippy> can you turn it off / disable it and see ss23
111: [00:49:22] <zippy> I think it's a get url length issue
112: [00:49:22] <Stomach> mahfuz - you might just need to add a "getTitle" function to the object
113: [00:49:34] <Hailwood> Same php version - PHP 5.3.3-7+squeeze19.1+webhost1 with Suhosin-Patch (cli) (built: Mar 7 2014 12:06:07)
114: [00:49:58] <ss23> Ah, zippy
115: [00:50:00] <ss23> I hate suhosin
116: [00:50:07] <ss23> But it's not easily disablably on squeeze
117: [00:50:14] <ss23> I'll try play with some options for length though
118: [00:50:23] <zippy> then.. you might need to add the code at the top of the issue
119: [00:50:28] <ss23> mm
120: [00:50:36] <ss23> Only this client has it though I think
121: [00:50:39] <ss23> Which is a bit weird
122: [00:51:00] <zippy> http://forums.kayako.com/threads/suhosin-alert-configured-get-variable-value-length-limit-exceeded-dropped.24260/
123: [00:51:09] <zippy> so... maybe just patch that code :)
124: [00:52:09] <ss23> Hmm
125: [00:52:52] <ss23> Didn't make a difference
126: [00:52:55] <ss23> the suhosin one
127: [00:53:13] <zippy> might only work in newer versions, can you do a phpinfo() to see the settings of suhosin?
128: [00:55:23] <camfindlay> superspring: as you requested yesterday https://groups.google.com/forum/?fromgroups=#!topic/silverstripe-dev/wZM23FbOb2w
129: [00:56:08] <superspring> camfindlay: ah, thanks for that... the coke zero that i requested yesterday, is that enroute too? :p
130: [00:56:38] <camfindlay> talk to procurement :P
131: [00:56:55] <superspring> lol
132: [00:56:56] <zippy> flushing on the command line is twice as fast
133: [00:57:32] <ss23> suhosin.get.max_value_length10241024
134: [00:57:36] <ss23> suhosin.get.max_value_length 1024 1024
135: [00:57:50] <ss23> I'll try 2048 but doubt it'll help
136: [00:58:05] <zippy> ss23: you restart apache, and checked the phpinfo() ?
137: [00:58:18] <ss23> No change
138: [00:58:27] <ss23> zippy: It wouldn't be 1024 if I hadn't have done that
139: [00:58:27] <ss23> :P
140: [00:58:30] <ss23> Default value is 512
141: [00:59:26] <zippy> maybe there is another setting effecting it
142: [01:00:16] <mahfuz> Stomach: here is the screenshot - http://screencast.com/t/pgtO2FHVmz
143: [01:00:35] <Stomach> yeah mahfuz add a getTitle function to the object
144: [01:00:46] <ss23> The line change that Hailwood suggested works fine
145: [01:00:48] <Stomach> and return $this->Property or whatever you want it to say instead of the id
146: [01:00:48] <mahfuz> where exactly should I call the getTitle function?
147: [01:00:59] <ss23> Hailwood: Do you know *why* it's a problem?
148: [01:02:22] * gavro quit (Remote host closed the connection)
149: [01:02:28] <Stomach> mahfuz - just put it on the suburb object
150: [01:02:41] <Hailwood> ss23, I haven't tracked it down completely as I haven't had time - but the answer above makes sense about subhosen's line limit.
151: [01:02:58] <superspring> camfindlay: relating to this, i had another system that i prototyped which may help this...
152: [01:03:13] <superspring> camfindlay: we can talk about it next time you're up here...
153: [01:03:31] <camfindlay> sure, also talk to the community… it’s them you have to convince ;)
154: [01:04:02] <superspring> camfindlay: this ideas requires money :p
155: [01:04:19] <zippy> ss23: it was like the query string wasn't getting parsed correctly. You might want to turn on suhosin log - as I think it can log anything it does, and then you might see better
156: [01:04:22] * blud quit (Ping timeout: 246 seconds)
157: [01:04:32] * travis-ci has joined #silverstripe
158: [01:04:32] <travis-ci> silverstripe/silverstripe-cms#1127 (3 - 2fdf9d7 : Damian Mooyman): The build failed.
159: [01:04:33] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/21e2bc72587c...2fdf9d732006
160: [01:04:33] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/51456022
161: [01:04:33] * travis-ci has left #silverstripe
162: [01:07:32] <zippy> 0.1% of the CMS is Ruby eh
163: [01:08:55] <Stomach> sassss
164: [01:09:48] <mahfuz> Stomach: Thank you so much :)
165: [01:09:55] <Stomach> mahfuz - no worries
166: [01:12:08] <Ryan-Toast> Stomach: saaaaaaaas?
167: [01:12:15] <Stomach> saaaaaaaaaassssssss
168: [01:12:25] <Ryan-Toast> SSSSAAAAAAAAAAAAAAAASSSSSSSSSS
169: [01:12:35] <Stomach> speaking of css
170: [01:12:43] <Stomach> does anyone know how to add classes to rows in a gridfield
171: [01:13:03] * muskie9_ has joined #silverstripe
172: [01:13:07] <Ryan-Toast> Stomach: overload the template?
173: [01:13:15] <Stomach> naaaaah
174: [01:13:20] <Stomach> the better approach
175: [01:13:33] <Ryan-Toast> Don’t think there’s a metthod for it.
176: [01:13:45] <Stomach> they are all just formfields though
177: [01:13:47] <Stomach> so why not
178: [01:13:50] <Stomach> must be some way
179: [01:13:54] * Stomach starts digging
180: [01:13:56] * Ryan-Toast shrugs
181: [01:14:03] <Colin[pi]> Stomach: would be surprised if there wasn't a method for it
182: [01:14:04] <Ryan-Toast> Let me know your findings.
183: [01:14:06] <zippy> ss23: ?
184: [01:14:20] <MichalKleiner> let all of us know your findings
185: [01:14:22] <Colin[pi]> Stomach: like addExtraClass or something?
186: [01:14:22] <Stomach> I imagine I can just get the fieldlist
187: [01:14:40] <Stomach> Colin[pi] - I wanna add a class to a row dependant on something i calculate in getList
188: [01:14:43] <Stomach> or wherever
189: [01:14:46] <Stomach> can add it whenever
190: [01:15:40] * micmania1 has joined #silverstripe
191: [01:15:42] * muskie9 quit (Ping timeout: 245 seconds)
192: [01:15:50] <Stomach> micmania1 might know
193: [01:16:01] <Stomach> "does anyone know how to add classes to rows in a gridfield"
194: [01:16:20] * joelpittet quit ()
195: [01:16:54] <Stomach> hmmm nope
196: [01:16:56] <Stomach> // TODO Allow per-row customization similar to GridFieldDataColumns
197: [01:17:06] <Stomach> damn
198: [01:17:37] <Colin[pi]> Stomach: can you override GridField_Item.ss?
199: [01:17:48] <Stomach> yeah I can do that, but I didn't really want to
200: [01:17:51] <Colin[pi]> looking there, the tr class just has: "ss-gridfield-item ss-gridfield-{$EvenOdd} $FirstLast"
201: [01:17:59] <Colin[pi]> no extra classes :(
202: [01:18:47] <Colin[pi]> wait wait wait
203: [01:18:47] <Stomach> yeah its this bit
204: [01:18:48] <Stomach> https://github.com/silverstripe/silverstripe-framework/blob/3.1/forms/gridfield/GridField.php#L339-L370
205: [01:18:55] <zippy> Stomach: :D
206: [01:18:59] <Colin[pi]> didn't TableListField have this feature in 2.4?
207: [01:19:05] <Colin[pi]> class="$HighlightClasses"
208: [01:19:09] <Colin[pi]> dafuq SS
209: [01:19:30] <Stomach> zippy :D
210: [01:19:40] <Stomach> Colin[pi] - yeah I know, right
211: [01:19:49] <zippy> was getting a tiny bit worried there
212: [01:20:00] <Colin[pi]> Stomach: that's why I'm very surprised it doesn't have it :o
213: [01:20:38] <Stomach> I wonder if I can get the fieldholder out of it and edit it somehow
214: [01:20:43] <Stomach> but its pretty tightly coupled
215: [01:22:01] <Colin[pi]> Stomach: make changes to GridField core, submit PR..?
216: [01:22:04] <Colin[pi]> ???? profit?
217: [01:22:07] <Colin[pi]> ;P
218: [01:22:08] <Stomach> lol
219: [01:25:41] <Stomach> fucking gridfield
220: [01:25:49] <zippy> wooo
221: [01:26:09] * zippy crosses fingers
222: [01:28:50] * Tanger has joined #silverstripe
223: [01:29:02] <micmania1> Stomach: you can’t add classes to rows
224: [01:29:11] <micmania1> It sucks massive.
225: [01:29:12] <Stomach> :\
226: [01:29:36] <Colin[pi]> micmania1: dafuq? kinda a regression in a way because TLF had that functionality in 2.4 :P{
227: [01:30:13] <micmania1> You can add a class to a TD. So just ‘td ~ td { //style } :p
228: [01:30:21] <Colin[pi]> mm
229: [01:31:02] <micmania1> Or you can embark on an unwinnable quest to rewrite GridField to use a template instead of creating tags ;)
230: [01:31:38] <Colin[pi]> micmania1: yeah but... I'm confused, I saw that code that Stomach referred to, but it has template code too for Items
231: [01:31:48] <Colin[pi]> so is it a bit of both?
232: [01:31:54] <zippy> !
233: [01:33:46] <micmania1> Colin[pi]: nah, its not a template. Its just FieldHolder::create_tag()
234: [01:34:36] <Colin[pi]> so what's this GridField_Item.ss ? :o
235: [01:35:51] <micmania1> Oh, that’s the stuff inside of the tr
236: [01:36:41] <micmania1> actually, nah its the stuff inside the td
237: [01:36:52] <micmania1> so an’t even add class to that :(
238: [01:37:01] <Colin[pi]> lol ffs
239: [01:37:11] <Stomach> yes exactly
240: [01:37:12] <Stomach> ffs
241: [01:39:23] <micmania1> oh, no you can
242: [01:39:25] <micmania1> :D
243: [01:39:32] <micmania1> https://github.com/silverstripe/silverstripe-framework/blob/3.1/forms/gridfield/GridField.php#L350
244: [01:39:36] <micmania1> getColumnAttributes()
245: [01:40:28] * travis-ci has joined #silverstripe
246: [01:40:29] <travis-ci> silverstripe/silverstripe-cms#1128 (master - 771baef : Damian Mooyman): The build passed.
247: [01:40:29] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/0c62270144a7...771baefdf1da
248: [01:40:29] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/51458799
249: [01:40:29] * travis-ci has left #silverstripe
250: [01:46:40] <Stomach> micmania1 - you're the bomb
251: [01:46:47] <Stomach> but does that work
252: [01:47:30] <micmania1> yeah, should do. return array_merge(parent::getColumnAttributes(), array(‘class’ => ‘myClass’));
253: [01:48:13] <Stomach> this isn't for a custom column though
254: [01:48:15] <Stomach> I wanna do the row
255: [01:48:50] <micmania1> yeah, that’s not possible :(
256: [01:48:52] <ss23> 14:04:20 < zippy> ss23: it was like the query string wasn't getting parsed correctly. You might want to turn on suhosin log - as I think it can log anything it does, and then you might see better
257: [01:48:58] * travis-ci has joined #silverstripe
258: [01:48:59] <travis-ci> silverstripe/silverstripe-framework#4188 (master - a86ed93 : Damian Mooyman): The build passed.
259: [01:48:59] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/e26d518c338a...a86ed93759b9
260: [01:48:59] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/51458812
261: [01:48:59] * travis-ci has left #silverstripe
262: [01:49:00] <ss23> Couldn't see any suhosin logs anywhere
263: [01:49:20] <zippy> ss23: yea so does it dump to the error log / php log / syslog if not set?
264: [01:49:32] <ss23> PHP error log is where it does it, and there's nothing there
265: [01:50:12] <zippy> https://suhosin.org/stories/configuration.html whats the level of reporting atm?
266: [01:50:17] <zippy> maybe go 511
267: [01:58:33] * Hailwood quit (Remote host closed the connection)
268: [02:03:48] <Stomach> micmania1 - guess I'll just make them all custom columns rather than display fields
269: [02:03:49] <Stomach> lol
270: [02:04:42] <zippy> Stomach: :)
271: [02:04:50] <Stomach> zippy! :D
272: [02:07:04] * novaweb has joined #silverstripe
273: [02:07:41] <camfindlay> anyone know if you can config the type of database via the yaml? Want to use SQLite instead of mysql configed by yaml if poss
274: [02:08:25] * wroof quit (Ping timeout: 246 seconds)
275: [02:08:37] <zippy> camfindlay: I end up doing it in my _ss_config if I am running tests
276: [02:08:50] <zippy> _ss_enronment
277: [02:09:19] <camfindlay> in my case I’m setting up a module which needs to override the default rather than have it in an env file
278: [02:09:48] <camfindlay> building a simple wrapper for the builtin php server so you can fire up a quick dev env running on sqlite
279: [02:10:03] <camfindlay> composer require it and then fire up the script
280: [02:16:20] <ss23> zippy: ...
281: [02:16:22] <ss23> >turn on logging
282: [02:16:24] <ss23> >it works now
283: [02:16:26] <ss23> WHY EVEN
284: [02:16:29] <ss23> HOW IS THIS A THING
285: [02:16:30] <MichalKleiner> hmm, nah, sorry.. but the idea sounds nice
286: [02:16:44] <MichalKleiner> haha, good quote: Fabric is much more of a swiss army knife to Capistranos bread knife.
287: [02:16:58] <ss23> Feb 20 15:16:11 biff suhosin[8829]: ALERT - configured request variable name length limit exceeded - dropped variable 'action_gr
288: [02:17:02] <ss23> there we are
289: [02:18:13] <Ryan-Toast> Anyone not busy and want to try out an installer for me?
290: [02:19:36] <ss23> oh wait
291: [02:19:40] <ss23> That's cause I manually did the fix
292: [02:19:40] <ss23> ha
293: [02:19:41] <ss23> I'm silly
294: [02:23:59] * veb quit (Read error: Connection reset by peer)
295: [02:24:18] * veb has joined #silverstripe
296: [02:25:42] * UncleCheese quit (Ping timeout: 245 seconds)
297: [02:25:59] <ss23> ty zippy u da man
298: [02:26:00] <ss23> <3
299: [02:26:37] <zippy> o.m.g
300: [02:27:00] * zippy runs around screaming like a little girl with his +v super powers
301: [02:27:48] * jedateach quit (Read error: Connection reset by peer)
302: [02:27:51] <zippy> ss23: just wait till you see what I am working on, will blow.your.mind
303: [02:28:30] * jedateach has joined #silverstripe
304: [02:28:37] * camfindlay quit (Ping timeout: 245 seconds)
305: [02:30:01] * UncleCheese has joined #silverstripe
306: [02:30:53] * ss23 quit (Ping timeout: 240 seconds)
307: [02:31:00] * ss23 has joined #silverstripe
308: [02:31:26] <ss23> zippy: What are you working on? :O
309: [02:31:31] <zippy> ;-)
310: [02:31:43] <ss23> I hope it's not a gun
311: [02:42:08] <MichalKleiner> mindfuck weapon
312: [02:44:59] * markcl has joined #silverstripe
313: [02:45:08] <markcl> How do I make a controller action POST only?
314: [02:48:00] <MichalKleiner> with htaccess
315: [02:49:07] <MichalKleiner> RewriteCond %{REQUEST_METHOD} ! POST
316: [02:49:08] <MichalKleiner> RewriteCond %{REQUEST_URI} ^/your-url
317: [02:49:08] <MichalKleiner> RewriteRule .* / [F]
318: [02:49:23] <MichalKleiner> will send 403 forbidden if not POST to your-url
319: [02:51:33] <MichalKleiner> not sure if there is a SS way
320: [02:53:45] <Colin[pi]> MichalKleiner: examine request in controller method? might be a bit "late stage"
321: [02:54:08] <MichalKleiner> that's what I thought as well.. better to cut it off asap
322: [02:54:48] * novaweb quit (Quit: Leaving)
323: [02:54:56] <markcl> Yeah, thanks guys
324: [02:54:57] <zippy> Stomach: :D :D
325: [02:55:09] <markcl> It's weird they didn't make an SS way for it
326: [02:55:27] <zippy> markcl: well..
327: [02:55:57] <markcl> In Laravel it's a simple Route::post
328: [02:55:59] <zippy> markcl: on your allowed actions you can set a value to point to a custom action, then you can check the $_SERVER['REQUEST_METHOD'] === 'POST' and handle if not
329: [02:56:46] <Colin[pi]> zippy: can just go $request->isPOST() no ?
330: [02:56:54] <zippy> woo you might be able to
331: [02:57:05] <zippy> markcl: http://docs.silverstripe.org/en/developer_guides/controllers/access_control/
332: [02:57:12] <zippy> See there 'complexaction' '->canComplexAction'
333: [02:57:20] <zippy> so in your function you could do $this->request->isPOST()
334: [02:57:30] * muskie9_ is now known as muskie9_afk
335: [02:58:01] * muskie9_afk is now known as muskie9_
336: [02:58:09] <zippy> wow
337: [02:58:20] <zippy> Stomach: shame you not watching it dude
338: [02:58:53] <zippy> maybe I could setup my webcam to record my phone playing skygo :P)
339: [02:59:12] <markcl> Thanks zippy
340: [02:59:33] <Colin[pi]> zippy: wow that's cool I didn't know you could do that either, ta
341: [02:59:44] <markcl> zippy: should have been on the docs
342: [02:59:52] * Stomach quit (Ping timeout: 245 seconds)
343: [02:59:53] <markcl> I wasted 10mins trying to find out a SS way for it
344: [02:59:57] <zippy> is in the docs... I linked you to the docs :)
345: [03:00:03] <zippy> Colin[pi]: why im +v boys :D
346: [03:00:06] <markcl> oh
347: [03:00:19] <markcl> The docs did not have the word 'post' on it =P
348: [03:00:39] <zippy> true, but it showd how you can call a custom fucntion to check if they're allowed the action
349: [03:02:36] <MichalKleiner> like... verbose?
350: [03:02:38] <MichalKleiner> :-D
351: [03:02:49] <MichalKleiner> maybe you can change the topic now
352: [03:05:23] <zippy> I wonder..
353: [03:06:12] <zippy> :( [16:06:03] Message(482): #silverstripe You're not a channel operator
354: [03:06:23] * UncleCheese quit (Ping timeout: 265 seconds)
355: [03:06:35] <zippy> wonder if they will get 200!
356: [03:08:11] <muskie9_> if I were to put in a pull request to remove this legacy support would I do it against 3.1 branch or 3 branch: https://github.com/silverstripe/silverstripe-framework/blob/3.1/forms/HeaderField.php#L18
357: [03:08:33] <muskie9_> code was needed for 2.2 to 2.3 as far as I can tel
358: [03:08:47] * muskie9_ is now known as muskie9
359: [03:09:09] <zippy> wow
360: [03:09:32] <zippy> muskie9: 3
361: [03:09:40] <zippy> 3.1 is bugs
362: [03:10:08] <muskie9> sounds good, still getting used to the whole semantic versioning thing
363: [03:11:46] <MichalKleiner> have a good weekend everyone
364: [03:11:52] * MichalKleiner is now known as MichalKleiner|aw
365: [03:11:52] <Colin[pi]> cya MichalKleiner :D
366: [03:18:42] * owoep has joined #silverstripe
367: [03:18:45] * owoep has left #silverstripe
368: [03:26:59] * Stomach has joined #silverstripe
369: [03:27:50] <zippy> Stomach: :)
370: [03:29:30] <Stomach> holy fuck
371: [03:29:34] <Stomach> we're smashing them
372: [03:29:36] <ss23> lol
373: [03:29:36] <ss23> yeah
374: [03:29:39] <ss23> whats score?
375: [03:29:41] <zippy> Ryan-Toast: your mate is looking pretty solid on the 1k
376: [03:29:43] <ss23> coworker minimized his screen
377: [03:29:55] <zippy> 9 down
378: [03:30:00] <zippy> 117-9
379: [03:30:10] <zippy> Tim Southee has 7
380: [03:30:17] <zippy> get that man a DB
381: [03:30:34] <ss23> yeah
382: [03:30:35] <ss23> like
383: [03:30:37] <ss23> fucking 7
384: [03:30:38] <ss23> jesus
385: [03:31:44] <zippy> if he gets 1 more, he gets the best bowling figures in any world cup in any country
386: [03:31:49] <zippy> he's got 2 balls to do it
387: [03:32:07] <zippy> 1 ball to do it...
388: [03:32:42] <ss23> he's got another over
389: [03:32:49] <ss23> oh
390: [03:32:50] <ss23> no he doesn't
391: [03:32:55] <ss23> or does he
392: [03:33:12] <Stomach> he has one more
393: [03:33:18] * muskie9 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
394: [03:34:26] <ss23> WAS THAT HIM?
395: [03:34:51] <zippy> all over red rover
396: [03:35:16] <zippy> ah southee did have 1 over left..
397: [03:35:26] <ss23> still
398: [03:35:30] <ss23> third best bowling in a world cup
399: [03:35:44] <zippy> yea and first for nz
400: [03:36:33] * micmania1 quit (Quit: micmania1)
401: [03:36:58] <zippy> right im out for now. Chow!
402: [03:37:02] <ss23> cyao
403: [03:37:04] <ss23> ty for the help today, zippy
404: [03:37:05] <ss23> ^.^
405: [03:37:14] <zippy> hopefully we don't choke like we almost did with scotland....
406: [03:38:08] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
407: [03:38:09] <Tanger> Holy hell. Uninstalling printer drivers on OS X. And installing printer drivers when the manufacturer has decided not to make new drivers for the latest OS version
408: [03:39:21] <Colin[pi]> Tanger: isn't uninstalling stuff on OS X basically "drag folder to trash"? ;P
409: [03:40:01] <Tanger> Colin[pi]: So I thought. But printer drivers like to hide in 3-4 places.
410: [03:40:12] <Tanger> Usually it's quite OK
411: [03:40:48] * joelpittet has joined #silverstripe
412: [03:47:48] * joelpittet quit (Remote host closed the connection)
413: [03:49:46] * Stomach_ has joined #silverstripe
414: [03:50:47] * ocmnt has joined #silverstripe
415: [03:53:30] * Stomach quit (Ping timeout: 252 seconds)
416: [03:54:56] * ocmnt quit (Ping timeout: 246 seconds)
417: [04:01:05] * micmania1 has joined #silverstripe
418: [04:02:52] * Ryan-Toast quit (Quit: Ryan-Toast)
419: [04:04:40] * camfindlay has joined #silverstripe
420: [04:11:12] * veb quit (Quit: veb-irc: &)
421: [04:12:21] * selfsame has joined #silverstripe
422: [04:13:43] * micmania1 quit (Quit: micmania1)
423: [04:14:43] * jenniferaslan quit (Remote host closed the connection)
424: [04:15:09] * jenniferaslan has joined #silverstripe
425: [04:15:59] * jenniferaslan quit (Client Quit)
426: [04:17:00] <selfsame> I have a 2.x site I'm upgrading to 3.1 and my custom theme isn't working. Specifically it's looking for css files in domain.com/index.php/mytheme/css, not in domain.com/index.php/themes/mytheme/css.
427: [04:17:11] <selfsame> The simple theme works fine
428: [04:17:46] <selfsame> I've run dev/build?flush=all several times, and the problem persists
429: [04:19:53] * camfindlay quit (Quit: camfindlay)
430: [04:24:07] * wmk has joined #silverstripe
431: [04:34:02] <selfsame> aha - Page.ss needs updating
432: [04:34:15] * selfsame has left #silverstripe
433: [04:39:33] * Stomach_ quit (Ping timeout: 252 seconds)
434: [04:40:01] * babak quit (Quit: Connection closed for inactivity)
435: [04:47:06] * cloph_away has joined #silverstripe
436: [04:47:19] * cloph quit (Ping timeout: 245 seconds)
437: [04:55:40] * muskie9 has joined #silverstripe
438: [05:01:03] * benjhocking has joined #silverstripe
439: [05:02:01] * benjhocking quit (Read error: Connection reset by peer)
440: [05:02:42] * muskie9_ has joined #silverstripe
441: [05:04:48] * muskie9 quit (Ping timeout: 265 seconds)
442: [05:07:23] * muskie9_ is now known as muskie9
443: [05:09:03] * benjhocking has joined #silverstripe
444: [05:11:19] * joelpittet has joined #silverstripe
445: [05:11:48] * joelpittet quit (Remote host closed the connection)
446: [05:17:21] * jedateach has left #silverstripe
447: [05:23:01] * mahfuz quit (Ping timeout: 246 seconds)
448: [05:24:28] <markcl> How do I use a controller to allow this action?
449: [05:24:29] <markcl> http://lsleadapp.dev/home/home/leads?start=5
450: [05:24:40] <markcl> This works: http://lsleadapp.dev/home/leads#
451: [05:24:52] <markcl> But this doesnt: http://lsleadapp.dev/home/home/leads?start=5
452: [05:25:04] <markcl> Given my allowed actions is:
453: [05:25:05] <markcl> private static $allowed_actions = array(
454: [05:25:05] <markcl> 'doEdit' => '->isLoggedIn',
455: [05:25:06] <markcl> 'editProfile' => '->isLoggedIn',
456: [05:25:06] <markcl> 'newLead' => '->isLoggedIn',
457: [05:25:06] <markcl> 'leads' => '->isLoggedIn',
458: [05:25:06] <markcl> 'logout'
459: [05:25:06] <markcl> );
460: [05:25:56] <markcl> Wait, it's actually a link problem
461: [05:25:57] <markcl> lol
462: [05:26:04] <markcl> Sorry to bother you guys
463: [05:26:27] <wmk> np, but pls use something like sspaste.org for pasting code
464: [05:26:33] * Shrike_Finland has joined #silverstripe
465: [05:26:42] <markcl> Ok, next time wmk
466: [05:26:47] <wmk> markcl, and don't forget to flush ;)
467: [05:27:57] * Shrike_Finland quit (Client Quit)
468: [05:44:12] * muskie9 quit (Ping timeout: 264 seconds)
469: [05:47:54] * Werner_2_ has joined #silverstripe
470: [05:48:02] * wmk quit (Read error: Connection reset by peer)
471: [06:35:25] * veb has joined #silverstripe
472: [06:36:55] * veb quit (Client Quit)
473: [06:40:47] * Werner_2_ quit (Read error: Connection reset by peer)
474: [06:40:52] * wmk has joined #silverstripe
475: [06:43:38] * glenn-bautista quit (Ping timeout: 246 seconds)
476: [07:02:13] * wmk quit (Ping timeout: 255 seconds)
477: [07:05:06] * Frans_Amsterdam has joined #silverstripe
478: [07:07:35] * benjhocking quit (Quit: Leaving.)
479: [07:10:28] * babak has joined #silverstripe
480: [07:23:29] * markcl quit (Quit: Leaving.)
481: [07:23:29] <Tanger> hey, is compositeField the best way to group multiple fields?
482: [07:23:56] * markcl has joined #silverstripe
483: [07:24:27] * markcl quit (Client Quit)
484: [07:29:22] * dendeffe has joined #silverstripe
485: [07:34:20] * Eliseth has joined #silverstripe
486: [07:34:51] * dendeffe quit (Quit: dendeffe)
487: [07:35:34] * Blacklite has joined #silverstripe
488: [07:37:43] * wmk has joined #silverstripe
489: [07:43:06] <elgabbu> gd morning wmk
490: [07:43:27] <wmk> elgabbu, good moring(ugt)
491: [07:43:38] * glenn-bautista has joined #silverstripe
492: [07:43:45] * glenn-bautista quit (Client Quit)
493: [07:46:24] <wmk> elgabbu, how is the project going on?
494: [07:56:01] <elgabbu> not bad working on the frontend part of it now
495: [07:56:22] <elgabbu> might have some questions for you later :)
496: [08:00:48] <wmk> elgabbu, fine ;)
497: [08:18:53] * markcl has joined #silverstripe
498: [08:22:41] * dendeffe has joined #silverstripe
499: [08:26:08] * Colin[pi] quit (Ping timeout: 250 seconds)
500: [08:28:59] * gavro has joined #silverstripe
501: [08:30:12] * zippy has joined #silverstripe
502: [08:30:24] <zippy> hey Pyabo0sk
503: [08:30:35] <zippy> ss23: damn you where my +v gone!!
504: [08:32:36] * cloph_away is now known as cloph
505: [08:33:56] <ss23> :D
506: [08:34:00] <ss23> you disonnected
507: [08:34:00] <ss23> :3
508: [08:34:02] <ss23> disconnected*
509: [08:34:05] * markcl quit (Quit: Leaving.)
510: [08:35:29] <zippy> well.. yes I went home
511: [08:36:21] * MattyBalaam has joined #silverstripe
512: [08:39:18] * markcl has joined #silverstripe
513: [08:40:15] * kerosene quit (Quit: <3)
514: [08:43:01] * Stomach has joined #silverstripe
515: [08:46:14] <wmk> hey Stomach
516: [08:48:26] * ocmnt has joined #silverstripe
517: [08:54:31] <zippy> Stomach: you were right. A trashing
518: [08:56:07] * Sticks quit (Quit: Leaving)
519: [09:05:55] <wmk> zauberfisch, do you have some tweaks for running unit tests faster in your vagrant vm?
520: [09:10:43] <Pyabo0sk> wey hey!
521: [09:10:58] <Pyabo0sk> left meself logged in last night again :<
522: [09:11:04] <Pyabo0sk> still connected! amazing
523: [09:11:19] <Pyabo0sk> wmk: just run the section you need?
524: [09:11:31] <wmk> Pyabo0sk, yup. doing it.
525: [09:11:41] <wmk> still running for ages for a simple test
526: [09:11:57] <Pyabo0sk> yeh, is slow :<
527: [09:12:06] <wmk> i just wondered if there are some sqlite settings in this vm i could use
528: [09:13:01] <wmk> Argument 1 passed to Foo() must be an instance of string, string given
529: [09:13:05] <wmk> m(
530: [09:13:18] <Pyabo0sk> hey zippy
531: [09:13:23] <Pyabo0sk> I just got in
532: [09:13:59] <Pyabo0sk> eat'n my coconut yogurt
533: [09:14:45] <Pyabo0sk> that is to say, someone made yogurt out of coconut 'milk', as opposed to coconut flavoured curdled cow lactate.
534: [09:20:10] <zippy> wmk: 1 - tests flush by default all the time, you have to turn it off. 2 - use sqllite with in memory db 3 - set to stage mode so you don't have to worry about publishing pages
535: [09:20:22] * jedateach has joined #silverstripe
536: [09:20:46] <wmk> zippy, ok, so flush takes most of the time i guess
537: [09:21:40] <wmk> zippy, running in browser i can configure test runner to use sqlite?
538: [09:21:57] <wmk> or should i run from cli and use phpunit(3.7) directly?
539: [09:22:04] <zippy> mmmm I run via the cli
540: [09:22:14] * markcl quit (Read error: Connection reset by peer)
541: [09:22:20] * markcl1 has joined #silverstripe
542: [09:22:23] <wmk> zippy, phpunit or sake?
543: [09:22:30] <zippy> phpunit
544: [09:22:49] <zippy> then I can just do phpunit mysite/tests/specific test - and then when thats fine run all again
545: [09:22:56] * jedateach quit (Client Quit)
546: [09:24:02] <wmk> ok.
547: [09:24:10] <zippy> I grabbed the phpunit.xml from the repo
548: [09:26:14] <wmk> this one? https://github.com/silverstripe/silverstripe-installer/blob/3.1/phpunit.xml.dist
549: [09:26:49] <zippy> yeap looks about right
550: [09:27:22] <zippy> then I edited the framework/tests/bootstrap.php file (yes.. core.. naughty!!) and did define('RUNNING_TESTS', true);
551: [09:27:46] <zippy> so in my _ss_environment I can do
552: [09:28:00] <zippy> if(defined('RUNNING_TESTS')) {
553: [09:28:00] <zippy> define('SS_DATABASE_CLASS', 'SQLiteDatabase');
554: [09:28:00] <zippy> define('SS_DATABASE_PATH', ':memory:');
555: [09:28:00] <zippy> global $databaseConfig;
556: [09:28:00] <zippy> $databaseConfig['type'] = 'SQLiteDatabase';
557: [09:28:01] <zippy> }
558: [09:28:25] <zippy> can't remember why I have two SQLiteDatabase there for...
559: [09:29:58] <zippy> looking at that now, it seems wrong. There is no SS_DATABASE_PATH
560: [09:30:22] * Tanger quit (Quit: Tanger)
561: [09:31:48] <Pyabo0sk> [09:22] <zippy> then I can just do phpunit mysite/tests/specific test - and then when thats fine run all again
562: [09:32:02] <Pyabo0sk> supposed to be able to do that with sake too, but doesn't seem to work all that well
563: [09:32:15] <Pyabo0sk> sake dev/tests/<specific test>
564: [09:34:12] <zippy> $databaseConfig['type'] = 'SQLiteDatabase'; should be $databaseConfig['path'] = 'memory'; I think..... idk...
565: [09:35:38] <wmk> "\$databaseConfig['memory'] is deprecated. Use \$databaseConfig['path'] = ':memory:' instead."
566: [09:41:16] <zippy> :)
567: [09:41:16] * wmk quit (Read error: Connection reset by peer)
568: [09:41:27] * wmk has joined #silverstripe
569: [09:41:37] <zauberfisch> wmk: I am afraid not D:
570: [09:41:49] <zauberfisch> wmk: using linux as a host system helps
571: [09:41:54] <wmk> ;)
572: [09:41:58] <zauberfisch> the VM seems to be a lot slower under windows
573: [09:42:04] <wmk> :(
574: [09:42:18] <zauberfisch> probably to do with virtualbox file share thingy. it probably uses smb on windows
575: [09:43:02] <zauberfisch> which makes file accesses slower in comparison to linux where it uses nfs
576: [09:43:21] <wmk> well, turning to sqlite for testing should be enough for now
577: [09:43:36] * jeroenem has joined #silverstripe
578: [09:43:39] <zauberfisch> but, yeah. performance of the vm has been nagging me as well. but I didn't really find any potential for improvements yet
579: [09:43:41] <wmk> zippy, in 3.1.10 automatic flush was turned off by default?
580: [09:44:33] <jeroenem> yay, new release \o/
581: [09:44:57] <zippy> there is a patch for it but I don't think it's been pulled in / changed
582: [09:45:39] * markcl1 has left #silverstripe
583: [09:47:06] <zippy> wmk: still true - https://github.com/silverstripe/silverstripe-framework/blob/3.1/dev/TestRunner.php#L81
584: [09:50:39] * jbrungar quit (Ping timeout: 245 seconds)
585: [09:50:57] * jbrungar_ has joined #silverstripe
586: [09:50:59] * jbrungar_ is now known as jbrungar
587: [10:11:43] * MattyBalaam quit (Quit: Page closed)
588: [10:18:07] * Liquide has joined #silverstripe
589: [10:30:14] * Colin[pi] has joined #silverstripe
590: [10:31:00] * Viper-7 has joined #silverstripe
591: [10:34:22] * BackEndCoder quit (Quit: https://github.com/BackEndCoder)
592: [10:46:55] * Stomach quit (Quit: zzz)
593: [10:49:27] * benjhocking has joined #silverstripe
594: [11:04:34] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
595: [11:16:16] * benjhocking quit (Read error: Connection reset by peer)
596: [11:17:53] * stnvh has joined #silverstripe
597: [11:26:41] <jeroenem> Is there a way to use LimitCharacters in a template and make it remove the HTML from the string? I don't want BR in my summary =(
598: [11:37:13] <wmk> jeroenem, afaik yes
599: [11:37:18] <wmk> you have a HTMLText?
600: [11:38:27] <jeroenem> No just a Text field in the DB - it's a textarea in the frontend of the site people can fill in
601: [11:39:15] <wmk> try $Content.NoHTML.LimitCharacters
602: [11:39:19] <jeroenem> Only want to strip out those BR's in the summary
603: [11:39:23] <wmk> hmm, text...
604: [11:39:50] <jeroenem> 2.4 used to have this awesome "Built in page controls" documentation page, cant find it for 3.x
605: [11:39:56] <wmk> ;)
606: [11:40:29] <wmk> try .NoHTML
607: [11:40:34] <jeroenem> Í've been messing around with NoHTML already - but not working on Text fields i guess
608: [11:40:35] <wmk> should be available in Text also
609: [11:40:50] <wmk> it's defined in StringField
610: [11:41:12] <wmk> you can ofcourse create your own getter in your DO
611: [11:41:21] <jeroenem> i think thats what i'm going to do
612: [11:41:24] <wmk> getMySummary() { return ...}
613: [12:00:45] * stephanvd has joined #silverstripe
614: [12:07:59] <SphereSilver> Anyone here have any experience with PHPCI and Silverstripe?
615: [12:08:23] * stephanvd quit (Ping timeout: 240 seconds)
616: [12:10:07] <wmk> SphereSilver, looks interesting...
617: [12:10:25] <SphereSilver> I'm not getting it to cooperate yet :(
618: [12:10:30] <SphereSilver> but it looks promising indeed
619: [12:11:01] <SphereSilver> It's quite easy to setup, but it's not actually building or anything. Kinda weird
620: [12:12:37] <wmk> hmm
621: [12:12:49] <wmk> just writing tests and run phpunit manually
622: [12:13:18] <wmk> but it takes a minute to run 4 tests with 9 assertions :(
623: [12:13:44] * lerni has joined #silverstripe
624: [12:20:24] <SphereSilver> Yeah, PHPUnit is slow :(
625: [12:20:48] <Pyabo0sk> jeroenem: the page controls has been missing for a while.
626: [12:20:57] * Viper-7 quit (Read error: Connection reset by peer)
627: [12:21:19] * Viper-7 has joined #silverstripe
628: [12:21:24] <Pyabo0sk> instead we have now a better page: http://api.silverstripe.org/3.1/class-SiteTree.html
629: [12:21:38] <Pyabo0sk> http://api.silverstripe.org/3.1/class-ContentController.html
630: [12:21:52] <Pyabo0sk> but what you're after isn't page related stuff, it's mutating a database field.
631: [12:22:01] <Pyabo0sk> http://api.silverstripe.org/3.1/class-StringField.html
632: [12:22:15] <Pyabo0sk> :)
633: [12:22:26] <Pyabo0sk> hullo SphereSilver :)
634: [12:24:38] * lerni quit (Remote host closed the connection)
635: [12:26:02] <wmk> when copying a sql query out of the debugger and trying to run in phpmyadmin manually i get an sql syntax error
636: [12:26:11] <wmk> seem phpmyadmin doesn't like the quotations?
637: [12:26:58] <SphereSilver> Yeah, you have to tell MySQL to allow the double quotes
638: [12:27:00] <SphereSilver> that's normal
639: [12:27:07] <SphereSilver> p.s. Use a dedicated client ;)
640: [12:27:15] <wmk> ;)
641: [12:27:38] <wmk> how can i tell mysql in phpmyadmin to use doublequotes?
642: [12:28:17] <SphereSilver> errr
643: [12:29:19] <SphereSilver> http://www.pythian.com/blog/mysql-and-quoting/
644: [12:29:23] <SphereSilver> That should get you started
645: [12:30:19] <wmk> hmm
646: [12:31:02] <SphereSilver> But for simplicity, just edit the query to select *
647: [12:31:08] <SphereSilver> and manually edit the selected columns
648: [12:31:13] <SphereSilver> to use backticks
649: [12:31:18] <SphereSilver> that should work just fine.
650: [12:33:05] <jeroenem> Pyabo0sk: thanks for the links! gotta bookmark 'em
651: [12:34:31] <Pyabo0sk> jeroenem: api.silverstripe.org - easy :>
652: [12:35:14] <Pyabo0sk> look up the object you have, it lists all the methods. If it's a subclass of 'viewable data' and the method is public, then you can call it from the template.
653: [12:35:25] * lerni has joined #silverstripe
654: [12:38:20] <wmk> SphereSilver, just replaced all " with , ehem, nothing
655: [12:38:26] <wmk> worked now
656: [12:38:49] <SphereSilver> Are you working on a Vagrant or Local system?
657: [12:38:52] <wmk> but it's always a problem debugging a query
658: [12:38:55] <wmk> vagrant
659: [12:39:09] <wmk> the great zauberfisch box (tm)
660: [12:39:11] <SphereSilver> Try using remote connection with MySQL Workbench or HeidiSQL ;)
661: [12:39:37] <SphereSilver> Heh, I use that as a base for most my systems as well. I'm working on setting up an Nginx-HHVM vagrant box
662: [12:39:38] <wmk> will try to connect intellij later
663: [12:40:14] <wmk> yo, tests passing!
664: [12:40:28] <SphereSilver> This post on SitePoint got me the debugger working: http://www.sitepoint.com/install-xdebug-phpstorm-vagrant/
665: [12:40:40] <wmk> xdebug works fine
666: [12:40:51] <wmk> love it
667: [12:40:54] <SphereSilver> In Windows, not so much ;) It needs some setting up :)
668: [12:41:03] <wmk> i'm on windows
669: [12:41:05] <SphereSilver> I want the frikkin' PHPCI to work :(
670: [12:41:15] <wmk> have to configure it for each box / project, but it's really fine
671: [12:41:39] <wmk> ok, xdebug is preinstalled in that box
672: [12:41:42] <wmk> so same setting everywhere
673: [12:41:48] <SphereSilver> Yep, same here :)
674: [12:42:08] <wmk> and you want to do phpci on the vagrant box?
675: [12:42:20] <SphereSilver> I have it running on Vagrant just fine :)
676: [12:42:26] <SphereSilver> It just won't build correctly
677: [12:42:30] <SphereSilver> Build is empty
678: [12:42:39] <wmk> oh.
679: [12:42:46] <wmk> i mean on the same vagrant box like your project?
680: [12:42:56] <SphereSilver> I guess I'm missing something, but I haven't figured it out yet. And the documentation for PHPCI is poor at best
681: [12:43:09] <SphereSilver> No, it's a separate box, otherwise, things wouldn't work as wished :P
682: [12:43:13] <wmk> oh, same docs like 2 years ago when i stumbled over it the first time?
683: [12:43:23] <SphereSilver> Probably :/
684: [12:43:29] <wmk> hmm
685: [12:43:38] <wmk> well, have to run, cu l8r probably
686: [12:43:42] <SphereSilver> ttyl!
687: [12:50:30] * wmk quit (Ping timeout: 246 seconds)
688: [13:05:11] * Colin[pi] quit (Ping timeout: 250 seconds)
689: [13:12:59] * UndefinedOffset has joined #silverstripe
690: [13:22:32] * BackEndCoder has joined #silverstripe
691: [13:25:53] <Pyabo0sk> [12:40] <wmk> yo, tests passing!
692: [13:25:54] <Pyabo0sk> wew!
693: [13:26:45] <Pyabo0sk> [12:42] <SphereSilver> I guess I'm missing something, but I haven't figured it out yet. And the documentation for PHPCI is poor at best
694: [13:26:56] <Pyabo0sk> This PHPCI sounds interesting though, how is the rest of it?
695: [13:27:05] <Pyabo0sk> Is the project as a whole poor compared to competitors?
696: [13:27:27] <Pyabo0sk> ie, is it a 'this will do' or a 'this will be good for a quick fix for small projects' or is it reasonably serious?
697: [13:27:39] * Pyabo0sk goes full buzzword:
698: [13:27:45] <Pyabo0sk> Is it Enterprise Scale ?
699: [13:27:45] <Pyabo0sk> xD
700: [13:29:52] <SphereSilver> Pyabo0sk: It's actually quite serious. It's good.
701: [13:30:13] <SphereSilver> But poorly documented and I'm having issues getting it to work with Silverstripe, but the latter is an issue on my side ;)
702: [13:32:04] * lerni quit ()
703: [13:34:26] <SphereSilver> Hmmmm, has something changed seriously? PHP5.6 gives a Bad Gateway, while 5.5 works just fine
704: [13:34:36] * SphereSilver is a bit confused
705: [13:36:06] <SphereSilver> Could somebody visit http://www.filmsvandaag.nl and tell me if it works?
706: [13:36:31] <SphereSilver> My server was being annoying with php 5.6, it should work, but.... I'm not entirely sure if it works for everyone
707: [13:39:27] <Pyabo0sk> loads
708: [13:39:54] <SphereSilver> Great. At least it works then :)
709: [13:40:19] <SphereSilver> Really strange. An hour ago, everything worked fine. I changed nothing, and suddenly, php5.6 gives me Bad Gateway
710: [13:40:43] <Pyabo0sk> in cms?
711: [13:40:46] <SphereSilver> Support-ticket sent to Serverpilot, but all other PHP5.6 sites work just fine. It's just this one.
712: [13:40:58] <SphereSilver> No, bad gateway means nginx can't connect to PHP-FPM
713: [13:41:08] <Pyabo0sk> nope, is caused by headers
714: [13:41:10] <Pyabo0sk> being too large
715: [13:41:18] <SphereSilver> Are you sure?
716: [13:41:23] <SphereSilver> How do you see that?
717: [13:41:25] <Pyabo0sk> caused by SS's 'yo dawg, include ALLLLLLLL the javascripts'
718: [13:41:28] <Pyabo0sk> No idea.
719: [13:41:33] <Pyabo0sk> Known issue with nginx though
720: [13:41:57] <SphereSilver> But why does it work on 5.5 then? And did it work until an hour ago on 5.6?
721: [13:41:58] <Pyabo0sk> X-include-javascript && X-include-css headers in CMS cause it
722: [13:42:08] <Pyabo0sk> that part I cannot answer :<
723: [13:42:23] <Pyabo0sk> I would suggest that perhaps something in the session expired and it's sending thorugh more than it needs? idk.
724: [13:42:45] <SphereSilver> Ehm, it can't be CMS, since I'm not logged in on Chromium, and it's giving the same error on 5.6
725: [13:43:14] <Pyabo0sk> yeah, that's why asked if this was happening in the CMS
726: [13:43:48] * darjus01 has joined #silverstripe
727: [13:43:52] <darjus01> Hi all
728: [13:43:58] <Pyabo0sk> hi you
729: [13:44:17] <SphereSilver> Ah, sorry, missed the question ;)
730: [13:44:31] <SphereSilver> No, all over, even not logged in gives the error on 5.6 but works on 5.5
731: [13:44:32] <Pyabo0sk> :)
732: [13:44:33] <darjus01> is any way to set up default currency in MoneyField?
733: [13:44:35] * SphereSilver is baffled
734: [13:44:40] * Pyabo0sk is too
735: [13:44:47] <Pyabo0sk> nothing in nginx logs?
736: [13:44:53] <Pyabo0sk> darjus01: yes
737: [13:45:10] <darjus01> like setDefaultCurrency?
738: [13:45:27] <SphereSilver> Pyabo0sk: nothing useful :(
739: [13:45:33] <darjus01> I was searching in docs but no luck
740: [13:46:13] <Pyabo0sk> oh, rude!
741: [13:46:19] <Pyabo0sk> sorry darjus01 I thought there was, but :< http://api.silverstripe.org/3.1/source-class-CurrencyField.html#20
742: [13:46:44] <SphereSilver> Pyabo0sk: I think it's Serverpilot doing some funky stuff
743: [13:47:37] <SphereSilver> because it happened without me changing any configuration. Only other system able to change things on my server is Serverpilot
744: [13:48:13] <darjus01> Pyabo0sk: thx :)
745: [13:48:23] <SphereSilver> even a reboot didn't fix it. Must be Serverpilot doing something that breaks my specific config for that website
746: [13:48:53] <SphereSilver> Who's trying to login?
747: [13:48:58] <SphereSilver> Don't do that ;)
748: [13:49:11] <SphereSilver> And no, it's not "admin/password" :P
749: [13:49:36] <Pyabo0sk> darjus01: but then on the other hand: http://api.silverstripe.org/3.1/source-class-CurrencyField.html#71
750: [13:49:58] <Pyabo0sk> It's a translation thing at that point
751: [13:50:29] <Pyabo0sk> darjus01: it only stores the numbers
752: [13:51:09] <darjus01> yes one thild Ammount second Curency
753: [13:51:17] <Pyabo0sk> so, it seems that the value output hard codes the dollar sign, but everywhere else it appears to be translated
754: [13:51:30] <Pyabo0sk> but it's part of the translation setting, not a config option.
755: [13:51:30] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
756: [13:51:50] <dendeffe> SphereSilver - Was just checking if it was a SS-site :) not trying to log in - should have read the rest of your questions
757: [13:51:51] <darjus01> that a bit of disapointment :)
758: [13:52:04] <SphereSilver> dendeffe: You could've just asked ;)
759: [13:52:23] <SphereSilver> And yes, it's SS-driven. :P
760: [13:52:24] <darjus01> but oh well, thx for info Pyabo0sk
761: [13:54:11] <dendeffe> Yeah, I gathered that before the admin screen loaded from the rest of your questions here :)
762: [13:56:01] <SphereSilver> dendeffe: I usually recognise Silverstripe sites by the /assets/ and things like that in the sourcecode.
763: [13:56:13] <SphereSilver> Although, my sourcecode for said website might be slightly unreadable :P
764: [13:57:16] <dendeffe> Yeah, I’m usually to lazy to open web inspector if I can get the answer from adding admin or wp-admin to an url :)
765: [13:57:56] <SphereSilver> You'd really think I would use WP?
766: [13:58:07] <SphereSilver> You owe me a beer by just considering that abomination!
767: [13:58:21] <dendeffe> :)
768: [13:59:41] <SphereSilver> A good Belgian beer that is, ofcourse ;)
769: [14:00:47] <dendeffe> Isn’t all good beer Belgian? ;)
770: [14:00:59] <SphereSilver> No
771: [14:01:26] <SphereSilver> German beer is good too, usually
772: [14:01:27] <Pyabo0sk> I'm actually quite fond of Tiger, and Chang on occasion.
773: [14:01:32] <SphereSilver> and Grolsch, Grolsch is good
774: [14:01:35] <Pyabo0sk> Sapporo is nice
775: [14:01:46] <Pyabo0sk> Asahi isn't special, but it's nice.
776: [14:01:54] <Pyabo0sk> Kirin Ichiban is great.
777: [14:02:16] <Pyabo0sk> When it comes to beer, mostly it's American stuff that I'm not fond of.
778: [14:03:29] <SphereSilver> American beers are like a canoe
779: [14:03:43] <SphereSilver> like *sex* in a canoe
780: [14:03:47] <SphereSilver> It's fucking close to water
781: [14:05:17] <Pyabo0sk> if you're paddling in a sewage pond, sure.
782: [14:05:48] <SphereSilver> :D
783: [14:07:36] * babak quit (Ping timeout: 250 seconds)
784: [14:34:47] * babak has joined #silverstripe
785: [14:35:15] <SphereSilver> http://www.filmsvandaag.nl/test.php < Does that say "HipHop" to you, or the regular phpinfo?
786: [14:35:52] <elgabbu> question ... in SS2.4 how does one write/read a session variable?
787: [14:36:31] <dendeffe> HipHop
788: [14:37:43] <elgabbu> Session::set and Session::get ok
789: [14:37:45] <SphereSilver> Excellent. So HHVM works and my caching is annoying me :P
790: [14:40:40] * Frans_Amsterdam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
791: [14:54:10] <darjus01> Declaration of Event::canEdit() should be compatible with that of DataObject::canEdit()
792: [14:54:23] <darjus01> maybe some one have idea?
793: [14:54:56] <darjus01> I just weant to disable that object edit
794: [14:55:05] <darjus01> public function canCreate(){return false;}
795: [14:55:22] <darjus01> public function canEdit(){return false;}
796: [14:56:39] * muskie9 has joined #silverstripe
797: [14:57:37] <SphereSilver> public function canCreate($member = null) { return parent::canCreate($member); false; }
798: [14:58:28] <SphereSilver> I don't know who you are.... but stop trying to get into my admin! :D
799: [15:02:03] <dendeffe> Not me anymore :)
800: [15:02:16] <darjus01> thx SphereSilver
801: [15:04:54] <SphereSilver> That should be "return false;" ofcourse :)
802: [15:05:10] <SphereSilver> not just "false", but I guess you got that :)
803: [15:06:25] <darjus01> ies only thin i was missing is $member = false
804: [15:06:34] <darjus01> thx again :)
805: [15:07:09] <darjus01> now looking for setting how to disable left side filter in model admin
806: [15:09:17] * dendeffe quit (Quit: dendeffe)
807: [15:09:39] <SphereSilver> It's in the docs ;)
808: [15:15:06] * cloph quit (Remote host closed the connection)
809: [15:19:05] * cloph_away has joined #silverstripe
810: [15:20:34] * darjus01 quit (Quit: Page closed)
811: [15:21:46] * kerosene has joined #silverstripe
812: [15:24:06] * muskie9 is now known as muskie9_afk
813: [15:26:41] * muskie9_afk is now known as muskie9
814: [15:45:57] * cloph_away is now known as cloph
815: [15:46:17] <SphereSilver> Hmmm, HHVM doesn't accept uploads, nor resize images....
816: [15:46:28] <SphereSilver> Anyone knows what I need to fix there?
817: [15:46:33] * cupcake has joined #silverstripe
818: [15:47:48] <cupcake> can anyone tell me why there are items in the admin sitetree greyed out? it indicates they are hidden but how does it decide to show as hidden?
819: [15:47:54] <cupcake> i am talking about 2.4
820: [15:49:46] <muskie9> cupcake hidden from menus?
821: [15:50:25] <muskie9> cupcake http://puu.sh/g56xl/5bcd7fea35.png
822: [15:53:31] <cupcake> ok show in menus was disabled
823: [15:53:45] <cupcake> but the weird thing is that these records where not shown before in site tree
824: [15:54:00] <cupcake> so we are trying to understand how they are showing now
825: [15:57:45] * babak quit (Remote host closed the connection)
826: [15:58:51] <cupcake> muskie9 do you have any clue on this?
827: [15:59:48] <muskie9> cupcake the pages that are greyed out, do the have the "Show In Menus" unchecked in the behavior tab like my screenshot above?
828: [15:59:55] <cupcake> yes
829: [16:00:15] <muskie9> that's why they're greyed out
830: [16:01:17] <SphereSilver> back to FPM I guess. No GD or Imagick available in HHVM :(\
831: [16:01:34] <cupcake> ok that explains it
832: [16:01:36] <cupcake> but
833: [16:01:51] <cupcake> why did they not appear before in the site tree? thats my question muskie9
834: [16:03:46] * eagles0513875 quit (Quit: ZNC @ TrekWeb - https://trekweb.org)
835: [16:03:49] <muskie9> sorry, not completely sure... been a while since I've been in the 2.4.x version, afaik hidden pages always showed up in the sitetree
836: [16:05:57] <cupcake> weird
837: [16:14:23] <SphereSilver> No HHVM for me anymore for now
838: [16:14:35] <SphereSilver> Only issues, but admitted, it's faster.
839: [16:20:10] * babak has joined #silverstripe
840: [16:30:59] * jeroenem quit (Quit: Page closed)
841: [16:34:19] * jenniferaslan has joined #silverstripe
842: [16:43:19] <cupcake> is there any plugin which caters for image manipulation?
843: [16:43:23] <cupcake> for ss3
844: [16:43:37] <cupcake> currently i am using ImageUploadField as a form field
845: [16:43:48] <cupcake> but it doesnt allow me to crop and manipulate the image
846: [16:43:55] <cupcake> does anyone know of anything?
847: [16:44:04] <cupcake> muskie9 maybe? :)
848: [16:44:59] <cupcake> FileIFrameField i am using ImageUploadField is extending it
849: [16:45:42] <muskie9> cupcake you want to set the crop area?
850: [16:45:50] <cupcake> i want to be able
851: [16:45:54] <cupcake> to select an image
852: [16:46:00] <cupcake> and crop it like in a dialog or so
853: [16:46:11] <cupcake> because currently you select the image
854: [16:46:13] <Pyabo0sk> cupcake: nothing
855: [16:46:17] <cupcake> and you cannot manipulate it
856: [16:46:24] <Pyabo0sk> oh, there is one that lets you choose the centre of a crop
857: [16:46:24] <cupcake> nothing exists?
858: [16:46:40] <Pyabo0sk> but nothing 'advanced' as such, no.
859: [16:46:44] <Pyabo0sk> not that I'm aware of at least
860: [16:47:09] <muskie9> Pyabo0sk that's the one I was trying to dig out, can't seem to find it though
861: [16:51:37] <Pyabo0sk> http://www.silverstripe.org/blog/focuspoint-smarter-image-cropping-for-silverstripe/
862: [16:51:46] <Pyabo0sk> took me 7 seconds muskie9, lol
863: [16:52:02] <Pyabo0sk> https://www.google.com/search?q=silverstripe+crop
864: [16:54:27] * Viper-7 quit (Ping timeout: 246 seconds)
865: [16:54:30] * Viper7 has joined #silverstripe
866: [16:56:37] <muskie9> lol, I was digging through my starz in github... turns out I didn't star it :/
867: [16:57:00] <Pyabo0sk> All power to the hypnogoogle
868: [16:58:36] <muskie9> http://puu.sh/g5aEJ/9b376bcfb8.gif
869: [17:09:43] * gavro_ has joined #silverstripe
870: [17:09:44] <Pyabo0sk> yep, prettymuch just that, but with a google logo :P
871: [17:12:38] * kerosene quit (Quit: zz)
872: [17:13:25] * gavro quit (Ping timeout: 252 seconds)
873: [17:14:17] * ThePeach has joined #silverstripe
874: [17:14:38] * gavro_ quit (Ping timeout: 265 seconds)
875: [17:21:07] * masnun has joined #silverstripe
876: [17:23:05] <masnun> I'm storing email templates in database (the templates need to be editable from the backend), how can I populate the template with values I pass?
877: [17:23:22] * masnun quit (Client Quit)
878: [17:23:38] * masnun has joined #silverstripe
879: [17:23:54] <masnun> I'm storing email templates in database (the templates need to be editable from the backend), how can I populate the template with values I pass?
880: [17:30:48] <Pyabo0sk> living on the wild side.
881: [17:30:57] <Pyabo0sk> Just pushed to live before leaving on a friday night!
882: [17:30:58] <Pyabo0sk> BOOM
883: [17:31:37] <Pyabo0sk> masnun: $templatething->parsefromstring($template) or soemthing like that
884: [17:31:45] <Pyabo0sk> api.silverstripe.org
885: [17:32:21] <masnun> checking
886: [17:32:43] <Pyabo0sk> http://api.silverstripe.org/3.1/class-SSViewer.html#_fromString
887: [17:32:44] <Pyabo0sk> there
888: [17:32:58] <Pyabo0sk> static call SSViewer::fromString($databaseReturnedString)
889: [17:33:39] <masnun> thanks Pyabo0sk
890: [17:33:40] <Pyabo0sk> weekend! \o/
891: [17:33:42] * Pyabo0sk quit ()
892: [18:14:22] * masnun is now known as masnun|away
893: [18:15:40] * ThePeach quit (Quit: leaving)
894: [18:18:16] * masnun|away is now known as masnun
895: [18:37:43] * muskie9 is now known as muskie9_afk
896: [18:40:08] * muskie9_afk is now known as muskie9
897: [18:42:25] * Azure quit (Ping timeout: 264 seconds)
898: [18:42:37] * jedateach has joined #silverstripe
899: [19:01:43] * muskie9 is now known as muskie9_afk
900: [19:01:51] * dendeffe has joined #silverstripe
901: [19:03:47] * muskie9_afk is now known as muskie9
902: [19:07:37] * DimiStripe quit (Quit: DimiStripe)
903: [19:10:39] * Azure has joined #silverstripe
904: [19:20:37] * Stomach has joined #silverstripe
905: [19:34:23] * Stomach quit (Quit: zzz)
906: [19:44:15] * gelignite has joined #silverstripe
907: [19:50:04] * ocmnt quit (Ping timeout: 244 seconds)
908: [20:15:51] * muskie9 is now known as muskie9_afk
909: [20:18:00] * Stomach has joined #silverstripe
910: [20:24:20] * muskie9_afk is now known as muskie9
911: [20:40:42] * dendeffe quit (Quit: dendeffe)
912: [20:55:01] * jedateach quit (Quit: jedateach)
913: [20:59:09] * jedateach has joined #silverstripe
914: [21:23:00] * willmorgan has joined #silverstripe
915: [21:29:13] * jedateach quit (Quit: jedateach)
916: [21:36:06] * benjhocking has joined #silverstripe
917: [21:42:15] <muskie9> anyone ever manage a has_one relation with a gridfield (not using modules out there)
918: [21:45:57] * jedateach has joined #silverstripe
919: [21:51:00] * scpi has joined #silverstripe
920: [22:14:10] * cupcake quit (Ping timeout: 246 seconds)
921: [22:17:05] * UndefinedOffset quit (Quit: Leaving.)
922: [22:28:33] * masnun quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
923: [22:34:48] * scpi quit (Quit: scpi)
924: [22:45:29] * Stomach quit (Quit: zzz)
925: [22:47:23] * Liquide quit ()
926: [22:55:09] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
927: [23:08:37] * babak quit (Quit: Connection closed for inactivity)
928: [23:20:18] * Colin[pi] has joined #silverstripe
929: [23:30:51] * travis-ci has joined #silverstripe
930: [23:30:52] <travis-ci> chillu/silverstripe-cms#61 (pulls/localized-urlsegment-creation - fa1441e : Ingo Schommer): The build passed.
931: [23:30:53] <travis-ci> Change view : https://github.com/chillu/silverstripe-cms/compare/e17fb17520fd^...fa1441ea23fc
932: [23:30:53] <travis-ci> Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/51583197
933: [23:30:53] * travis-ci has left #silverstripe
934: [23:32:24] * Stomach has joined #silverstripe
935: [23:45:51] * willmorgan quit ()
936: [23:56:35] * Stomach quit (Quit: zzz)

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