#silverstripe IRC Log

IRC log for 20 June 2016

All timestamps are in UTC.

1: [00:00:02] * ss-helper quit (Remote host closed the connection)
2: [00:00:17] * ss-helper has joined #silverstripe
3: [00:11:12] * spronk has joined #silverstripe
4: [00:28:30] * zippy has joined #silverstripe
5: [00:40:38] * Stomach quit (Quit: zzz)
6: [00:41:39] * micmania1 quit (Quit: micmania1)
7: [00:45:41] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
8: [00:53:29] * Stomach has joined #silverstripe
9: [00:54:49] * Azure quit (Ping timeout: 252 seconds)
10: [00:57:51] * Azure has joined #silverstripe
11: [01:05:58] * zippy has joined #silverstripe
12: [01:08:04] * Stomach quit (Ping timeout: 240 seconds)
13: [01:10:39] * Stomach has joined #silverstripe
14: [01:35:22] * micmania1 has joined #silverstripe
15: [02:18:24] <zippy> *crickets*
16: [02:39:24] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
17: [02:49:25] <spronk> bleh
18: [02:58:16] <pippy> https://github.com/silverstripe/silverstripe-widgets/pull/126#issuecomment-226931875
19: [03:00:16] * Stomach quit (Quit: zzz)
20: [03:44:14] * spronk quit (Quit: I may need a longer sleep timer...)
21: [03:44:38] * robbiea has joined #silverstripe
22: [03:44:56] <robbiea> hi all - is there a quick method I can use to tell SS to read a DataObject's data from stage or live?
23: [03:49:42] * spronk has joined #silverstripe
24: [03:50:40] <robbiea> perhaps something like Versioned::set_reading_mode('Stage')...?
25: [03:51:30] <micmania1> robbiea: I believe that’s how its done :)
26: [03:51:43] <robbiea> ok, cool :)
27: [03:52:21] * novaweb has joined #silverstripe
28: [03:53:09] * novaweb_ has joined #silverstripe
29: [03:56:36] * novaweb quit (Ping timeout: 246 seconds)
30: [04:15:28] * nontgor has joined #silverstripe
31: [04:15:46] * novaweb_ quit (Remote host closed the connection)
32: [04:18:54] * micmania1 quit (Quit: micmania1)
33: [04:22:37] * micmania1 has joined #silverstripe
34: [04:25:15] * Stomach has joined #silverstripe
35: [04:36:00] * pippy quit (Ping timeout: 250 seconds)
36: [04:36:46] * robbiea quit (Ping timeout: 250 seconds)
37: [04:37:02] * micmania1 quit (Quit: micmania1)
38: [04:37:42] * micmania1 has joined #silverstripe
39: [05:32:33] * DarjusIT has joined #silverstripe
40: [05:33:24] <DarjusIT> Hi when silverstripe creates copped image, if system not uses it will be deleted or not?
41: [05:47:15] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
42: [05:48:59] * micmania1 quit (Quit: micmania1)
43: [05:57:17] * wmk has joined #silverstripe
44: [06:06:34] * Stomach quit (Quit: zzz)
45: [06:10:44] * Mike123 has joined #silverstripe
46: [06:22:28] * sminnee has joined #silverstripe
47: [06:30:37] * spronk quit (Quit: I may need a longer sleep timer...)
48: [06:41:11] * Eliseth has joined #silverstripe
49: [06:42:01] * sminnee quit (Remote host closed the connection)
50: [06:42:43] * sminnee has joined #silverstripe
51: [06:59:52] * Kingy has joined #silverstripe
52: [07:01:20] <Kingy> hey, I have a paginatedlist with 700 pages.. How can I get it to display < prev 4 5 ... 7 ... 8 9 next > instead of < prev ALL 700 PAGES next >
53: [07:11:09] * arnhoe has joined #silverstripe
54: [07:12:50] * Mike123_ has joined #silverstripe
55: [07:17:12] * Mike123_ quit (Ping timeout: 250 seconds)
56: [07:19:04] <wmk> !paste Kingy
57: [07:19:05] <ss-helper> Kingy: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
58: [07:19:35] <wmk> i guess it should be possible out of the box...
59: [07:21:56] <DarjusIT> Kingy example: http://www.sspaste.com/paste/show/576799178a879 and result will be http://pasteboard.co/1ONPRRX1.png if I understand your issue correctly
60: [07:22:34] <wmk> sspaste.com.... server not found. WTF?
61: [07:23:09] <wmk> ah, without www it works... weird
62: [07:23:12] <DarjusIT> working for me
63: [07:23:17] <Kingy> DarjusIT: thanks.. that's exactly what I've got but it's still giving me all 700 pages. Let me paste it
64: [07:23:42] <wmk> DarjusIT, thanks for the exammple. Kingy in Blog module it works here 1,2,3,4,5...10...
65: [07:23:56] <wmk> Kingy, what version of SS are you using?
66: [07:24:09] <Kingy> wait wait
67: [07:24:13] <Kingy> PaginationSummary is what I was missing!
68: [07:24:26] <Kingy> <% loop $PaginatedPages.PaginationSummary %>
69: [07:24:47] <wmk> yup.
70: [07:25:31] <wmk> http://api.silverstripe.org/3.3/class-PaginatedList.html#_PaginationSummary
71: [07:25:36] <wmk> you can also pass a param to it
72: [07:26:10] <Kingy> excellent. thanks guys
73: [07:26:47] <wmk> Kingy, if you come to StripeCon 2016 we can drink a beer ;)
74: [07:27:31] <DarjusIT> in ss is it possible have two order by, main and secondary? my client wants pages ordered by date but also he wants some be ordered by Sort value that is in page table. can I make order by date as main order and secondary sort would be "sort" field
75: [07:29:11] <wmk> DarjusIT, yes
76: [07:30:56] <wmk> http://api.silverstripe.org/3.3/class-SS_Sortable.html#_sort
77: [07:31:20] <wmk> so ->sort(['Date' => 'ASC, 'SortOrder' => 'ASC']) should do the trick
78: [07:33:36] * Stomach has joined #silverstripe
79: [07:33:57] <Kingy> wmk, hmm would have to spend some money to fly over
80: [07:34:31] <wmk> from where?
81: [07:34:37] <Kingy> Bahrain :d
82: [07:35:02] <wmk> well... might be worth the effort ;)
83: [07:35:24] <Kingy> yeah I miss doing that. Used to be able to go to WDCNZ and NZ PHP conf when I was there
84: [08:05:30] * slievr has joined #silverstripe
85: [08:05:32] * kinglozzer has joined #silverstripe
86: [08:10:43] * zippy has joined #silverstripe
87: [08:10:51] <zippy> hi
88: [08:13:11] <DarjusIT> wmk, it works well, thx, is possible to make same ordering in Sitetree in admin?
89: [08:16:18] <wmk> DarjusIT, theoretically... but then you have to overwrite the method on the parent Page afaik
90: [08:16:59] <wmk> or just use something like lumberjack / catalogadmin for that kind of pages. Then you see it in a grid instead of the tree
91: [08:17:04] <wmk> as Blog module does
92: [08:19:01] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
93: [08:25:28] * cupcake has joined #silverstripe
94: [08:25:47] <cupcake> morning!
95: [08:25:51] <cupcake> or good evening!
96: [08:26:04] <cupcake> did anyone manage to use the latest Instagram API?
97: [08:30:33] * deschebbs has joined #silverstripe
98: [08:32:19] * deschebbs quit (Client Quit)
99: [08:39:05] * deschebbs has joined #silverstripe
100: [08:39:25] * deschebbs has left #silverstripe
101: [08:40:25] * deschebbs has joined #silverstripe
102: [08:40:25] * deschebbs is now known as joe-2313
103: [08:40:46] * joe-2313 has left #silverstripe
104: [08:46:25] * deschebbs has joined #silverstripe
105: [09:31:05] * janneklouman-- has joined #silverstripe
106: [09:45:32] * Stomach quit (Quit: zzz)
107: [09:56:14] * zippy has joined #silverstripe
108: [10:13:54] * cloudy_nz has joined #silverstripe
109: [10:13:54] <ss-helper> cloudy_nz: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
110: [10:14:26] <zippy> o/
111: [10:14:37] <zippy> hows the flip internet treating you cloudy_nz
112: [10:15:13] <cloudy_nz> hi, good thanks
113: [10:42:09] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
114: [11:12:59] * cloudy_nz has left #silverstripe
115: [11:15:06] * cupcake quit (Ping timeout: 250 seconds)
116: [11:15:10] <slievr> Is there anyway to unset the Action in a Form get request (i.e. not get &action_CompleteSearch=Search)
117: [11:19:35] * XorPush has joined #silverstripe
118: [11:48:50] <DarjusIT> is any posibily enable Sort field in page edit in admin?
119: [11:49:32] <DarjusIT> for sitetree not only drag and drop but add default sort field from site tree?
120: [11:50:57] * nontgor quit (Ping timeout: 276 seconds)
121: [12:07:33] <wmk> DarjusIT, overwrite SiteTree default_sort config var?
122: [12:08:13] <DarjusIT> no I solve that I wanted just add Sort field to be edited in admin
123: [12:09:58] <kinglozzer> DarjusIT: Just use getCMSFields(), add in a field named 'Sort'
124: [12:11:11] * krofek__ has joined #silverstripe
125: [12:14:13] * krofek_ quit (Ping timeout: 244 seconds)
126: [12:15:15] * DarjusIT quit (Ping timeout: 244 seconds)
127: [12:15:43] * ec8or quit (Ping timeout: 252 seconds)
128: [12:15:52] * ec8or has joined #silverstripe
129: [12:17:26] * DarjusIT has joined #silverstripe
130: [12:20:01] * kinglozzer quit (Remote host closed the connection)
131: [12:21:12] * FrozenFire quit (Remote host closed the connection)
132: [12:21:28] * FrozenFire has joined #silverstripe
133: [12:28:50] * kinglozzer has joined #silverstripe
134: [12:31:28] * UndefinedOffset has joined #silverstripe
135: [12:38:59] * kinglozzer quit (Remote host closed the connection)
136: [12:39:53] * elgabbu has joined #silverstripe
137: [12:55:22] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
138: [13:16:11] * kinglozzer has joined #silverstripe
139: [13:24:33] * wmk quit (Ping timeout: 276 seconds)
140: [13:30:13] * DarjusIT quit (Read error: Connection reset by peer)
141: [13:30:27] * DarjusIT has joined #silverstripe
142: [13:53:15] * wmk has joined #silverstripe
143: [14:13:07] <janneklouman--> I'm trying to show/hide a PickerField based on a CheckboxField, and this works (using display-logic). However when I put that CheckboxField inside of a FieldGroup it doesn't. Any ideas?
144: [14:20:39] <janneklouman--> https://gist.github.com/janneklouman/fa6c0564a6edf30ab1b09513db74c2a6
145: [14:38:50] * VaultDweller has joined #silverstripe
146: [14:38:50] <ss-helper> VaultDweller: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
147: [14:40:12] <VaultDweller> Good afternoon, I was wondering it was possible to get attached files and do some processing them and supply the new data to the theme's template file. There doesn't seem to be much documentation or I am having a bad day in finding it to do this type of thing.
148: [14:45:04] <wmk> VaultDweller, i don't understand your question. What are you trying to do?
149: [14:47:19] <VaultDweller> Sorry for not being clear, being attacked by hay fever badly today! What I am trying to do is have a file uploaded to that page (say a .csv file) then when that page gets rendered to have data from that file be passed to the view.
150: [14:50:30] <VaultDweller> I have the file uploaded and attached to the page, just need to work out the next bit
151: [14:51:54] <wmk> VaultDweller, either with a getter method on that page
152: [14:52:01] <wmk> or using $this->customize()
153: [14:52:18] <wmk> e.g. get content and make an ArrayList of ArrayData objects
154: [14:54:50] <VaultDweller> Thank you kindly! :)
155: [14:58:34] * slievr quit (Read error: Connection reset by peer)
156: [15:03:54] * Mike123 quit (Ping timeout: 250 seconds)
157: [15:04:40] * nontgor has joined #silverstripe
158: [15:16:34] * cupcake_ has joined #silverstripe
159: [15:16:46] <cupcake_> ola O/
160: [15:16:54] <cupcake_> im getting this error : ( ! ) Fatal error: Maximum execution time of 120 seconds exceeded in /mnt/hgfs/www/work.www.pokerolymp.com/framework/model/queries/SQLConditionalExpression.php on line 62
161: [15:17:22] <cupcake_> when i try to use treedropdownfield
162: [15:17:24] <cupcake_> any ideas??
163: [15:23:08] <wmk> cupcake_, cache, increase execution time, better machine
164: [15:23:29] * nontgor quit (Read error: Connection reset by peer)
165: [15:26:25] * r3v3rb has joined #silverstripe
166: [15:27:22] <r3v3rb> anyone notice if 3.4.0 is using more memory? Just upgraded from 3.2.1 and now a function that grabs zoopla listings is running out of memory where previously it didn’t… coincidence or change?
167: [15:29:18] <kinglozzer> r3v3rb: I'm not aware of anything
168: [15:29:21] * arnhoe quit ()
169: [15:30:12] <r3v3rb> kinglozzer: hmmm, odd
170: [15:30:52] <kinglozzer> r3v3rb: Could it be that there are more properties in the listing now?
171: [15:32:11] <r3v3rb> well I have increased the volume but I am nulling all objects as I add each one from the xml data into the arraylist
172: [15:32:34] * wmk quit (Ping timeout: 240 seconds)
173: [15:32:57] <r3v3rb> so each pass creates a new object before adding to the the list then nulls itself before running round again
174: [15:35:03] <kinglozzer> r3v3rb: Not sure what you mean "nulls itself"?
175: [15:35:09] <kinglozzer> Either way, more objects in the ArrayList = more memory
176: [15:35:11] <r3v3rb> kinglozzer: << http://www.sspaste.com/paste/show/57680d1f75659
177: [15:35:38] <kinglozzer> Ah, PHP's garbage collection should do that anyway
178: [15:36:01] <r3v3rb> kinglozzer: yep, but its rubbish
179: [15:36:12] <kinglozzer> It's *garbage* ;)
180: [15:36:15] <r3v3rb> tada!
181: [15:36:17] <kinglozzer> :P
182: [15:36:37] <kinglozzer> How many properties you got r3v3rb?
183: [15:38:33] <r3v3rb> 30 appears to be the magic number at the moment
184: [15:38:51] * DarjusIT quit (Ping timeout: 240 seconds)
185: [15:39:05] <kinglozzer> That doesn't sound like many :/ memory limit?
186: [15:40:19] <r3v3rb> kinglozzer: I know it should handle it no problem
187: [15:40:45] <cupcake_> wmk but i have other sites using the same stuff and i have no issues
188: [15:40:54] <cupcake_> why does this site has issues?
189: [15:42:22] <r3v3rb> kinglozzer: I think its more PHP garbage than SS3.4 :\
190: [15:42:38] <VaultDweller> Sorry to be a bother but how can I get a list of files attached to a page within the controller?
191: [15:44:01] <kinglozzer> r3v3rb: Is it just the first load, when it has to download + resample the images?
192: [15:44:38] <kinglozzer> Or has the client started uploading 15mb images (like I recently found with a property feed :D)?
193: [15:44:41] <r3v3rb> kinglozzer: yep, because after that the cache kicks in in the templating and then the images are grabbed from the image db
194: [15:45:01] <r3v3rb> kinglozzer: nah, I grab the preview images from zooplaz api
195: [15:45:17] <kinglozzer> r3v3rb: It only happens on that first load after a flush then?
196: [15:45:46] <r3v3rb> kinglozzer: seems too yes
197: [15:45:56] <kinglozzer> Hmm, probably something to do with images then
198: [15:46:20] <r3v3rb> kinglozzer: indeed, its getImageSize running out of memory
199: [15:46:37] <kinglozzer> r3v3rb: Can you paste those methods?
200: [15:46:48] <kinglozzer> Or is it GD?
201: [15:46:50] <r3v3rb> kinglozzer: sneaky ;)
202: [15:47:23] <kinglozzer> r3v3rb: I've done too many property websites to need to steal it :P
203: [15:47:28] <r3v3rb> :P
204: [15:47:52] <r3v3rb> http://sspaste.com/paste/show/576810159bd1f << getFileByURL storage
205: [15:49:08] <r3v3rb> and yes it’s framework/model/Image.php << line 1001 $size = getimagesize() running out of memory
206: [15:49:59] <kinglozzer> r3v3rb: How big are the preview images? O.o
207: [15:51:01] <r3v3rb> kinglozzer: found it zoopla is returning an empty image
208: [15:51:03] <r3v3rb> !!!
209: [15:51:05] <r3v3rb> woot±
210: [15:51:13] * r3v3rb needs a check
211: [15:51:29] <kinglozzer> Sweet, nice easy fix then :D
212: [15:51:34] <r3v3rb> should be
213: [15:51:34] * VaultDweller quit (Ping timeout: 250 seconds)
214: [15:54:47] * slievr has joined #silverstripe
215: [15:56:56] * kinglozzer quit ()
216: [16:08:04] * janneklo1man-- has joined #silverstripe
217: [16:08:05] <ss-helper> janneklo1man--: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
218: [16:10:34] * janneklouman-- quit (Ping timeout: 260 seconds)
219: [16:12:11] * janneklo1man-- quit (Ping timeout: 240 seconds)
220: [16:46:10] * cupcake_ quit (Ping timeout: 250 seconds)
221: [16:57:12] * slievr quit (Quit: Leaving.)
222: [17:31:12] * janneklouman-- has joined #silverstripe
223: [17:35:36] * janneklouman-- quit (Ping timeout: 246 seconds)
224: [17:36:41] * XorPush quit (Quit: Page closed)
225: [17:55:46] * r3v3rb quit (Quit: r3v3rb)
226: [18:12:12] * janneklouman-- has joined #silverstripe
227: [18:16:58] * janneklouman-- quit (Ping timeout: 258 seconds)
228: [18:27:02] * neomang has joined #silverstripe
229: [18:30:29] * deschebbs quit (Quit: Konversation terminated!)
230: [18:34:02] * Kingy quit ()
231: [18:35:05] <neomang> Is it possible for me to call a php page for results within a silverstripe page (using ajax)? I am trying to build a schedule using existing code but the way they have it set up is designed for scratch-built sites/
232: [18:53:14] * janneklouman-- has joined #silverstripe
233: [18:57:59] * janneklouman-- quit (Ping timeout: 260 seconds)
234: [19:13:45] * janneklouman-- has joined #silverstripe
235: [19:17:55] * Stomach has joined #silverstripe
236: [19:18:24] * janneklouman-- quit (Ping timeout: 260 seconds)
237: [19:18:44] * Stomach quit (Read error: Connection reset by peer)
238: [19:19:21] * Stomach has joined #silverstripe
239: [19:24:42] * Stomach quit (Quit: zzz)
240: [19:47:23] * Stomach has joined #silverstripe
241: [19:53:12] * Liquide has joined #silverstripe
242: [19:54:54] * janneklouman-- has joined #silverstripe
243: [19:57:20] * Stomach quit (Quit: zzz)
244: [19:59:45] * janneklouman-- quit (Ping timeout: 276 seconds)
245: [20:03:25] * Stomach has joined #silverstripe
246: [20:19:11] * UndefinedOffset quit (Quit: Leaving.)
247: [20:22:35] * gelignite has joined #silverstripe
248: [20:35:57] * janneklouman-- has joined #silverstripe
249: [20:35:59] * Stomach quit (Ping timeout: 260 seconds)
250: [20:39:01] * Stomach has joined #silverstripe
251: [20:41:21] * janneklouman-- quit (Ping timeout: 276 seconds)
252: [20:51:24] * DarjusIT has joined #silverstripe
253: [20:55:07] * Stomach quit (Quit: zzz)
254: [20:57:30] * DarjusIT quit (Read error: Connection reset by peer)
255: [20:58:09] * adrexia has joined #silverstripe
256: [20:58:15] * Stomach has joined #silverstripe
257: [21:00:24] <ss-helper> Searching for relational record in Silverstripe ModelAdmin - http://stackoverflow.com/questions/37931718/searching-for-relational-record-in-silverstripe-modeladmin
258: [21:13:53] * pippy has joined #silverstripe
259: [21:17:01] * janneklouman-- has joined #silverstripe
260: [21:17:13] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
261: [21:21:33] * janneklouman-- quit (Ping timeout: 244 seconds)
262: [21:35:26] * phorloop has joined #silverstripe
263: [21:43:42] * Hailwood has joined #silverstripe
264: [21:44:52] * janneklouman-- has joined #silverstripe
265: [21:48:32] * micmania1 has joined #silverstripe
266: [22:26:46] * TheVoid quit (Ping timeout: 252 seconds)
267: [22:32:44] * TheVoid has joined #silverstripe
268: [22:33:11] * janneklouman-- quit (Ping timeout: 240 seconds)
269: [22:35:46] * micmania1 quit (Quit: micmania1)
270: [22:38:14] * Stomach quit (Quit: zzz)
271: [22:41:10] * micmania1 has joined #silverstripe
272: [23:09:56] * janneklouman-- has joined #silverstripe
273: [23:14:31] * janneklouman-- quit (Ping timeout: 240 seconds)
274: [23:14:54] * Stomach has joined #silverstripe
275: [23:28:22] <Stomach> good morning team
276: [23:29:20] <pippy> hai
277: [23:37:48] * phorloop quit (Quit: My laptop go to sleep. ZZZzzz…)
278: [23:42:33] <Stomach> hows it going!
279: [23:47:54] <pippy> can't complain
280: [23:48:04] <Hailwood> Hey Stomach!
281: [23:48:06] <pippy> waiting for silverstripe to merge some of my fixes for the widgets module
282: [23:48:12] <Stomach> morning Hailwood
283: [23:48:24] <Stomach> pippy - what did you unbreak ? :D
284: [23:48:39] <Stomach> not sure if waiting is the best use of your time :P
285: [23:50:13] <Stomach> I will look at them now
286: [23:50:50] <Hailwood> Stomach, While you're at it feel free to weigh in - https://github.com/silverstripe/silverstripe-framework/pull/5675 I wan't to get to work on it so I don't forget :D
287: [23:51:03] * janneklouman-- has joined #silverstripe
288: [23:51:39] <Stomach> Hailwood - pick one and implement it :P
289: [23:51:53] <Stomach> do what Sam said :) use that example
290: [23:54:07] <pippy> Stomach: https://github.com/silverstripe/silverstripe-widgets/pulls
291: [23:54:16] <pippy> two things with the htmleditor field
292: [23:54:21] <Stomach> pippy - already replied to one
293: [23:54:28] <Stomach> I need to check the other one out and test it locally
294: [23:54:33] <pippy> sweet!
295: [23:55:04] <pippy> bah this PSR-2 stuff
296: [23:55:31] * janneklouman-- quit (Ping timeout: 244 seconds)
297: [23:57:56] <pippy> thanks Stomach!

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