#silverstripe IRC Log

IRC log for 17 March 2016

All timestamps are in UTC.

1: [00:01:30] * Mitcheru quit (Ping timeout: 252 seconds)
2: [00:06:54] * spekulatius quit (Ping timeout: 248 seconds)
3: [00:07:22] * spekulatius has joined #silverstripe
4: [00:08:25] * BrewNaked quit (Remote host closed the connection)
5: [00:11:24] * robbieaverill quit (Ping timeout: 252 seconds)
6: [00:21:13] * spekulatius quit (Ping timeout: 240 seconds)
7: [00:24:21] * spekulatius has joined #silverstripe
8: [00:25:17] * Stomach quit (Quit: zzz)
9: [00:53:09] * EasyCo_ quit (Quit: Connection closed for inactivity)
10: [00:53:58] * Stomach has joined #silverstripe
11: [00:56:16] * Tanger has joined #silverstripe
12: [01:01:50] * robbieaverill has joined #silverstripe
13: [01:21:13] * spronk has joined #silverstripe
14: [01:28:02] * robbieaverill quit (Ping timeout: 252 seconds)
15: [01:44:06] * Mitcheru has joined #silverstripe
16: [01:47:01] <Mitcheru> Does anyone have any opinions on where application-specific constants should be defined in Silverstripe? That is, constants which are available across Pages, DataObjects, ModelAdmins etc.?
17: [01:50:15] <ss23> If you can, use the config system instead of a constant
18: [01:50:26] <ss23> Constants, in general, should be class bound as per their purposes
19: [01:50:35] <ss23> Perhaps if you give an example of the kind of contstant you're talking about?
20: [01:53:43] * chillu_23 quit (Quit: chillu_23)
21: [01:57:15] * BrewNaked has joined #silverstripe
22: [01:59:16] <spronk> ughh
23: [01:59:25] <spronk> that feeling when you want to highlight all your source files, hit delete, and start again
24: [01:59:27] <Mitcheru> @ss23: For example, I want to store date formats which could be used across several different classes.
25: [02:01:37] * BrewNaked quit (Ping timeout: 240 seconds)
26: [02:13:18] * Phlunk3 has joined #silverstripe
27: [02:19:39] * Stomach quit (*.net *.split)
28: [02:19:40] * ss-helper quit (*.net *.split)
29: [02:25:10] * Stomach has joined #silverstripe
30: [02:25:11] * ss-helper has joined #silverstripe
31: [03:25:33] * DanaeNZ quit (Remote host closed the connection)
32: [03:26:09] * DanaeNZ has joined #silverstripe
33: [03:27:38] * spekulatius2 has joined #silverstripe
34: [03:30:48] * DanaeNZ quit (Ping timeout: 276 seconds)
35: [03:46:11] * Stomach quit (Quit: zzz)
36: [03:48:10] * Stomach has joined #silverstripe
37: [03:51:29] * vanny has joined #silverstripe
38: [03:52:29] <vanny> hey all
39: [03:53:44] <vanny> I have to tell you all, I feel very dirty right now. I had to install wordpress on my dev machine to look at some code for a client.
40: [03:57:42] <micmania1> vanny: we’ve all been there. At least you’ve admitted your sins
41: [03:58:56] * spekulatius2 quit (Quit: Leaving)
42: [04:01:24] <vanny> It so sad, and so awful trying to find my way around in there
43: [04:19:04] * vanny quit (Quit: Page closed)
44: [04:21:16] * micmania1 quit (Quit: micmania1)
45: [04:32:44] <Tanger> vanny: I hear you
46: [04:32:58] <Tanger> vanny: RIP your dignity. It was nice knowing it
47: [04:34:29] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
48: [04:45:19] * jules0x quit (Quit: Leaving)
49: [04:53:22] * Mitcheru quit (Ping timeout: 252 seconds)
50: [05:08:20] <Stomach> lol
51: [05:08:24] <Stomach> we have some wordpress sites
52: [05:08:26] <Stomach> and magento
53: [05:08:29] <Stomach> and code ignitor
54: [05:08:32] <Stomach> and opencart
55: [05:08:37] <Stomach> open cart is the worst
56: [05:15:10] * DanaeNZ has joined #silverstripe
57: [05:16:48] * spronk quit (Quit: I may need a longer sleep timer...)
58: [05:19:58] * DanaeNZ quit (Ping timeout: 268 seconds)
59: [05:35:21] * spronk has joined #silverstripe
60: [06:06:48] * Stomach quit (Ping timeout: 276 seconds)
61: [06:41:07] * wmk has joined #silverstripe
62: [06:45:05] * Stomach has joined #silverstripe
63: [06:48:37] * Stomach quit (Client Quit)
64: [06:49:32] * lerni has joined #silverstripe
65: [06:58:50] * Werner_2_ has joined #silverstripe
66: [06:59:19] * wmk quit (Ping timeout: 244 seconds)
67: [07:06:16] * Mike123 has joined #silverstripe
68: [07:09:03] * kerozene quit (Ping timeout: 240 seconds)
69: [07:16:11] * kerozene has joined #silverstripe
70: [07:24:51] * Agilix_ has joined #silverstripe
71: [07:40:53] * Stomach has joined #silverstripe
72: [07:43:04] * arnhoe has joined #silverstripe
73: [07:43:18] * Werner_2_ is now known as wmk
74: [07:43:31] <wmk> how can i cast a Boolean db field to return boolean true or false?
75: [07:43:49] * Stomach quit (Client Quit)
76: [07:45:13] <ss-helper> Silverstripe 3.2: How to export db fields of only ONE Dataobject in a cvs file? - http://stackoverflow.com/questions/34786593/silverstripe-3-2-how-to-export-db-fields-of-only-one-dataobject-in-a-cvs-file
77: [07:46:46] <Tanger> wmk: Doesn’t it return 1 or 0 anyway?
78: [07:46:56] <wmk> that are integers ;)
79: [07:47:07] <wmk> phpunit assertFalse fails wiht 0
80: [07:47:12] <Tanger> wmk: Otherwise override the getter function and return if dbObject(‘booleanfield’) ? true : false
81: [07:47:21] * spronk quit (Quit: I may need a longer sleep timer...)
82: [07:47:41] <Tanger> Oh, haha, of course it does
83: [07:47:50] <wmk> Tanger, would be one possibility
84: [07:48:10] <wmk> i changed now to AssertEquals(0 instead of AssertFalse
85: [07:48:27] <Tanger> Good call
86: [07:48:33] <wmk> but as the dbfield is named boolean i was a bit confused it just returns an integer
87: [07:48:43] <wmk> (which is no problem in php...)
88: [07:48:53] <Tanger> Yeah, makes sense from an sql standpoint though
89: [07:49:02] <Tanger> 1 byte compared to 8 or so
90: [07:49:14] <wmk> one bit afaik
91: [07:49:32] <Tanger> true, but padding prevents a single bit from being stored
92: [07:50:34] <wmk> well, with some 1000 datasets i think it doesn't matter
93: [07:51:12] <wmk> when i remember my first 286 with 20MB harddrive...
94: [07:51:24] <Tanger> Back when every bit counted
95: [07:51:31] <wmk> a basic SS installation is pretty much that, isn't it?
96: [07:51:46] <Tanger> And C bitfields were the bomb
97: [07:54:31] * Firesphere_ has joined #silverstripe
98: [07:54:51] <wmk> Firesphere_, ☺/
99: [08:02:25] * Stomach has joined #silverstripe
100: [08:05:39] * Firesphere_ quit (Ping timeout: 250 seconds)
101: [08:14:14] * Firesphere_ has joined #silverstripe
102: [08:19:32] <Agilix_> Hi all, I'm back with more questions :p
103: [08:19:44] <Agilix_> So I tried the memberprofiles again and this is the full stack trace:
104: [08:19:45] <Agilix_> http://pastie.org/10763546
105: [08:19:58] <Agilix_> I see a Member call in Controller:80
106: [08:20:04] <Agilix_> But how can I avoid that?
107: [08:20:52] * spronka has joined #silverstripe
108: [08:26:34] <Tanger> Agilix_: What’s the deal? Are you trying to install the memberprofiles module?
109: [08:27:28] <Agilix_> yesh
110: [08:27:54] <Agilix_> I did a composer require of it (the australia version since ajshort is not supported anymore)
111: [08:28:05] <Agilix_> Next I do a /dev/build?flush=1
112: [08:28:11] <Agilix_> and then I get thius
113: [08:28:14] <Agilix_> and then I get this
114: [08:28:22] <Agilix_> Haha, too much slack :p
115: [08:30:18] <Agilix_> So it seems to do a basic member auth where it selects and that will break the dev/build because it is including the new fields even though they are not yet build. True?
116: [08:30:27] <Tanger> Yeah, looks like it
117: [08:30:40] <Tanger> Was the project built beforehand?
118: [08:30:48] <Tanger> Or did you include, then dev build for the first time?
119: [08:31:48] <wmk> Controller:80 is causing it
120: [08:31:54] <wmk> that's controller init()
121: [08:32:07] <wmk> if(Member::config()->log_last_visited)
122: [08:32:22] <Agilix_> Well it was already up and has some stuff in it
123: [08:32:23] <Tanger> Are you in dev mode?
124: [08:32:24] <wmk> Agilix_, set this config var to false for dev/build
125: [08:32:27] <Agilix_> I need to add a new part
126: [08:32:41] <Agilix_> How do I do that wmk?
127: [08:32:47] <wmk> where is it defined?
128: [08:33:03] <wmk> ok, directly in Member class
129: [08:33:05] <Agilix_> is it this:Security::$force_database_is_ready = true; ?
130: [08:33:19] <Agilix_> I have a _ss_environment.php
131: [08:33:24] <wmk> well, that _should_ not be in dev/build somehow
132: [08:33:33] <wmk> Agilix_, maybe you found a bug ;)
133: [08:34:09] <Agilix_> K, i commented that one out and let's see what it does
134: [08:34:31] <Agilix_> It works
135: [08:34:35] <Agilix_> :D
136: [08:34:39] <wmk> ;)
137: [08:35:05] <Agilix_> I'm so happy right now, I've been looking at this bug since yesterday :p
138: [08:35:09] <wmk> Agilix_, so the trace showed us where this was caused
139: [08:35:23] <wmk> Agilix_, fine we could help you
140: [08:35:43] <Agilix_> so what exactly does this do? : Security::$force_database_is_ready = true;
141: [08:35:44] <wmk> though you should raise an issue on github that you had problems installing this module.
142: [08:35:48] <wmk> maybe it's a bug somewhere
143: [08:35:53] <Agilix_> I already did :)
144: [08:35:59] <wmk> where do you have this?
145: [08:36:38] <Agilix_> mysite/_config.php
146: [08:36:44] <wmk> WHY?
147: [08:37:39] <Agilix_> It was already there
148: [08:37:41] <wmk> this is normally used for unit testing
149: [08:37:43] <Agilix_> previous developer
150: [08:38:03] <wmk> well, i never seen this before in a mysite/_config.php
151: [08:38:36] <wmk> it might be useful if your database is setup, but i doubt that.
152: [08:38:40] <wmk> anyone else has seen this before?
153: [08:39:04] <wmk> so Agilix_ you might comment this line out and see if you can install the module without problems then
154: [08:41:31] <Tanger> Agilix_: I think that force_database stops the base classes from building before the extensions. If it’s true, it just applies the extensions as it finds them, whereas if false, it just builds the base tables, then adds the other fields on after
155: [08:42:13] <Tanger> mrtea: I’d love to pong, but I still have setup for saturday
156: [08:42:14] <Agilix_> Yea, commenting it out does the job. Discussed with the other dev and he doesn't use it so leaving it commented out.
157: [08:42:52] <wmk> well, it's used in Security::database_is_ready(), which "Checks the database is in a state to perform security checks."
158: [08:43:10] <Tanger> Ah
159: [08:43:17] <Tanger> Haha, that would do it
160: [08:44:00] <wmk> cool.
161: [08:44:06] <wmk> commenting out: 1 sec
162: [08:44:19] <wmk> find the right line: some hours
163: [08:44:34] <wmk> always the same
164: [08:45:00] <wmk> running tests all the time: http://www.commitstrip.com/en/2016/03/15/how-to-optimise-your-time-as-a-coder/
165: [08:47:28] <Agilix_> haha :p
166: [08:47:51] <Agilix_> anyway thanks for the help guy's. Still pretty new to ss, my first week working with it
167: [08:48:12] <wmk> nice. and aside that problems - how do you like it?
168: [08:51:55] * DanaeNZ has joined #silverstripe
169: [08:55:15] * Stomach quit (Quit: zzz)
170: [08:55:39] * kinglozzer has joined #silverstripe
171: [08:56:05] * DanaeNZ quit (Ping timeout: 244 seconds)
172: [09:11:49] <Agilix_> I like it, still a bit looking for everything but it's very extensible. Which is nice for most projects that I do :)
173: [09:12:45] * BrewNaked has joined #silverstripe
174: [09:17:00] * lerni quit ()
175: [09:17:14] * BrewNaked quit (Ping timeout: 244 seconds)
176: [09:30:15] * Tanger quit (Quit: Tanger)
177: [09:37:41] * GioVdK has joined #silverstripe
178: [09:45:27] <Audlex> hey all. i am trying some new, and very advanced for me, stuff with the shop module and was wondering if someone could point me in the right direction to update the price only when i click 'Proceed to payment'?
179: [09:45:42] <Audlex> i have been playing around a while to no avail
180: [09:57:56] <wmk> which shop module? silvershop/core ?
181: [09:58:39] <wmk> Audlex, ^^^
182: [10:00:19] <ss-helper> Re: Preferred method for converting framework to PSR-2 - https://groups.google.com/d/msg/silverstripe-dev/IoMtKlju3Rc/9i-4puF6CAAJ
183: [10:09:55] <Audlex> wmk: yes, sorry.
184: [10:10:29] <wmk> Audlex, there is a gitter room for that, maybe there you find better help. See https://gitter.im/silvershop/silvershop-core
185: [10:11:36] <Audlex> thanx for the help wmk
186: [10:41:18] * DanaeNZ has joined #silverstripe
187: [10:45:33] * DanaeNZ quit (Ping timeout: 240 seconds)
188: [10:54:16] <Agilix_> Anyone know if it is safe to create 2 member profile pages? I need one for regular users and one for schools
189: [10:54:39] <Agilix_> I can then assign them different groups but not sure how to create the two different lay-outs
190: [11:01:38] * BrewNaked has joined #silverstripe
191: [11:06:03] * BrewNaked quit (Ping timeout: 240 seconds)
192: [11:06:31] <swaiba> you there ss-helper?
193: [11:06:39] <swaiba> I'm so impatient...
194: [11:06:40] <swaiba> http://stackoverflow.com/questions/36058742/formfield-for-varchar-to-a-select-other-as-free-text
195: [11:08:08] <wmk> impatient is the right word, yes
196: [11:09:02] <wmk> well, with a dropdown and display logic this should be possible
197: [11:09:38] <swaiba> then I've got to add code into the on before write to handle it
198: [11:09:45] <wmk> hmm, yes
199: [11:10:12] <wmk> well, it should be possible with a formfield that rebders and handles that for you
200: [11:10:37] <swaiba> well yeah - I could build it for sure - but it sounds like something someone would have done before
201: [11:10:55] <swaiba> I'm searching though "my form field" type repos
202: [11:11:03] <swaiba> if I can answer it myself I surely will
203: [11:15:17] <ss-helper> FormField for Varchar to a <select> + other as free text - http://stackoverflow.com/questions/36058742/formfield-for-varchar-to-a-select-other-as-free-text
204: [11:16:27] * wmk sings to swaiba "all you need is just a little..."
205: [11:19:51] * swaiba doesn't like take that :-P
206: [11:22:43] * Agilix_ backs away slowly
207: [11:32:07] * GioVdK quit (Ping timeout: 244 seconds)
208: [11:36:51] * GioVdK has joined #silverstripe
209: [11:38:37] <wmk> swaiba, take that?
210: [11:38:49] <wmk> or was it "all _we_ need..." ?
211: [11:39:18] <swaiba> oh (facepalm) it was GnR right?
212: [11:39:24] <swaiba> dang
213: [11:39:26] <wmk> yes
214: [11:39:27] <wmk> !
215: [11:39:39] <wmk> https://www.youtube.com/watch?v=ErvgV4P6Fzc
216: [11:39:47] <swaiba> my mates going to see them in vegas in april... I bet axl won't show up
217: [11:40:04] <wmk> ?
218: [11:41:40] <wmk> oh, nice
219: [11:41:41] * Firesphere_ quit (Ping timeout: 268 seconds)
220: [11:51:54] <kinglozzer> swaiba, wmk: Saw them in London a few years back
221: [11:52:02] <kinglozzer> Bloody brilliant
222: [11:52:10] <swaiba> kinglozzer GnR or Take That?
223: [11:52:14] <kinglozzer> GnR :P
224: [11:52:19] <swaiba> ha :)
225: [12:25:07] * UndefinedOffset has joined #silverstripe
226: [12:44:06] <Agilix_> Question, I know how to overwrite the templates, and I could do it, but I just noticed that the label and the input are 2 different templates. Yet, I need to sourrond them with an div that adds a class (form-group)
227: [12:44:08] <Agilix_> Any ides
228: [12:46:12] <wmk> place the form field in a group?
229: [12:47:53] <Agilix_> like <div class="form-group"> label input </div> (roughly)
230: [12:50:31] * BrewNaked has joined #silverstripe
231: [12:50:41] <Agilix_> Ah I see, I could override form.ss
232: [12:50:47] * GioVdK quit (Ping timeout: 250 seconds)
233: [12:53:41] * GioVdK has joined #silverstripe
234: [12:55:04] * BrewNaked quit (Ping timeout: 268 seconds)
235: [13:16:05] <Agilix_> Where do I need to save adjusted form field ss files? I tried themes/<theme>/templates/Forms and themes/<theme>/templates/Includes/Forms
236: [13:16:12] <Agilix_> both to no avail
237: [13:16:18] <Agilix_> and yes I flushed :p
238: [13:16:50] <Agilix_> Form.ss is in themes/<theme>/templates/Include and that one works
239: [13:16:57] <Agilix_> but not the fields itself
240: [13:18:48] * NETim has joined #silverstripe
241: [13:19:36] <NETim> Morning, implementing swipestripe but the product page JS isn't behaving. The price isn't being updated based on the chosen options.
242: [13:20:51] <wmk> Agilix_, which ss version?
243: [13:21:04] <Agilix_> i think it's the 3.2.1
244: [13:21:14] <Agilix_> but it has the slick interface :p
245: [13:21:31] <Agilix_> 3.2 it is
246: [13:21:57] <wmk> and you need it for every form or just for this special form?
247: [13:22:07] <Agilix_> all on the front-end
248: [13:22:23] <wmk> yup, in 3.2 you can override the form templates pretty easy (afaik)
249: [13:22:25] <Agilix_> but I'm guessing the cms is somewhat protected
250: [13:22:36] <Agilix_> The thing is both don't work
251: [13:22:44] <wmk> you need to have the same path.
252: [13:22:49] <Agilix_> hmm
253: [13:22:49] * ss32noob has joined #silverstripe
254: [13:22:57] <wmk> which template to you try to overwrite?
255: [13:23:40] <Agilix_> FormAction for example is set in framework/templates/forms (mind the small f)
256: [13:23:44] <Agilix_> is it case sensitive?
257: [13:23:51] <wmk> no.
258: [13:23:59] <ss32noob> hi. having an issue when i upgrade to SS 3.2 from 3.1 in the admin.. its now taking too long to load the admin/pages and thus breaking the admin but when you refresh, its fine again. is there any module that can boost the performance of silverstripe admin in 3.2
259: [13:24:00] <ss32noob> ?
260: [13:24:09] <wmk> but you need to place your tempate then in /themes/<name>/templates/forms/
261: [13:24:25] <Agilix_> I did, not working
262: [13:24:42] <wmk> Agilix_, it should. flush and/or delete silverstripe-cache manually
263: [13:27:55] <Agilix_> hmmm the regular form.ss is working but not the FormAction.ss
264: [13:27:55] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
265: [13:34:00] <wmk> Zauberfisch, around?
266: [13:35:11] <ss32noob> wmk, do you have any idea about the slowdown of page admin in SS 3.2.1?
267: [13:35:41] <wmk> nope. but you should check error logs or http responses for an error
268: [13:35:55] <wmk> if "it breaks admin" you should check your logs
269: [13:36:04] <wmk> and of course goto dev mode
270: [13:36:15] <wmk> and watch network e.g. in firebug
271: [13:40:46] <ss32noob> the treeview takes too long
272: [13:41:01] <ss32noob> thats what firebug says..
273: [13:41:02] <ss32noob> :/
274: [13:42:38] <Agilix_> http://pastie.org/10763860 does this even work? Or will the extra classes be overriden?
275: [13:45:36] <Agilix_> Do you need to do $form->setTemplate('MyCustomFormTemplate'); ?
276: [13:46:47] * UndefinedOffset quit (Quit: Leaving.)
277: [13:57:51] <kinglozzer> ss32noob: Are you on mac?
278: [14:02:15] * UndefinedOffset has joined #silverstripe
279: [14:04:52] <wmk> ss32noob, a timeout?
280: [14:05:38] <wmk> Agilix_, if you have another template name you need to use setTemplate()
281: [14:05:46] <wmk> tralalala sounds nice ;)
282: [14:07:45] <Agilix_> Ah k, so that is not it
283: [14:08:08] <wmk> normally a template in /themes/ (same path) overrides a template in the module
284: [14:08:23] <wmk> But a template in mysite/templates/ (same path) overrules everything
285: [14:09:09] <ss32noob> kinglozzer, nope using windows..
286: [14:09:21] <ss32noob> wmk, yes its a timeout whenever calling the treeview
287: [14:09:36] <wmk> ss32noob, locally?
288: [14:09:57] <ss32noob> nope.. in the live already :/
289: [14:09:58] <wmk> the first time you go to this site after you started the machine?
290: [14:10:17] <wmk> hmm
291: [14:10:32] <wmk> maybe your server isn't the fastest and/or some caching issue
292: [14:10:44] <ss32noob> we are using varnish
293: [14:10:54] <ss32noob> so its returning a backend fetch failed..
294: [14:11:12] <wmk> oh - that seems to complicate things ;)
295: [14:11:28] <wmk> with varnish i'm out, maybe someone else has a hint for you
296: [14:11:36] <ss32noob> so initially its rendering the treeview but returning backend fetch failed.. but when i move to list view.. its there
297: [14:11:49] <ss32noob> or the other way around as well.
298: [14:16:23] <Agilix_> with same path do you mean i ned to use themes/<theme>/templates/Framework/Forms ?
299: [14:16:27] <Agilix_> still not working though
300: [14:16:32] <Agilix_> not sure what is wrong
301: [14:32:51] <Agilix_> wmk are you sure I can overwrite templates that are in framework?
302: [14:33:00] <Agilix_> of course because it also states in the docs
303: [14:33:00] <wmk> sure
304: [14:33:03] <Agilix_> very weird
305: [14:33:34] * UndefinedOffset quit (Quit: Leaving.)
306: [14:33:39] <wmk> themes/<theme>/templates/forms/<template> should be fine
307: [14:33:51] <wmk> and - flush when you add a new template
308: [14:34:00] <wmk> new files are not found automatically
309: [14:34:13] <wmk> changes in an existing (and recognised) file are found without flush
310: [14:36:43] <Agilix_> It's exactly what I have but it's not working
311: [14:36:51] <Agilix_> I flushed
312: [14:36:58] <Agilix_> I've build
313: [14:37:00] <Agilix_> :p
314: [14:38:23] <Agilix_> trying in mysite/ now
315: [14:39:29] * BrewNaked has joined #silverstripe
316: [14:43:48] * BrewNaked quit (Ping timeout: 244 seconds)
317: [14:44:47] <wmk> ;)
318: [14:46:32] <Agilix_> not working either
319: [14:46:36] <Agilix_> I'm lost :) :p
320: [14:47:00] <Agilix_> everything is overwritable expect the form fields apparently
321: [14:47:36] <Agilix_> I just want to add a class the form fields
322: [14:48:43] <Agilix_> Maybe it's better to extend the existing controller or something and add an extra class to each field?
323: [14:49:04] <Zauberfisch> wmk: yes
324: [14:49:08] <Zauberfisch> busy though
325: [14:51:22] <wmk> Zauberfisch, got it. i wondered how to sniff api calls in the vm
326: [14:52:08] <wmk> bbl
327: [14:54:28] <Agilix_> It works
328: [14:54:30] <Agilix_> wtgh
329: [14:54:42] <Agilix_> this cms is weird :p
330: [14:56:39] * wmk quit (Ping timeout: 260 seconds)
331: [15:14:30] * Agilix_ quit (Ping timeout: 252 seconds)
332: [15:17:12] * BrewNaked has joined #silverstripe
333: [15:17:30] * swaiba quit (Remote host closed the connection)
334: [15:28:22] * UndefinedOffset has joined #silverstripe
335: [15:53:54] * MrTopless quit (Ping timeout: 268 seconds)
336: [16:01:48] * ss32noob quit (Ping timeout: 252 seconds)
337: [16:09:30] * Mike123 quit (Ping timeout: 252 seconds)
338: [16:19:30] <Teddy_> hey guys, any idea why this function is giving me an error sayign it can't find EmbedCode.ss instead of just replacing $Embed in the content field
339: [16:19:53] <Teddy_> EmbedCode is a simple EmbedCode => 'HTMLText'
340: [16:28:19] * arnhoe quit ()
341: [16:30:49] <Teddy_> sorry i forgot to give the link http://pastebin.com/Seh6Asfc
342: [16:41:03] <kinglozzer> Teddy_: Why are you passing EmbedCode through ArrayData and ->renderWith() ?
343: [16:41:16] <kinglozzer> renderWith() is for templates
344: [16:41:59] <kinglozzer> Where does 'EmbedBooking' live? In a template?
345: [16:42:09] <kinglozzer> i.e. do you have a template with $EmbedBooking in it?
346: [16:45:02] <Teddy_> kinglozzer, EmbedBooking is a db field that i fill with iframes and such, and the function is intented to detect $Embed inside the cms content field and replace it with the embed
347: [16:45:24] * MrTopless has joined #silverstripe
348: [16:45:30] * MrTopless quit (Read error: Connection reset by peer)
349: [16:45:33] <kinglozzer> Teddy_: So if EmbedBooking is the db field, what is EmbedCode?
350: [16:46:53] <Teddy_> EmbedCode is a HTMLText
351: [16:47:52] <kinglozzer> So Content contains $Embed, which needs to be replaced with the contents of 'EmbedCode'? Where does EmbedBooking fit into those two? Is it a third level?
352: [16:51:15] <kinglozzer> If you're just looking at $Content and $Embed, it's a bit simpler than it seems - $this->Content = str_replace('$Embed', $this->EmbedCode, $this->Content);
353: [16:51:39] <kinglozzer> You'll need to do a little extra to get shortcodes working, but is that what you mean?
354: [16:52:12] <Teddy_> kinglozzer, yea i think so, tanks, i'll give it a try
355: [16:52:37] * wmk has joined #silverstripe
356: [16:54:14] <kinglozzer> To get shortcodes working, I think it'll just be: $this->Content = str_replace('$Embed', $this->dbObject('EmbedCode')->forTemplate(), $this->dbObject('Content')->forTemplate());
357: [16:55:44] <Teddy_> kinglozzer, that did the trick :D thanks bud
358: [16:57:05] * wmk quit (Ping timeout: 244 seconds)
359: [17:01:33] * NETim quit (Ping timeout: 240 seconds)
360: [17:02:30] * NETim has joined #silverstripe
361: [17:16:50] * Copperis quit (Remote host closed the connection)
362: [17:29:39] * kinglozzer quit ()
363: [17:31:02] * UndefinedOffset quit (Quit: Leaving.)
364: [17:33:57] * arnhoe has joined #silverstripe
365: [17:34:57] * arnhoe quit (Client Quit)
366: [17:36:08] * arnhoe has joined #silverstripe
367: [18:05:55] * GioVdK quit (Ping timeout: 248 seconds)
368: [18:19:19] * UndefinedOffset has joined #silverstripe
369: [18:33:27] * DimiStripe quit (Quit: DimiStripe)
370: [18:34:55] * Stomach has joined #silverstripe
371: [18:40:32] * Stomach quit (Quit: zzz)
372: [18:42:11] * jules0x has joined #silverstripe
373: [18:50:48] * UndefinedOffset quit (Quit: Leaving.)
374: [19:02:59] <BrewNaked> Is there a way, via HTMLEditorConfig, to change the default upload directory for images that are uploaded via the "Insert Media" button from the HTMLEditor?
375: [19:04:00] * Stomach has joined #silverstripe
376: [19:09:19] * DanaeNZ has joined #silverstripe
377: [19:09:34] * arnhoe quit (Read error: Connection reset by peer)
378: [19:10:05] * arnhoe has joined #silverstripe
379: [19:15:27] * oddnoc has joined #silverstripe
380: [19:22:25] * NETim quit (Quit: Leaving)
381: [19:26:47] * gelignite has joined #silverstripe
382: [19:40:14] * oddnoc quit (Ping timeout: 248 seconds)
383: [19:40:23] * oddnoc has joined #silverstripe
384: [19:51:33] <jules0x> also an image question... is there a way to specify a Title or remove the alt-text when using $Image in a template?
385: [19:51:58] * Firesphere_ has joined #silverstripe
386: [19:53:11] <jules0x> @BrewNaked We can use setFolderName() on the UploadField to assign a folder, relative to *assets/
387: [19:53:29] <jules0x> oh oops. misread. You're in the CMS editor
388: [19:56:25] * Firesphere_ quit (Ping timeout: 240 seconds)
389: [19:57:30] <jules0x> and to answer my own question... (using $Image.SetRatioSize(100,120)), I can define my own image by <img src="$Image.SetRatioSize(60,80).URL" alt="" title="dsdfsdfds" />
390: [19:57:43] <jules0x> hahah oops wrong size... but you get the picture
391: [20:22:38] * spronk has joined #silverstripe
392: [20:25:20] <DanaeNZ> ugh config y u no apply
393: [20:26:06] * arnhoe quit ()
394: [20:27:05] * zippy has joined #silverstripe
395: [20:28:00] * micmania1 has joined #silverstripe
396: [20:28:07] * Azure quit (Ping timeout: 252 seconds)
397: [20:29:52] <spronk> ugh
398: [20:29:53] <spronk> where my cofee
399: [20:31:01] * UndefinedOffset has joined #silverstripe
400: [20:31:33] <zippy> :-)
401: [20:31:44] <zippy> anyone SS here using the SS Stack to host people?
402: [20:31:53] <zippy> *anyone SS partner
403: [20:33:07] <DanaeNZ> not SS partner yet but we're starting to use SS stack
404: [20:33:10] <DanaeNZ> stackshare
405: [20:33:17] <DanaeNZ> wait that's what you mean right
406: [20:33:22] <DanaeNZ> I too need coffee
407: [20:33:25] <zippy> and... is it as painful as it sounds?
408: [20:33:29] <DanaeNZ> And the config started working
409: [20:33:39] <DanaeNZ> Painful? nah
410: [20:33:54] <DanaeNZ> what would be painful about it?
411: [20:34:04] <zippy> how do you deploy to it?
412: [20:34:33] <DanaeNZ> Codebase on gitlab, click the deploy button
413: [20:34:41] <DanaeNZ> do you mean make a new stack?
414: [20:35:06] <zippy> your own gitlab account or they have one/
415: [20:35:40] <DanaeNZ> Our own one
416: [20:35:49] <DanaeNZ> You just copy the pubkey from the stack
417: [20:35:54] <DanaeNZ> and allow it as a deploy key
418: [20:36:11] <DanaeNZ> so you can use whatever git you want
419: [20:38:41] <micmania1> zippy: I don’t use it but I build it :D
420: [20:40:24] <zippy> each site runs on it's on aws instane?
421: [20:40:29] <zippy> instance?
422: [20:40:56] <zippy> or all code is on a load of them and load balanced.. no how would assets work out the box..
423: [20:40:56] <zippy> hm
424: [20:41:22] <zippy> do you get shell access?
425: [20:41:24] <micmania1> For stack share, no. They’re shared instances (we call them stacks which can have many ec2 instances).
426: [20:41:39] <zippy> so how does assets folder work then?
427: [20:41:51] <micmania1> and no ssh access - that’s the only painpoint from a dev perspective but theoretically you shouldn’t need it.
428: [20:42:23] <zippy> "theoretically you shouldn’t need it"
429: [20:42:27] <micmania1> assets aren’t stored on the EC2 instances. They’re either on an NFS box which gets mounted on deployment or an amazon EBS for stacks where only single instances are used.
430: [20:42:40] <zippy> thats like a seatbelt... shouldnt need it, but still wear it because when you need it...
431: [20:43:18] <zippy> is that all handled automagically or when developing the site do we need to use certain modules / do something magical?
432: [20:44:21] <micmania1> It depends. Stacks that have multiple instances require the dynamodb module so that sessions are shared across ec2 boxes
433: [20:44:22] <zippy> micmania1: do you know the pricing at all? lets say had 100-140 sites~
434: [20:45:30] <zippy> and getting any extra php modules added we shit out of luck (if needed at all, like php5-foobar?)
435: [20:45:35] <ss-helper> Re: [silverstripe-dev] Preferred method for converting framework to PSR-2 - https://groups.google.com/d/msg/silverstripe-dev/IoMtKlju3Rc/_xaeyiCeCAAJ
436: [20:45:39] <micmania1> zippy: It would depend on traffic levels and the size of the codebases really
437: [20:45:48] <zippy> is it done per site?
438: [20:46:14] <zippy> like, 1,000 hits a month, standard install with some images (so 100mb tops)
439: [20:46:21] <micmania1> zippy: nah, we can customize each stack so if you need something like that you can ask support and they will add it. Hopefully this will be customisable in the future, but its just a case of us adding something to a yaml file at the moment.
440: [20:46:37] <zippy> so each company has their own "stack" ?
441: [20:46:42] <zippy> it's not a giant pool of sites
442: [20:47:05] <micmania1> yes, each company has their own stack. Stack share is a single company which can put multiple sites on the same stack.
443: [20:48:34] <micmania1> zippy: http://www.silverstripe.com/platform/pricing/
444: [20:48:38] <zippy> but you do pricing per site, or the overall stack size
445: [20:49:15] <micmania1> zippy: overall stack.
446: [20:49:17] <zippy> ah, sorry, I was looking at this last night but didn't see this area... I saw "Contact us for more info and pricing"
447: [20:50:09] <zippy> "Fully managed security releases"
448: [20:50:20] <zippy> is that server software or they'd upgrade the Silverstripe install?
449: [20:51:38] <micmania1> Just server software. We do send out announcements when people need to upgrade their stack, but because each stack is inside their own local network, there’s not really risk to other clients if they don’t upgrade.
450: [20:52:30] <zippy> on the lower plans its "Limited security releases" but you don't allow people to SSH in and do other security updates themselves?
451: [20:52:34] <micmania1> We did patch a silverstripe vulnerability once across the entire platform, so it depends on the nature.
452: [20:52:55] * Qgosh has joined #silverstripe
453: [20:52:55] <ss-helper> Qgosh: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
454: [20:52:56] <micmania1> zippy: yeah, as above I guess ^^
455: [20:53:15] <zippy> ok :-)
456: [20:53:19] * UndefinedOffset quit (Quit: Leaving.)
457: [20:53:37] <zippy> but you guys dont run your own sites on it?
458: [20:53:46] <Qgosh> what would be the best way to move a data object between different customers, specifically these things are singletons ($17,000 pieces of hardware) and they will need to be attributed to a new customer at some point but still keep all their service logs and part numbers
459: [20:53:59] <Qgosh> but two customers can't have one at once
460: [20:54:03] <micmania1> zippy: yep, silverstripe.org and silverstripe.com is on it :)
461: [20:54:04] <Qgosh> *the same one
462: [20:54:12] <zippy> micmania1: yea, but other customer sites
463: [20:54:33] <micmania1> zippy: yep, we do :)
464: [20:54:44] <zippy> Qgosh: well... you'd probably have a MemberID or CustomerID on the dataobject, so change that
465: [20:55:01] <zippy> Qgosh: you could also have a History dataobject that logs the change and when and by whom
466: [20:55:23] <zippy> micmania1: sorry, I thought you said you didn't use it...
467: [20:55:26] <Qgosh> zippy: right, but there are a variety of different gridfield relation management extensions out there, a few of which seem quite abanoned, and most don't seem to do what i want, so i was looking for a steer on that
468: [20:55:44] <Qgosh> is the history data object part of the base package or would i build it
469: [20:56:02] <zippy> build it be easier..
470: [20:56:34] <zippy> !paste Qgosh And we can help better
471: [20:56:35] <ss-helper> Qgosh: 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.
472: [20:57:18] <Qgosh> oh i don't have anything particular literally Customer has many DisplayAppliances DisplayAppliance has one Customer
473: [20:57:41] <Qgosh> but in the past i've used a gridfield extension that lets you search for ane xisting DO and attach it
474: [20:57:49] <Qgosh> can i hook into that reassignment some how
475: [20:58:20] <zippy> micmania1: last q. Is there a way to pull down assets and DB from a site on there, so can get a local copy of the content for working on?
476: [20:58:53] <micmania1> zippy: yep, we have snapshots feature in the platform dashboard :)
477: [21:00:06] * Teddy_ quit (Read error: Connection reset by peer)
478: [21:01:17] <micmania1> zippy: http://docs.platform.silverstripe.com/ - here’s the docs we give out if you want to know some technical info
479: [21:07:46] <zippy> cheers
480: [21:09:01] * cheddam has joined #silverstripe
481: [21:15:36] <ss-helper> Re: [silverstripe-dev] Preferred method for converting framework to PSR-2 - https://groups.google.com/d/msg/silverstripe-dev/IoMtKlju3Rc/Uhpe_s2fCAAJ
482: [21:18:06] * Stomach quit (Quit: zzz)
483: [21:19:43] * Azure has joined #silverstripe
484: [21:25:01] * Stomach has joined #silverstripe
485: [21:30:16] <zippy> wb Stomach
486: [21:30:26] <Stomach> thanks!
487: [21:30:27] <Stomach> hows it
488: [21:30:29] <zippy> You guys be using the SS Stack yea ?
489: [21:30:44] <Stomach> we're using platform
490: [21:30:46] <Stomach> not stack
491: [21:31:15] <zippy> SS platform?
492: [21:31:53] <Stomach> yeah
493: [21:31:59] <Stomach> just for a couple of bigger clients
494: [21:32:07] <jules0x> chrome 49... where the hell is the print stylesheet emulation?
495: [21:32:08] <jules0x> anyone?
496: [21:32:45] <zippy> Stomach: game on tonight eh!
497: [21:34:19] <jules0x> gah. inspection on print preview... was that always there?
498: [21:34:46] <jules0x> haha no its not there.
499: [21:34:53] <jules0x> (laughs crazily)
500: [21:35:50] <zippy> wow.. the print preview dialog is just a html/css/js dialog..
501: [21:36:10] <zippy> it's using it's self for it's self..
502: [21:37:16] * Copperis has joined #silverstripe
503: [21:38:29] <Stomach> what time is the game zippy ?
504: [21:38:34] <zippy> 10:30
505: [21:38:38] <jules0x> it is using it is self for it is self.. (head asplode)
506: [21:48:52] <DanaeNZ> oops I got busy
507: [21:49:12] <DanaeNZ> zippy did you have other Platform questions or did you get them all answered?
508: [21:50:53] <zippy> all good, got sorted
509: [21:54:04] <cheddam> SETCOLOR cheddam
510: [21:54:10] <cheddam> ...pls ignore
511: [21:55:15] <DanaeNZ> never
512: [22:00:50] <zippy> SETCOLOR cheddam
513: [22:00:58] <cheddam> nooo
514: [22:01:17] <cheddam> damn you unhelpful documentation for Textual *shakes fist*
515: [22:01:26] <zippy> https://silverstripe.logged.nz/index.php?date=2016-03-17#log_1845360 forget logged
516: [22:28:32] * TRB143 quit (Quit: No Ping reply in 180 seconds.)
517: [22:29:49] * TRB143 has joined #silverstripe
518: [22:30:37] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
519: [22:48:55] * oddnoc quit (Ping timeout: 268 seconds)
520: [22:52:22] * robbieaverill has joined #silverstripe
521: [22:52:45] <robbieaverill> afternoon all!
522: [22:56:42] * DanaeNZ quit (Quit: TIME TO FEED)
523: [23:00:01] * ss-helper quit (Remote host closed the connection)
524: [23:00:17] * ss-helper has joined #silverstripe
525: [23:01:25] <BrewNaked> Has anyone run into a scenario when the "Add new Blog Post" link on the Blog Posts GridField in the silverstripe/blog's CMS page gives you a "There seems to have been a technical problem. Please click the back button, refresh your browser, and try again." message, but right-clicking the blog page in the SiteTree and choosing "Add New Blog Post" works just fine?
526: [23:02:00] <BrewNaked> Fresh install of the blog module in a SS v3.3 site.
527: [23:03:07] <micmania1> BrewNaked: That error is generic when you don’t have error reporting turned on. Can you find out the actual error from the logs or turn on error reporting?
528: [23:14:55] <BrewNaked> http://pastebin.com/nr4c5Pr4
529: [23:15:17] <BrewNaked> Took some looking to figure out where my error_log.txt was...
530: [23:23:49] <BrewNaked> micmania1: So it comes down to a SQL error "Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'kh.BlogPost.PublishDate' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by (http://<my_website>/home/blog/new-blog-post/?stage=Stage)"
531: [23:41:14] * robbieaverill quit (Ping timeout: 252 seconds)
532: [23:43:07] * irogue has joined #silverstripe
533: [23:45:24] <irogue> penis
534: [23:46:55] <spronk> balls
535: [23:50:48] <BrewNaked> Brian Boitano
536: [23:56:59] * robbieaverill has joined #silverstripe

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