#silverstripe IRC Log

IRC log for 19 September 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:14] * ss-helper has joined #silverstripe
3: [00:10:49] * BackEndCoder quit (Excess Flood)
4: [00:11:44] * BackEndCoder has joined #silverstripe
5: [00:13:57] * micmania1 quit (Quit: micmania1)
6: [00:56:17] * micmania1 has joined #silverstripe
7: [00:58:12] * nickspiel quit (Ping timeout: 240 seconds)
8: [01:13:51] * spronk quit (Quit: bleep bleep bloop bloop)
9: [01:14:03] * spronk has joined #silverstripe
10: [02:20:14] * Azure|dc has joined #silverstripe
11: [02:23:18] * Azure quit (Ping timeout: 264 seconds)
12: [02:29:58] * DanaeNZ quit (Remote host closed the connection)
13: [02:30:35] * DanaeNZ has joined #silverstripe
14: [02:34:56] * DanaeNZ quit (Ping timeout: 265 seconds)
15: [02:37:47] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
16: [02:46:03] * ahr3n has joined #silverstripe
17: [02:46:03] <ss-helper> ahr3n: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
18: [03:03:23] * UncleCheese has joined #silverstripe
19: [03:04:02] * DanaeNZ has joined #silverstripe
20: [04:03:23] * BackEndCoder quit (Excess Flood)
21: [04:04:47] * BackEndCoder has joined #silverstripe
22: [04:13:09] * spronk quit (Ping timeout: 268 seconds)
23: [04:18:20] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
24: [04:19:56] * spronk has joined #silverstripe
25: [05:05:38] * Hailwood quit (Remote host closed the connection)
26: [05:20:57] <Audlex> is there an easy fix to "The used table type doesn't support FULLTEXT indexes"?
27: [05:21:07] <Audlex> Can I change the field type?
28: [05:24:26] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
29: [05:29:01] * willr quit (Quit: willr)
30: [05:36:26] * Shrike_Finland has joined #silverstripe
31: [05:41:44] * willr has joined #silverstripe
32: [05:46:33] * willr quit (Client Quit)
33: [05:48:50] * micmania1 quit (Quit: micmania1)
34: [06:05:31] * pweh has joined #silverstripe
35: [06:08:41] * ahr3n quit (Ping timeout: 248 seconds)
36: [06:13:52] * swaiba has joined #silverstripe
37: [06:20:13] * wmk has joined #silverstripe
38: [06:27:14] * Mike123 has joined #silverstripe
39: [06:28:00] <Mike123> He
40: [06:38:13] <DanaeNZ> I must be doing CsvBulkLoaders wrong
41: [06:40:00] <DanaeNZ> Undefined property: ProductCsvBulkLoader::$class
42: [06:42:13] <swaiba> DanaeNZ if you are not using this https://github.com/burnbright/silverstripe-importexport you ain't doing it right :-P
43: [06:43:03] <DanaeNZ> I looked at that briefly, but I have a pretty specific set of mappings for this CSV. Not sure if it's worth it for the user-facing advantages if the user isn't going to import anything?
44: [06:43:43] <swaiba> oh ok, well we customised what it did - just like the default offering - so we have custom and nice GUI
45: [06:45:46] <DanaeNZ> I'll give it a go
46: [06:51:25] <wmk> swaiba, *G* don't you have a more modern smartphone in your face?
47: [06:52:23] <swaiba> wmk what my massive posting on .es or my mess up on SO got to do with my out of date smartphone? :)
48: [06:54:52] <DanaeNZ> oh hhohohohhh
49: [06:54:57] <wmk> face->palm i wonder where you can buy a palm nowadays
50: [06:55:01] <DanaeNZ> I see where something is going wrong
51: [06:55:20] <DanaeNZ> The object in the csv bulk loader doesn't have the extensions applied...
52: [06:55:24] <swaiba> wmk I type that on a good old desktop computer (wiped the dust off first though!)
53: [06:55:28] <DanaeNZ> so it seems to be freaking out
54: [06:55:36] <DanaeNZ> And doesn't have all the extra DB fields
55: [06:56:27] <swaiba> wmk lol
56: [06:59:45] <wmk> nice post btw... swaiba
57: [07:00:27] <swaiba> thanks :)
58: [07:23:45] * spronk quit (Quit: I may need a longer sleep timer...)
59: [07:24:52] * spronk has joined #silverstripe
60: [07:29:17] * elgabbu has joined #silverstripe
61: [07:36:27] * Shrike_Finland quit (Quit: Leaving.)
62: [07:41:33] * darianno has joined #silverstripe
63: [07:44:31] * DanaeNZ quit (Remote host closed the connection)
64: [07:45:10] * DanaeNZ has joined #silverstripe
65: [07:49:16] * DanaeNZ quit (Ping timeout: 244 seconds)
66: [07:51:35] * adrexia has joined #silverstripe
67: [08:04:55] * kinglozzer has joined #silverstripe
68: [08:05:13] * janneklouman-- has joined #silverstripe
69: [08:14:15] * madmatt quit (Ping timeout: 244 seconds)
70: [08:14:29] * madmatt has joined #silverstripe
71: [08:14:54] * madmatt is now known as Guest37663
72: [08:20:10] * spronk quit (Quit: I may need a longer sleep timer...)
73: [08:38:21] * agent44 has joined #silverstripe
74: [09:04:42] * Hailwood has joined #silverstripe
75: [09:39:44] * DarjusIT has joined #silverstripe
76: [09:39:49] * DarjusIT1 has joined #silverstripe
77: [09:43:57] * agent44 quit (Quit: zzz)
78: [09:44:08] * UncleCheese has joined #silverstripe
79: [09:45:05] * agent44 has joined #silverstripe
80: [09:46:30] * agent44 quit (Read error: Connection reset by peer)
81: [09:47:15] * agent44 has joined #silverstripe
82: [09:55:53] * agent44 quit (Ping timeout: 248 seconds)
83: [09:56:28] * agent44 has joined #silverstripe
84: [10:11:05] <swaiba> For those who missed it on the weekend :)
85: [10:11:06] <swaiba> http://stackoverflow.com/questions/39546374/blank-screen-when-dataobject-only-has-manymany-relationship
86: [10:11:22] <swaiba> any suggestions would be helpful, if nothing comes of this I'm planning
87: [10:11:30] <swaiba> 1) js to auto hit create
88: [10:11:55] <swaiba> 2) cron job to remove all the empty items (or something on save of other objects)
89: [10:13:15] <kinglozzer> swaiba: Non-gridfield methods would work, but it depends on how much you need that interface of course
90: [10:13:16] <kinglozzer> e.g. https://github.com/kinglozzer/silverstripe-multiselectfield
91: [10:13:41] <kinglozzer> If you need the GridField you'll need something to write it straight away like you suggest
92: [10:14:03] <swaiba> just the relationship chooser is what I want, it doesn't both mr product owner provided there is something they can complete before pressing save
93: [10:14:39] <kinglozzer> swaiba: How many items are there to choose from?
94: [10:14:46] <swaiba> if we switched to silverstripe-multiselectfield it would have to be site-wide consistency is king!
95: [10:15:08] <swaiba> kinglozzer could be a lot
96: [10:15:29] <kinglozzer> Ah, I think that field may start to fall down after a few thousand...
97: [10:15:29] <swaiba> a lot is over 9000
98: [10:15:32] <kinglozzer> ^^
99: [10:16:00] <swaiba> still thanks for the tip I'll pass it on
100: [10:16:09] <kinglozzer> swaiba: Could you replace the GridField "add new" action (in ModelAdmin) to add new and save immediately?
101: [10:16:52] <swaiba> valid option, but I'd problably try and keep it simple so a little injected js would do it fine, if I have to
102: [10:19:46] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
103: [10:26:56] * Shrike_Finland has joined #silverstripe
104: [10:31:00] * lucinderella has joined #silverstripe
105: [10:31:06] * agent44 quit (Ping timeout: 264 seconds)
106: [10:31:06] * lucinderella is now known as agent44
107: [10:41:32] * ocmnt has joined #silverstripe
108: [10:41:50] <ocmnt> howdy
109: [10:42:00] <swaiba> ocmnt alreeet
110: [10:42:08] * Hailwood quit (Remote host closed the connection)
111: [10:57:26] * Shrike_Finland quit (Quit: Leaving.)
112: [11:14:05] * UncleCheese has joined #silverstripe
113: [11:14:10] * UncleCheese quit (Client Quit)
114: [11:36:11] * DarjusIT1 quit (Read error: Connection reset by peer)
115: [11:36:11] * DarjusIT quit (Read error: Connection reset by peer)
116: [11:41:31] * Hailwood has joined #silverstripe
117: [11:42:33] <Hailwood> Hey folks, got a bit of a weird one here, any idea why I would be logged out of SS when I restart my pc, but the session_id() doesn't change, hence when I am fetching something from the DB based on the session_id() the same item is returned?
118: [11:46:42] * DanaeNZ has joined #silverstripe
119: [11:51:14] * DanaeNZ quit (Ping timeout: 265 seconds)
120: [12:26:49] * pweh quit (Read error: Connection reset by peer)
121: [12:43:36] * slievr has joined #silverstripe
122: [13:00:28] <swaiba> Hailwood how certain are you that your session isn't killed wen you restart your pc?
123: [13:02:31] <Hailwood> swaiba, Well... isn't that kinda how sessions are meant to work? The moment your browser is fully closed the session should be terminated as the session cookie should be removed right?
124: [13:02:45] <swaiba> Hailwood so you don't know?
125: [13:04:40] <Hailwood> Unless my understanding of sessions is fundamentally flawed then based on my understanding I'd be 100% sure. But I could always be wrong.
126: [13:05:01] <swaiba> to be sure you only have to test...
127: [13:05:14] <swaiba> check the session before you restart, then again after
128: [13:08:56] <Hailwood> Well that's the odd thing. the session itself *was* wiped. so checking $_SESSION or using the ss equiv returned empty, it was specifically matching against session_id() that was causing the issue. so somehow it looks like the session was wiped, but I still retained the same session id.
129: [13:13:58] * Shrike_Finland has joined #silverstripe
130: [13:25:06] * Shrike_Finland quit (Quit: Leaving.)
131: [13:54:53] <Hailwood> Man this is pretty full on https://github.com/commerceguys/tax
132: [13:57:16] <slievr> Looks taxing...
133: [14:00:32] * DanaeNZ has joined #silverstripe
134: [14:38:56] * muskie9 has joined #silverstripe
135: [15:04:12] * Mike123 quit (Ping timeout: 240 seconds)
136: [15:08:32] * znorelo has joined #silverstripe
137: [15:08:42] <znorelo> hello everyone
138: [15:09:06] <znorelo> I would like to load custom lib from the /vendor directory in a Page_Controller
139: [15:09:18] <znorelo> How can I do it ?
140: [15:09:26] <muskie9> znorelo is it namespaced?
141: [15:09:36] <znorelo> I can't find super global variable for this path
142: [15:09:53] <swaiba> slievr lol
143: [15:09:58] <znorelo> i don't know for the moment
144: [15:10:15] <swaiba> znorelo if included with composer you don't need to include with PHP
145: [15:10:17] <znorelo> muskie9 why ?
146: [15:11:20] <znorelo> swaiba and if not ?
147: [15:11:22] <znorelo> ;)
148: [15:11:29] <muskie9> use Name\Space\Path\Class;
149: [15:11:30] <swaiba> if not then use composer :)
150: [15:11:41] <muskie9> i.e. https://github.com/guzzle/guzzle/blob/master/src/Client.php#L2
151: [15:11:41] <znorelo> :)
152: [15:12:09] <muskie9> if I'm using guzzle's client I'd put at the top of the file (similar to theirs) use GuzzleHttp\Client;
153: [15:12:23] <muskie9> that will allow me to new Client(); in my class
154: [15:13:56] <znorelo> Thanks !
155: [15:13:59] * znorelo quit (Quit: Page closed)
156: [15:22:03] * wmk quit (Ping timeout: 240 seconds)
157: [15:36:08] * slievr1 has joined #silverstripe
158: [15:37:03] * slievr quit (Ping timeout: 272 seconds)
159: [15:42:16] <muskie9> anyone have an example for using Requirements::javascriptTemplate()
160: [15:43:16] <kinglozzer> muskie9: What are you stuck with?
161: [15:43:45] <muskie9> I've never used it before and looking for more info on how it works as far as the variables being passed in
162: [15:44:46] <kinglozzer> muskie9: It's just a simple str_replace('$key', $value)
163: [15:44:48] <janneklouman--> https://github.com/i-lateral/silverstripe-googlemaps/blob/20d57a617cd53cdf0ad223563c210f08a78585d0/code/extension/GoogleMapController.php#L44
164: [15:45:02] <janneklouman--> this is a good resource for javascriptTemplate()
165: [15:45:40] <janneklouman--> and then you can see how it's used in the javascript file here: https://github.com/i-lateral/silverstripe-googlemaps/blob/master/javascript/GoogleMap.js#L4
166: [15:45:57] <muskie9> ah, thnx both for the info... I'll dig in, this might reduce the amount of js I have to write 👍
167: [15:46:07] <muskie9> this is actually perfect for what I need
168: [15:46:08] * wmk has joined #silverstripe
169: [15:46:28] <janneklouman--> it's pretty sweet
170: [15:46:56] <muskie9> I wish I would've looked into it sooner
171: [15:53:04] * muskie9 quit (Ping timeout: 240 seconds)
172: [15:58:23] * muskie9 has joined #silverstripe
173: [16:02:40] * DanaeNZ quit (Read error: Connection timed out)
174: [16:04:40] * janneklouman-- quit (Ping timeout: 255 seconds)
175: [16:04:46] * DanaeNZ has joined #silverstripe
176: [16:09:22] * AlphaCactus has joined #silverstripe
177: [16:31:10] * kinglozzer quit ()
178: [16:34:12] * DanaeNZ quit (Ping timeout: 244 seconds)
179: [16:38:54] * wmk quit (Ping timeout: 265 seconds)
180: [16:44:02] * agent44 quit (Quit: zzz)
181: [16:46:12] * ocmnt quit (Ping timeout: 240 seconds)
182: [16:49:07] * muskie9 quit (Ping timeout: 248 seconds)
183: [16:53:56] * muskie9 has joined #silverstripe
184: [17:11:53] * gelignite has joined #silverstripe
185: [17:22:02] * wmk has joined #silverstripe
186: [17:38:30] * shellbac1pacific has joined #silverstripe
187: [17:40:46] * shellbackpacific quit (Ping timeout: 265 seconds)
188: [17:53:55] * slievr1 quit (Quit: Leaving.)
189: [17:56:26] * wmk_ has joined #silverstripe
190: [17:58:10] * wmk quit (Ping timeout: 265 seconds)
191: [18:00:35] * L03TJ3 has joined #silverstripe
192: [18:00:35] <ss-helper> L03TJ3: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
193: [18:01:12] * L03TJ3 quit (Client Quit)
194: [18:29:19] * shellbac1pacific quit (Ping timeout: 272 seconds)
195: [18:31:38] * shellbackpacific has joined #silverstripe
196: [18:53:16] * wmk_ quit (Ping timeout: 265 seconds)
197: [19:15:59] * Hailwood quit (Ping timeout: 265 seconds)
198: [19:16:24] * Hailwood has joined #silverstripe
199: [19:24:13] * CodeTrap has joined #silverstripe
200: [19:27:25] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
201: [19:31:57] * darianno quit (Quit: Textual IRC Client: www.textualapp.com)
202: [20:03:18] * Stomach has joined #silverstripe
203: [20:14:51] * adrexia quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
204: [20:23:03] * Hailwood quit (Remote host closed the connection)
205: [20:27:00] * UncleCheese has joined #silverstripe
206: [20:30:33] * CodeTrap quit (Quit: CodeTrap)
207: [20:31:45] * DanaeNZ has joined #silverstripe
208: [20:36:03] * DanaeNZ quit (Ping timeout: 250 seconds)
209: [20:36:58] <UncleCheese> How do you do casting in a GlobalTemplateProvider?
210: [20:45:14] * darjusIT has joined #silverstripe
211: [20:59:13] * adrexia has joined #silverstripe
212: [21:09:07] * Hailwood has joined #silverstripe
213: [21:11:58] <darjusIT> maybe someone knows good project manager for linux, non online version?
214: [21:40:43] * micmania1 has joined #silverstripe
215: [21:51:07] * Hailwood quit (*.net *.split)
216: [21:51:08] * shellbackpacific quit (*.net *.split)
217: [21:51:09] * saiyan quit (*.net *.split)
218: [21:51:09] * DimiStripe quit (*.net *.split)
219: [21:51:25] * shellbackpacific has joined #silverstripe
220: [21:51:26] * DimiStripe has joined #silverstripe
221: [21:51:29] * saiyan has joined #silverstripe
222: [21:51:34] * Hailwood has joined #silverstripe
223: [21:54:53] * ahr3n has joined #silverstripe
224: [21:57:02] * samson quit (Quit: Connection closed for inactivity)
225: [21:58:01] * DanaeNZ has joined #silverstripe
226: [22:06:18] * Jakx has joined #silverstripe
227: [22:11:32] * micmania1 quit (Quit: micmania1)
228: [22:11:54] * micmania1 has joined #silverstripe
229: [22:28:43] * Stomach quit (Quit: zzz)
230: [22:28:50] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
231: [22:29:02] * UncleCheese has joined #silverstripe
232: [22:34:44] * darjusIT quit (Remote host closed the connection)
233: [22:35:24] <DanaeNZ> ugh. ->column('CustomField') on a many_many list not returning the CustomFIeld?
234: [22:35:37] <DanaeNZ> Do I really need to write a join for this?
235: [22:35:40] <DanaeNZ> gaahh.
236: [22:37:02] <UncleCheese> by custom field, you mean $many_many_extraFields?
237: [22:37:45] <DanaeNZ> UncleCheese: nope, just a normal field
238: [22:37:46] * Stomach has joined #silverstripe
239: [22:38:03] <DanaeNZ> So Page - Page_Keywords - Keywords[CustomField]
240: [22:38:29] <DanaeNZ> $this->Keywords()->column('CustomField')
241: [22:38:36] <DanaeNZ> ($this being Page)
242: [22:41:19] <Jakx> DanaeNZ, does a backtrace reach DataQuery::column() (just curious)?
243: [22:41:36] <DanaeNZ> Jakx: Yeah I can set a breakpoint in there
244: [22:41:45] <DanaeNZ> Oh wait!
245: [22:41:47] <DanaeNZ> Just got it.
246: [22:41:56] <DanaeNZ> The column name also exists on the Page table
247: [22:44:57] <DanaeNZ> now, how to specify that I want Keyword.CustomField not Page.CustomField
248: [22:47:31] <DanaeNZ> ok I tried selecting explicitly using the IDs, and then trying to get the column
249: [22:47:34] <DanaeNZ> but no luck
250: [22:48:11] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
251: [22:50:15] <Jakx> DanaeNZ, interested to know what you arrive on as a solution.
252: [22:50:21] <DanaeNZ> Indeed
253: [22:50:38] <DanaeNZ> Appears to be trying: WHERE ("Keyword"."ID" IN (?, ?)) from the raw sql which doesn't seem right
254: [22:51:41] <Jakx> Inc. juicy query contributions from DanaeNZ? lol
255: [22:51:51] <DanaeNZ> hahaha noooooooo
256: [22:58:21] <Jakx> Is there a way I can use SSViewer or SSViewer_Scope to do an iteration of all custom templates? I have a crazy number of email notifications, and would like to be able to have a template setup that rolls back to the parent template if not present, i.e 'MyCustomBody', 'MyExtensionClassBody', 'BaseClassBody'. Any tips?
257: [22:59:21] <Jakx> Right now I'm just using a clumsy series of staggered/nested SSViewer::hasTemplate() conditions.
258: [23:02:30] <DanaeNZ> agh omg I think it was just, the field wasn't set??
259: [23:22:51] <ss23> fresh yourself up with a fresh up, yeah
260: [23:28:16] * spronk has joined #silverstripe
261: [23:37:07] * BackEndCoder quit (Excess Flood)
262: [23:39:20] * BackEndCoder has joined #silverstripe
263: [23:55:27] * DanaeNZ quit (Remote host closed the connection)
264: [23:56:02] * DanaeNZ has joined #silverstripe

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