#silverstripe IRC Log

IRC log for 7 September 2015

All timestamps are in UTC.

1: [00:24:45] * micmania1 has joined #silverstripe
2: [00:31:35] * Stomach quit (Quit: zzz)
3: [00:34:49] * Stomach has joined #silverstripe
4: [00:38:09] <chocolatemoose> when looping a datalist is it possible to look at the values from the previous iteration?
5: [00:39:43] <DanaeNZ> chocolatemoose: template or PHP?
6: [00:40:21] <chocolatemoose> template :p searching shows that I can't and I'll need to think about another way to solve this problem
7: [00:51:41] * Stomach quit (Quit: zzz)
8: [00:52:42] * Stomach has joined #silverstripe
9: [00:53:03] <DanaeNZ> chocolatemoose: you'll want to create a method that accesses the previous record
10: [01:07:24] * DanaeNZ quit (Remote host closed the connection)
11: [01:07:59] * DanaeNZ has joined #silverstripe
12: [01:09:09] * Stomach quit (Quit: zzz)
13: [01:11:01] * Azure quit (Quit: My Mac has gone to sleep. ZZZzzz…)
14: [01:12:12] * Azure has joined #silverstripe
15: [01:12:16] * DanaeNZ quit (Ping timeout: 246 seconds)
16: [01:18:25] * Stomach has joined #silverstripe
17: [01:25:57] * LimRes has joined #silverstripe
18: [01:28:07] * Stomach quit (Quit: zzz)
19: [01:36:19] <irogue> quiet in here today - everyone must be recovering from the weekend
20: [01:37:46] * Tanger has joined #silverstripe
21: [01:38:08] * DanaeNZ has joined #silverstripe
22: [01:41:23] <irogue> DanaeNZ: how are you feeling now anyways? at work today or still sickly?
23: [01:41:50] <DanaeNZ> Back at work :3 Still running at only 80% but I can walk around so that's good
24: [01:42:57] <irogue> yep, is generally preferable
25: [01:43:07] <irogue> busy making everyone else sick at work then? :P
26: [01:44:55] <DanaeNZ> Hopefully not, I don't feel too contagious. >>;
27: [01:45:34] * antmas is actually feeling like crap today
28: [01:45:42] <antmas> more so than usual for a Monday
29: [01:50:40] <irogue> antmas: you were at a MS conference, you've probably caught a virus
30: [01:50:51] <DanaeNZ> this can't be the fix :( https://github.com/silverstripe/silverstripe-translatable/issues/147
31: [01:51:12] <antmas> irogue: oh booooom
32: [01:51:20] <antmas> irogue: that was good, I like that :D
33: [01:53:37] * Stomach has joined #silverstripe
34: [01:56:32] * micmania1 quit (Quit: micmania1)
35: [02:02:03] * chocolatemoose_ has joined #silverstripe
36: [02:02:03] <ss-helper> chocolatemoose_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
37: [02:02:30] * chocolatemoose quit (Ping timeout: 255 seconds)
38: [02:04:17] * chocolatemoose_ is now known as chocolatemoose
39: [02:11:16] * TheVoid_ has joined #silverstripe
40: [02:12:20] * _longines_ has joined #silverstripe
41: [02:13:33] * [Fate_] has joined #silverstripe
42: [02:13:34] * AshKyd` has joined #silverstripe
43: [02:15:19] * chocolatemoose quit (Ping timeout: 260 seconds)
44: [02:15:25] * [Fate] quit (*.net *.split)
45: [02:15:26] * TheVoid quit (*.net *.split)
46: [02:15:26] * AshKyd quit (*.net *.split)
47: [02:15:26] * _longines quit (*.net *.split)
48: [02:15:34] * [Fate_] is now known as [Fate]
49: [02:15:34] * AshKyd` is now known as AshKyd
50: [02:24:12] * chocolatemoose has joined #silverstripe
51: [02:25:33] * Sticks has joined #silverstripe
52: [02:25:52] <antmas> the want for MGSV is real
53: [02:26:49] * Stomach quit (Quit: zzz)
54: [02:30:06] * Zauberfi1ch has joined #silverstripe
55: [02:30:54] * Stomach has joined #silverstripe
56: [02:31:00] <Sticks> Hi guys, if a top-level page has "Inherit from parent page" selected under "Who can view this page?", what might make it decide you have to log in to view that page?
57: [02:33:30] * _longines_ is now known as _longines
58: [02:34:25] <DanaeNZ> oh yay we have slack now
59: [02:34:40] * Zauberfisch quit (Ping timeout: 272 seconds)
60: [02:34:53] <DanaeNZ> also Sticks it will look at the parent page to check permissions. You can set who can view a page in the Settings of that page
61: [02:35:26] * micmania1 has joined #silverstripe
62: [02:36:00] <Sticks> DanaeNZ, if it's a top-level page though which permissions is it checking? For some reason with this site I'm having to manually set "Anyone" for each page
63: [02:36:38] <DanaeNZ> oh right - then i guess it checks the code first to find any special permissions
64: [02:36:53] <DanaeNZ> otherwise it would just allow by default i think
65: [02:37:35] <Sticks> Yeah. I have one site on a Subsites install that's not playing nice. All other sites are fine and I'm not sure where the difference is.
66: [02:38:31] * Stomach quit (Quit: zzz)
67: [02:39:23] * MichalKleiner has joined #silverstripe
68: [02:47:28] * Stomach has joined #silverstripe
69: [02:47:42] <Sticks> Oh, I might have found it. Siteconfig has a CanViewType field. All this time I never checked the 'Access' tab in Settings it looks like.
70: [02:57:28] * Embraden quit (*.net *.split)
71: [03:01:25] * spronk has joined #silverstripe
72: [03:02:19] * Embraden has joined #silverstripe
73: [03:04:48] * LimRes quit (Ping timeout: 246 seconds)
74: [03:05:26] * SticksM has joined #silverstripe
75: [03:08:29] * [Fate] quit (Ping timeout: 265 seconds)
76: [03:08:30] * _longines quit (Ping timeout: 265 seconds)
77: [03:08:58] * Sticks quit (Ping timeout: 265 seconds)
78: [03:09:00] * DanaeNZ quit (Remote host closed the connection)
79: [03:09:00] * [Fate] has joined #silverstripe
80: [03:10:33] * DanaeNZ has joined #silverstripe
81: [03:12:20] * _longines has joined #silverstripe
82: [03:15:38] <ss-helper> Silverstripe SImple Theme Mobile - http://stackoverflow.com/questions/32430524/silverstripe-simple-theme-mobile
83: [03:18:20] <helenclarko> Need more nippys!
84: [03:18:41] <DanaeNZ> I got a coffee instead of Nippy's today
85: [03:18:46] <MichalKleiner> afternoon guys
86: [03:19:36] <MichalKleiner> are there any examples on extensions to SSViewer? can't find any..
87: [03:20:32] <antmas> DanaeNZ: you're doin it wrong
88: [03:21:55] <DanaeNZ> antmas: :(((
89: [03:25:56] * LimRes has joined #silverstripe
90: [03:27:09] <LimRes> Hey SS Peeps - Can someone save my hair and tell me any reason why return Controller::curr()->redirect('../foo'); would behave differently(shows right URI but acts like a page not found - refreshing shows correct page) in IE but resolves perfectly in Chrome?
91: [03:27:15] <LimRes> SS 3.2
92: [03:28:24] <LimRes> Should I be doing some sort of baseURL instead of dots and slashes?
93: [03:28:25] <MichalKleiner> I think I saw this behaviour before LimRes.. but can't recall why it was and what fixed it
94: [03:28:49] <MichalKleiner> is it in the frontend view or backend?
95: [03:30:20] <LimRes> Front end
96: [03:31:26] <veb> antmas: hey
97: [03:32:53] <spronk> phop
98: [03:35:50] <LimRes> It also works if I provide a full path URI
99: [03:36:22] <LimRes> I can't see any discussion of differences between IE and Chrome as far as SS redirects :P
100: [03:36:39] <irogue> probably something in the actual act of redirecting is screwing up - perhaps something thats being sent before the redirect header that IE is fussier about?
101: [03:37:25] <LimRes> irogue: thanks, I did look into that but I can see no output at all before the redirect
102: [03:38:09] <irogue> do you have a URL that I could look at, or if its local do you know how to grab a pcap?
103: [03:38:40] <LimRes> irogue: thanks so much http://lb.limres.com/costs/
104: [03:39:24] <LimRes> I've noticed that IE has no trouble with redirectBack() throughout the site
105: [03:39:41] <LimRes> but yeah it looks like all relative redirects fail then work on a refresh
106: [03:39:46] <irogue> LimRes: ok and what is the action that's triggering the redirect and screwing up?
107: [03:40:22] <LimRes> that quote tool - click "Next" then choose "Will"
108: [03:40:39] <LimRes> then choose "yeah"
109: [03:40:55] <LimRes> then garbage into first/last/email
110: [03:41:00] <LimRes> then Get Quote
111: [03:41:10] <LimRes> oops wait
112: [03:41:14] <LimRes> I have to break it again
113: [03:41:23] <LimRes> it is working at the moment with the full URL
114: [03:41:25] <irogue> lol
115: [03:41:59] <LimRes> ok it should be broken now lol
116: [03:46:25] <LimRes> hmm it seems Director::baseURL() is returning "/"
117: [03:48:13] <LimRes> ah of course it is
118: [03:48:14] <LimRes> nvm
119: [03:48:16] <irogue> there's a JS error that IE considers fatal (IE is very fussy about JS errors) - from my experience IE can do all kinds of weird things in those situations
120: [03:48:20] <irogue> perhaps try fixing the JS error?
121: [03:49:46] <LimRes> ah that would make sense
122: [03:49:51] <irogue> you're using $.browser.msie but that doesn't exist in modern versions of jQuery
123: [03:50:01] <LimRes> that Chrome is handling it more gracefully
124: [03:50:13] <LimRes> yeah I have been meaning to trim that out
125: [03:50:36] <LimRes> It was left over from an old theme
126: [03:51:18] <irogue> ohh also
127: [03:51:30] <irogue> and probably more likely cause of issue
128: [03:51:38] <irogue> its trying to do a POST to /thanks
129: [03:52:12] <irogue> cos you're redirecting from a POST action, its assuming the redirect should also be a POST
130: [03:52:25] <LimRes> ahhh
131: [03:52:45] <LimRes> can I set the request type in a redirect?
132: [03:59:46] <LimRes> hmmm... well this works: return Controller::curr()->redirect(Director::absoluteBaseURL() . '/thanks');
133: [03:59:53] <LimRes> I am sure I tried that before
134: [03:59:58] <LimRes> must have had a typo
135: [04:00:19] <LimRes> I assumed that is what SS would do when it was left out
136: [04:03:21] <irogue> yeah I'm guessing IE must force GET when you use an absolute URL or something
137: [04:03:33] <irogue> fyi IE is actualy doing the *right* thing
138: [04:03:43] <irogue> 302 is meant to keep protocol, 303 is meant to change to a GET
139: [04:05:18] <LimRes> so is there a more correct way than the absolute URL, and is this something you would expect SS to do out of the box?
140: [04:06:40] <irogue> LimRes: you could try telling redirect to use a 303
141: [04:06:47] <irogue> ->redirect($url, 303)
142: [04:07:19] <LimRes> ok thanks irogue :)
143: [04:07:41] <irogue> and no I wouldn't expect it to do out of the box - it is possible to use multiple domains for one site (e.g. www.example.com and example.com), and you wouldn't want a simple redirect to force it to the other URL
144: [04:08:05] <LimRes> ahh
145: [04:08:07] <LimRes> of course
146: [04:08:09] <LimRes> that's the rub
147: [04:11:14] * zlinux has joined #silverstripe
148: [04:12:41] * SticksM quit (Read error: Connection reset by peer)
149: [04:13:38] * Stomach quit (Quit: zzz)
150: [04:17:29] * Stomach has joined #silverstripe
151: [04:23:06] <LimRes> irogue: thanks again - have a great night everbody
152: [04:23:57] <irogue> LimRes: no worries - have a good afternoon :)
153: [04:27:24] * LimRes quit (Ping timeout: 246 seconds)
154: [04:35:30] <Colin[pi]> look at irogue, so polite
155: [04:35:37] <Colin[pi]> he's like the anti-ss23
156: [04:35:59] <Colin[pi]> ;)
157: [04:36:10] * Phlunk3 quit (Quit: Leaving)
158: [04:36:33] <irogue> its leftover from being at a conference and having to act all polite while "representing silverstripe" :P
159: [04:36:42] <Colin[pi]> LOL
160: [04:36:52] <Colin[pi]> next week it'll be back to "fuck y'all"
161: [04:37:19] <ss23> :O
162: [04:37:28] <ss23> I represent SilverStripe!
163: [04:37:29] <ss23> I'm an op!
164: [04:37:39] <Colin[pi]> yes, Offensive Person
165: [04:37:43] <Colin[pi]> OP
166: [04:37:44] <Colin[pi]> :D
167: [04:38:02] <chocolatemoose> original prankster
168: [04:39:44] <irogue> OH GOD NO
169: [04:39:51] <irogue> WHAT IS THAT HORRIBLE NOISE
170: [04:40:03] <ss23> BABY
171: [04:40:07] <ss23> IT'S A BAAAABBBBBYYYYY
172: [04:40:20] <irogue> UGH
173: [04:40:20] <ss23> SilverStripe office -- now with babies
174: [04:40:28] <irogue> plz no
175: [04:41:09] <DanaeNZ> hahahaha
176: [04:41:10] <DanaeNZ> shame
177: [04:41:12] <DanaeNZ> shaaaame
178: [04:41:14] <DanaeNZ> no babies here
179: [04:42:04] <MichalKleiner> anyone used or played with https://github.com/heyday/silverstripe-composeparser ?
180: [04:42:20] <MichalKleiner> seems like a good way to go for my experiments with templates
181: [04:51:55] <helenclarko> MichalKleiner, Thats really cool
182: [04:52:45] <ss23> baaabbbyyyyy
183: [05:01:04] * helenclarko quit (Read error: Connection reset by peer)
184: [05:12:23] <irogue> ss23: https://www.youtube.com/watch?v=k9lLbBOnh30
185: [05:12:38] <ss23> ew
186: [05:13:04] <spronk> yep
187: [05:13:04] <spronk> ew
188: [05:13:25] <ss23> what is that
189: [05:13:27] <ss23> a fucking singalong?
190: [05:14:45] <spronk> damn you phpunit
191: [05:14:49] <spronk> y u EEEEEE at me?! D:
192: [05:15:28] <irogue> i was just gonna link you to the actual music video, but that was the 2nd result and making you look at shirtless bieber was too good to resist
193: [05:16:33] <spronk> sicko
194: [05:16:35] * micmania1 quit (Quit: micmania1)
195: [05:16:39] <spronk> phsycko
196: [05:17:10] * chocolatemoose quit (Remote host closed the connection)
197: [05:19:56] <DanaeNZ> yes php this file DOES exist don't lie to me
198: [05:20:06] <spronk> ikr
199: [05:28:50] * r_hector has joined #silverstripe
200: [05:45:39] <ss-helper> Silverstripe HIdden Menus - http://stackoverflow.com/questions/32431661/silverstripe-hidden-menus
201: [05:46:38] * Stomach quit (Quit: zzz)
202: [05:47:58] * Stomach has joined #silverstripe
203: [05:59:00] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
204: [06:02:46] * willr quit (Quit: willr)
205: [06:08:50] * spronk quit (Quit: I may need a longer sleep timer...)
206: [06:11:09] * Stomach quit (Quit: zzz)
207: [06:13:15] * spronk has joined #silverstripe
208: [06:17:34] * novaweb has joined #silverstripe
209: [06:18:58] <novaweb> Hey kids, working with a data extension, can't seem to access $has_one relations. ie) $images = $this->owner->Image1.... is there anything different you need to do compared with $db references?
210: [06:21:16] * veb quit (Quit: veb)
211: [06:22:12] * mahfuz quit (Ping timeout: 246 seconds)
212: [06:23:00] * veb has joined #silverstripe
213: [06:23:44] <DanaeNZ> novaweb: $this->owner->Image1()
214: [06:23:47] <DanaeNZ> it needs to be a method
215: [06:24:46] <novaweb> DanaeNZ... thaaaaaanks
216: [06:37:21] * willr has joined #silverstripe
217: [06:39:10] * willr quit (Client Quit)
218: [06:42:06] * Eliseth has joined #silverstripe
219: [06:48:22] * Stomach has joined #silverstripe
220: [06:54:50] * spronk quit (Quit: I may need a longer sleep timer...)
221: [06:57:37] * Stomach quit (Quit: zzz)
222: [07:10:02] * Stomach has joined #silverstripe
223: [07:17:53] * arnhoe has joined #silverstripe
224: [07:23:39] * Motoservo quit (Remote host closed the connection)
225: [07:29:05] * Stomach quit (Quit: zzz)
226: [07:36:31] * spronka has joined #silverstripe
227: [07:39:43] * spronka quit (Client Quit)
228: [07:49:37] * DanaeNZ quit (Remote host closed the connection)
229: [07:54:34] * wmk has joined #silverstripe
230: [08:02:50] * swaiba has joined #silverstripe
231: [08:05:21] <swaiba> Any silverstripe employees online?
232: [08:06:18] <wmk> ?
233: [08:06:27] <Zauberfi1ch> probably not, it's pretty late in nz
234: [08:06:45] <Zauberfi1ch> and I am not sure the EU guys are here on irc
235: [08:06:56] <wmk> never seen them
236: [08:07:08] <Zauberfi1ch> neither have I
237: [08:07:20] <swaiba> just wondered... I'll email Cam
238: [08:07:30] <swaiba> spammers on the one forum section I cannot nuke from
239: [08:08:35] <Zauberfi1ch> we sill haven't gotten that spammer issue under control?
240: [08:11:41] <swaiba> I think good work has been done
241: [08:12:00] <swaiba> I mean I gave up about a month ago and Cam put the forum in read only
242: [08:12:09] <swaiba> but there is the odd burst of spam still
243: [08:12:27] <swaiba> and still many one posters for torrents or some design studio in NY
244: [08:13:19] * kinglozzer has joined #silverstripe
245: [08:16:29] * Mike123 has joined #silverstripe
246: [08:21:39] * spronk has joined #silverstripe
247: [08:31:28] * R\w\C has joined #silverstripe
248: [08:31:35] * Werner_2_ has joined #silverstripe
249: [08:32:29] * wmk quit (Read error: Connection reset by peer)
250: [08:33:10] * spronk quit (Quit: I may need a longer sleep timer...)
251: [08:34:05] * Werner_2_ is now known as wmk
252: [08:36:58] * darjus01 has joined #silverstripe
253: [08:40:40] <kinglozzer> Any DNS experts in here? :P
254: [08:41:21] <kinglozzer> Client is reporting an increase in spam since DKIM signature was added to a TXT record on their domain
255: [08:41:28] <kinglozzer> (i.e. spam arriving in their inbox)
256: [08:41:47] <kinglozzer> DKIM was added for a campaign monitor thing
257: [08:41:57] <kinglozzer> I'm 99.99% sure they're unrelated...
258: [08:42:15] <kinglozzer> 'cause DKIM should only affect *outgoing* mail, right? :|
259: [08:47:23] * Motoservo has joined #silverstripe
260: [08:48:06] * spronka has joined #silverstripe
261: [08:57:51] * travis-ci has joined #silverstripe
262: [08:57:51] <travis-ci> silverstripe/silverstripe-framework#5787 (3 - 50e798f : Loz Calver): The build passed.
263: [08:57:52] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/46ebdd5a8dc1...50e798fb516c
264: [08:57:52] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-framework/builds/79086166
265: [08:57:52] * travis-ci has left #silverstripe
266: [08:58:38] * Stomach has joined #silverstripe
267: [09:11:42] <Zauberfi1ch> kinglozzer: yeah, afaik your DKIM has nothing to do with incomming emails
268: [09:13:16] <Zauberfi1ch> kinglozzer: could it be that in the change of starting to use campaign monitor they have posted information on the website that included a plain text email address?
269: [09:14:17] <kinglozzer> Cool, thanks Zauberfi1ch
270: [09:14:44] <kinglozzer> Yeah it could be that, or perhaps a dodgy mailing list or something
271: [09:15:32] <Motoservo> I suppose this is a metter for Dreamhost but I’m simply trying to use the Insert Media in the CMS and I’m getting a memory error. I’ve jacked it all the way up to 700MB (and it’s reflected in phpinfo) but still getting the error. What’s strange is the numbers shown.
272: [09:15:37] <Motoservo> Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 13092 bytes) in /home/teeroy/bitbeyond.com/framework/filesystem/GD.php on line 51
273: [09:16:43] <Zauberfi1ch> Motoservo: either you setting the memory limit has no effect (because your hoster doesn't allow you to change it to a higher number), or you have an insanely large image that silverstripe tries to resize
274: [09:17:42] * Stomach quit (Quit: zzz)
275: [09:18:06] <Motoservo> I don’t even make it far enough to choose an image, but it’s a small one (few KB).
276: [09:18:23] <Motoservo> phpinfo() does show the memory allocation.
277: [09:18:29] <Zauberfi1ch> yes, of course you don't
278: [09:18:36] <Motoservo> But i can submit a ticket and see what they say.
279: [09:18:46] <Zauberfi1ch> the list to select the images contains thumbnails. the thumbnails need to be created
280: [09:18:58] <Zauberfi1ch> so it's probably at the thumbnail creation it breaks
281: [09:19:00] * GioVdK has joined #silverstripe
282: [09:19:08] <Motoservo> thumbnail creation?
283: [09:19:28] <Motoservo> The error is the moment I click “Insert media".
284: [09:20:59] <Motoservo> Well, if all the thumbnails are created at that moment then it still shouldn’t be a problem. There aren’t any other photos in Assets. None over a few KB.
285: [09:21:17] <Zauberfi1ch> that is strange indeed
286: [09:21:23] <Zauberfi1ch> check again to be sure
287: [09:21:28] <Zauberfi1ch> also check subfolders of assets
288: [09:21:47] <Motoservo> k
289: [09:21:53] <GioVdK> Hello, I found a strange behaviour with SS using a dataextension for the member data object. Basically I'm calling a method on the afterWrite that I extended but then it gets called twice due to ViewableData->__set
290: [09:21:58] <GioVdK> please see: http://www.sspaste.com/paste/show/55ed56d9565a0
291: [09:22:14] <GioVdK> and the second time it is called with the result of itself as the first parameter :p
292: [09:24:19] <Motoservo> I also use assets for sqlite on the unit tests. I’ll run though that stuff, too. For whatever reason there were some errant dirs created while running the tests. Another assets inside the assets, for instance.
293: [09:24:23] <Motoservo> I’ll clear all that out.
294: [09:25:28] <Zauberfi1ch> well, I have to leave now
295: [09:25:36] <Zauberfi1ch> good day gents
296: [09:27:15] <Motoservo> I just du -h the root and the largest dir remaining is 1.5 mb.
297: [09:27:33] <Motoservo> g’day. Zauberfi1ch
298: [09:28:10] * Stomach has joined #silverstripe
299: [09:28:42] * Tanger quit (Quit: sleep())
300: [09:31:11] <GioVdK> ok, found the problem... I was setting the property using the magic setter instead of the SetField method
301: [09:38:15] * DanaeNZ has joined #silverstripe
302: [09:42:47] * DanaeNZ quit (Ping timeout: 264 seconds)
303: [09:44:43] * Stomach quit (Quit: zzz)
304: [09:45:32] * Arcax has joined #silverstripe
305: [10:11:08] * r_hector quit (Remote host closed the connection)
306: [10:11:54] * wmk quit (Quit: nice to meet you ;))
307: [10:23:55] * zlinux quit (Ping timeout: 260 seconds)
308: [10:25:37] * zlinux has joined #silverstripe
309: [11:15:51] * Mike123 quit (Ping timeout: 246 seconds)
310: [11:19:29] <darjus01> Hi all does this setAllowedExtensions(array('jpg','svg','png','jpeg','gif')); works? I am trying to make SVG files uploaded in field
311: [11:21:01] <kinglozzer> darjus01: Should work, yeah
312: [11:21:09] <kinglozzer> You might need to modify .htaccess in assets (if you have one) too
313: [11:21:29] <darjus01> still not letting
314: [11:22:03] <kinglozzer> darjus01: Did you add it to assets/.htaccess or web.config?
315: [11:22:17] <darjus01> added to htaccess
316: [11:22:39] <darjus01> same forbidden
317: [11:24:19] <Arcax> Hi people, someone know how to hide the admin so when anyone put on my web www.exampleweb.com/admin <--- not show the login form here
318: [11:24:20] <Arcax> Show the admin form to loggin on www.exampleweb.com/nerveryouseethat
319: [11:25:39] <kinglozzer> darjus01: Ah, you may also need to add it to File.allowed_extensions
320: [11:26:01] <kinglozzer> config.yml: File: allowed_extensions: - svg
321: [11:26:14] <darjus01> added still
322: [11:26:37] <kinglozzer> dev/build?
323: [11:26:43] <darjus01> yap
324: [11:26:54] <kinglozzer> Can you paste your assets/.htaccess?
325: [11:27:51] <darjus01> http://www.sspaste.com/paste/show/55ed74a9e30f4
326: [11:28:56] <kinglozzer> Hmm, and you're definitely using apache? :P
327: [11:29:01] <kinglozzer> I'm out of ideas :/
328: [11:32:27] <Arcax> darjus01 I use:
329: [11:32:29] <Arcax> $fields->addFieldToTab('Root.Attachments', $image = UploadField::create('Photo', 'Photo (960x370)'));
330: [11:32:30] <Arcax> $image->getValidator()->setAllowedExtensions(array('png','gif','jpg','jpeg'));
331: [11:33:04] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
332: [11:33:55] <kinglozzer> Arcax: You mean you want to change the 'admin' URL? You can't do that (yet)
333: [11:34:34] <darjus01> my field code maybe are mistakes?
334: [11:34:35] <darjus01> http://www.sspaste.com/paste/show/55ed7633d765c
335: [11:36:22] <Arcax> kinglozzer, yes, i thought that i could change it in some file = (
336: [11:37:05] <kinglozzer> Arcax: No, it was in development but it won't be released for a while even if it is added - https://github.com/silverstripe/silverstripe-framework/pull/3274
337: [11:37:32] <darjus01> dah such silly mistake of me :D
338: [11:37:39] <kinglozzer> darjus01: Try $uploadH = $uploadH->setAllowedExtensions(array('jpg','svg','png','jpeg','gif'));
339: [11:38:21] <darjus01> Works, from start only my mistake I made mistake has one header -> image :DD
340: [11:39:16] <Arcax> kinglozzer, thanks for help !!!
341: [11:46:46] * novaweb quit (Remote host closed the connection)
342: [12:00:29] * Azure|dc has joined #silverstripe
343: [12:02:00] * wmk has joined #silverstripe
344: [12:02:43] * Azure quit (Disconnected by services)
345: [12:02:48] * Azure|dc is now known as Azure
346: [12:09:42] * zlinux_ has joined #silverstripe
347: [12:13:24] * zlinux quit (Ping timeout: 244 seconds)
348: [12:16:18] * Colin[pi] quit (Ping timeout: 255 seconds)
349: [12:25:41] <Arcax> Hello, someone know how put all checkboxes from CheckboxSetField to (true) checked? Thanks
350: [12:36:52] * spronk has joined #silverstripe
351: [12:43:31] * rista has joined #silverstripe
352: [12:46:46] <rista> Hi guys, one question about silverstripe CMS. Can someone explain me how silverstripe grabs relation of a parent (relationID particulary) when using a gridfield to create new item?
353: [12:47:23] * novaweb has joined #silverstripe
354: [12:48:12] <rista> so, I have a url: "/admin/companies/Company/EditForm/field/Company/item/2/ItemEditForm/field/Surveys/item/new (or instead of new /edit/5)". On save, he make a relation between these too?
355: [12:48:46] <rista> I want to get the ID of a parent on onBeforeWrite (or onAfterWrite).
356: [12:49:15] <swaiba> rista I don't know how it does it, but these are what I'd advise you to do...
357: [12:49:37] <swaiba> 1) die(var_dump($this)) in the onbeforewrite to see all the info you can get
358: [12:49:56] <swaiba> 2) if not enough then parse the URL you've mentioned and pull from there
359: [12:50:30] <swaiba> 3) don't do onbeforewrite, do onafterwrite as it must be set then
360: [12:50:51] <swaiba> (onafterwrite can call write on itself and repeat the write process)
361: [12:51:07] <rista> yes, I know how to get it from the url, but I wanted to know SS way. Thank you btw :)
362: [12:51:27] <swaiba> Arcax - no idea - but looks like you can set the values based on an array - I'd imaging if you know the source array, then you can just submit that
363: [12:51:45] <rista> well, I need to do something totally different with 3rd object, and you can't see that gridfield untill first save, so no problem with that
364: [12:52:59] * novaweb quit (Ping timeout: 264 seconds)
365: [12:56:48] <wmk> swaiba, die(var_dump()) ??? seriously?
366: [12:57:12] <rista> Found one of possible solutions under Group.php in getCMSFields
367: [12:57:35] <rista> $config->getComponentByType('GridFieldDetailForm')->->setItemEditFormCallback(function($form, $component) use($group) {$record = $form->getRecord(); ....
368: [12:57:40] <swaiba> wmk I mean it's quick and works... WWYD?
369: [12:57:47] <wmk> wwyd?
370: [12:57:56] <swaiba> What Would You Do?
371: [12:58:09] <wmk> you know, xdebug and breakpoint
372: [12:58:13] <swaiba> I've been getting used to IRC :)
373: [12:58:31] <swaiba> which takes much longer for a very similar effect
374: [12:58:47] <swaiba> I'm not against it, but depending on the situation I'll use the best tool
375: [12:58:56] <wmk> well, you see much more there and can play around with values
376: [12:59:01] <swaiba> and trying to explain debugging on IRC isn't high on my list :)
377: [12:59:03] <wmk> but matter of taste, sure
378: [12:59:23] <wmk> oh, well, i assume you have it all set up properly to work ;)
379: [12:59:54] <swaiba> honestly I've relaxed on this, I used to discount programmers who never had used debugging and breakpoints
380: [13:00:27] <swaiba> but PHP is full of excellent programmers who never know what an IDE really was
381: [13:00:43] <swaiba> and certainly never knew what line by line debugging was
382: [13:02:05] <rista> or also onBeforeWrite you can use $this->getSourceQueryParams()
383: [13:02:30] <swaiba> rista that is very useful to know, thanks for taking the time for the update :)
384: [13:04:20] <rista> silverstripe use this for lazyloading on dataobject, so fell free to use it when needed :)
385: [13:04:49] <Eliseth> Question. When I try to filter on PublishDate I get a datalist. No problem. Now I try to filter an extended dataobject, on the field UnPublishDate which I added. However it generates an error. When I dump the object I see: 'UnPublishDate_Lazy' => string 'ShowArticle' (length=11) which leads me to believe I cannot use UnPublishDate directly in my filter(). But how would I do it in this case?
386: [13:14:09] <wmk> Eliseth, filter on an ArrayList? on a DataList?
387: [13:14:14] <wmk> did you flush?
388: [13:15:28] <Eliseth> yes, flushed
389: [13:16:50] <Eliseth> When I just output the ->UnPublishDate it shows me the values I want to filter on. But I can't actually filter on it it seems
390: [13:18:30] * Embraden quit (Ping timeout: 272 seconds)
391: [13:21:11] * Embraden has joined #silverstripe
392: [13:21:12] * Embraden quit (Changing host)
393: [13:21:12] * Embraden has joined #silverstripe
394: [13:21:41] <wmk> Eliseth, paste some code pls
395: [13:24:52] <darjus01> http://www.sspaste.com/paste/show/55ed8fad49b93 maybe some one see mistake on add block i have error [User Error] Uncaught InvalidArgumentException: Invalid sort() column and that just copy of block whitch builded normaly and add worked normal before I added blockslider
396: [13:30:57] <darjus01> nothing done and suddenly it working :D
397: [13:34:04] <wmk> darjus01, well, sometimes pasting something makes it working ;)
398: [13:34:24] <darjus01> rodger :D
399: [13:34:32] <darjus01> thx :)
400: [13:50:10] * novaweb has joined #silverstripe
401: [13:50:24] <Eliseth> wmk: http://sspaste.com/paste/show/55ed9617197c5
402: [13:50:33] * rista quit (Ping timeout: 246 seconds)
403: [13:51:58] <wmk> well, Eliseth var_dump() won't work here
404: [13:52:08] <wmk> as it's a DataList
405: [13:52:13] <wmk> which is just not sent to DB
406: [13:52:36] <wmk> using ->count() or ->toArray() it's run and you see the results
407: [13:53:56] <Eliseth> Well, the vas_dump is working when I remove 'UnPublishDate:GreaterThanOrEqual' => SS_Datetime::now()
408: [13:54:02] <Eliseth> *var_dump
409: [13:54:20] <wmk> well, but it should work from your code
410: [13:54:32] <wmk> what's the error?
411: [13:54:35] * novaweb quit (Ping timeout: 246 seconds)
412: [13:55:13] <wmk> $blogPosts is a DataList, so you can check the generated query and get the list
413: [13:55:23] <Eliseth> Fatal error: Call to a member function setValue() on null in /path/to/my/install/framework/search/filters/SearchFilter.php on line 201
414: [13:55:49] <wmk> http://api.silverstripe.org/3.1/class-DataList.html#_sql
415: [13:56:18] <Eliseth> It looks like it can't acces UnPublishDate directly
416: [13:56:41] <wmk> well
417: [13:56:47] <wmk> take a look
418: [13:56:56] <wmk> where have you defined UnPublishDate ? which class?
419: [13:57:04] <wmk> and which class are you trying to query?
420: [13:57:39] <Eliseth> It's defined in ShowArticle
421: [13:57:45] <wmk> yup
422: [13:57:56] <wmk> but you try $blogPosts = BlogPost::get()
423: [13:58:08] <wmk> which just doesn't have UnpublishDate
424: [13:58:22] <wmk> so - what are you trying to acchieve?
425: [13:58:49] <wmk> do you want to query all BlogPosts or just ShowArticles here?
426: [13:58:54] <Eliseth> argh, I'ma n idiot
427: [13:59:03] <wmk> or do you want to add this unpubish functionalitly to BlogPost?
428: [13:59:19] <Eliseth> just ShowArticles of course, as unpublish is only part of that
429: [13:59:21] <wmk> Eliseth, well, i might confirm you're NOT an idiot!
430: [13:59:25] <Eliseth> I see my error
431: [13:59:35] <wmk> but you're no idiot!
432: [13:59:51] <wmk> maybe temporarely blind, but hey - it's already afternoon
433: [14:00:04] * wmk serves a cup of black orange tea to Eliseth
434: [14:00:14] <Eliseth> Haha, true that... Another hour wasted
435: [14:00:36] <Eliseth> Thanks for opening my eyes!
436: [14:00:38] <wmk> well, it doesn't matter if you waste it on twitter or debugging
437: [14:01:23] * slievr has joined #silverstripe
438: [14:01:41] <slievr> has anyone encountered this before: Premature end of script headers: main.php
439: [14:01:51] <wmk> Eliseth, one tip for performance: SS_Datetime::now() might return the timestamp with second
440: [14:02:01] <wmk> so every query is different and cannot be cached by DB
441: [14:02:27] <wmk> better make it manually, e.g. date('Y-m-d H:i') which is every minute
442: [14:02:46] <slievr> it's the only error message I get and site works perfectly when logged in
443: [14:02:56] <wmk> or if unpublishing doesn't have to be exaclty per minute maybe per hour...?
444: [14:03:20] <Arcax> Thanks for help swaiba, i will try with JavaScript
445: [14:03:53] <wmk> slievr, google for it ;) http://stackoverflow.com/questions/4336757/500-server-error-premature-end-of-script-headers
446: [14:04:03] <wmk> have you checked your error logs?
447: [14:06:32] <slievr> that's all that's in my error log along with,
448: [14:06:33] <slievr> mod_fcgid: read data timeout in 31 seconds
449: [14:07:48] <wmk> yup, looks like something is hanging and you have reached max execution time
450: [14:07:55] <wmk> so it terminates
451: [14:09:23] <slievr> my thought too, but I have nothing that takes long too execute
452: [14:10:19] <wmk> hard to tell ;)
453: [14:11:07] <slievr> thanks anyway.
454: [14:27:42] <wmk> WTF? this nice "hotel is rated xx%" widget wants to load the whole boostrap.min css?
455: [14:28:50] * Frans_Amsterdam has joined #silverstripe
456: [14:30:02] <wmk> wow, 150kb css and javascript for a simple "we have 9x% happy customers" *facepalm*
457: [14:32:50] <kinglozzer> wmk: Is that another "can you add this script to my site?" :P
458: [14:33:08] <wmk> still the same
459: [14:59:16] * Frans_Amsterdam quit (Quit: Textual IRC Client: www.textualapp.com)
460: [15:00:25] * darjus01 quit (Quit: Leaving)
461: [15:10:09] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
462: [15:11:52] * Azure quit (Quit: My Mac has gone to sleep. ZZZzzz…)
463: [15:13:02] * Azure has joined #silverstripe
464: [15:29:36] * arnhoe quit ()
465: [15:40:02] * cloph_away is now known as cloph
466: [15:56:35] * zlinux_ quit (Ping timeout: 264 seconds)
467: [16:10:34] * spronk quit (Quit: I may need a longer sleep timer...)
468: [16:21:06] * Error404NotFound has joined #silverstripe
469: [16:27:50] * kinglozzer quit ()
470: [16:34:33] * Liquide quit ()
471: [16:44:07] * R\w\C quit (Quit: Textual IRC Client: www.textualapp.com)
472: [16:45:40] * swaiba quit (Remote host closed the connection)
473: [16:57:02] * slievr quit (Ping timeout: 250 seconds)
474: [17:03:41] * GioVdK quit (Ping timeout: 265 seconds)
475: [17:31:35] * masnun has joined #silverstripe
476: [17:38:15] * Error404NotFound quit (Ping timeout: 256 seconds)
477: [17:40:55] * masnun has left #silverstripe
478: [17:51:50] * gelignite has joined #silverstripe
479: [18:53:23] * Stomach has joined #silverstripe
480: [18:53:38] * zlinux has joined #silverstripe
481: [18:57:06] * Stomach quit (Client Quit)
482: [18:58:09] * zlinux quit (Ping timeout: 256 seconds)
483: [19:03:35] * DimiStripe quit (Quit: DimiStripe)
484: [19:10:15] * Stomach has joined #silverstripe
485: [19:19:50] * masnun has joined #silverstripe
486: [19:28:05] * masnun quit (Quit: Signing out.)
487: [19:29:15] * Stomach quit (Quit: zzz)
488: [19:39:24] * antmas quit (Quit: Page closed)
489: [19:44:26] * Colin[pi] has joined #silverstripe
490: [20:08:12] * Stomach has joined #silverstripe
491: [20:18:56] <Stomach> morning team
492: [20:19:57] * wmk quit (Quit: nice to meet you ;))
493: [20:26:25] * helenclarko has joined #silverstripe
494: [20:28:17] * Stomach quit (Quit: zzz)
495: [20:34:45] * Stomach has joined #silverstripe
496: [20:48:51] * chocolatemoose has joined #silverstripe
497: [20:52:18] <helenclarko> Morning o/
498: [21:00:37] * Hailwood has joined #silverstripe
499: [21:00:49] <ss-helper> SilverStripe loop through hidden pages - http://stackoverflow.com/questions/32431661/silverstripe-loop-through-hidden-pages
500: [21:11:35] * DanaeNZ has joined #silverstripe
501: [21:12:05] * micmania1 has joined #silverstripe
502: [21:13:09] * adrexia has joined #silverstripe
503: [21:20:25] * Stomach quit (Quit: zzz)
504: [21:24:46] * Stomach has joined #silverstripe
505: [21:25:27] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
506: [21:29:41] * DanaeNZ quit (Remote host closed the connection)
507: [21:36:31] <helenclarko> Thinking about making a simple real estate add-on.
508: [21:38:18] <Stomach> there is no such thing
509: [21:38:30] <MichalKleiner> morning
510: [21:38:38] <Stomach> hey MichalKleiner
511: [21:39:09] <MichalKleiner> o/ Stomach
512: [21:39:28] <Stomach> \o
513: [21:43:00] <helenclarko> Stomach, no such thing as simple?
514: [21:43:15] <Stomach> no such thing as "simple real estate" :D
515: [21:43:28] <Stomach> the software they use to manage their data is really, well, fun
516: [21:46:17] <helenclarko> Yeah, I've done some research. It doesnt look like much fun. I guess these days you have to have the Maps.
517: [21:46:51] <MichalKleiner> Stomach: you're the master of everything silverstripe, have you ever done some templates preprocessing or 'custom tag to function' sort of thing? some modules out there?
518: [21:47:23] <Stomach> there is this: https://github.com/camspiers/silverstripe-twig
519: [21:47:39] <Stomach> which replaces the Viewer - so you could do something like that to preprocess then use viewer afterwards
520: [21:49:57] <MichalKleiner> nice, wonder why I didn't find it.. maybe no mention of Viewer and Silverstripe in readme..
521: [21:50:03] <MichalKleiner> but I will have a look, thanks
522: [21:50:29] <MichalKleiner> I found this - https://github.com/heyday/silverstripe-composeparser
523: [21:50:37] <MichalKleiner> same developer
524: [21:59:51] * antmas has joined #silverstripe
525: [22:00:44] <antmas> mornin team o/
526: [22:03:17] * DanaeNZ has joined #silverstripe
527: [22:04:15] <Stomach> MichalKleiner - yeah that is similar
528: [22:04:26] <Stomach> https://github.com/heyday/silverstripe-reusablehtml
529: [22:05:07] <MichalKleiner> yep, saw that one.. I have some digging in plan for today. Cheers anyway!
530: [22:12:47] <helenclarko> antmas, o/
531: [22:16:32] * Pyromanik has joined #silverstripe
532: [22:16:48] <Pyromanik> hadaway, who dun gone fucked the template engine?
533: [22:17:11] <Pyromanik> <% loop $Menu(1) %>$Layout<% end_loop %>
534: [22:17:31] <Pyromanik> Contact us, Contact us, Contact us
535: [22:17:33] <Pyromanik> derp
536: [22:17:40] * Pyromanik quit (Client Quit)
537: [22:21:38] * DanaeNZ quit (Remote host closed the connection)
538: [22:28:44] * DanaeNZ has joined #silverstripe
539: [22:30:54] * Stomach quit (Quit: zzz)
540: [22:31:26] * guy_watson has joined #silverstripe
541: [22:31:26] <ss-helper> guy_watson: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
542: [22:32:37] <guy_watson> Hey there everyone.....has anyone had any luck setting up SecurePay with the Omnipay module?
543: [22:33:30] * Stomach has joined #silverstripe
544: [22:33:55] * Olliepop has joined #silverstripe
545: [22:37:33] <DanaeNZ> morning all
546: [22:37:35] <DanaeNZ> afternoon*
547: [22:38:33] <Olliepop> morning * ;)
548: [22:40:18] <antmas> DanaeNZ: o/
549: [22:41:01] <chocolatemoose> o/
550: [22:41:13] <Colin[pi]> o/
551: [22:42:02] <antmas> \o
552: [22:42:03] <antmas> o/
553: [22:42:05] <antmas> \o/
554: [22:43:42] <Colin[pi]> coffee tiems
555: [22:43:48] <Colin[pi]> I did try the chocolate nippys btw
556: [22:43:56] <Colin[pi]> was not as big of a fan as the iced coffee
557: [22:44:05] <Colin[pi]> of it I mean (coffee one was better)
558: [22:45:19] <DanaeNZ> The iced coffee one is AMAZING
559: [22:45:57] <Colin[pi]> DanaeNZ: mmhmm
560: [22:52:01] <Colin[pi]> my new coffee mug ftw: http://imgur.com/aScN7p1
561: [22:53:25] <DanaeNZ> i was praying for Adventure Time and was well rewarded
562: [22:53:45] <DanaeNZ> I have 2 adventure time mugs now :D
563: [22:55:29] <Colin[pi]> <3 BMO
564: [22:56:12] <antmas> BMO :D
565: [22:56:30] * Azure quit (Quit: My Mac has gone to sleep. ZZZzzz…)
566: [22:56:33] <antmas> my coffee mug says 'Cool Gear' on it :|
567: [22:56:35] <antmas> \o/
568: [22:57:13] <Colin[pi]> I would like one that says "Cool Mug, Bro"
569: [22:57:37] <Colin[pi]> also this one is great: http://craphound.com/images/css_is_awesome.jpg
570: [22:58:09] * Azure has joined #silverstripe
571: [23:00:42] <chocolatemoose> I have one like this http://a.tgcdn.net/images/products/zoom/17f0_3d_bmo_mug.jpg
572: [23:01:09] <Colin[pi]> chocolatemoose: 3d, nice
573: [23:01:26] <Colin[pi]> well, they're all 3d, but you know what I mean :P
574: [23:01:42] <chocolatemoose> yeah lol, they have a weird name for it
575: [23:03:07] <DanaeNZ> omgosh i want it
576: [23:03:43] <Colin[pi]> so cute ^_^
577: [23:05:20] * Stomach quit (Quit: zzz)
578: [23:12:05] * Stomach has joined #silverstripe
579: [23:12:18] * Olliepop quit (Ping timeout: 246 seconds)
580: [23:22:19] * chocolatemoose quit (Ping timeout: 260 seconds)
581: [23:22:58] * chocolatemoose has joined #silverstripe
582: [23:27:24] * irogue quit (Ping timeout: 264 seconds)
583: [23:41:09] * UncleCheese has joined #silverstripe
584: [23:55:12] <DanaeNZ> TinyMCE is using relative paths for the images, so the images are all broken :\
585: [23:58:29] * micmania1 quit (Quit: micmania1)

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