#silverstripe IRC Log

IRC log for 27 February 2015

All timestamps are in UTC.

1: [00:01:48] * joelpittet has joined #silverstripe
2: [00:12:59] <Ryan-Toast> How can I have multiple fierlds with the same $data name in a contact form? i.e name=“Form_ContactForm_DynamicField[]”
3: [00:29:03] <Colin[pi]> Ryan-Toast: tried giving them an integer index? [1] [2] [3] etc?
4: [00:29:11] <Colin[pi]> that should work I believe
5: [00:29:17] <Ryan-Toast> Colin[pi]: I realised what I was doing wrong ><
6: [00:29:26] <Ryan-Toast> had a hidden field with the same name
7: [00:29:29] <Colin[pi]> oh lol
8: [00:34:57] <UncleCheese> composer require me-to-cancel-all-plans/because-you-take-so-fucking-long
9: [00:41:22] <ss-helper> Re: Admin Login Fields Missing on Old SS Site - http://www.silverstripe.org/community/forums/general-questions/show/101105?start=8#post400288
10: [00:42:56] <oddnoc> UncleCheese: Turn on opcache for CLI to speed up composer
11: [00:43:17] <UncleCheese> opcache-cli --start?
12: [00:43:40] <oddnoc> in php.ini: opcache.enable_cli=1
13: [00:44:34] <Hailwood> Hey guys, opinion time - you have exactly three objects on a page (only this page) that have a heading, image, and link - do you have "BlockOneHeading, BlockOneImage, BlockOneLink"*3 or do you create a dataobject for it and do a has many?
14: [00:47:32] * Cheddam has joined #silverstripe
15: [00:50:58] * Tanger has joined #silverstripe
16: [00:51:42] <UncleCheese> oddnoc do i have to restart apache?
17: [00:52:00] <oddnoc> UncleCheese: No, CLI doesn’t involve apache
18: [00:52:25] <UncleCheese> let's see if this works
19: [00:52:38] <UncleCheese> that was fast
20: [00:55:33] <UncleCheese> yeah, this makes a huge difference
21: [00:55:40] <oddnoc> nice
22: [00:56:34] <camfindlay> ^ Add that to the docs!
23: [00:57:05] <Tanger> Morning
24: [00:57:07] <camfindlay> thanks oddnoc very handy to know
25: [00:57:23] <Tanger> Ooh, what'd I miss?
26: [00:57:37] <oddnoc> Best things for SilverStripe or any PHP - turn on the opcache and use nginx rather than apache
27: [00:57:53] <camfindlay> +1
28: [00:59:05] <ss23> I'd like to migrate to nginx, but it complicates deployments and flow because of the .htaccess issues
29: [00:59:20] <ss23> Instead, we do nginx proxying to apache
30: [00:59:32] <Stomach> ss23 we do that as well
31: [00:59:36] <Stomach> and its also a pain in the ass
32: [00:59:48] <oddnoc> yeah, I did spend some time converting the .htaccess stuff into nginx config directives
33: [01:00:49] * r_hector has joined #silverstripe
34: [01:01:04] <ss23> lol
35: [01:01:05] * travis-ci has joined #silverstripe
36: [01:01:06] <travis-ci> dhensby/silverstripe-framework#203 (pulls/case-sensitive-class-info - 545394a : Daniel Hensby): The build has errored.
37: [01:01:06] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/commit/545394afcf5c
38: [01:01:06] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/52357963
39: [01:01:06] * travis-ci has left #silverstripe
40: [01:01:11] <ss23> Yeah Stomach :(
41: [01:01:49] * Ryan-Toast quit (Quit: Ryan-Toast)
42: [01:03:24] <Stomach> ss23 - basically server admin sucks balls and I hate it anyway
43: [01:03:24] <Stomach> :P
44: [01:05:13] * Ryan-Toast has joined #silverstripe
45: [01:11:22] * travis-ci has joined #silverstripe
46: [01:11:23] <travis-ci> dhensby/silverstripe-framework#201 (sminnee-use-validationexceptions-in-forms - 5898698 : Daniel Hensby): The build has errored.
47: [01:11:23] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/70e0a39c367a...58986986483e
48: [01:11:23] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/52350612
49: [01:11:23] * travis-ci has left #silverstripe
50: [01:13:57] * masnun is now known as masnun|away
51: [01:14:07] * oddnoc quit (Quit: beer:30)
52: [01:18:08] * travis-ci has joined #silverstripe
53: [01:18:09] <travis-ci> dhensby/silverstripe-framework#202 (3.1 - 773624a : Damian Mooyman): The build passed.
54: [01:18:09] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/763173d6c60d...773624a40b2b
55: [01:18:09] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/52351342
56: [01:18:09] * travis-ci has left #silverstripe
57: [01:18:38] * babak quit (Quit: Connection closed for inactivity)
58: [01:19:41] * travis-ci has joined #silverstripe
59: [01:19:42] <travis-ci> dhensby/silverstripe-framework#204 (pulls/case-sensitive-class-info - 67745c6 : Daniel Hensby): The build has errored.
60: [01:19:42] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/545394afcf5c...67745c6fd182
61: [01:19:42] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/52358105
62: [01:19:42] * travis-ci has left #silverstripe
63: [01:25:25] * joelpittet quit ()
64: [01:29:01] * travis-ci has joined #silverstripe
65: [01:29:02] <travis-ci> dhensby/silverstripe-framework#205 (sminnee-use-validationexceptions-in-forms - f046aa4 : Daniel Hensby): The build has errored.
66: [01:29:02] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/58986986483e...f046aa4d7fd7
67: [01:29:02] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/52359195
68: [01:29:02] * travis-ci has left #silverstripe
69: [01:36:07] * zippy has joined #silverstripe
70: [01:39:08] * Jamess quit ()
71: [01:39:11] <zippy> morning
72: [01:40:43] * Colin[pi] quit (Ping timeout: 250 seconds)
73: [01:42:15] * mobiusnz quit (Quit: Leaving.)
74: [01:43:43] * mobiusnz has joined #silverstripe
75: [01:44:47] * mobiusnz quit (Client Quit)
76: [01:45:31] <zippy> wtf
77: [01:46:09] <zippy> I login to mailchip for someone elses account, and it says "We noticed some unusal paramaters with your account, and we need to verify you" and it wants to send me a sms message
78: [01:46:17] <zippy> but I just clicked "do later" and now I can access the account, weird :)
79: [01:50:40] * deadveb quit (Remote host closed the connection)
80: [01:50:43] * novaweb quit (Quit: Leaving)
81: [01:51:00] * masnun|away is now known as masnun
82: [01:57:10] <Stomach> zippy is a h4c|<3|2
83: [01:57:21] <Stomach> 1337 yo
84: [01:57:24] <zippy> l33t, in your account, clicking the buttons!
85: [01:57:35] <zippy> 1337 - thats next level. Not there yet
86: [01:57:41] <zippy> Stomach: those Afgans eh
87: [01:57:50] <Stomach> my brethren!
88: [01:58:28] <Stomach> they fucking rule
89: [02:00:15] * spronk2 has joined #silverstripe
90: [02:00:38] * wmk has joined #silverstripe
91: [02:01:49] <zippy> spronk2: o/
92: [02:02:02] <spronk2> \o
93: [02:02:31] * masnun quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
94: [02:02:51] <zippy> spronk2: osx speed up yet
95: [02:03:01] <spronk2> doing daily restarts
96: [02:03:03] <spronk2> is better
97: [02:03:05] <spronk2> still a bit fucked
98: [02:03:10] <spronk2> 5ghz wifi is completely broken
99: [02:06:55] * mobiusnz has joined #silverstripe
100: [02:07:08] <spronk2> funny thing is it'll sometimes ocnnect on 5, sometimes on 2.4
101: [02:07:24] <spronk2> if it connected on 5, over the course of a few minutes to a few hours, it'll slowly whittle down its connection speed to single digit mbit/s
102: [02:07:41] <spronk2> sigh
103: [02:07:52] <spronk2> now i've gotta figure out how to build 2 factor auth
104: [02:08:11] * jenniferaslan quit (Quit: jenniferaslan has left the room)
105: [02:11:26] <mahfuz> Hey can anyone tell me how can I get difference in number of days between two Date type properties?
106: [02:12:59] * mobiusnz quit (Quit: Leaving.)
107: [02:13:35] <zippy> mahfuz: shore
108: [02:15:10] <zippy> mahfuz: http://kopy.io/81EQC
109: [02:15:55] * wmk quit (Read error: Connection reset by peer)
110: [02:16:21] <mahfuz> zippy: thanks. but can we use this somehow .. Date::days_between($this->EndDate, $this->StartDate)
111: [02:17:52] <zippy> yea.. thats not a good function
112: [02:18:13] <zippy> it doesn't take into account day light savings, probably not an errir
113: [02:18:14] <zippy> *issue
114: [02:18:19] <zippy> public function days_between($fyear, $fmonth, $fday, $tyear, $tmonth, $tday){
115: [02:18:35] <Hailwood> Anyone know if there is a "video embed" type field?
116: [02:19:33] <Stomach> hailwood - noooooope but you can do it by default in tinymceeeeeee
117: [02:19:51] <Hailwood> Stomach, this isn't output in the content area
118: [02:20:40] <Stomach> Hailwood: https://github.com/guru-digital/silverstripe-video-embed/
119: [02:20:40] <Stomach> ?
120: [02:20:43] <zippy> that function could do with a pr.
121: [02:23:26] <mahfuz> zippy: my properties were in Date type, should I use DateTime then?
122: [02:24:02] <zippy> mahfuz: you looked that that paste?
123: [02:24:37] <zippy> http://php.net/manual/en/datetime.diff.php is the function, that paste above shows some usage
124: [02:25:16] <mahfuz> yes zippy. you have used DateTime. So in SilverStripe for Date types should I use the DateTime class?
125: [02:25:38] <zippy> DateTime is a PHP class
126: [02:25:43] <zippy> You can just use Date
127: [02:27:43] <mahfuz> Is is a valid syntax if ($this->EndDate()->diff($this->StartDate()) > 0) { return $this->EndDate()->diff($this->StartDate()); }
128: [02:28:56] <mahfuz> I know its a simple thing but I think I am complicating it.
129: [02:32:21] <zippy> mahfuz: no, you need to convert it to a DateTime like the code I pasted above. This is NOT the same as the SS_DateTime class. DateTime is a php core class.
130: [02:34:23] <zippy> !paste mahfuz your code in that function and I'll show you
131: [02:34:23] <ss-helper> mahfuz: 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.
132: [02:35:00] <mahfuz> zippy: Just to clarify. StartDate and EndDate are 2 Date type properties in a dataobject. Ok I am pasting the code
133: [02:35:13] <zippy> mahfuz: yes that is fine
134: [02:37:02] * mobiusnz has joined #silverstripe
135: [02:37:15] <mahfuz> Here is the code - http://www.sspaste.com/paste/show/54efd7db56ad8
136: [02:42:03] <zippy> mahfuz: um.
137: [02:42:26] <zippy> mahfuz: getDaysToGo - that isn't going to chage unless you compare it against todays date
138: [02:42:38] <zippy> So really you should be checkign the diff between the end date and today
139: [02:43:03] <zippy> mahfuz: that make sense or am I wong?
140: [02:44:57] <zippy> mahfuz: be more like this http://kopy.io/LKYht - so we are counting down to the endDate based off today
141: [02:45:13] <zippy> and tbh, if there are no days to go then it should return 0
142: [02:45:18] <mahfuz> zippy: I tried that earlier also. Now to be sure I copied your code and tried once more
143: [02:45:31] <zippy> mahfuz: this is differnet codings
144: [02:46:00] <zippy> typical antmas, owes me a beer, not to be found!
145: [02:46:32] <mahfuz> zippy: I noticed that
146: [02:46:51] <mahfuz> But when I run the code and try to open the page in CMS white screen shows up
147: [02:46:58] <zippy> mahfuz: whats the error message
148: [02:47:13] <mahfuz> when I comment out the code inside the function, the page in CMS shows up
149: [02:47:21] <zippy> mahfuz: so whats the error?
150: [02:48:39] <mahfuz> It says internal server error
151: [02:49:55] <zippy> yea but there will be more to it then tat
152: [02:50:14] <zippy> if the site is in dev mode, check the response message, otherwise check the php error log
153: [02:50:43] <mahfuz> If I refresh the page with the model admin url it shows white screen only
154: [02:51:26] <mahfuz> the site is in dev mode
155: [02:51:48] <mahfuz> Could you please tell me how to check the response message
156: [02:57:25] <zippy> mahfuz: check the php error log?
157: [02:57:44] <zippy> you could also run php -l <your php file> to see if it's anything syntax related
158: [02:58:16] <mahfuz> I am trying look at my error log in Plesk backend
159: [02:59:13] * Colin[pi] has joined #silverstripe
160: [03:00:01] <zippy> mahfuz: ahhh plesskk!
161: [03:00:17] <zippy> mahfuz: look at /var/www/vhosts/<domain>/stats/logs/error_log
162: [03:00:32] <zippy> I think stats is called statistics
163: [03:00:41] <mahfuz> ok zippy
164: [03:00:56] <zippy> mahfuz: Or, you can login to plesk and then access that sites logs - but, who knows basedo on your version of plesk
165: [03:02:39] * Ryan-Toast has left #silverstripe
166: [03:04:18] <mahfuz> ok zippy. there is no stats folder in domain root. I am trying from the plesk
167: [03:04:29] <zippy> stastics?
168: [03:04:31] <zippy> logs /
169: [03:06:23] <mahfuz> zippy: finally got hold of it and it contains this:
170: [03:06:26] <mahfuz> [Fri Feb 27 15:58:42 2015] [warn] [client 121.99.229.225] mod_fcgid: stderr: PHP Fatal error: Call to a member function diff() on a non-object in /var/www/vhosts/bbtdevelopment.com/findmy.bbtdevelopment.com/adsystem/code/Advertisement.php on line 52, referer: http://findmy.bbtdevelopment.com/admin/advertisements/
171: [03:06:53] <zippy> what version of php do you have?
172: [03:07:20] <zippy> mahfuz: and from this http://kopy.io/LKYht what line number is number 59
173: [03:07:40] <mahfuz> you mean 52
174: [03:07:48] <zippy> yea
175: [03:08:11] <mahfuz> if ($this->EndDate->diff($this->StartDate) > 0) {
176: [03:08:24] <zippy> that is not what I pasted!!
177: [03:08:31] <zippy> of course it says that
178: [03:08:36] <zippy> END DATE is not it
179: [03:08:53] <zippy> mahfuz: use http://kopy.io/LKYht
180: [03:08:59] <zippy> don't chagne it
181: [03:09:02] <zippy> change*
182: [03:10:15] <zippy> mahfuz: did you change it now
183: [03:10:58] <mahfuz> I am changin zippy. it seems my bad. Sorry about that.
184: [03:11:45] <zippy> mahfuz: work now?
185: [03:12:40] <zippy> 3 mins and im out
186: [03:13:20] <zippy> 2
187: [03:14:11] <zippy> mahfuz: ?
188: [03:14:22] <mahfuz> Thanks zippy
189: [03:14:27] <mahfuz> its all working
190: [03:14:28] <zippy> mahfuz: successs?
191: [03:14:31] <mahfuz> Thanks so much
192: [03:14:37] <mahfuz> Actually it was my bad
193: [03:14:50] <mahfuz> but learnt one thing how to check error log
194: [03:14:55] <zippy> mahfuz: ok good. I would suggest you change the other return to 0 and not a string
195: [03:15:16] <mahfuz> may be tomorrow I will learn what did you mean by response checking
196: [03:15:32] <mahfuz> Thanks zippy for the suggestion
197: [03:15:43] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
198: [03:18:39] <Hailwood> Hi guys, any idea why when I embed a youtube iframe via a LiteralField whenever I try to save the page it just sits there forever spinning and in the console I get
199: [03:18:46] <Hailwood> Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "http://vagrant.vm:8080" from accessing a frame with origin "https://www.youtube.com". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match.
200: [03:23:51] * Colin[pi] quit (Ping timeout: 250 seconds)
201: [03:33:49] <Hailwood> Noone has any ideas?
202: [03:34:01] * JeremyRoundill quit (Remote host closed the connection)
203: [03:41:56] <ss-helper> Shop and error when editing catalog - http://www.silverstripe.org/community/forums/e-commerce-modules/show/101163
204: [04:07:17] * babak has joined #silverstripe
205: [04:11:35] <Hailwood> Can someone please do me a favour an try embedding a youtube video via a literal field in the cms and finding out if you can still submit the form?
206: [04:13:23] <spronk2> what the fuck
207: [04:13:24] <spronk2> is up with this dress
208: [04:16:09] * r_hector quit (Quit: Leaving.)
209: [04:17:02] <Hailwood> spronk2, Any chance you could try out what I've request up above/
210: [04:17:17] <spronk2> youtube video eh
211: [04:17:44] <Hailwood> Yeah, or more accurately anything that loads https when you're on http it seems
212: [04:17:55] <Hailwood> *anything via iframe rather
213: [04:20:17] <Hailwood> spronk2, this is a minimal example: $fields->addFieldToTab('Root.Video', new LiteralField('Preview', '<iframe src="https://www.silverstripe.org/"></iframe>'));
214: [04:20:23] <spronk2> hmm
215: [04:20:53] <spronk2> gimme a minute
216: [04:20:59] <Hailwood> Thanks
217: [04:22:43] * camfindlay quit (Quit: camfindlay)
218: [04:23:47] * mark_s has joined #silverstripe
219: [04:24:12] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
220: [04:24:51] * simon_w|air quit (Quit: Ping timeout: your mum)
221: [04:25:12] <mark_s> hi. I'm running the installer (fresh clone off github), and it will not accept admin credentials. Anyone have any clues? I'm providing a real email address and a password with upper/lower 9 chars long
222: [04:26:00] <Tanger> Hailwood: Hey, isn't that usual behavior when accessing https content from an http connection?
223: [04:26:40] <spronk2> Tanger you should still be able to submit the form though...
224: [04:26:46] <spronk2> browser might pop up something
225: [04:26:47] <spronk2> but..
226: [04:27:00] <Tanger> I think it's browser side
227: [04:27:11] <Tanger> You can enable/disable it for yourself on your browser
228: [04:27:17] <Hailwood> Yeah, it seems that it causes a security warning and so it stops the javascript that processes the form from running.
229: [04:27:27] <Tanger> But in my case, FF/Chrome just blocks any cross-protocol stuff
230: [04:27:57] <spronk2> if it was the other way around i'd be confused
231: [04:28:03] <spronk2> but https content in an http site should be just fine
232: [04:28:36] <Tanger> Good point spronk2
233: [04:28:56] <Hailwood> Tanger, Unfortunately though even if you request [http://]youtube.com/embed/... youtube seems to do an internal redirect to [https://]youtube.com/embed/... which is causing the issue.
234: [04:29:36] <spronk2> ugh, local dev env is screwed
235: [04:30:13] <Hailwood> I believe it only comes into play when SS tries to replace the form with the new form - which has the new iframe that kills it.
236: [04:31:01] <Tanger> Hailwood: Have you tried using '//' as the protocol?
237: [04:31:09] <Tanger> Instead of http or https
238: [04:31:21] <Hailwood> Tanger, Yep
239: [04:31:21] <Tanger> Could work in an iframe
240: [04:31:23] <Tanger> Ah
241: [04:31:55] <Hailwood> That's what I did initially, then I tried http:// - and just for kicks I even tried setting it to https:// they all act the same
242: [04:33:12] <Tanger> I'll try it on my https dev server
243: [04:34:22] <Hailwood> brb
244: [04:34:32] * Hailwood quit (Quit: Leaving)
245: [04:35:17] * Hailwood has joined #silverstripe
246: [04:35:47] <Hailwood> Back (on mobile)
247: [04:35:53] <Hailwood> Back (on mobile)
248: [04:38:42] <Tanger> Hailwood: Hmmm, touche'. Looks like in the CMS, even when the server is using SSL, it errors when submitting a https:// iframe
249: [04:39:37] <Tanger> Or a http://
250: [04:39:53] * cloph has joined #silverstripe
251: [04:40:06] * cloph_away quit (Ping timeout: 252 seconds)
252: [04:42:40] <Hailwood> Time to log an issue?
253: [04:43:42] * mark_s quit (Quit: Leaving)
254: [04:43:43] * Hailwood quit (Read error: Connection reset by peer)
255: [04:47:17] * Hailwood has joined #silverstripe
256: [05:01:07] * Hailwood quit (Ping timeout: 245 seconds)
257: [05:01:35] * stecman quit (Quit: This computer has gone to sleep)
258: [05:06:23] * spronk2 quit (Quit: I may need a longer sleep timer...)
259: [05:14:09] * spronk2 has joined #silverstripe
260: [05:17:33] * glenn-bautista quit (Quit: Leaving.)
261: [05:25:13] * spronk2 quit (Quit: I may need a longer sleep timer...)
262: [05:25:50] * mahfuz quit (Ping timeout: 246 seconds)
263: [06:27:34] * Stomach quit (Ping timeout: 256 seconds)
264: [06:36:56] * simon_w has joined #silverstripe
265: [06:47:12] * AntiSol has joined #silverstripe
266: [06:47:18] <AntiSol> hi
267: [06:48:13] <AntiSol> I'm having a problem with silverstripe running on nginx. Can anybody help? :)
268: [06:50:38] <simon_w> Depends on the problem
269: [06:51:46] <AntiSol> heh.
270: [06:52:19] <AntiSol> the issue is related to the fact that nginx doesn't have a .htaccess and silverstripe won't regenerate resized images for me
271: [06:52:39] <simon_w> Those don't seem related
272: [06:52:50] <AntiSol> so when I request /assets/bla/_resampled/imagebla.png I get an nginx error
273: [06:53:18] <AntiSol> because the file doesn't exist
274: [06:53:37] <AntiSol> it looks like requests to anything that isn't a php file aren't being passed through static-main.php
275: [06:54:08] <simon_w> Because they shouldn't be. Files should be accessed directly
276: [06:54:16] <AntiSol> I've been messing with nginx config for ages now and can't seem to make it work. I've looked at the nginx wiki - there's a silverstripe config there and I can't see anything wrong
277: [06:54:21] <simon_w> Do you have GD installed? Can PHP write to the assets folders?
278: [06:54:44] <AntiSol> but if the resized image has been deleted then how does it get regenerated?
279: [06:55:00] <AntiSol> PHP can definitely write to assets, let me double-check on GD...
280: [06:58:33] <AntiSol> aha, gd isn't installed on this machine
281: [06:58:38] <AntiSol> doing that now
282: [07:00:19] <AntiSol> actually it was installed, it's upgrading it, not installing it
283: [07:02:38] <AntiSol> I should stress that trying to access the file gives me an nginx error (404 not found, nginx $version), not a silverstripe error
284: [07:03:18] <AntiSol> it seems to me that this request should go through static-main.php since the file doesn't exist, and silverstripe should regenerate it... right?
285: [07:06:10] <simon_w> Nope
286: [07:06:17] <AntiSol> ok so GD has been upgraded, no difference.
287: [07:06:19] <AntiSol> oh
288: [07:06:38] <AntiSol> so how do these images get regenerated if they've been deleted?
289: [07:06:51] <simon_w> SS only regenerates things if you're using template controls to resize the image and you then load the template, or re-save the page with them on it
290: [07:07:20] <AntiSol> orly
291: [07:07:22] <AntiSol> right
292: [07:07:25] <AntiSol> well that explains that./
293: [07:07:31] <AntiSol> craaaaaaaaap
294: [07:07:42] <AntiSol> (not the software, the predicament I'm in!)
295: [07:08:15] <AntiSol> looks like my best bet is to write a script to call save() on all my pages then
296: [07:08:29] <AntiSol> or do you have a better idea?
297: [07:12:33] <AntiSol> ok well at least I'm not wondering why this functionality that doesn't exist isn't working! Thanks for your help
298: [07:12:34] <ss-helper> TreeMultiselectField issue with selected item being a sub-child of the visible items. - http://www.silverstripe.org/community/forums/form-questions/show/101165
299: [07:12:34] <AntiSol> :)
300: [07:35:12] * AntiSol quit (Quit: Leaving)
301: [07:46:00] * Eliseth has joined #silverstripe
302: [08:01:56] * Sticks has joined #silverstripe
303: [08:20:42] * wmk has joined #silverstripe
304: [08:25:15] * UncleCheese has joined #silverstripe
305: [08:26:47] * Frans_Amsterdam has joined #silverstripe
306: [08:27:48] <ss-helper> Re: Seo Extension - http://www.silverstripe.org/community/forums/all-other-modules/show/48728#post400390
307: [08:30:04] * Stomach has joined #silverstripe
308: [08:31:36] * lerni has joined #silverstripe
309: [08:32:33] * benjhocking has joined #silverstripe
310: [08:35:56] <Frans_Amsterdam> Hi all, I'm trying to get DataObjects sortable. The situation is: I have a DataObject called Product and this has_many ProductImages. The Product DataObject is belongs to a ProductGroup trough a has_one relation and is sortable already. I'm trying to figure out how to make the ProductImages sortable with drag and drop in the Gridfield. Do anyone have a tip?
311: [08:39:08] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
312: [08:40:07] * Sticks quit (Quit: Leaving)
313: [08:42:51] <ss-helper> Re: What is your Must-Use SivlerStripe module for (Almost) Every Project? - http://www.silverstripe.org/community/forums/general-questions/show/101013?start=8#post400391
314: [08:49:59] <wmk> !paste Frans_Amsterdam
315: [08:49:59] <ss-helper> Frans_Amsterdam: 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.
316: [08:51:37] <wmk> Frans_Amsterdam, you need a sub grid for the DataObject with the images
317: [08:52:28] <wmk> and a ImageDataObject for holding the File and Sort Column
318: [08:52:45] <wmk> so Product has_many GalleryImage
319: [08:52:58] <wmk> and DataObjct GalleryImage
320: [08:53:15] <wmk> db: Title, Description, Copyright, Sort
321: [08:53:24] <wmk> has_one: Picture => Image
322: [09:00:28] * kinglozzer has joined #silverstripe
323: [09:06:59] * simon_w quit (Ping timeout: 244 seconds)
324: [09:12:56] <ss-helper> Re: Feature Request -> Hide a page from certain groups - http://www.silverstripe.org/community/forums/general-questions/show/101161#post400392
325: [09:31:47] * Tanger quit (Quit: exit())
326: [09:32:26] * EasyCo quit (Quit: Connection closed for inactivity)
327: [09:32:44] * lerni quit (Remote host closed the connection)
328: [09:34:02] * lerni has joined #silverstripe
329: [09:39:39] * Stomach quit (Quit: zzz)
330: [09:40:09] <r3v3rb> pah, all my shares is red
331: [09:40:26] * wmk quit (Ping timeout: 272 seconds)
332: [09:48:05] * zippy has joined #silverstripe
333: [09:48:56] * zippy quit (Client Quit)
334: [09:49:17] * Error404NotFound quit (Disconnected by services)
335: [09:49:17] * Err404NotFound has joined #silverstripe
336: [09:53:34] <kinglozzer> r3v3rb: Are you sure they're not white and gold?
337: [09:54:00] <r3v3rb> nah, all red xcept for Howdens Joinery who have made me £42 so far today :\
338: [09:54:26] <r3v3rb> DAX has left me £210 in da red !!!
339: [09:54:57] * r3v3rb not paying real cash though for now - phew!
340: [09:58:04] * wmk has joined #silverstripe
341: [10:03:44] * masnun has joined #silverstripe
342: [10:05:02] <r3v3rb> woot! [Warning] strpos(): Empty needle
343: [10:13:08] <ss-helper> 1-844-449-0455 ## Msn Online Technical Support Phone Number Canada - http://www.silverstripe.org/community/forums/form-questions/show/101189
344: [10:13:08] <ss-helper> 1-844-449-0455 ## Msn Online Technical Support Number USA - http://www.silverstripe.org/community/forums/form-questions/show/101187
345: [10:13:08] <ss-helper> 1-844-449-0455 ## Msn Online Technical Support Phone Number USA - http://www.silverstripe.org/community/forums/form-questions/show/101186
346: [10:13:08] <ss-helper> 1-844-449-0455 ## Msn Online Technical Support Number - http://www.silverstripe.org/community/forums/form-questions/show/101185
347: [10:13:08] <ss-helper> 1-844-449-0455 ## Msn Online Technical Support Number - http://www.silverstripe.org/community/forums/form-questions/show/101184
348: [10:13:08] <ss-helper> 1-844-449-0455 ## Msn Online Technical Support Phone Number - http://www.silverstripe.org/community/forums/form-questions/show/101182
349: [10:13:08] <ss-helper> 1-844-449-0455 ## Msn Online Technical Support Phone Number - http://www.silverstripe.org/community/forums/form-questions/show/101181
350: [10:13:09] <ss-helper> 1-844-449-0455 ## Msn Technical Support Phone Number Canada - http://www.silverstripe.org/community/forums/form-questions/show/101180
351: [10:14:43] <wmk> oh, spam on forum?
352: [10:22:19] * wmk quit (Read error: Connection reset by peer)
353: [10:22:21] * Werner_2_ has joined #silverstripe
354: [10:28:10] <ss-helper> 1-844-449-0455 ## Msn Technical Support Number USA - http://www.silverstripe.org/community/forums/form-questions/show/101197
355: [10:28:11] <ss-helper> 1-844-449-0455 ## Msn Technical Support Phone Number USA - http://www.silverstripe.org/community/forums/form-questions/show/101195
356: [10:28:11] <ss-helper> 1-844-449-0455 ## Msn Technical Support Number - http://www.silverstripe.org/community/forums/form-questions/show/101194
357: [10:28:11] <ss-helper> 1-844-449-0455 ## Msn Technical Support Phone Number - http://www.silverstripe.org/community/forums/form-questions/show/101192
358: [10:28:11] <ss-helper> 1-844-449-0455 ## Msn Technical Support Phone Number - http://www.silverstripe.org/community/forums/form-questions/show/101191
359: [10:28:11] <ss-helper> 1-844-449-0455 ## Msn Online Technical Support Number Canada - http://www.silverstripe.org/community/forums/form-questions/show/101190
360: [10:29:03] <r3v3rb> should we ignore that one??
361: [10:29:56] * Liquide has joined #silverstripe
362: [10:34:04] * Werner_2_ is now known as wmk
363: [10:34:10] <wmk> r3v3rb, not ignore, delete :(
364: [10:34:20] <r3v3rb> wmk: aye
365: [10:34:32] <wmk> r3v3rb, is there a blacklist on forum?
366: [10:34:48] <wmk> for title....
367: [10:34:56] <r3v3rb> no idea
368: [10:35:09] <wmk> or a filter for multiple posts with same title?
369: [10:35:19] * travis-ci has joined #silverstripe
370: [10:35:20] <travis-ci> silverstripe/silverstripe-framework#4247 (3.1 - 2298bed : Daniel Hensby): The build passed.
371: [10:35:21] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/773624a40b2b...2298bed4e952
372: [10:35:21] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/52400419
373: [10:35:21] * travis-ci has left #silverstripe
374: [10:36:02] * masnun_ has joined #silverstripe
375: [10:36:19] * masnun quit (Ping timeout: 250 seconds)
376: [10:43:13] <ss-helper> online = jadu = 91+9694722340 love black magic specialist babaji - http://www.silverstripe.org/community/forums/general-questions/show/101204
377: [10:43:14] <ss-helper> 91+9694722340 love marriages specialist babaji - http://www.silverstripe.org/community/forums/general-questions/show/101203
378: [10:43:14] <ss-helper> love 91'9694722340 life problem solution babaji - http://www.silverstripe.org/community/forums/general-questions/show/101202
379: [10:43:14] <ss-helper> husband wife == 91969472234o problem solution babaji - http://www.silverstripe.org/community/forums/general-questions/show/101201
380: [10:43:14] <ss-helper> love vashikaran love back,,, specialist babaji 91+9694722340 - http://www.silverstripe.org/community/forums/general-questions/show/101200
381: [11:02:14] * masnun_ is now known as masnun|away
382: [11:13:41] * masnun|away is now known as masnun_
383: [11:26:04] <zauberfisch> haha
384: [11:26:13] <zauberfisch> yay, now we also have the forum spam here in irc :D
385: [11:26:28] <wmk> maybe it's good
386: [11:26:53] <wmk> but if spammers work only in night (NZ time)...
387: [11:27:24] <zauberfisch> yeah, we wouldn't want to miss out on the viagra special offer of the week ;)
388: [11:28:02] <zauberfisch> nah, I guess its a good thing to have the bot. forum could use the extra attention
389: [11:30:11] * masnun_ is now known as masnun|away
390: [11:32:05] * lerni quit (Remote host closed the connection)
391: [11:32:27] * masnun|away is now known as masnun_
392: [11:34:27] * NETim has joined #silverstripe
393: [11:35:07] <NETim> Morning. Trying to get dataobjects (that display as pages) to appear in a sitetreedropdown in the CMS
394: [11:35:36] <NETim> Think news->category->article. Trying to get news and news->category to show up
395: [11:36:44] <wmk> zauberfisch, any idea how i can connect to the vagrant's mysql db?
396: [11:36:53] <wmk> from outside..
397: [11:38:49] * jcwacky quit (Quit: jcwacky)
398: [11:42:36] <NETim> wmk: vagrant?
399: [11:42:41] <NETim> hacking a homeless person?
400: [11:42:49] <wmk> ?
401: [11:43:03] <NETim> "any idea how i can connect to the vagrant's mysql db?"
402: [11:43:03] <wmk> i want to connect to it from my ide
403: [11:43:18] <NETim> which IDE?
404: [11:43:27] <wmk> idea / phpstorm
405: [11:43:44] * masnun_ is now known as masnun|away
406: [11:43:57] <NETim> not sure of the specifics, but surely it should just be a case of allowing a user@IP perms on the DB/root
407: [11:44:10] <wmk> just hacking my.cnf
408: [11:44:25] <NETim> You may also have to set MySQL to accept connections from outside.
409: [11:44:44] <NETim> By default (if memory serves) MySQL is set to only accept connections from localhost
410: [11:45:07] <NETim> Access by serverside languages usually appears as localhost requests
411: [11:45:12] <NETim> .
412: [11:45:20] <wmk> of course.
413: [11:45:55] <NETim> You not a MySQL person, or do you just prefer a more visual representation of your data?
414: [11:46:17] <wmk> well, just as an alternative to phpmysql
415: [11:46:28] <NETim> phpmyadmin?
416: [11:46:32] <wmk> yes.
417: [11:46:36] <wmk> lunch time....
418: [11:46:43] <NETim> Bah, go for command line...
419: [11:47:14] <NETim> so much more fun, no 'Are you sure' when you drop tables/dbs
420: [11:50:58] * masnun|away is now known as masnun_
421: [11:54:39] <Frans_Amsterdam> wmk thanks, almost forgot to thank you. I'm trying to make ik work :-)
422: [11:58:29] <ss-helper> How do get the Active Logged Users information - http://www.silverstripe.org/community/forums/general-questions/show/101133
423: [11:58:29] <ss-helper> Re: Nested DataObjects Gridfield not saving the Page ID - http://www.silverstripe.org/community/forums/general-questions/show/101017#post400333
424: [11:58:29] <ss-helper> Re: Session exists after Session::destroy("SessionName") - http://www.silverstripe.org/community/forums/general-questions/show/101076#post400332
425: [11:58:29] <ss-helper> Re: Session exists after Session::destroy("SessionName") - http://www.silverstripe.org/community/forums/general-questions/show/101076#post400331
426: [11:58:29] <ss-helper> Re: Session exists after Session::destroy("SessionName") - http://www.silverstripe.org/community/forums/general-questions/show/101076#post400330
427: [11:58:29] <ss-helper> Event Calendar - Recurring event doesn't always show when it falls on the last day of the month - http://www.silverstripe.org/community/forums/all-other-modules/show/101132
428: [11:58:29] <ss-helper> Re: User should access only 1 DataObject - http://www.silverstripe.org/community/forums/general-questions/show/101131#post400328
429: [11:58:30] <ss-helper> Re: Session exists after Session::destroy("SessionName") - http://www.silverstripe.org/community/forums/general-questions/show/101076#post400327
430: [11:58:30] <ss-helper> Re: User should access only 1 DataObject - http://www.silverstripe.org/community/forums/general-questions/show/101131#post400326
431: [11:58:31] <ss-helper> User should access only 1 DataObject - http://www.silverstripe.org/community/forums/general-questions/show/101131
432: [11:58:31] <ss-helper> Re: Stuck on Lesson 9. Keep getting "[User Error] Couldn't run query" - http://www.silverstripe.org/community/forums/general-questions/show/101104#post400324
433: [11:58:32] <ss-helper> Re: Stuck on Lesson 9. Keep getting "[User Error] Couldn't run query" - http://www.silverstripe.org/community/forums/general-questions/show/101104#post400323
434: [12:00:43] * Pyssisk has joined #silverstripe
435: [12:01:11] <Pyssisk> !whatsnew
436: [12:01:38] <Pyssisk> >< phergie, answer me dammit!
437: [12:02:04] <wmk> Pyssisk, you missed a lot of spam in forum
438: [12:02:53] <Pyssisk> Yeh, i'm off to make more spam now
439: [12:02:53] <Pyssisk> :P
440: [12:05:21] <Pyssisk> nope, no new spam that I can see :<
441: [12:05:25] <Pyssisk> well, 2 posts.
442: [12:05:47] <wmk> NETim, it was basically tweaking the my.cnf as stated here: http://stackoverflow.com/a/12300228/4137738
443: [12:06:09] <Pyssisk> oic, it's all ecomm spam :D
444: [12:06:09] <wmk> zauberfisch, would you like to implement this in the vm?
445: [12:07:18] <NETim> wmk: makes sense. Should work.
446: [12:07:27] <wmk> works
447: [12:07:31] <NETim> are you getting an error, or is it just not working?
448: [12:07:38] <wmk> just tell win firewall to allow the connection
449: [12:07:46] <wmk> now it works.
450: [12:07:47] <NETim> That was my very next suggestion.
451: [12:12:53] * lerni has joined #silverstripe
452: [12:13:32] <ss-helper> Re: Shop and error when editing catalog - http://www.silverstripe.org/community/forums/e-commerce-modules/show/101163#post400432
453: [12:15:53] * lerni_ has joined #silverstripe
454: [12:15:54] * lerni quit (Read error: Connection reset by peer)
455: [12:17:08] * johnsveitch has joined #silverstripe
456: [12:18:29] <johnsveitch> New Here. Have not used IRC for maybe 7 years.
457: [12:18:48] <wmk> johnsveitch, wb
458: [12:19:07] <johnsveitch> Is anyone about?
459: [12:19:16] <wmk> around?
460: [12:19:20] <wmk> just ask
461: [12:19:25] <wmk> !help johnsveitch
462: [12:19:25] <ss-helper> johnsveitch: Please provide the version, full error message and relevant code. You can put the code in http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and paste the link here.
463: [12:19:47] <johnsveitch> Hello wmk
464: [12:20:35] <johnsveitch> I'm not in trouble. I just found out about this channel by reading the silverstripe book.
465: [12:21:02] * lerni_ quit (Ping timeout: 246 seconds)
466: [12:21:16] <johnsveitch> Very late here in New Zealand. 1.22am.
467: [12:21:20] <wmk> johnsveitch, the good old book by ingo?
468: [12:21:56] <johnsveitch> Yes, that's the one.
469: [12:22:50] <wmk> from 2.3 times afaik
470: [12:23:03] <johnsveitch> I'm off to bed. But is was interesting to check in here and find activity.
471: [12:23:03] <wmk> or has it been updated?
472: [12:23:16] <wmk> good night then
473: [12:23:33] <johnsveitch> Yes some of the stuff is out of date. but it's still been helpful.
474: [12:24:05] <johnsveitch> My version 2009
475: [12:24:22] <Pyssisk> !ask
476: [12:24:29] <johnsveitch> Goodnight.
477: [12:24:37] <Pyssisk> !sillybot
478: [12:24:50] <wmk> !m(
479: [12:25:09] <kinglozzer> ss-helper: What colour is the dress?
480: [12:25:13] <Pyssisk> johnsveitch: yeh, basics (structure, etc) are still essentially the same.
481: [12:25:21] <Pyssisk> kinglozzer: you too?
482: [12:25:34] <Pyssisk> we just had that asked in a meeting. I didn't realise it was a thing.
483: [12:25:35] * wmk is now known as sshelper
484: [12:25:39] <sshelper> kinglozzer, which dress?
485: [12:25:47] <kinglozzer> Pyssisk: Yeah apparently it's a thing, exploded last night
486: [12:26:00] <Pyssisk> I guess it's some kind of stupid kardashian shit then?
487: [12:26:00] <kinglozzer> sshelper: www.buzzfeed.com/catesish/help-am-i-going-insane-its-definitely-blue
488: [12:26:13] <kinglozzer> Nope, just a confusing thing to do with how people perceive colour
489: [12:26:40] <kinglozzer> Like it looks blue and black to me, colleagues see it as white + gold
490: [12:26:41] <Pyssisk> off blue, slightly towards purple, with a few shades of lightness
491: [12:28:15] * sshelper is now known as wmk
492: [12:28:21] <Pyssisk> kinglozzer: blue and black, yes.
493: [12:28:22] <wmk> ???
494: [12:28:37] * johnsveitch quit (Ping timeout: 246 seconds)
495: [12:28:37] <wmk> would say blue and black, but --- who cares?
496: [12:28:45] <kinglozzer> Some people see it differently though :S
497: [12:28:59] <Pyssisk> there are 2 on the page you linked. First loaded blue and black, second started loading, I scrolled down, saw white and gold. Scrolled up because of confusion on 2 images, scrolled down, blue and black for both.
498: [12:29:12] <kinglozzer> Like, the blue is obviously blue, but people look at it and think the dress is white and it's just because of the light
499: [12:29:20] <Pyssisk> I say it's a gif, and people are stupid.
500: [12:29:25] <Pyssisk> xD
501: [12:29:55] <wmk> ah, like that dress with prismas in the textile which becomes white when you fotograph it with a flash?
502: [12:30:07] <Pyssisk> wmk: no, like an optical illusion
503: [12:31:46] <kinglozzer> I can see flashes of gold in there
504: [12:31:56] <kinglozzer> But not matter how hard I try I can't see any white
505: [12:32:03] <kinglozzer> It's blue! It just is D:
506: [12:34:51] * lerni has joined #silverstripe
507: [12:36:13] <wmk> anyone knows a form field for a daterange?
508: [12:36:31] <wmk> i currently have two dates, start and end as single pickers.
509: [12:36:41] <wmk> but i want to avoid that end can be before start
510: [12:38:00] <zauberfisch> wmk: sure
511: [12:38:12] <zauberfisch> wmk: if you are talking about binding mysql to 0.0.0.0
512: [12:38:15] <zauberfisch> will do
513: [12:38:18] * lerni_ has joined #silverstripe
514: [12:38:27] <wmk> and disable another setting, zauberfisch
515: [12:38:35] <zauberfisch> next release also will include wkhtmlto(pdf|image)
516: [12:38:59] <wmk> #skip-external-locking
517: [12:38:59] <wmk> #bind-address
518: [12:39:09] <wmk> wmk html ???
519: [12:39:22] <zauberfisch> html => pdf renderer based on webkit
520: [12:39:34] <zauberfisch> been using that a lot lately
521: [12:39:40] <wmk> zauberfisch, with this settings you can connect via ssh tunnel from outside
522: [12:39:40] * lerni quit (Ping timeout: 272 seconds)
523: [12:40:05] <zauberfisch> wmk: mind if I do this next week? or do you need it now?
524: [12:40:16] <wmk> i hacked it in my running vm
525: [12:40:25] <wmk> was just curious to see it by default for the dev vm
526: [12:40:43] <zauberfisch> good
527: [12:40:47] <zauberfisch> will do it next week then
528: [12:41:01] <wmk> fine
529: [12:41:59] * masnun_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
530: [12:55:43] * masnun has joined #silverstripe
531: [13:04:55] * masnun quit (Ping timeout: 255 seconds)
532: [13:08:10] * Pyssisk quit (Ping timeout: 246 seconds)
533: [13:08:40] * Pyduncrshdk has joined #silverstripe
534: [13:08:49] * masnun has joined #silverstripe
535: [13:13:43] <ss-helper> Re: Calling CustomSiteConfig DataObjects in 2.4 - http://www.silverstripe.org/community/forums/general-questions/show/101160#post400433
536: [13:15:43] * UndefinedOffset has joined #silverstripe
537: [13:18:54] <r3v3rb> eek, is there a way to produce a mth/year field as two seperate inputs nicely in SS or is it two textfields and literalfields to keep them inline?
538: [13:21:03] * lerni__ has joined #silverstripe
539: [13:21:15] <wmk> datepicker has at least day, month and year, r3v3rb
540: [13:21:58] <wmk> you could subclass it
541: [13:22:01] * lerni_ quit (Ping timeout: 264 seconds)
542: [13:22:19] <r3v3rb> wmk yep, but its for credit card expiry dates so only need two
543: [13:22:50] <wmk> subclass and save as last day of month
544: [13:25:15] * masnun quit (Quit: Signing out.)
545: [13:26:55] <r3v3rb> wmk, good idea
546: [13:30:38] <r3v3rb> wmk: can you try something for me too? try adding ->setAttribute(‘size’, ‘2’) to a Textfield - it wont add it here, I can add other attributes just not that...
547: [13:30:57] <wmk> Textfield or textarea?
548: [13:31:18] <r3v3rb> field
549: [13:31:41] <r3v3rb> i thought setAttribute should just pump anything you specify into the field?
550: [13:32:03] <wmk> it should
551: [13:32:34] <wmk> though some attributes may be parsed by something else in the field logic
552: [13:33:19] <r3v3rb> how bizarre - add it as ‘Size’, ‘5’ and it adds size=‘5’ to the field try ‘size’, ‘5’ and it adds nothing
553: [13:33:27] <r3v3rb> *** BUG ***
554: [13:33:45] <r3v3rb> weird
555: [13:33:46] <wmk> yup.
556: [13:33:55] <wmk> size is overwritten in Textfield::getAttributes
557: [13:34:31] <wmk> r3v3rb, use setMaxLength(5) instead
558: [13:34:31] * r3v3rb checks if there is a setSize
559: [13:34:37] <r3v3rb> yep, thats it
560: [13:34:50] <wmk> though the logic could be better
561: [13:35:26] <wmk> use getMaxLength else size attribute, else null
562: [13:35:48] <wmk> r3v3rb, sound like a small bug
563: [13:35:51] <r3v3rb> although its for ensuring Stripe payment js can test the length of the string I guess?
564: [13:36:02] <wmk> uh, dunno
565: [13:36:03] <r3v3rb> aye
566: [13:36:32] * gavro has joined #silverstripe
567: [13:36:56] * gavro is now known as Guest45675
568: [13:39:44] * lerni has joined #silverstripe
569: [13:41:06] * shellbackpacific has left #silverstripe
570: [13:42:46] * lerni__ quit (Ping timeout: 256 seconds)
571: [13:53:02] <elgabbu> hello guys
572: [13:53:19] <wmk> hi elgabbu
573: [13:54:27] <elgabbu> question ... say I have a dataObject that a bunch a bunch of relationships as signed to it and in turn these relationships have more relationships .... if I delete() ... will the records associated to the one i am deleteing also be deleted
574: [13:54:39] <elgabbu> sort of would it be like a cascading delete?
575: [13:55:50] <wmk> normally not
576: [13:56:28] <elgabbu> wow ok ... so i would be left with record that have foreign keys that are no longer existing
577: [13:57:53] <wmk> possibly.
578: [13:58:07] <wmk> maybe there is a check if this record is still needed
579: [13:58:45] <elgabbu> any advisable way how to go about deleting anything that is related to the record being deleted
580: [13:59:16] <wmk> there is the onBeforeDelete hook
581: [13:59:23] <wmk> and canDelete() check for permissions
582: [13:59:38] <Guest45675> @all: Has the core dev team released any information about a release schedule for 3.2? I get the feeling it's still all in a state of flux since the decision to move to semver (merge forward of back or both, etc...)
583: [14:01:24] * Guest45675 is now known as gavro_
584: [14:01:35] <elgabbu> meh ok ... maybe i ll write some sort of recursive function that keeps digging into the objects
585: [14:03:00] <wmk> elgabbu, maybe search the forum or the code, dunno if there is already some functionality for referencial integrity
586: [14:15:47] * scpi has joined #silverstripe
587: [14:18:16] <r3v3rb> wish me luck kinglozzer I’m going in on omnipay/burnright
588: [14:18:41] <kinglozzer> gl r3v3rb!
589: [14:18:47] <kinglozzer> Lemme know how you get on :P
590: [14:18:58] <r3v3rb> first attempt and blue screen of doom!
591: [14:19:21] * Frans_Amsterdam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
592: [14:20:24] <r3v3rb> second attempt = success with forms
593: [14:20:27] <r3v3rb> :)
594: [14:23:15] <r3v3rb> eek, back to handling myself
595: [14:23:35] <r3v3rb> burnbright submits card details to server not using the js token approach
596: [14:26:40] <wmk> if form field javascript had a hook...
597: [14:27:20] <r3v3rb> wmk: ?
598: [14:27:37] <wmk> try to add js functionality to datefield
599: [14:27:45] <wmk> update min / max value of other date field
600: [14:30:13] <wmk> r3v3rb,
601: [14:30:14] <wmk> https://github.com/silverstripe/silverstripe-framework/blob/3.1/javascript/DateField.js#L22
602: [14:30:41] <r3v3rb> wmk fixed with two nicely drawn dropdowns :)
603: [14:30:56] <wmk> r3v3rb, fine
604: [14:31:01] <r3v3rb> that way I could specify stripe extras on fields :D
605: [14:31:08] <r3v3rb> for the js handler
606: [14:40:16] <Pyduncrshdk> learning ssis
607: [14:40:21] <Pyduncrshdk> HHRRRRNNNNNGGGGHHHHH
608: [14:40:34] <Pyduncrshdk> Both logical and madness at the same time :<
609: [14:41:16] <Pyduncrshdk> Although mostly madness because I've no experience with MSSQL, no experience with SSIS, no idea what each little block is, how to configure it, or how to control flow.
610: [14:41:22] <Pyduncrshdk> so basically, just following my nose. JOY
611: [14:42:34] <Pyduncrshdk> 'skilling up' - department with no investment into it that only supports the entire business style.
612: [14:42:44] <Pyduncrshdk> hoorah!
613: [14:43:45] <r3v3rb> Pyduncrshdk: sounds fun
614: [14:44:42] <Pyduncrshdk> like, does a constraint pass through even if it's marked success but the preceeding executable fails?
615: [14:44:50] <Pyduncrshdk> because it's like, the only one.
616: [14:45:03] <Pyduncrshdk> how to make it unconditional for sure? IDEK
617: [14:46:30] <r3v3rb> damn you M$ shares go down in value so I can short you!
618: [14:49:00] <r3v3rb> good, the DAX is bollocks now the US has woken up and started trading :)
619: [14:49:24] <r3v3rb> was £700 out of pocket earlier with my fake shares - now £66.00
620: [14:49:33] <r3v3rb> 33 and closing on 0
621: [14:52:43] <r3v3rb> hurrah, got shot of 300 M$ shares with a small profit of .80 :)
622: [14:52:49] <r3v3rb> as they keep falling
623: [14:55:03] <Pyduncrshdk> wtf fake shares?
624: [14:55:47] * lerni_ has joined #silverstripe
625: [14:57:12] * catcher has joined #silverstripe
626: [14:58:17] * lerni quit (Ping timeout: 256 seconds)
627: [15:02:16] * lerni__ has joined #silverstripe
628: [15:02:31] <Pyduncrshdk> ah! Success OR Failure == Completion. There we go, only half an hour.
629: [15:03:59] * lerni_ quit (Ping timeout: 245 seconds)
630: [15:05:41] <gavro_> hi guys
631: [15:06:05] <gavro_> got a question about the theming structure
632: [15:06:49] <gavro_> are there any security related issues as to why there is no php-code allowed in a theme ... and no I don't mean in templates files
633: [15:07:58] <gavro_> I'm trying to build an ... 'overarching' theming system, so that you can just install a theme and have a couple of extra relational options and/or some special hooks
634: [15:08:53] * wmk quit (Ping timeout: 265 seconds)
635: [15:09:13] <gavro_> so what i'm trying: module "theming-system/[all rost of magic]", themes/[one or more themes]
636: [15:09:40] <gavro_> any of hte installed 'special' themes requires the thieming system, and can add special relations and options
637: [15:10:35] <gavro_> I've got this working, but only if a enable code parsing in the themefolder (by 'touch _config.php' is it does not exists)
638: [15:11:39] <gavro_> are there any problems with this (besides keeping the code to a bare minimum (styling and layout logic only), thus keeping the "V" in MVC seperate....)
639: [15:13:15] <gavro_> _sorry for the typos_
640: [15:13:16] * cloph is now known as cloph_away
641: [15:15:25] * catcher quit (Quit: Leaving)
642: [15:15:25] * DimiStripe quit (Quit: DimiStripe)
643: [15:20:47] <Pyduncrshdk> gavro_: it... sounds like a terrible idea.
644: [15:21:04] <Pyduncrshdk> however I don't know quite enough to say that it is. It just sounds bad because php and templates and eww.
645: [15:21:23] <Pyduncrshdk> but, so long as the php isn't reachable from the web... I'm not sure there's any specific reason.
646: [15:21:50] <Pyduncrshdk> However I dunno if the autoloader (manifest) will look in the themes folder for code. So you might not get the benefits of that.
647: [15:21:55] * Error404NotFound has joined #silverstripe
648: [15:21:57] <Pyduncrshdk> You'd have to test it though.
649: [15:22:30] <gavro_> I agree that it sounds like a bad idea. But image this:
650: [15:22:58] <gavro_> Add theme specific options like, grid with, button styles, roudning etc etc
651: [15:23:15] <gavro_> then use a hook sassify things, generate css.
652: [15:23:34] <gavro_> That's one of the options I was thinking of
653: [15:23:58] <gavro_> for that I'd need to have some logic, insert some stuff in getCMSFields etc etc
654: [15:24:21] <gavro_> and I can imagine that different themes would require differing logic
655: [15:24:29] * Err404NotFound quit (Ping timeout: 250 seconds)
656: [15:25:18] <gavro_> I checked the autoloader, as soon as there's a _config file/folder anything in the theme-folder (only from the second folder layer) is parsed
657: [15:28:48] <Pyduncrshdk> It's been done before, yeh.
658: [15:29:23] <Pyduncrshdk> But generally, the absense of this kind of feature is a design decision by SS.
659: [15:29:43] <Pyduncrshdk> Do you really want your users fiddling with layout configuration?
660: [15:30:01] <Pyduncrshdk> bright pink comic sans on yellow background all the things!
661: [15:30:15] <Pyduncrshdk> (You just end up with geocities :P)
662: [15:30:42] <Pyduncrshdk> Not saying it's a bad idea, certainly the proposition for such features have come up before.
663: [15:31:14] <Pyduncrshdk> there is/was a less module once too. But I think it was centred around compiling as part of dev/build
664: [15:31:25] <Pyduncrshdk> rather than cms edits
665: [15:35:56] * catcher has joined #silverstripe
666: [15:47:39] * wmk has joined #silverstripe
667: [15:50:00] * scpi has left #silverstripe
668: [15:50:17] * lerni__ quit ()
669: [15:51:36] * masnun has joined #silverstripe
670: [15:55:41] * masnun quit (Client Quit)
671: [15:56:09] * masnun has joined #silverstripe
672: [15:56:20] <masnun> I am uploading an image and while storing the image, I am setting the Filename like 'assets/Uploads/54f092af271b9.png' but after saving, the Filename fields loses some part. It becomes 'assets/54f092af271b9.png' losing the "Uploads/" directory altogether. Is it supposed to happen?
673: [15:56:26] <masnun> can anyone help me?
674: [16:02:05] <Pyduncrshdk> You're not supposed to set the upload name at all.
675: [16:02:28] * masnun quit (Read error: Connection reset by peer)
676: [16:02:30] <Pyduncrshdk> I don't think I understand the question
677: [16:02:47] <Pyduncrshdk> Hmm :<
678: [16:03:06] <Pyduncrshdk> good weekend then!
679: [16:03:08] * Pyduncrshdk quit ()
680: [16:06:31] <Eliseth> What is a good way to exclude a specific pagetype from the loop <% $Menu(1) %> when logged in?
681: [16:07:21] <kinglozzer> Eliseth: <% if Top.CurrentUser && $ClassName !== 'DontShowMe' %> ... stuff to show menu item <% end_if %>
682: [16:07:21] <catcher> Eliseth, I'd probably override Menu in Page_Controller & exclude the type from the list.
683: [16:07:24] <kinglozzer> Or that ^^
684: [16:08:07] <catcher> kinglozzer, that's not as ugly as I was thinking it'd be
685: [16:09:00] <Eliseth> tyvm :)
686: [16:12:24] * masnun has joined #silverstripe
687: [16:12:34] <ss-helper> Silverstripe Image Upload is changing name - http://stackoverflow.com/questions/28769308/silverstripe-image-upload-is-changing-name
688: [16:13:41] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
689: [16:31:40] * jenniferaslan has joined #silverstripe
690: [16:56:00] * gavro_ quit (Ping timeout: 252 seconds)
691: [17:05:23] * masnun quit (Ping timeout: 252 seconds)
692: [17:08:39] * babak quit (Quit: Connection closed for inactivity)
693: [17:18:42] * masnun has joined #silverstripe
694: [17:23:59] * kinglozzer quit ()
695: [17:25:37] * masnun quit (Ping timeout: 264 seconds)
696: [17:39:46] * NETim quit (Ping timeout: 246 seconds)
697: [17:56:33] * masnun has joined #silverstripe
698: [18:03:06] * gavro_ has joined #silverstripe
699: [18:07:44] * gavro_ quit (Ping timeout: 272 seconds)
700: [18:10:57] * gelignite has joined #silverstripe
701: [18:15:50] * oddnoc has joined #silverstripe
702: [18:21:19] * babak has joined #silverstripe
703: [18:38:16] * masnun quit (Quit: Signing out.)
704: [18:40:17] * Werner_2_ has joined #silverstripe
705: [18:43:39] * wmk quit (Ping timeout: 252 seconds)
706: [18:44:45] <ss-helper> Re: Shop and error when editing catalog - http://www.silverstripe.org/community/forums/e-commerce-modules/show/101163#post400435
707: [18:58:36] * Werner_2_ quit (Read error: No route to host)
708: [18:58:48] * wmk has joined #silverstripe
709: [19:09:26] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
710: [19:14:51] <ss-helper> Re: 2 simple questions - http://www.silverstripe.org/community/forums/general-questions/show/101162#post400437
711: [19:14:51] <ss-helper> How can I upload multiple images at once? - http://www.silverstripe.org/community/forums/customising-the-cms/show/101206
712: [19:24:27] * manja42 has joined #silverstripe
713: [19:24:32] <manja42> hey guys
714: [19:24:45] <manja42> is it possible to override write() method of DataObject?
715: [19:33:16] <manja42> anyone?
716: [19:33:18] <catcher> manja42, anything is possible, but onBeforeWrite and onAfterWrite may suit your needs.
717: [19:35:10] <manja42> I know that catcher - but I need to write to another database
718: [19:35:25] <manja42> not the "default" one
719: [19:36:07] <catcher> manja42, you can switch: http://api.silverstripe.org/3.1/class-DB.html#_connect
720: [19:36:27] <manja42> I know that too :)
721: [19:36:34] <manja42> that's the thing I want to use
722: [19:36:54] <manja42> but I want to use it right before write, and go back to default after write
723: [19:37:36] <catcher> manja42, right before write = onBeforeWrite
724: [19:38:09] <manja42> it looks easy, I know...
725: [19:38:48] <manja42> but I have more than one DO that needs that functionality
726: [19:38:58] <manja42> so, instead of doing it in all DOs
727: [19:39:08] <manja42> I thought of creating an extension
728: [19:39:28] <manja42> and then simply applying it to all DOs I want to store in different database
729: [19:40:24] <manja42> tried with onBefore/After but Created is empty
730: [19:41:45] <catcher> manja42, extension + onBeforeWrite + connect really sounds like the best route to me, your problem may lie elsewhere.
731: [19:42:35] <catcher> But if you *really* want to override write() of DataObject itself, I believe you'll need useCustomClass.
732: [19:44:00] <manja42> well, I do not need to override write()
733: [19:44:07] <manja42> just to switch databases
734: [19:44:25] <manja42> there might be problem elsewhere
735: [19:44:29] <manja42> that's true
736: [19:45:00] <manja42> since I already have extension on that DO
737: [19:45:19] <manja42> might be the order of executions that's messing with me
738: [19:53:47] <manja42> actually, just title is preserved
739: [19:54:04] <manja42> and LastEdited is updated
740: [19:54:12] <manja42> no other this is saved in db
741: [19:54:17] <manja42> *thing
742: [19:54:46] <manja42> except ID and ClassName, offcourse
743: [19:54:50] <catcher> sounds like the extension, hook, and db switch are all working
744: [19:55:38] <manja42> yes
745: [19:55:45] <manja42> but DO is not saved fully
746: [19:56:23] <catcher> Are you calling write() from onBeforeWrite?
747: [19:56:48] <manja42> isn;t that certain way to step into infinite loop?
748: [19:56:59] <catcher> Yes, that's why I asked
749: [19:57:23] <catcher> How are you writing the fields in onBeforeWrite?
750: [19:57:53] <manja42> I'm not
751: [19:58:00] <manja42> just switching database
752: [19:58:44] <catcher> It sounds like what you really want to do is override the code that *calls* write, and switch dbs before & after the write.
753: [19:59:43] <manja42> actually, I just want to save certain DOs in different db
754: [20:00:14] <catcher> That clears things up a bit. I don't think you want to be in onBeforeWrite at all, or override write() for that matter.
755: [20:00:22] <manja42> no?
756: [20:00:45] <catcher> No, I think you want to let write() do its thing on a different db, so you want to override the code that calls write.
757: [20:01:07] * UndefinedOffset quit (Quit: Leaving.)
758: [20:01:44] <manja42> exactly - I want to use whole functionality of write() - just on another db
759: [20:01:56] <manja42> with all its hooks and stuff
760: [20:02:20] <catcher> manja42, right. So you need to get away from write(), and figure out how to get one level up.
761: [20:02:30] <catcher> Depends on how you're saving these DOs.
762: [20:04:19] <manja42> that "figure out how to" is exactly why I came here :)
763: [20:04:51] <catcher> You asked about overriding write(). The question is, how are you saving them?
764: [20:05:00] <catcher> Are you clicking a button? Calling write() from a controller?
765: [20:05:21] <manja42> from code, not a button
766: [20:05:50] <catcher> are you calling write() from the code?
767: [20:05:54] <manja42> yes
768: [20:05:57] <catcher> !
769: [20:06:09] <catcher> switch, write(), switch back
770: [20:08:23] <manja42> tried that
771: [20:08:25] <manja42> same thing
772: [20:08:47] <manja42> updated and columns populated by onbefore are saved
773: [20:08:51] <manja42> others are empty
774: [20:09:21] <manja42> pretty much the same as switching db on before/after hooks
775: [20:10:14] <catcher> Do all the fields exist on the 2nd db with the same name?
776: [20:10:39] <catcher> And if you take out the connection switch, does it update DB1 as expected?
777: [20:10:42] <manja42> yes
778: [20:11:10] <manja42> I used export (structure only) from original (SS created) database
779: [20:11:22] <manja42> and no - it doesn't update DB1
780: [20:11:29] <manja42> just second one
781: [20:12:06] <catcher> I'm asking if it works as expected without the DB switch.
782: [20:12:45] <manja42> https://www.youtube.com/watch?v=l1dnqKGuezo
783: [20:13:01] <manja42> it won't update non changed fiedls
784: [20:13:17] <manja42> when calling write() without a switch
785: [20:13:28] <manja42> that's why it doesn't save them
786: [20:13:59] <catcher> mystery solved.
787: [20:14:00] <manja42> this MF is fucking me up
788: [20:14:01] <manja42> foreach ($this->changed as $fieldName => $changed) {
789: [20:14:12] <catcher> sheeit.
790: [20:14:13] <manja42> line 1186, DataObject
791: [20:14:50] * scpi has joined #silverstripe
792: [20:15:03] <ss-helper> Re: How can I upload multiple images at once? - http://www.silverstripe.org/community/forums/customising-the-cms/show/101206#post400438
793: [20:16:29] <manja42> well, it's kind of desired functionality
794: [20:16:31] <catcher> manja42, looks like setting the 3rd param to true is your ticket.
795: [20:16:50] <catcher> @param boolean $forceWrite Write to database even if there are no changes
796: [20:17:07] * UncleCheese has joined #silverstripe
797: [20:20:29] <catcher> manja42, you can also force an insert, but write should be fine if the structure is identical.
798: [20:20:46] * UndefinedOffset has joined #silverstripe
799: [20:25:24] <manja42> that was the key catcher
800: [20:26:02] <manja42> only it seems when you call write(), although you have it in extension, it will call write from DO directly
801: [20:26:30] <manja42> so I renamed it to save() (which calls write) and it seems to work :)
802: [20:27:13] <catcher> manja42, don't forget about $this->owner in extensions
803: [20:27:46] <manja42> I know, I'm not that kind of n00b :)
804: [20:45:08] <ss-helper> Re: Multi Column layouts - http://www.silverstripe.org/community/forums/customising-the-cms/show/4969?start=16#post400439
805: [20:53:30] <manja42> but I would really really like to name that method write()
806: [21:05:45] <catcher> manja42, you can't override methods with extensions
807: [21:06:10] <manja42> is there any other option?
808: [21:06:26] <catcher> manja42, http://api.silverstripe.org/3.1/source-class-DataObject.html#1260
809: [21:06:33] <catcher> There's a hook called augmentWrite
810: [21:06:52] * UndefinedOffset quit (Quit: Leaving.)
811: [21:07:06] * jedateach has joined #silverstripe
812: [21:07:30] <catcher> manja42, I don't think it really helps you though, the name is still the issue.
813: [21:07:56] <manja42> it's not only the name of the write()
814: [21:08:07] <catcher> manja42, but I'd suggest calling it customWrite() or something, because save() exists elsewhere.
815: [21:08:24] <manja42> there are delete() and get() waiting in line
816: [21:08:31] <manja42> for same thing
817: [21:08:42] <manja42> can I do something like this
818: [21:09:02] <manja42> DifferentDbDataObject extends DataObject
819: [21:09:24] <manja42> and override requireTable to make it tableless
820: [21:09:47] <manja42> and then
821: [21:10:08] <manja42> MyDataObject extends DifferentDbDataObject
822: [21:10:15] <manja42> which has table
823: [21:10:22] <manja42> ?
824: [21:10:25] <catcher> You can override methods in a subclass, if that answers your question.
825: [21:11:20] <catcher> I'm not sure if the requireTable bit will get you where you're going, but you can do what you're asking about.
826: [21:12:41] <ss-helper> SilverStripe outputs RSS as text/plain but is supposed to use application/rss+xml - http://stackoverflow.com/questions/28774209/silverstripe-outputs-rss-as-text-plain-but-is-supposed-to-use-application-rssxm
827: [21:14:55] * Stomach has joined #silverstripe
828: [21:15:33] * wmk quit (Ping timeout: 246 seconds)
829: [21:27:31] * UndefinedOffset has joined #silverstripe
830: [21:33:44] * UndefinedOffset quit (Quit: Leaving.)
831: [22:00:22] <ss-helper> Re: How to link file uploaded with Filefield to class field "Image" ? - http://www.silverstripe.org/community/forums/general-questions/show/101149#post400440
832: [22:06:28] * manja42 quit (Quit: Page closed)
833: [22:15:49] * simon_w has joined #silverstripe
834: [22:16:24] * jedateach quit (Quit: jedateach)
835: [22:16:56] * scpi quit (Quit: scpi)
836: [22:44:51] * catcher quit (Quit: Leaving)
837: [23:12:21] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
838: [23:15:21] * r3v3rb quit (Quit: r3v3rb)
839: [23:17:31] * jedateach has joined #silverstripe
840: [23:28:39] * babak quit (Quit: Connection closed for inactivity)
841: [23:34:36] * jedateach quit (Quit: jedateach)

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