#silverstripe IRC Log

IRC log for 1 April 2016

All timestamps are in UTC.

1: [00:41:52] * Stomach has joined #silverstripe
2: [00:45:04] <ss-helper> Re: Browser support for 4.0: Netscape Navigator - https://groups.google.com/d/msg/silverstripe-dev/P5wiPxiRYVI/N3e__xluKAAJ
3: [00:45:04] <ss-helper> Re: [silverstripe-dev] Browser support for 4.0: Netscape Navigator - https://groups.google.com/d/msg/silverstripe-dev/P5wiPxiRYVI/VSb957BtKAAJ
4: [00:47:10] <muskie9> that thread tho ^
5: [00:58:52] * Phlunk3 quit (Read error: Connection reset by peer)
6: [01:00:04] <ss-helper> Re: [silverstripe-dev] Re: Browser support for 4.0: Netscape Navigator - https://groups.google.com/d/msg/silverstripe-dev/P5wiPxiRYVI/_O01VI5uKAAJ
7: [01:06:02] * muskie9__ has joined #silverstripe
8: [01:06:44] * camfindlay has joined #silverstripe
9: [01:08:19] * muskie9 quit (Ping timeout: 252 seconds)
10: [01:12:27] * muskie9__ is now known as muskie9
11: [01:15:05] * Tanger has joined #silverstripe
12: [01:25:01] * h4x0reker has joined #silverstripe
13: [01:25:01] <ss-helper> h4x0reker: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
14: [01:29:44] * h4x0reker quit (Ping timeout: 250 seconds)
15: [01:49:39] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
16: [01:52:24] * Stomach quit (Quit: zzz)
17: [01:52:37] * UncleCheese quit (Quit: Textual IRC Client: www.textualapp.com)
18: [01:55:54] * Stomach has joined #silverstripe
19: [01:59:51] * muskie9 has joined #silverstripe
20: [02:21:49] * DanaeNZ has joined #silverstripe
21: [02:34:11] * timotheus-booth quit (Quit: WeeChat 1.4)
22: [02:37:33] * Tanger quit (Quit: Tanger)
23: [03:16:19] * DanaeNZ quit (Quit: TIME TO FEED)
24: [03:24:54] * camfindlay quit (Quit: camfindlay)
25: [03:31:04] * camfindlay has joined #silverstripe
26: [03:31:33] * camfindlay quit (Client Quit)
27: [03:40:17] * Stomach quit (Quit: zzz)
28: [03:44:52] * micmania1 quit (Quit: micmania1)
29: [04:02:44] * Hailwood quit (Remote host closed the connection)
30: [04:08:46] * micmania1 has joined #silverstripe
31: [04:10:02] * joelpittet has joined #silverstripe
32: [04:20:18] * joelpittet quit (Remote host closed the connection)
33: [04:32:25] * micmania1 quit (Quit: micmania1)
34: [04:56:23] * vanny quit (Quit: Page closed)
35: [05:14:47] * Tanger has joined #silverstripe
36: [05:28:08] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
37: [05:29:51] * muskie9 has joined #silverstripe
38: [05:51:05] * Agilix_ has joined #silverstripe
39: [05:54:11] * wmk has joined #silverstripe
40: [05:57:18] * micmania1 has joined #silverstripe
41: [05:57:49] * micmania1 quit (Client Quit)
42: [06:03:49] * marvanni has joined #silverstripe
43: [06:05:15] * Mike123 has joined #silverstripe
44: [06:14:33] * spronk quit (Quit: I may need a longer sleep timer...)
45: [06:15:17] * spronk has joined #silverstripe
46: [06:23:03] <wmk> omg - php7 and netscape navigator support in SS4?
47: [06:24:11] <Agilix_> nice
48: [06:26:42] <muskie9> http://puu.sh/o1Im6/9d5e373289.jpg
49: [06:28:27] <wmk> https://www.youtube.com/watch?v=w4aLThuU008
50: [06:29:03] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
51: [06:32:16] * marvanni quit (Ping timeout: 264 seconds)
52: [06:33:45] * Eliseth has joined #silverstripe
53: [06:51:49] * marvanni has joined #silverstripe
54: [07:00:02] * spronk quit (Max SendQ exceeded)
55: [07:04:21] * arnhoe has joined #silverstripe
56: [07:10:19] <Agilix_> Anyone know a good restfulservice example that deals with a request body? A more complex request body if possible :p
57: [08:13:48] * slievr has joined #silverstripe
58: [08:25:34] * aragonne has joined #silverstripe
59: [08:27:00] <Mike123> i have to override ModelAsController getNestedControllers() function, i cant figure it out how to declare rule in my routes file
60: [08:27:52] <Mike123> now i have it like this http://www.sspaste.com/paste/show/56fe30fdc5530
61: [08:27:57] <aragonne> Hi, I have a DropdownField in a front end Form. In my form processor, I want to get the ‘label’ of the selected option. Is there a way to get this? For example, <option value=“1”>SilverStripe</option> … I’m trying to retrieve the ‘SilverStripe’ label
62: [08:33:23] * GioVdK has joined #silverstripe
63: [08:34:38] <marvanni> How is the label generated
64: [08:35:08] <marvanni> if it is from database you need to do MyLabels::get()->byID($value)->Title
65: [08:35:09] <aragonne> @marvanni: DropdownField::create('County', 'Your County',
66: [08:35:09] <aragonne> ContactCounty::get()->map('Code', 'Title')->toArray())
67: [08:35:11] <marvanni> or something
68: [08:35:35] <marvanni> so that would ContactCounty::get()->byID($data[DropdownFieldName])
69: [08:35:58] <marvanni> $data[‘County’];
70: [08:36:15] <aragonne> @marvanni: yes, I was thinking of resorting to hitting the DB but was hoping to get the ‘label’ through either the $data or $form params.
71: [08:36:48] <aragonne> @marvanni: $data[‘County’] returns the ‘value’ attribute but I’m trying to get its label
72: [08:36:57] <marvanni> no. but thats not Silverstripes fault. forms just does not work that way. it only sends values
73: [08:37:00] <aragonne> (I need both the value and lable)
74: [08:37:26] <aragonne> OK, that makes sense. I’ll have to hit the DB then. Thanks
75: [08:37:53] * x4j5 has joined #silverstripe
76: [08:48:19] <wmk> Mike you need
77: [08:48:23] <wmk> ^^ Mike123
78: [08:48:30] <wmk> after: modelascontrollerroutes
79: [08:48:34] <wmk> in your config.
80: [08:48:51] * agent44 has joined #silverstripe
81: [08:48:54] <wmk> so that it comes AFTER the original cms routes
82: [08:49:09] <Mike123> wmk, ok i will try
83: [08:49:30] <wmk> Agilix_, define "good restfulservice example"...
84: [08:55:01] <Mike123> wmk, still getting error http://www.sspaste.com/paste/show/56fe37599b981
85: [08:55:12] <Mike123> Fatal error: Based on their before & after rules two fragments both need to be before/after each other
86: [08:58:56] <wmk> Mike123, .... Name and After should not be the same.
87: [08:59:05] <wmk> modelascontrollerroutes is the original cms route config
88: [08:59:16] <wmk> you should name it like MyModelascontrollerroutes (or anything different)
89: [08:59:17] <Agilix_> wmk: Well, I need to implement a rest api of another provider. Now I'm not really experienced on the rest front and this does not seem to work: http://pastie.org/10781652
90: [08:59:29] <Agilix_> Might be doing something horribly wrong, just not sure
91: [08:59:56] <wmk> well, your api provider expects json
92: [09:00:46] <Agilix_> can you pass json to the service? All I could find was the setQueryString function
93: [09:01:04] * aragonne quit (Quit: aragonne)
94: [09:01:08] <Agilix_> So with restful service I mean
95: [09:02:21] <wmk> you have to json_encode($yourDataArray)
96: [09:03:19] <Agilix_> So my query string correct? But wmk this link: https://docs.silverstripe.org/en/3.3/developer_guides/integration/restfulservice/ says they only work with xml
97: [09:03:52] * Mike123 quit (Ping timeout: 250 seconds)
98: [09:04:01] <wmk> well, you can pass a string to it, or an array (which will be converted to xml)
99: [09:04:06] <wmk> but if you take care of your json it's ok
100: [09:05:21] <Agilix_> k, I'll give it another go
101: [09:05:24] <Agilix_> :)
102: [09:31:35] <Agilix_> wmk: $service->setQueryString(json_encode($queryString)); does not work I'm afraid
103: [09:31:46] <wmk> Agilix_, did you see my PM?
104: [09:31:48] <Agilix_> PHP Warning: http_build_query(): Parameter 1 expected to be Array or Object.
105: [09:32:15] <Agilix_> I did now :p
106: [09:34:53] <wmk> setQueryString is afaik for the get params?
107: [09:38:38] * Tanger quit (Quit: Tanger)
108: [09:43:37] * Stomach has joined #silverstripe
109: [09:51:06] * GioVdK quit (Remote host closed the connection)
110: [10:01:54] * Mike123 has joined #silverstripe
111: [10:12:39] * kerozene quit (Ping timeout: 276 seconds)
112: [10:19:01] * x4j5 quit (Ping timeout: 244 seconds)
113: [10:19:04] * kerozene has joined #silverstripe
114: [10:21:05] * Stomach quit (Quit: zzz)
115: [10:21:51] * Stomach has joined #silverstripe
116: [10:35:21] * gamma quit (Quit: WeeChat 1.4)
117: [10:40:56] * Stomach quit (Quit: zzz)
118: [10:52:35] * MarkGuin_ has joined #silverstripe
119: [10:53:30] <MarkGuin_> Has anyone seen random "success" popup messages in the CMS recently? I'm wondering if it's related to CloudFlare? (screenshot: https://www.dropbox.com/s/8rrdeu6fr8uujfv/Screenshot%202016-04-01%2011.52.16.png?dl=0)
120: [10:55:06] <MarkGuin_> I've seen two different clients complain about it recently, both on Cloudflare. One on SS 3.1 and one on 3.3
121: [11:01:13] * wmk quit (Ping timeout: 252 seconds)
122: [11:25:23] * wmk has joined #silverstripe
123: [11:30:58] <slievr> is there anything like onAfterUpload on UploadField I can hook into?
124: [11:31:14] * flowsn has joined #silverstripe
125: [11:36:40] * marvanni quit (Quit: marvanni)
126: [11:50:52] * flowsn quit (Quit: (null))
127: [12:12:51] <Agilix_> wmk: your pm did the job btw :)
128: [12:13:09] <wmk> wohoo! https://www.youtube.com/watch?v=SSbBvKaM6sk
129: [12:18:05] * ShannonPatterson has joined #silverstripe
130: [12:20:15] * WebDevB has joined #silverstripe
131: [12:20:20] <WebDevB> Anyone around guys?
132: [12:20:52] <WebDevB> I'm new to this SilverStripe and picking it up from an old dev... Can you point me in the right direct... What the hell am I doing wrong here: $UpdateDB = DB::query("UPDATE Product SET Type='Registration No.' WHERE 'LegacyID' = 20655");
133: [12:21:56] <wmk> WebDevB, what version of SS are you using?
134: [12:22:06] <WebDevB> Fixed it wmk
135: [12:22:12] <wmk> ok
136: [12:22:26] <WebDevB> Thanks though.
137: [12:22:35] <WebDevB> It was the '' around LegacyID
138: [12:23:49] * UndefinedOffset has joined #silverstripe
139: [12:25:20] * marvanni has joined #silverstripe
140: [12:30:34] <wmk> of course WebDevB . The error message should have told you
141: [12:41:39] * WebDevB quit (Remote host closed the connection)
142: [12:58:12] * muskie9 has joined #silverstripe
143: [13:12:59] * Werner_2_ has joined #silverstripe
144: [13:16:17] * wmk quit (Ping timeout: 250 seconds)
145: [13:16:49] * brasileric has joined #silverstripe
146: [13:27:17] * Werner_2__ has joined #silverstripe
147: [13:30:16] <ss-helper> Sort DataList::get using an array of IDs - http://stackoverflow.com/questions/17199492/sort-datalistget-using-an-array-of-ids
148: [13:31:01] * Werner_2_ quit (Ping timeout: 250 seconds)
149: [13:34:15] * agent44 quit (Quit: zzz)
150: [13:41:12] * Agilix_ quit (Ping timeout: 250 seconds)
151: [13:42:21] * agent44 has joined #silverstripe
152: [14:00:42] * guci0 quit (Ping timeout: 250 seconds)
153: [14:06:54] * muskie9 quit (Ping timeout: 248 seconds)
154: [14:14:38] * muskie9 has joined #silverstripe
155: [14:27:01] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
156: [14:31:43] * muskie9 has joined #silverstripe
157: [14:31:51] * marvanni quit (Quit: marvanni)
158: [14:37:52] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
159: [14:39:02] * Werner_2__ is now known as wmk
160: [14:41:18] * marvanni has joined #silverstripe
161: [14:47:04] * lucinderella has joined #silverstripe
162: [14:47:20] * agent44 quit (Ping timeout: 244 seconds)
163: [14:47:20] * lucinderella is now known as agent44
164: [14:58:46] * Mike123 quit (Ping timeout: 250 seconds)
165: [15:01:05] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
166: [15:10:08] * arnhoe quit ()
167: [15:18:11] * Audlex- has joined #silverstripe
168: [15:19:52] * Audlex quit (Ping timeout: 260 seconds)
169: [16:23:59] * wmk quit (Quit: nice to meet you ;))
170: [16:26:00] * MarkGuin_ quit ()
171: [16:29:03] * brasileric quit (Remote host closed the connection)
172: [16:37:49] * slievr quit (Ping timeout: 260 seconds)
173: [16:48:09] * neomang has joined #silverstripe
174: [17:02:50] * agent44 quit (Quit: zzz)
175: [17:40:07] * marvanni quit (Quit: marvanni)
176: [18:05:23] * gelignite has joined #silverstripe
177: [18:33:44] * guci0 has joined #silverstripe
178: [19:05:48] * TRB143 quit (Remote host closed the connection)
179: [19:06:55] * TRB143 has joined #silverstripe
180: [19:15:30] <neomang> I have an dataobject associated with a page, but when I try to retrieve it in my page's php file, it doesn't actually get the object
181: [19:15:57] <neomang> I've checked that it is associated, and it gets another data object fine using the same call (just to the second object's type)
182: [19:16:04] <neomang> but the first always returns null
183: [19:22:29] <neomang> http://pastie.org/private/cfbft37ukzismtgdi7r7a here's the pastie of the relevant code
184: [19:22:36] <neomang> any idea what i could be doing wrong?
185: [19:34:57] <ShannonPatterson> not sure; do you pull data if you remove the offsetGet()?
186: [19:50:27] <neomang> Nope, if i do first() i get no object still
187: [19:53:10] * DimiStripe quit (Quit: DimiStripe)
188: [20:35:47] * Admonish has joined #silverstripe
189: [20:38:28] <Admonish> Hey there everyone. So im trying to create a sync task that will allow me to sync data in the filesystem with that in the database. I'm making it a task so it can be run automatically every so often. Now I see that you can run tasks with sake and the silverstripe commandline but I thought I had seen somewhere that you could also trigger tasks through the url /dev/task or something
190: [20:39:22] <Admonish> Does anyone know if silverstripe has this functionality and if so where I can find documentation on it
191: [20:41:57] * UndefinedOffset quit (Quit: Leaving.)
192: [21:00:48] <ShannonPatterson> neomang: I think you're getting null since there are no objects
193: [21:05:57] <neomang> There are objects associated with them, I checked and made sure.
194: [21:09:04] * Azure has joined #silverstripe
195: [21:21:17] * Stomach has joined #silverstripe
196: [21:24:01] * vladashram has joined #silverstripe
197: [21:24:01] <ss-helper> vladashram: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
198: [21:29:29] * vladashram has left #silverstripe
199: [21:31:37] * ShannonPatterson quit (Read error: Connection reset by peer)
200: [22:02:13] * Stomach quit (Quit: zzz)
201: [22:21:49] * Admonish quit (Ping timeout: 244 seconds)
202: [22:27:01] * Admonish has joined #silverstripe
203: [22:39:28] * Admonish quit (Read error: Connection reset by peer)
204: [22:43:20] * Stomach has joined #silverstripe
205: [22:49:17] * BrewNaked has joined #silverstripe
206: [22:49:22] * guci0 quit (Ping timeout: 250 seconds)
207: [23:00:01] * ss-helper quit (Remote host closed the connection)
208: [23:00:15] * ss-helper has joined #silverstripe
209: [23:00:36] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
210: [23:15:50] * Stomach quit (Quit: zzz)
211: [23:30:03] <ss-helper> Security and Login functionality for SS4 - https://groups.google.com/d/msg/silverstripe-dev/308k1-RP-4M/rE2rJwa4KAAJ
212: [23:45:03] <ss-helper> Adding a form action to a config page - http://stackoverflow.com/questions/36367448/adding-a-form-action-to-a-config-page
213: [23:47:19] * Stomach has joined #silverstripe

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