#silverstripe IRC Log

IRC log for 18 May 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:00:37] <thesaysora> Lol
4: [00:25:39] * spronk has joined #silverstripe
5: [00:59:23] <thesaysora> Putting Director::setBaseURL in my config.php fixes the link generation for the image, but it then breaks the admin with that error. I can't think of an alternate way to fix it right now. :\
6: [01:12:25] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
7: [01:16:38] * adrexia has joined #silverstripe
8: [02:00:24] * slievr_ has joined #silverstripe
9: [03:09:02] * thesaysora quit (Ping timeout: 260 seconds)
10: [03:35:55] * Werner__ has joined #silverstripe
11: [03:39:24] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
12: [03:40:14] * Werner__ is now known as wmk
13: [03:40:34] * UncleCheese has joined #silverstripe
14: [03:41:13] * UncleCheese quit (Client Quit)
15: [03:47:54] * UncleCheese has joined #silverstripe
16: [03:56:20] * spronk quit (Quit: I may need a longer sleep timer...)
17: [04:02:02] * spronk has joined #silverstripe
18: [04:04:08] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
19: [04:15:20] * Phlunk3 quit (Remote host closed the connection)
20: [04:30:10] <ss-helper> Re: RFC: Remove the very old BBCodeParser in favour of Golanka/BBCodeParser - https://groups.google.com/d/msg/silverstripe-dev/GDlVknhWQFo/Mwr0mOpqAQAJ
21: [04:42:26] * wmk quit (Read error: Connection reset by peer)
22: [04:42:46] * wmk has joined #silverstripe
23: [04:48:33] * wmk quit (Ping timeout: 240 seconds)
24: [04:54:52] * Stomach quit (Quit: zzz)
25: [04:56:06] * Stomach has joined #silverstripe
26: [05:04:21] * Stomach_ has joined #silverstripe
27: [05:04:36] * Azure|dc has joined #silverstripe
28: [05:08:21] * Kapdap_ has joined #silverstripe
29: [05:09:02] * micmania2 has joined #silverstripe
30: [05:12:57] * Kapdap quit (Ping timeout: 246 seconds)
31: [05:12:59] * Stomach quit (Ping timeout: 246 seconds)
32: [05:13:00] * Azure quit (Ping timeout: 246 seconds)
33: [05:13:03] * micmania1 quit (Ping timeout: 246 seconds)
34: [05:13:05] * micmania2 is now known as micmania1
35: [05:45:11] <ss-helper> Re: RFC: Remove the very old BBCodeParser in favour of Golanka/BBCodeParser - https://groups.google.com/d/msg/silverstripe-dev/GDlVknhWQFo/c7rK2s9uAQAJ
36: [05:54:13] * wmk has joined #silverstripe
37: [05:55:40] * Werner__ has joined #silverstripe
38: [05:59:34] * wmk quit (Ping timeout: 240 seconds)
39: [05:59:41] * spronk quit (Quit: I may need a longer sleep timer...)
40: [06:01:14] * Werner__ quit (Ping timeout: 276 seconds)
41: [06:07:13] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
42: [06:08:12] * Stomach_ quit (Ping timeout: 276 seconds)
43: [06:26:10] * Eliseth has joined #silverstripe
44: [06:27:09] * Stomach has joined #silverstripe
45: [06:31:59] * marvanni has joined #silverstripe
46: [06:37:09] * irogue quit (Quit: My Mac has gone to sleep. ZZZzzz…)
47: [06:40:28] * Stomach quit (Quit: zzz)
48: [06:40:46] * cheddam quit (Ping timeout: 252 seconds)
49: [06:45:11] * UncleCheese has joined #silverstripe
50: [06:47:54] * wmk has joined #silverstripe
51: [06:55:20] * micmania1 quit (Quit: micmania1)
52: [06:56:57] * wmk quit (Read error: Connection reset by peer)
53: [06:57:03] * Werner__ has joined #silverstripe
54: [07:20:12] * arnhoe has joined #silverstripe
55: [07:23:57] * marvanni quit (Ping timeout: 260 seconds)
56: [07:36:52] * Sentro has joined #silverstripe
57: [07:37:41] <Sentro> hi SilverStripe. help with CSV importer .. problem with special characters cuts off ..
58: [07:38:11] <Sentro> example : René Power cuts off from é, becomes Ren Powers .. How do deal with this problem?
59: [07:49:46] * Agilix_ has joined #silverstripe
60: [07:50:54] * UncleCheese quit (Ping timeout: 276 seconds)
61: [07:50:58] <Agilix_> morning o/
62: [07:53:24] <Agilix_> Anyone know when hooking into members onAfterWrite how I can tell wether it's a registration or a profile update? I'm using the silverstripe-australia/silverstripe-memberprofiles if that helps. It's for a third party call.
63: [07:57:24] * lerni has joined #silverstripe
64: [07:59:21] * kinglozzer has joined #silverstripe
65: [07:59:55] * Sentro quit (Quit: Sentro)
66: [08:02:20] * Sentro has joined #silverstripe
67: [08:12:27] <Sentro> hi SilverStripe. help with CSV importer .. problem with special characters cuts off ..
68: [08:12:31] <Sentro> example : René Power cuts off from é, becomes Ren Powers .. How do deal with this problem?
69: [08:27:07] * Mike123 has joined #silverstripe
70: [08:41:24] * wmk has joined #silverstripe
71: [08:44:32] * liori_ has joined #silverstripe
72: [08:45:07] * Sentro_ has joined #silverstripe
73: [08:45:07] <ss-helper> Sentro_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
74: [08:45:52] * Werner__ quit (Ping timeout: 250 seconds)
75: [08:45:53] * Eliseth quit (Ping timeout: 250 seconds)
76: [08:46:03] * Sentro quit (Ping timeout: 250 seconds)
77: [08:46:05] * cloph quit (Ping timeout: 250 seconds)
78: [08:46:05] * liori quit (Ping timeout: 250 seconds)
79: [08:46:08] * TheVoid quit (Ping timeout: 250 seconds)
80: [08:46:18] * TheVoid has joined #silverstripe
81: [08:46:25] * Sentro_ is now known as Sentro
82: [08:46:44] * agent44 has joined #silverstripe
83: [08:47:46] * cloph_away has joined #silverstripe
84: [08:49:37] <Agilix_> kinglozzer do you happen to know when hooking into members onAfterWrite how I can tell wether it's a registration or a profile update? I'm using the silverstripe-australia/silverstripe-memberprofiles if that helps. It's for a third party call.
85: [08:50:00] <kinglozzer> Hmm, if ($this->isChanged('ID')) perhaps?
86: [08:50:44] <Agilix_> kinglozzer: it gives a true on all things you can. Login, Register, logout, edit profile
87: [08:50:53] <Agilix_> so still no way to be sure what it does
88: [08:51:08] <kinglozzer> Wait, it's always reporting that ID has changed? That can't be right
89: [08:51:25] <Agilix_> yes
90: [08:51:40] * Stomach has joined #silverstripe
91: [08:52:27] <Agilix_> kinglozzer: because it updates the last visited date
92: [08:52:31] <kinglozzer> Agilix_: How about $this->isChanged('ID', DataObject::CHANGE_VALUE); ?
93: [08:52:39] <kinglozzer> Agilix_: But that doesn't update the ID
94: [08:53:00] <kinglozzer> The ID should only change when you first write an object..
95: [08:53:21] <Agilix_> k, so that would be the register then. K that might work
96: [08:55:07] <Agilix_> k, so that works, now the next one
97: [08:55:16] <Agilix_> :) thnks for pushing me in the right direction kinglozzer
98: [08:59:12] * agent44 quit (Quit: agent44)
99: [09:02:31] * Sentro quit (Quit: Sentro)
100: [09:06:21] * agent44 has joined #silverstripe
101: [09:09:15] <Agilix_> Haha I got it
102: [09:09:17] <Agilix_> sweet
103: [09:20:26] * Sentro has joined #silverstripe
104: [09:48:47] * Sentro quit (Quit: Sentro)
105: [09:49:30] * Stomach quit (Quit: zzz)
106: [10:10:30] * cloph_away is now known as cloph
107: [10:19:39] * marvanni has joined #silverstripe
108: [10:39:23] * marvanni quit (Quit: marvanni)
109: [10:48:12] * marvanni has joined #silverstripe
110: [11:04:19] * lucinderella has joined #silverstripe
111: [11:05:02] * agent44 quit (Read error: Connection reset by peer)
112: [11:05:02] * lucinderella is now known as agent44
113: [11:13:42] * kinglozzer quit (Remote host closed the connection)
114: [11:18:09] * marvanni quit (Quit: marvanni)
115: [11:38:20] * marvanni has joined #silverstripe
116: [11:52:23] * Azure|dc quit (Quit: Oops.)
117: [12:00:00] * cloph is now known as cloph_away
118: [12:03:40] <marvanni> can i put FILE_TO_URL_MAPPING in mysite/_config.php?
119: [12:05:52] <marvanni> nvm
120: [12:07:48] * DimiStripe has joined #silverstripe
121: [12:15:20] * UndefinedOffset has joined #silverstripe
122: [12:55:25] * Azure has joined #silverstripe
123: [13:04:42] * liori_ is now known as liori
124: [13:05:47] * marvanni quit (Quit: marvanni)
125: [13:10:20] * guits has joined #silverstripe
126: [13:10:47] <guits> Anyone have any experience on what cahe to use ? apc extension or other=
127: [13:10:50] <guits> `?
128: [13:13:28] <elgabbu> Hi guys ... i am adding the standard silverstripe comments module to an already exsisting project
129: [13:13:58] <elgabbu> however the provideComments field of the pages remains 0 for the already exsisting articles
130: [13:14:20] <elgabbu> is there anything I can do have these set to 1 on first dev/build ?
131: [13:14:31] * kinglozzer has joined #silverstripe
132: [13:17:41] * marvanni has joined #silverstripe
133: [13:19:03] <guits> How do i use xcache with silverstripe?
134: [13:19:12] * kinglozzer quit (Ping timeout: 260 seconds)
135: [13:34:05] * kinglozzer has joined #silverstripe
136: [13:35:51] <Agilix_> Can you set a unique combo on a do? For example only one entry can have value x and y in certain fields
137: [13:45:51] <Mike123> Warning: require_once(): open_basedir restriction in effect. File(/var/www/vhosts/project.com/httpdocs/framework/parsers/ShortcodeParser.php) is not within the allowed path(s):
138: [13:46:09] <Mike123> have this error then copied website to live server
139: [13:46:13] <Mike123> any ideas ?
140: [13:58:08] <lerni> Mike123: If I recall correct 'fixed' this once with a newer PHP Version
141: [13:59:05] <lerni> I've added a Field to the Meta-Data-ToggleCompositeField like:
142: [13:59:16] <lerni> $MetaToggle = $fields->fieldByName('Root.Main.Metadata');
143: [13:59:17] <lerni> $MetaToggle->push($MetaTitle = TextField::create('MetaTitle'));
144: [13:59:32] <lerni> this causes the ToggleCompositeField to be expanded when loading
145: [13:59:55] <lerni> I've tried to $MetaToggle->setStartClosed(1);
146: [14:00:38] <lerni> this does not change anything except the value of $MetaToggle->getStartClosed();
147: [14:01:09] <lerni> why?
148: [14:05:36] * muskie9 has joined #silverstripe
149: [14:09:03] * r3v3rb has joined #silverstripe
150: [14:09:08] <r3v3rb> hi lo
151: [14:09:28] <r3v3rb> has anyone tried angular out in the backend CMS in a custom field?
152: [14:30:30] <marvanni> has onyone a clean solution that a value that is once writtin to a database field is never allowed to change
153: [14:31:39] <muskie9> marvanni present it in a readonly field?
154: [14:31:56] <marvanni> even that can be easli hacked
155: [14:34:14] <r3v3rb> hmm, so calling a function from onclick: function() in entwine appears to be beating me today - I think I stayed up too late last night
156: [14:34:42] <muskie9> onBeforeWrite(){ if($this->FieldName != MyObject::get()->byID($this->ID)->FieldName) { $this->FieldName = MyObject::get()->byID($this->ID)->FieldName; } }
157: [14:43:46] * guits quit (Ping timeout: 250 seconds)
158: [14:44:14] <marvanni> hm.. thats a 2 extra queries ;)
159: [14:44:21] <marvanni> for 1 field check.
160: [14:44:44] <marvanni> i guess I need a new fieldtype
161: [14:44:54] <muskie9> you could do one query and save the field result, then check off of it... I was just cpy/psting quickly
162: [14:45:48] <muskie9> the crux is the value in the db needs to supersede whatever may be passed for the write, so you need to reset it before the write if it's changed
163: [14:46:09] <marvanni> i guess your right
164: [14:46:18] <marvanni> so something like :
165: [14:47:07] <marvanni> if $this->isChanged(‘MyField’) $this->MyField = new SQLSelect(‘MyField’, ‘Table’ , ‘where id = this id’)
166: [14:47:41] <muskie9> that would likely work
167: [15:01:34] * arnhoe quit ()
168: [15:03:02] * marvanni quit (Quit: marvanni)
169: [15:06:18] * Mike123 quit (Ping timeout: 250 seconds)
170: [15:06:44] * Agilix_ quit (Ping timeout: 250 seconds)
171: [15:08:00] * marvanni has joined #silverstripe
172: [15:21:26] * cloph_away is now known as cloph
173: [15:28:46] * lerni quit (Remote host closed the connection)
174: [16:04:54] <r3v3rb> arggghhh $ is not a function error in admin on canvasfield !
175: [16:32:07] * Azure quit (Quit: My Mac has gone to sleep. ZZZzzz…)
176: [16:40:30] * kinglozzer quit ()
177: [16:40:32] * Azure has joined #silverstripe
178: [16:42:40] * slievr_ quit (Ping timeout: 260 seconds)
179: [16:46:23] * slievr_ has joined #silverstripe
180: [16:59:58] * agent44 quit (Quit: zzz)
181: [17:19:00] * toddv has joined #silverstripe
182: [17:19:38] <r3v3rb> ok, how do i remove a jquery requirement to load 2.1 in the cms admin instead?
183: [17:20:01] <toddv> Has anyone used Redis for SS sessions? We're on a HA/Load balanced env and are looking to move sessions off of the file system.
184: [17:20:11] * thesaysora has joined #silverstripe
185: [17:21:16] <r3v3rb> got it ::block
186: [17:23:42] <r3v3rb> hmm, jquery 2.1 in framework CMS is not nice!
187: [17:23:49] <r3v3rb> buggers everything
188: [17:24:26] <cloph> jquery has noconflict mode - so why not use that?
189: [18:06:54] * neomang quit (Quit: Page closed)
190: [18:07:18] * neomang has joined #silverstripe
191: [18:14:42] * gelignite has joined #silverstripe
192: [18:17:15] <r3v3rb> cloph: it wasn’t that it appears to have been a temp folder issue holder a copy that was causing issues
193: [18:36:13] * krofek has joined #silverstripe
194: [18:39:04] * krofek_ quit (Ping timeout: 252 seconds)
195: [18:56:46] * thesaysora quit (Remote host closed the connection)
196: [19:05:02] * lerni has joined #silverstripe
197: [19:14:36] * Stomach has joined #silverstripe
198: [19:15:25] <ss-helper> How to create model admin $many_many of 2 classes - http://stackoverflow.com/questions/37308220/how-to-create-model-admin-many-many-of-2-classes
199: [19:26:09] <r3v3rb> where is UncleCheese when you want him!
200: [19:33:19] * r3v3rb quit (Quit: r3v3rb)
201: [19:33:30] * krofek quit (Read error: Connection reset by peer)
202: [19:33:56] * krofek has joined #silverstripe
203: [19:41:53] * Stomach quit (Quit: zzz)
204: [19:46:30] * toddv quit ()
205: [19:47:34] * lerni quit (Remote host closed the connection)
206: [19:49:29] * lerni_ has joined #silverstripe
207: [20:02:17] * Stomach has joined #silverstripe
208: [20:18:46] * r3v3rb has joined #silverstripe
209: [20:19:38] <r3v3rb> No cheese yet? where is he?
210: [20:19:43] <r3v3rb> :)
211: [20:22:06] <Stomach> hes not online yet!
212: [20:22:07] <Stomach> :D
213: [20:25:26] <muskie9> not after 9, not online 😝
214: [20:26:36] <shellbac1pacific> hey all. does anyone know if you can restrict access to specific folders in "Files" via Roles?
215: [20:27:46] <r3v3rb> Stomach go wake him up will you :)
216: [20:52:13] <Stomach> haha
217: [20:52:17] <Stomach> I dont know :D
218: [20:55:27] * vitaly_ quit (Ping timeout: 276 seconds)
219: [20:55:39] * vitaly_ has joined #silverstripe
220: [21:01:14] * adrexia has joined #silverstripe
221: [21:04:11] * UndefinedOffset quit (Quit: Leaving.)
222: [21:08:22] * micmania1 has joined #silverstripe
223: [21:23:02] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
224: [21:43:31] * irogue has joined #silverstripe
225: [21:51:29] * Exor has joined #silverstripe
226: [21:51:29] <ss-helper> Exor: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
227: [21:55:47] <Exor> Hey all. I have a BlogPost class which extends the Page class, when I create a new instance of BlogPost and try to publish it programatically I end up with records with NULL values in BlogPost_Live...
228: [21:56:10] <Exor> I'm using: $blogPost->write(); $blogPost->writeToStage('Stage'); $blogPost->publish('Stage', 'Live'); $blogPost->flushCache();
229: [22:02:59] * cheddam has joined #silverstripe
230: [22:05:51] <lerni_> Exor: I struggled with this as well and as far as I remember id did ->doPublish();
231: [22:11:39] * micmania1 quit (Quit: micmania1)
232: [22:18:21] * micmania1 has joined #silverstripe
233: [22:23:31] <Exor> lerni_: Unfortunately that doesn't work for me. I am looping through a bunch of blogPosts and it appears that the last one gets published correctly but not the rest...
234: [22:30:28] <ss-helper> ModelAdmin vs GridField: When to use one over the other? - http://stackoverflow.com/questions/37311014/modeladmin-vs-gridfield-when-to-use-one-over-the-other
235: [22:38:49] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
236: [22:43:47] * lerni_ quit (Remote host closed the connection)
237: [22:50:00] * cheddam quit (Ping timeout: 244 seconds)
238: [22:50:31] * cheddam has joined #silverstripe
239: [22:52:04] * krofek quit (Ping timeout: 244 seconds)
240: [22:56:54] * krofek has joined #silverstripe
241: [22:58:40] * irogue quit (Ping timeout: 252 seconds)
242: [23:04:05] * Stomach quit (Quit: zzz)
243: [23:04:35] * muskie9 has joined #silverstripe
244: [23:06:13] * Stomach has joined #silverstripe
245: [23:14:32] * Stomach quit (Quit: zzz)
246: [23:15:45] * krofek quit (Ping timeout: 250 seconds)
247: [23:16:25] * irogue has joined #silverstripe
248: [23:16:26] * irogue quit (Changing host)
249: [23:16:26] * irogue has joined #silverstripe
250: [23:18:39] * krofek has joined #silverstripe
251: [23:21:34] * spronk has joined #silverstripe
252: [23:26:53] * spronk quit (Quit: I may need a longer sleep timer...)
253: [23:28:34] * Stomach has joined #silverstripe
254: [23:40:10] * marvanni quit (Quit: marvanni)
255: [23:41:52] * Stomach quit (Quit: zzz)
256: [23:44:58] * Stomach has joined #silverstripe
257: [23:54:09] * spronk has joined #silverstripe

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