#silverstripe IRC Log

IRC log for 5 December 2016

All timestamps are in UTC.

1: [00:02:22] * bubaphex has joined #silverstripe
2: [00:07:25] * bubaphex quit (Quit: bubaphex)
3: [00:07:37] * Stomach quit (Quit: zzz)
4: [00:17:47] * janneklouman-- has joined #silverstripe
5: [00:21:32] * Stomach has joined #silverstripe
6: [00:22:41] * janneklouman-- quit (Ping timeout: 265 seconds)
7: [00:30:05] <ss-helper> New RFC: Form RequestHandler abstraction - https://groups.google.com/d/msg/silverstripe-dev/0qMnMDWBu4E/JQRjZoo5CwAJ
8: [00:43:36] * Tron quit (Ping timeout: 260 seconds)
9: [00:50:17] * bubaphex has joined #silverstripe
10: [00:59:44] * bubaphex quit (Quit: bubaphex)
11: [01:07:50] * Dig has joined #silverstripe
12: [01:09:21] <Dig> I have an issue that my unit tests are no longer creating the temporary databases but the core tests on the same install do. Its causing errors writing the fixture data at the start of any test - revisiting a project from a while ago but nothing that I have specifically changed as far as I know - Anyone seen this before?
13: [01:13:44] <DanaeNZ> Dig: Perhaps, add the flush param in your phpunit.xml ? Whenever I have DB issues during tests it seems to be because of this
14: [01:14:08] <DanaeNZ> <php> <get name="flush" value="1"/> </php>
15: [01:33:01] <Dig> I'll give it a go, thanks
16: [01:45:17] * bubaphex has joined #silverstripe
17: [01:46:02] * bubaphex quit (Client Quit)
18: [01:46:51] * bubaphex has joined #silverstripe
19: [02:00:58] * bubaphex quit (Quit: bubaphex)
20: [02:02:46] * bubaphex has joined #silverstripe
21: [02:03:02] * micmania1 quit (Quit: micmania1)
22: [02:09:53] * micmania1 has joined #silverstripe
23: [02:29:36] * janneklouman-- has joined #silverstripe
24: [02:34:09] * janneklouman-- quit (Ping timeout: 250 seconds)
25: [03:03:00] * bubaphex quit (Quit: bubaphex)
26: [03:28:36] * bubaphex has joined #silverstripe
27: [03:32:03] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
28: [03:33:40] * bubaphex quit (Quit: bubaphex)
29: [03:39:08] * DanaeNZ quit (Quit: TIME TO FEED)
30: [03:41:12] * Tron has joined #silverstripe
31: [03:41:19] * adrexia has joined #silverstripe
32: [03:41:31] <Tron> Hey guys does anyone have much experience with MultiForm??
33: [03:46:27] * Robdgreat has joined #silverstripe
34: [03:59:32] * Dig quit (Remote host closed the connection)
35: [04:01:09] <Firesphere> I've worked with it once or twice
36: [04:06:40] * Hailwood quit (Quit: Konversation terminated!)
37: [04:28:42] <Tron> Firesphere, I am using my form inside a modal. When I click next step it does a page reload. Is there an ajax sort of way to do this?
38: [04:29:09] * pweh has joined #silverstripe
39: [04:29:30] <Firesphere> If you want to capture it with Ajax, I'd suggest you build the steps yourself.
40: [04:29:53] <Firesphere> MultiForm isn't really that special, it's basically just a very long form, that's stored in the session until all the steps are done.
41: [04:30:07] <Firesphere> Also, I have no clue about it's maintenance status
42: [04:37:05] <Tron> Yea I think I will do that. Thank you
43: [04:39:52] * micmania1 quit (Quit: micmania1)
44: [04:55:23] * Stomach quit (Ping timeout: 244 seconds)
45: [04:58:02] * hewp has joined #silverstripe
46: [04:59:38] * pweh quit (Ping timeout: 245 seconds)
47: [05:04:56] * Tron quit (Ping timeout: 260 seconds)
48: [05:09:23] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
49: [05:13:42] * spronk quit (Quit: I may need a longer sleep timer...)
50: [06:08:07] * hewp is now known as kangaroo
51: [06:08:40] * kangaroo is now known as pweh
52: [06:29:35] * Shrike_Finland has joined #silverstripe
53: [06:32:21] * helenclarko quit (Ping timeout: 268 seconds)
54: [06:53:50] <ss-helper> Re: NGINX extra Security - https://groups.google.com/d/msg/silverstripe-dev/S4mPHYgL2KY/UhKJ6GhOCwAJ
55: [06:53:50] <ss-helper> Re: NGINX extra Security - https://groups.google.com/d/msg/silverstripe-dev/S4mPHYgL2KY/80veQA1OCwAJ
56: [07:00:15] <ss-helper> Re: NGINX extra Security - https://groups.google.com/d/msg/silverstripe-dev/S4mPHYgL2KY/FsZPJYFPCwAJ
57: [07:18:43] * wmk has joined #silverstripe
58: [07:45:20] <Firesphere> We got it ss-helper
59: [07:45:28] <Firesphere> There's a new post in the groups
60: [07:45:39] <Firesphere> Hey, Snowman23, You demoted yourself?
61: [07:49:32] <Snowman23> I just set this mode to avoid the responsibilities of being an op most of the time
62: [07:49:40] <Snowman23> Though I guess not many people come on SS irc these days
63: [07:58:40] <wmk> morning (ugt)
64: [07:59:22] <wmk> Firesphere, is Nikolaus (the original St. Klaus) also coming in NZ today/tonight?
65: [07:59:56] <Firesphere> Ehhhh, I wouldn't know?
66: [08:00:10] <Firesphere> I have no idea of his plans ;)
67: [08:00:12] <ss-helper> Call redirect on extended class in SilverStripe - http://stackoverflow.com/questions/40930166/call-redirect-on-extended-class-in-silverstripe
68: [08:00:17] <Firesphere> Snowman23: Fair enough :)
69: [08:00:44] <Firesphere> Snowman23: Yeah, the Slack channel is actually growing and more active nowadays I believe
70: [08:03:01] <wmk> Firesphere, too many rooms over there... Hard to keep track of everything imho
71: [08:03:41] <wmk> Firesphere, what rooms/channels are important on slack? beside general...
72: [08:05:16] <Firesphere> That completely depends on your wishes
73: [08:05:25] <Firesphere> General, SS4, Backend, Frontend
74: [08:05:31] <Firesphere> Whichever you prefer :)
75: [08:06:49] <wmk> hmm, seems i'm not the only one who doesn't like that many channels for every topic
76: [08:07:18] <wmk> it might make sense, but i doubt we have enough traffic there that it really matters
77: [08:29:55] * ajmitch_ quit (Ping timeout: 250 seconds)
78: [08:30:13] <ss-helper> Silverstripe - two form submissions on one controller - http://stackoverflow.com/questions/40969870/silverstripe-two-form-submissions-on-one-controller
79: [08:30:32] * ajmitch has joined #silverstripe
80: [09:44:07] * Shrike_Finland quit (Quit: Leaving.)
81: [10:38:43] * Azure quit (Read error: Connection reset by peer)
82: [10:40:37] <r5v3rb> morning all
83: [10:41:30] <r5v3rb> any ideas what could break a database table and crash MySQL in SS ? I get this returned, DB::prepared_query(SELECT count(*) AS "Count" FROM "OrderItem" WHERE ("ID" = ?) << screws the OrderItem table which then has to be dropped
84: [10:42:18] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
85: [10:44:27] * UncleCheese has joined #silverstripe
86: [10:48:08] * agent44 has joined #silverstripe
87: [10:48:39] * wmk quit (Quit: Leaving)
88: [10:56:55] <r5v3rb> here’s the full output from the screen dump: http://hastebin.com/nekonulili.php
89: [11:05:34] <r5v3rb> Snowman23: don’t drop the iRC channel!
90: [11:12:57] * agent44 quit (Ping timeout: 240 seconds)
91: [11:25:36] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
92: [11:26:53] * agent44 has joined #silverstripe
93: [11:28:43] * darianno has joined #silverstripe
94: [11:31:17] <r5v3rb> fixed db issue - dropped and rebuilt seems to have fixed
95: [11:34:23] * Shrike_Finland has joined #silverstripe
96: [11:34:44] * cloph_away is now known as cloph
97: [11:55:53] * pweh quit (Read error: Connection reset by peer)
98: [12:35:27] * ninty9notout has joined #silverstripe
99: [12:44:48] * janneklouman-- has joined #silverstripe
100: [12:47:05] * agent44 quit (Quit: Bai!)
101: [12:58:04] * agent44 has joined #silverstripe
102: [13:03:45] * Firesphere quit (Ping timeout: 246 seconds)
103: [13:07:21] * ninty9notout quit (Ping timeout: 260 seconds)
104: [13:08:48] * lordio has joined #silverstripe
105: [13:08:48] <ss-helper> lordio: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
106: [13:10:08] <lordio> hey all. i am a bit stumped as to how i can get the tagfield module to work on a frontend form, saved to modeladmin. does anyone have any experience with this?
107: [13:31:03] * UndefinedOffset has joined #silverstripe
108: [13:31:52] * Firesphere has joined #silverstripe
109: [13:45:24] * cupcake has joined #silverstripe
110: [13:46:28] * Shrike_Finland quit (Quit: Leaving.)
111: [13:46:29] <cupcake> heya
112: [13:47:16] * samsam has joined #silverstripe
113: [14:00:16] <samsam> when you use CroppedImage(x,x) in a template, does the image get cropped and cached on flush? or on each load? (which I assume is unlikely)
114: [14:01:00] <samsam> I mean, does it get cropped and cached, or cropped on each page request and not cached?
115: [14:02:21] <cupcake> it should be cached afaik
116: [14:04:08] <samsam> I assumed so, cropping images on each page load would be inefficient in terms of cpu load
117: [14:04:51] <cupcake> i have an issue with DataExtension... this DataExtension is applied to more than one dataobject, and it defines 2 has_one relationships... however when i save one dataobject by setting a relationship this saving is applied to all dataobjects having this dataextension
118: [14:04:52] <cupcake> any idea?
119: [14:07:42] <samsam> is it saving using the default saving mechanism or have you defined anything in onBeforeWrite/onAfterWrite/ ?
120: [14:08:47] <samsam> Maybe someone can answer your question from only that information, but I think it's best if you dump your code on sspaste for us to see
121: [14:09:11] <cupcake> by using normal saving mechanism
122: [14:09:49] <cupcake> http://sspaste.com/paste/show/584575232d0c3
123: [14:14:27] <samsam> looks correct to me. perhaps the error is in one of the owner classes
124: [14:14:48] <samsam> so when you save in class A, it writes also to class B? also the other way? when you write in B, does it save to A?
125: [14:15:35] <cupcake> im noticing
126: [14:15:50] <cupcake> that BannerAreaEditor extends dropdownfield
127: [14:15:58] <cupcake> and overrides saveInto function
128: [14:16:03] <cupcake> maybe there is something wrong with it
129: [14:18:16] <samsam> sounds suspicious
130: [14:18:27] <cupcake> hehehe
131: [14:18:48] <cupcake> *takes a deep breath*
132: [14:19:14] <samsam> that helps ;-)
133: [14:19:26] <cupcake> :)
134: [14:36:46] <cupcake> found the loop hole
135: [14:37:00] <cupcake> implementation does not work with intended use...
136: [14:37:03] <cupcake> :)
137: [14:41:58] <samsam> problem was not in detail, but bigger picture?
138: [14:47:29] <cupcake> yes
139: [14:47:43] <cupcake> implementation was for one case now they want it diff... usual clients :D
140: [14:59:53] <samsam> cupcake: lol I know the struggle
141: [15:04:45] * agent44 quit (Ping timeout: 256 seconds)
142: [15:19:41] * agent44 has joined #silverstripe
143: [15:22:01] * helenclarko has joined #silverstripe
144: [16:08:20] * ninty9notout has joined #silverstripe
145: [16:49:25] * janneklouman-- quit (Ping timeout: 244 seconds)
146: [16:57:48] * janneklouman-- has joined #silverstripe
147: [16:58:16] * darianno quit (Quit: Textual IRC Client: www.textualapp.com)
148: [17:45:33] * r5v3rb quit (Quit: r5v3rb)
149: [17:45:44] * Doniz has joined #silverstripe
150: [18:23:31] * ninty9notout quit (Ping timeout: 260 seconds)
151: [18:28:30] * agent44 quit (Quit: zzz)
152: [19:05:49] * Doniz quit (Remote host closed the connection)
153: [19:07:36] * janneklouman-- quit (Ping timeout: 258 seconds)
154: [19:10:18] * janneklouman-- has joined #silverstripe
155: [19:23:56] <samsam> is it possible to change a controller class' $url_handlers through the init() function?
156: [19:25:51] * jbrungar_ has joined #silverstripe
157: [19:28:33] * BackEndCoder quit (*.net *.split)
158: [19:28:33] * jbrungar quit (*.net *.split)
159: [19:28:34] * jbrungar_ is now known as jbrungar
160: [19:29:21] * BackEndCoder_ has joined #silverstripe
161: [19:32:27] * Stomach has joined #silverstripe
162: [19:34:29] * bubaphex has joined #silverstripe
163: [19:42:29] * bubaphex quit (Quit: bubaphex)
164: [19:42:51] * bubaphex has joined #silverstripe
165: [19:52:16] * UncleCheese has joined #silverstripe
166: [20:00:25] * adrexia has joined #silverstripe
167: [20:05:16] <samsam> ok guys, this is killing me! http://www.sspaste.com/paste/show/5845c8602925d
168: [20:05:49] <samsam> this page works fine. When entering the $Category param in the URL, it throws this error:
169: [20:06:21] <samsam> Argument 1 passed to ProductCategoryPage_Controller::getProduct() must be an instance of SS_HTTPRequest, none given, called in ...
170: [20:07:50] <xyphoid> i think if you use url_handlers instead of the default page routing stuff you have to fetch the request yourself via $this->getRequest()
171: [20:07:56] * gelignite has joined #silverstripe
172: [20:09:07] <samsam> xyphoid: when I change the renderWith page parameter: return $this->renderWith(array('HomePage', 'Page'));
173: [20:09:11] <samsam> it loads that page just fine..
174: [20:09:51] <samsam> where would I need to write the $this->getRequest(); ?
175: [20:10:24] <xyphoid> nowhere in your example since yo're not using it - that error is saying getProduct(SS_HTTPRequest $request) is wrong
176: [20:10:39] <xyphoid> use getProduct() instead
177: [20:11:06] <xyphoid> but if you wanted that $request you'd have to fetch it yourself
178: [20:12:44] * bubaphex quit (Quit: bubaphex)
179: [20:12:49] <samsam> xyphoid: now I understand what you mean. Giving it a try :)
180: [20:13:27] <xyphoid> i could be wrong here but it felt like you either want to use page controllers or url_handler'd controllers - having url_handlers in a pagecontroller seems like it's going to mess you up
181: [20:13:57] <samsam> $this->getRequest()->getVar('Product'); right?
182: [20:14:23] <samsam> to get the $Category parameter
183: [20:15:49] <samsam> nah its ->param
184: [20:18:41] * DanaeNZ has joined #silverstripe
185: [20:21:19] <samsam> xyphoid: thanks mate, solved it
186: [20:23:10] <xyphoid> cheers haha, I only got my head around routing this week myself
187: [20:23:11] * bubaphex has joined #silverstripe
188: [20:23:57] * janneklouman-- quit (Quit: Lost terminal)
189: [20:30:41] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
190: [20:31:36] * micmania1 has joined #silverstripe
191: [20:33:28] * bubaphex quit (Quit: bubaphex)
192: [20:39:16] * Stomach_ has joined #silverstripe
193: [20:40:53] * Stomach quit (Ping timeout: 244 seconds)
194: [20:44:39] * bubaphex has joined #silverstripe
195: [20:58:40] * UndefinedOffset quit (Quit: Leaving.)
196: [21:02:07] * UndefinedOffset has joined #silverstripe
197: [21:02:35] * samsam__ has joined #silverstripe
198: [21:02:49] * samsam__ has left #silverstripe
199: [21:03:06] * samsam__ has joined #silverstripe
200: [21:03:21] * samsam quit (Ping timeout: 260 seconds)
201: [21:03:21] * samsam__ is now known as samsam
202: [21:03:45] <samsam> test
203: [21:07:08] * Stomach_ quit (Quit: zzz)
204: [21:12:10] * Stomach has joined #silverstripe
205: [21:16:52] * ninty9notout has joined #silverstripe
206: [21:26:54] * UndefinedOffset quit (Quit: Leaving.)
207: [21:35:09] * bubaphex quit (Quit: bubaphex)
208: [21:45:10] * DarjusIT has joined #silverstripe
209: [22:11:37] * Stomach quit (Quit: zzz)
210: [22:12:07] * bubaphex has joined #silverstripe
211: [22:16:10] * Tron has joined #silverstripe
212: [22:17:04] <Tron> How do I go about making MultIForm ajax? ie when i click next step it doesn't do an entire page reload
213: [22:38:30] * samsam quit (Quit: samsam)
214: [22:39:49] <lordio> hey all. i am a bit stumped as to how i can get the tagfield module to work on a frontend form, saved to modeladmin. does anyone have any experience with this?
215: [22:41:03] * UncleCheese has joined #silverstripe
216: [22:46:14] * samsam has joined #silverstripe
217: [22:46:20] * samsam has left #silverstripe
218: [22:48:10] * Hailwood has joined #silverstripe
219: [22:48:14] <Hailwood> Hey folks
220: [22:50:35] <Hailwood> Anyone here used bcmath for currency calculations?
221: [22:52:14] * trash_ has joined #silverstripe
222: [22:54:01] * r3v3rb has joined #silverstripe
223: [22:56:05] <trash_> hi all
224: [22:57:21] * bubaphex quit (Quit: bubaphex)
225: [22:57:34] <trash_> does anyone of you know a library that will calculate the cover of a doc/pdf/xls page?
226: [22:58:13] <r3v3rb> trash_, calculate?
227: [22:58:31] <trash_> this is to calculate how many inc it will cost to print something
228: [22:58:45] <trash_> so if the page is with images to give some alert
229: [22:59:01] <r3v3rb> so the ink density of the page?
230: [22:59:04] <trash_> or if the background is black but the letters are white
231: [22:59:28] <trash_> yeah
232: [22:59:31] <trash_> exactly
233: [23:00:01] * ss-helper quit (Remote host closed the connection)
234: [23:00:16] * ss-helper has joined #silverstripe
235: [23:01:18] <trash_> the only solution that I can think of is to convert each page to image and to try to get the info from there - still not sure it will it work but this is the only one that I
236: [23:01:31] <trash_> can think of for now
237: [23:01:58] <r3v3rb> trash_, you would probably want to convert using ghostscript and then use 'inkcov' to return the 4 channels density
238: [23:04:57] <r3v3rb> or you could output each channel as a black and white and then use awk to calculate the percentage of 'black' pixels - which would be the ink density for that specific channel...
239: [23:04:58] <trash_> I will need to check this ghostscript and inkcov
240: [23:05:47] * r3v3rb worked in print for twenty years before becoming a programmer ;) and most of his programming is now based around PDF manipulation :D
241: [23:07:47] <trash_> :)
242: [23:09:48] <r3v3rb> trash_, what part of the UK are you based in?
243: [23:10:59] <trash_> south gloucestershire
244: [23:12:02] <r3v3rb> nice, near bristol then
245: [23:14:13] <r3v3rb> right time to go... catch you all tomorrow
246: [23:15:52] <trash_> yeah near bristol
247: [23:16:00] <trash_> see you tomorrow
248: [23:16:21] * cupcake quit (Ping timeout: 260 seconds)
249: [23:18:22] * r3v3rb quit (Quit: Leaving)
250: [23:18:44] * Azure has joined #silverstripe
251: [23:20:26] * ninty9notout quit (Ping timeout: 260 seconds)
252: [23:25:29] * Stomach has joined #silverstripe
253: [23:27:08] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
254: [23:30:22] * bubaphex has joined #silverstripe
255: [23:37:39] * micmania1 quit (Quit: micmania1)
256: [23:38:04] * micmania1 has joined #silverstripe
257: [23:43:55] * pweh has joined #silverstripe
258: [23:47:22] * Stomach quit (Quit: zzz)
259: [23:48:11] * micmania1 quit (Quit: micmania1)
260: [23:51:00] * micmania1 has joined #silverstripe
261: [23:51:47] * Stomach has joined #silverstripe
262: [23:56:17] * DanaeNZ quit (Remote host closed the connection)
263: [23:56:52] * DanaeNZ has joined #silverstripe
264: [23:57:11] * Tron quit (Ping timeout: 260 seconds)

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