#silverstripe IRC Log

IRC log for 16 April 2013

All timestamps are in UTC.

1: [00:00:00] <Pyromanik> doing it wrong, thanks.
2: [00:00:00] <Pyromanik> ta simon_w <3
3: [00:00:00] <Pyromanik> sold!
4: [00:09:00] * LoveDuckie quit (Ping timeout: 264 seconds)
5: [00:11:00] * Liquide has joined #silverstripe
6: [00:12:00] <Pyromanik> did :link get deprecated or something?
7: [00:15:00] * simon_w quit (Ping timeout: 245 seconds)
8: [00:15:00] * simon__w has joined #silverstripe
9: [00:19:00] <Pyromanik> ffff
10: [00:19:00] * priithansen quit (Quit: priithansen)
11: [00:19:00] * UncleCheese has joined #silverstripe
12: [00:20:00] <Pyromanik> browser tools telling me a:link background is clearly applied, except in viewport background is clearly not bright debug colour :<
13: [00:20:00] <Pyromanik> YOU'RE WRONG AND I HATE YOU, COLOUR MY LINK FFS
14: [00:27:00] <Colin[pi]> good morning all
15: [00:27:00] * Colin[pi] has joined #silverstripe
16: [00:27:00] * UncleCheese quit (Quit: UncleCheese)
17: [00:28:00] <Colin[pi]> wut
18: [00:28:00] <Pyromanik> Colin[pi]: please tell my why :link is derp.
19: [00:28:00] <Pyromanik> a {background:grey}
20: [00:29:00] <Pyromanik> BUT, dev tools (chrome and firefox) both tell me the background is red.
21: [00:29:00] <Colin[pi]> doesn't work?
22: [00:29:00] <Pyromanik> a:link {background:red}
23: [00:29:00] <Pyromanik> all links are grey, despite some having hrefs
24: [00:29:00] <Colin[pi]> not some weird quirks mode thing?
25: [00:30:00] <Pyromanik> hmm, I should try a different doctype
26: [00:30:00] <Colin[pi]> must admit I don't use that selector much
27: [00:30:00] <Colin[pi]> it's happened to me before too, np, hope it helps
28: [00:30:00] <Pyromanik> I wouldn't have thought of that, thanks
29: [00:31:00] * Pyromanik hulks out
30: [00:31:00] <Pyromanik> nope :<
31: [00:31:00] <Pyromanik> time for lunch.
32: [00:31:00] <Colin[pi]> :(
33: [00:32:00] <simon__w> Now, who wants to help me design a user-friendly markup and template language?
34: [00:32:00] <simon__w> Already ate!
35: [00:33:00] * ^pH- quit (Ping timeout: 276 seconds)
36: [00:33:00] <Colin[pi]> isn't that an oxymoron? ;P
37: [00:33:00] * simon__w is now known as simon_w
38: [00:33:00] <simon_w> Nope
39: [00:35:00] <simon_w> Nothing in the standard CMS does a document.location.reload()
40: [00:35:00] <Colin[pi]> simon_w: could you think of a JS-related thing that would make the CMS refresh the entire page (non ajax) and hang?
41: [00:35:00] <Colin[pi]> it seems to happen randomly after I started embedding Google Charts
42: [00:36:00] <Colin[pi]> lol yeah I know :P
43: [00:36:00] <simon_w> That it started happening after you did something usually means that thing you did is what's breaking ;)
44: [00:36:00] <Colin[pi]> isn't there a force refresh setting somewhere?
45: [00:43:00] <clodeindustrie> is there a way I can create some sort of alias of a property that is accessible from a template?
46: [00:43:00] <clodeindustrie> hey there
47: [00:43:00] * Jeremy_ has joined #silverstripe
48: [00:43:00] * Jeremy_ is now known as clodeindustrie
49: [00:44:00] <clodeindustrie> I would like to access it from another name
50: [00:44:00] <Colin[pi]> create a method that returns the required data
51: [00:44:00] <Colin[pi]> and call the method name from the template
52: [00:44:00] <clodeindustrie> well as it is part of the search thing I can't really do that
53: [00:44:00] <clodeindustrie> I have the $Results variables from the contentControllersearchextension class
54: [00:45:00] <Colin[pi]> extension class?
55: [00:45:00] <clodeindustrie> yup
56: [00:45:00] <Colin[pi]> no can you add an extension that will do it? (without touching the base class)
57: [00:46:00] <clodeindustrie> so I can extend contentControllersearchextension change the name of the function and I should be good to go?
58: [00:46:00] <Colin[pi]> in theory you should be able to apply an extension to it which provides the function with the new name
59: [00:47:00] <Colin[pi]> simon_w will correct me if I'm wrong
60: [00:49:00] <clodeindustrie> tahnks
61: [00:49:00] <clodeindustrie> I'll give a go at that
62: [00:51:00] <clodeindustrie> in the template
63: [00:51:00] <clodeindustrie> hum it's a bit convoluted
64: [00:51:00] <clodeindustrie> the problem is that the results function of the search extension actually give access to a $Result
65: [00:52:00] <clodeindustrie> and that's what I want to have access to with another name
66: [00:52:00] <clodeindustrie> so that my pagination partial would use the same variable name but would read the search results
67: [00:52:00] <clodeindustrie> I've tried to do <% include pagination PaginatedItems=$Results %>
68: [00:53:00] <clodeindustrie> but I get the method 'fortemplate' does not exist on 'ArrayList'
69: [01:02:00] * SightUnseen has left #silverstripe
70: [01:02:00] * SightUnseen has joined #silverstripe
71: [01:03:00] <spronk> anyone here used the webdrive cloud?
72: [01:05:00] <spronk> hmm
73: [01:05:00] <Pyromanik> but haven't used it as a cloud type thingamajig
74: [01:05:00] <Pyromanik> spinning up and down and all that ja
75: [01:05:00] <Pyromanik> zz
76: [01:05:00] <spronk> yeh... they've started taking sign ups to their new very cloudy service
77: [01:05:00] * spronk likes the idea of such a service
78: [01:05:00] <simon_w> clodeindustrie, why can't you just use $Me in the include and <% with $Results %><% include Pagination %><% end_with %>?
79: [01:05:00] <Pyromanik> cool
80: [01:05:00] <Pyromanik> spronk: nup
81: [01:05:00] <Pyromanik> well
82: [01:05:00] <Pyromanik> I have a cloud server
83: [01:06:00] <simon_w> What does that have to do with using $Me?
84: [01:06:00] <Pyromanik> yeah, currently their 'cloud server' is like a vps, except it's a portion of a cluster, rather than a slice of a single machine.
85: [01:06:00] <simon_w> (you need to be on 3.1 to pass non-strings through includes)
86: [01:06:00] <clodeindustrie> simon_w thanks but that won't do I'm on 3.0.5
87: [01:07:00] <clodeindustrie> totally misread
88: [01:07:00] <clodeindustrie> ah ok I just reread what you wrote
89: [01:09:00] <Pyromanik> oh
90: [01:09:00] <Pyromanik> it's because MDN is conveniently NOT explaining what :link does
91: [01:09:00] <clodeindustrie> works like a charm thank you
92: [01:10:00] <Pyromanik> only NON visited links.
93: [01:10:00] * nimeso has joined #silverstripe
94: [01:10:00] <simon_w> What you're after sounds like a[href]
95: [01:11:00] <simon_w> Yay, don't have to try to figure out if blocks, just going to use fallbacks :)
96: [01:12:00] <Pyromanik> when in doubt, read the specification.
97: [01:12:00] <Pyromanik> turns out I needed to combine with :visted as well.
98: [01:12:00] <Pyromanik> but I wanted to use :link
99: [01:12:00] <Pyromanik> simon_w: it is, yeh.
100: [01:13:00] <Pyromanik> all is dandy now
101: [01:13:00] <Pyromanik> (in the same rule)
102: [01:21:00] <Colin[pi]> I can't work without loud music lol
103: [01:21:00] <Colin[pi]> oh how I missed my thx pc speakers while I was working in brazil
104: [01:23:00] <Pyromanik> Colin[pi]: see I solved the :link issue :D
105: [01:23:00] <Colin[pi]> well done :D
106: [01:34:00] * UncleCheese has joined #silverstripe
107: [01:34:00] <irogue> Pyromanik: don't forget :active
108: [01:37:00] * ajshort has joined #silverstripe
109: [01:50:00] <simon_w> So, anyone else getting composer installing symfony for them? Why do people like this?
110: [02:01:00] <ajshort> simon_w: badly behaved module?
111: [02:04:00] <simon_w> Nope
112: [02:05:00] <simon_w> userforms has a rather sane composer.json
113: [02:06:00] <ajshort> are you installing the development dependencies?
114: [02:08:00] <simon_w> composer create-project silverstripe/installer userforms 3.1.x-dev
115: [02:08:00] <simon_w> composer require silverstripe/userforms:*
116: [02:08:00] <simon_w> I'll give you my three commands. In none of them did I say care about require-dev.
117: [02:08:00] <ajshort> have you run composer depends symfony/symfony?
118: [02:08:00] <Pyromanik> composer, lols
119: [02:08:00] <Pyromanik> sounds neat, in reality isn't.
120: [02:08:00] <simon_w> cd user forms
121: [02:09:00] <simon_w> all components
122: [02:09:00] <simon_w> That got installed with userforms, which in no way asks for them
123: [02:09:00] <simon_w> behat, symfony, something else
124: [02:09:00] <simon_w> Hello, 15 other things I didn't ask for
125: [02:09:00] <Pyromanik> 15?
126: [02:10:00] <EasyCo> Consider it a gift
127: [02:11:00] <EasyCo> My biggest composer gripe. It's sooooo slowwwww.
128: [02:12:00] <EasyCo> Wish it were more like Bundler
129: [02:13:00] <simon_w> Doesn't support SVN, inconsistent options, will ignore options if it feels like it, ties you to packagist
130: [02:14:00] <simon_w> I wish it was more like PEAR
131: [02:23:00] <Pyromanik> why did people give up on PEAR?
132: [02:23:00] <Pyromanik> it seems pretty legit.
133: [02:23:00] <Pyromanik> also bundler, oh god urgh
134: [02:24:00] * svandragt quit (Read error: Connection reset by peer)
135: [02:24:00] <simon_w> The code quality of the actual classes is suspect at times
136: [02:25:00] <Pyromanik> yeah, I realise that
137: [02:26:00] <simon_w> Can't remember the reason I was given
138: [02:26:00] <Pyromanik> but there's nothing stoping that happening in composer too
139: [02:26:00] <Pyromanik> especially since it just pulls from git repos
140: [02:26:00] <simon_w> Yeah, but it's "new"
141: [02:26:00] <simon_w> Or, it hasn't happened yet
142: [02:26:00] <Pyromanik> yeah but there was already a tool that does exactly what it does
143: [02:27:00] <simon_w> Oh, dependancy management. By turning your project into a package and just using package management
144: [02:27:00] <Pyromanik> I guess it does a bit more than pear does by itself
145: [02:28:00] <Pyromanik> yeh
146: [02:28:00] <Pyromanik> or at least fails on the lack of them
147: [02:28:00] <simon_w> Yes, of packages
148: [02:28:00] <Pyromanik> Pretty sure it manages deps
149: [02:28:00] <Pyromanik> but no dep. management?
150: [02:28:00] <simon_w> I have a feeling it's because pear uses XML
151: [02:28:00] <Pyromanik> yeah
152: [02:28:00] <Pyromanik> hmm
153: [02:28:00] <simon_w> You can do the same with pear, and even write something that'll automate it for you too
154: [02:28:00] <Pyromanik> irogue: yeh thanks, but don't care about :active :P
155: [02:28:00] <Pyromanik> that
156: [02:28:00] <Pyromanik> in that you can just add rando repos
157: [02:29:00] <Pyromanik> oic
158: [02:29:00] <simon_w> not of projects
159: [02:29:00] <simon_w> composer makes your project a package
160: [02:32:00] <Pyromanik> yeh, still haven't learnt that part of it :<
161: [02:39:00] <mobiusnz> any idea why I might be getting Fatal error: Call to undefined method SS_HTTPRequest::hasMethod() in txmt://open?url=file:///Users/al/Sites/icequoting/framework/forms/Form.php&line= on line 1172
162: [02:39:00] <mobiusnz> err, ok that didn't paste as I expected
163: [02:40:00] <mobiusnz> Fatal error: Call to undefined method SS_HTTPRequest::hasMethod() in .../framework/forms/Form.php on line 1172
164: [02:42:00] <mobiusnz> ah, nevermind. think I've found it
165: [02:42:00] * clodeindustrie quit (Quit: Textual IRC Client: www.textualapp.com)
166: [03:04:00] * simon_w quit (Ping timeout: 245 seconds)
167: [03:04:00] * simon_w has joined #silverstripe
168: [03:04:00] * nimeso quit (Ping timeout: 245 seconds)
169: [03:04:00] * cloph_away1 has joined #silverstripe
170: [03:05:00] * cloph_away quit (Ping timeout: 260 seconds)
171: [03:44:00] * mwm has joined #silverstripe
172: [03:45:00] <mwm> hello, wondering if there is an easy way to get the Director rule (route) for a controller class?
173: [03:47:00] <mwm> In other words, I want to get the link for a class extending Controller
174: [03:48:00] * Error404NotFound has joined #silverstripe
175: [03:48:00] <simon_w> Usually the person that wrote the rule wrote the class, so can make the Link() method
176: [03:49:00] <simon_w> And, to answer your question directly, no
177: [03:51:00] <mwm> Ah, OK. Just wanted to return the correct link, because the rule can always be changed by setting it using Config::
178: [03:51:00] <mwm> thanks simon
179: [03:55:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
180: [04:02:00] <EasyCo> Can you catch a File delete from a DataObject or do you need to extend the File and catch it there?
181: [04:03:00] <EasyCo> NM
182: [04:04:00] * Error404NotFound has joined #silverstripe
183: [04:06:00] * Error404NotFound quit (Read error: Connection reset by peer)
184: [04:11:00] * Error404NotFound has joined #silverstripe
185: [04:28:00] * SightUnseen has joined #silverstripe
186: [04:29:00] <EasyCo> If you do a query like so $results = Media::get()->filter(blah blah); then loop through the results. Do you have to write() after every loop or can you only write() at the end outside of the loop? $results->write();
187: [04:29:00] * SightUnseen has left #silverstripe
188: [04:30:00] <simon_w> You have to write every DataObject you've changed. DataList does not have a write() method
189: [04:31:00] <EasyCo> Right, get() returns a datalist. That makes sense.
190: [04:32:00] * UncleCheese quit (Quit: UncleCheese)
191: [04:32:00] * Error404NotFound quit (Ping timeout: 264 seconds)
192: [04:33:00] <EasyCo> Terima Kasih
193: [04:47:00] <EasyCo> Bahasa
194: [04:47:00] <Pyromanik> wut
195: [04:47:00] <Pyromanik> Oh Malay.
196: [04:58:00] * nickmolhoek quit (Quit: nickmolhoek)
197: [05:02:00] <Pyromanik> does <% with %> do an automatic <% if %> ?
198: [05:06:00] * Pyromanik quit (Quit: leaving)
199: [05:09:00] * mobiusnz quit (Quit: Leaving.)
200: [05:21:00] <simon_w> Nope
201: [05:25:00] * Shrike_Finland has joined #silverstripe
202: [05:28:00] <EasyCo> Is there a way to find out if a request that has reached onAfterWrite() is through a Remove or a Delete from files. I need to do some cleanup on those actions but obviously there's a major difference between remove a file from a field and delete it.
203: [05:30:00] <EasyCo> I figured I'd do it by extending File and overriding onBeforeDelete() butI don't have access to the parent field. (i.e: You delete an image from a DataObject, I need to know about that dataobject)
204: [05:36:00] * Guest46770 has joined #silverstripe
205: [05:37:00] * irogue quit (Ping timeout: 255 seconds)
206: [05:43:00] * Guest46770 is now known as irogue
207: [06:02:00] * mwm quit (Ping timeout: 245 seconds)
208: [06:03:00] * willr_ quit (Quit: willr_)
209: [06:13:00] * zfmf has joined #silverstripe
210: [06:14:00] * Liquide quit ()
211: [06:34:00] * zfmf quit (Remote host closed the connection)
212: [06:36:00] * zfmf has joined #silverstripe
213: [06:38:00] * Colin[pi] quit ()
214: [06:48:00] * zfmf has left #silverstripe
215: [06:49:00] * zfmf has joined #silverstripe
216: [07:00:00] * EasyCo quit (Quit: EasyCo)
217: [07:11:00] * Zauberfisch has joined #silverstripe
218: [07:15:00] * ajshort quit (Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344])
219: [07:35:00] * priithansen has joined #silverstripe
220: [07:43:00] * osterlaus has joined #silverstripe
221: [07:48:00] * chillu has joined #silverstripe
222: [07:54:00] <elgrodo> is it possible to turn off the 'Published Site' marker in the top right corner when viewing a site whilst logged into the CMS?
223: [07:54:00] <elgrodo> It's pulling in Silverstripe's copy of jQuery and breaking things nicely
224: [07:55:00] <elgrodo> log out of the CMS, site is fne
225: [08:04:00] * willr_ has joined #silverstripe
226: [08:04:00] * willr_ quit (Changing host)
227: [08:04:00] * willr_ has joined #silverstripe
228: [08:05:00] * webguest has joined #silverstripe
229: [08:07:00] <webguest> any idea's?
230: [08:07:00] <webguest> I have a SS 2.4.x site running, but now i can't log-in to the admin part... no console message, no error message, nothing in the logs, it just reloads the log-in form.. created a default password in the _config.. but can't log-in with this either
231: [08:08:00] <webguest> i saw something in a forum thread about, magic_quotes_gpc = off, asp_tags = off, made
232: [08:08:00] <simon_w|air> Does submitting other forms work?
233: [08:08:00] <webguest> uhm let met try
234: [08:08:00] <webguest> no, Security token doesn't match, possible CSRF attack.
235: [08:08:00] <webguest> http://paste2.org/9AGIxAOF
236: [08:09:00] <simon_w|air> Yup, your session cookie isn't being set, or session files aren't being written, or are being garbage collected too fast
237: [08:09:00] * popeshoe has joined #silverstripe
238: [08:10:00] <webguest> ok, so how do i change this?
239: [08:10:00] <simon_w|air> First, it pays to find out which one it is
240: [08:10:00] <simon_w|air> Are you getting a PHP_SESSIONID (or similar) cookie being set?
241: [08:11:00] <webguest> safari also cant log-in
242: [08:11:00] <webguest> chrome
243: [08:11:00] <webguest> currently using hrome
244: [08:11:00] <webguest> i have the PHPSESSID
245: [08:11:00] <simon_w|air> Does the site work in another browser?
246: [08:11:00] <webguest> yes, yes
247: [08:11:00] <simon_w|air> So it's something with your browser then
248: [08:12:00] <webguest> im on shared hosting, cant access php.ini
249: [08:12:00] <simon_w|air> Okay, what are your session-related php.ini settings?
250: [08:13:00] * feejin has joined #silverstripe
251: [08:13:00] <simon_w|air> You know about phpinfo(), right?
252: [08:13:00] <webguest> dont know what session-related php.ini is
253: [08:14:00] <simon_w|air> And in there, there's a section called Sessions
254: [08:14:00] <webguest> yes
255: [08:14:00] <webguest> ok, moment
256: [08:15:00] * kinglozzer has joined #silverstripe
257: [08:15:00] <webguest> which one do you want to know
258: [08:15:00] <webguest> im in
259: [08:15:00] <simon_w|air> Just pastie the session block
260: [08:16:00] <webguest> http://paste2.org/AObxKPPs
261: [08:19:00] <webguest> no, not for months
262: [08:19:00] <webguest> im running SS 2.4.7 i think
263: [08:19:00] <simon_w|air> Well, there's nothing wrong in there
264: [08:19:00] <simon_w|air> Have you made any changes just prior to it not working?
265: [08:19:00] <simon_w|air> That's the next logical guess
266: [08:19:00] <webguest> PHP Version 5.3.3 is running
267: [08:19:00] <webguest> i guess something at the hosting changed
268: [08:22:00] * waveydave has joined #silverstripe
269: [08:29:00] <webguest> is php 5.3.3 suitable for SS 2.4.7 ?
270: [08:46:00] * Zauberfisch quit (Ping timeout: 252 seconds)
271: [08:58:00] * osterlaus quit (Quit: Leaving.)
272: [09:02:00] * g4b0 has joined #silverstripe
273: [09:04:00] * feejin quit (Remote host closed the connection)
274: [09:05:00] * travis-ci has left #silverstripe
275: [09:05:00] <travis-ci> [travis-ci] silverstripe/sapphire#2000 (3.0 - 9a17e34 : Ingo Schommer): The build passed.
276: [09:05:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/933fbf8ea47c...9a17e3494fa3
277: [09:05:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6376298
278: [09:05:00] * travis-ci has joined #silverstripe
279: [09:16:00] * kerozene has joined #silverstripe
280: [09:16:00] * LoveDuckie has joined #silverstripe
281: [09:18:00] <g4b0> chilliu: what do you think about that https://github.com/silverstripe/sapphire/issues/1354 ?
282: [09:33:00] * guci0 has joined #silverstripe
283: [09:36:00] * DigNZ has joined #silverstripe
284: [09:36:00] * DigNZ quit (Remote host closed the connection)
285: [09:36:00] * DigNZ has joined #silverstripe
286: [09:37:00] * DigNZ quit (Client Quit)
287: [09:46:00] <g4b0> it always return the language
288: [09:46:00] <g4b0> I'm having a problem translating the template
289: [09:46:00] <g4b0> <%t MyTheme.WHERE_WE_ARE "Where we are" %>
290: [09:47:00] <g4b0> for the italian language
291: [09:47:00] <g4b0> translatable works correctly
292: [09:47:00] <g4b0> specified into the yaml file
293: [09:48:00] <g4b0> translatable-dataobject works correctly
294: [09:51:00] * svandragt has joined #silverstripe
295: [09:52:00] <svandragt> hello :)
296: [09:53:00] <g4b0> hello
297: [09:54:00] <svandragt> when I select one value it saves ok, but multiple cause the value to be blank
298: [09:54:00] <svandragt> http://www.sspaste.com/paste/show/516d1fb7ce10d is it not possible to save use Enum and save multiple values?
299: [09:56:00] <svandragt> sorry fixed example
300: [10:02:00] * LoveDuckie quit (Ping timeout: 260 seconds)
301: [10:06:00] * LoveDuckie has joined #silverstripe
302: [10:10:00] * LoveDuckie quit (Ping timeout: 256 seconds)
303: [10:11:00] <Marvanni> will <% _t('Some.String','String') %> in templates be deprecated in favor of <%t Some.String 'String' %> ?
304: [10:13:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
305: [10:14:00] * dendeffe has joined #silverstripe
306: [10:15:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6376367
307: [10:15:00] * travis-ci has joined #silverstripe
308: [10:15:00] <travis-ci> [travis-ci] silverstripe/sapphire#2001 (3.1 - 8520287 : Ingo Schommer): The build passed.
309: [10:15:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/c02d7e4c2e36...85202876a9e9
310: [10:15:00] * travis-ci has left #silverstripe
311: [10:21:00] * webguest quit (Ping timeout: 245 seconds)
312: [10:22:00] <kinglozzer> A client of mine just uploaded a set of images with no file extension. Do you guys think it's a bug that SilverStripe accepts files with no extension? I can't really see any case where that would be an intended feature
313: [10:29:00] <MiniZeka> is it possible to use staticpublisher along with translatable?
314: [10:29:00] * MiniZeka has joined #silverstripe
315: [10:30:00] <ss23> kinglozzer: Does it matter?
316: [10:30:00] <MiniZeka> everything works fine except homepage
317: [10:30:00] <MiniZeka> which is always showed in default locale
318: [10:30:00] <ss23> kinglozzer: Every browser should work fine even if there's no extension, so I don't see the issue
319: [10:31:00] <kinglozzer> Besides, it's 100% the client's fault. Just curious whether it was intended
320: [10:31:00] <kinglozzer> ss23: Not massively. A bit of an edge case - it broke the site's fancybox because it didn't pick up that they were images
321: [10:31:00] <ss23> Probably more of a bug with browser / fancybox I would say
322: [10:32:00] <ss23> Maybe a warning would be nice, idk
323: [10:32:00] <ss23> I think it should be supported, since people might want to upload files without extensions, since extensions aren't an explicit requirement
324: [10:33:00] <kinglozzer> ss23: Hmm. The default assets/.htaccess limits files based on their file extension. Without one, it's bypassed
325: [10:38:00] <ss23> Oh, I wasn't aware Silverstripe did funky stuff with extensions
326: [10:38:00] * LoveDuckie has joined #silverstripe
327: [10:38:00] <kinglozzer> chillu: I'm guessing it was you who replied to me on Github? i18n->get_translatable_modules() doesn't ever seem to be called. Tried sticking a die(); in there, or a Debug::log() and neither happens :/
328: [10:40:00] <kinglozzer> ss23: Might file it as a bug and mention the .htaccess and just see what they say
329: [10:42:00] * dendeffe quit (Quit: dendeffe)
330: [10:44:00] * dendeffe has joined #silverstripe
331: [10:46:00] <ss23> kinglozzer: Yeah, not sure. Good luck!
332: [10:58:00] * jerga has joined #silverstripe
333: [10:58:00] * jerga has joined #silverstripe
334: [10:58:00] * jerga has left #silverstripe
335: [11:03:00] * micmania1 has joined #silverstripe
336: [11:03:00] * dendeffe quit (Quit: dendeffe)
337: [11:04:00] * ARNHOE has joined #silverstripe
338: [11:16:00] * micmania1 quit (Ping timeout: 245 seconds)
339: [11:26:00] <priithansen> well that's a bummer. ->removeDuplicate() does not work with decimal fields
340: [11:28:00] * cloph_away1 is now known as cloph
341: [11:30:00] * lenix quit (Read error: Connection reset by peer)
342: [11:30:00] * lenix has joined #silverstripe
343: [11:31:00] * ZauberfischIPad has joined #silverstripe
344: [11:35:00] * ZauberfischIPad quit (Ping timeout: 240 seconds)
345: [11:39:00] * travis-ci has joined #silverstripe
346: [11:39:00] <travis-ci> [travis-ci] chillu/sapphire#124 (pulls/virtualpage-1594 - 08bf2aa : Nicolaas): The build has errored.
347: [11:39:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/17bd8733d0a5^...08bf2aa91eef
348: [11:39:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/6378417
349: [11:39:00] * travis-ci has left #silverstripe
350: [11:40:00] * ferge has joined #silverstripe
351: [11:41:00] * dendeffe has joined #silverstripe
352: [11:41:00] * travis-ci has joined #silverstripe
353: [11:41:00] <travis-ci> [travis-ci] chillu/silverstripe-cms#36 (pulls/virtualpage-1594 - 11aaa55 : Ingo Schommer): The build has errored.
354: [11:41:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/babdcc9eea64^...11aaa553befd
355: [11:41:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/6378435
356: [11:41:00] * travis-ci has left #silverstripe
357: [11:42:00] * ferge quit (Client Quit)
358: [11:42:00] * ferge has joined #silverstripe
359: [11:44:00] * ferge quit (Client Quit)
360: [11:48:00] * ferge has joined #silverstripe
361: [12:04:00] * UndefinedOffset has joined #silverstripe
362: [12:06:00] * willr_ quit (Quit: willr_)
363: [12:07:00] * ARNHOE quit (Read error: Connection reset by peer)
364: [12:08:00] * ARNHOE has joined #silverstripe
365: [12:09:00] * ARNHOE quit (Read error: Connection reset by peer)
366: [12:09:00] * ARNHOE has joined #silverstripe
367: [12:10:00] * ARNHOE quit (Read error: Connection reset by peer)
368: [12:10:00] * ARNHOE has joined #silverstripe
369: [12:11:00] * ARNHOE quit (Read error: Connection reset by peer)
370: [12:12:00] * ARNHOE has joined #silverstripe
371: [12:16:00] * ARNHOE quit (Ping timeout: 276 seconds)
372: [12:18:00] * ARNHOE has joined #silverstripe
373: [12:20:00] * ARNHOE_ has joined #silverstripe
374: [12:20:00] * ARNHOE quit (Read error: Connection reset by peer)
375: [12:21:00] * ARNHOE_ quit (Read error: Connection reset by peer)
376: [12:22:00] * travis-ci has joined #silverstripe
377: [12:22:00] <travis-ci> [travis-ci] chillu/silverstripe-cms#37 (pulls/virtualpage-1594 - 878cf54 : Ingo Schommer): The build passed.
378: [12:22:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/11aaa553befd...878cf541b902
379: [12:22:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/6378567
380: [12:22:00] * travis-ci has left #silverstripe
381: [12:36:00] * ARNHOE has joined #silverstripe
382: [12:39:00] * MiniZeka quit (Ping timeout: 245 seconds)
383: [12:48:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6377056
384: [12:48:00] * travis-ci has left #silverstripe
385: [12:48:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/85202876a9e9...08bf2aa91eef
386: [12:48:00] <travis-ci> [travis-ci] silverstripe/sapphire#2004 (3.1 - 08bf2aa : Nicolaas): The build passed.
387: [12:48:00] * travis-ci has joined #silverstripe
388: [12:49:00] * Shrike_Finland quit (Quit: Leaving.)
389: [12:59:00] * ARNHOE quit (Remote host closed the connection)
390: [13:04:00] * ajshort has joined #silverstripe
391: [13:06:00] <ferge> Hello. Could someone give a hint to a solid gallery-modul for SS3? I tried some and sadly some things in the backend are always buggy.
392: [13:12:00] <Marvanni> just MyGalleryPage => had_many ImageSlides => has_one Image, jQuery and a plugin like cycle, or colorbox will do the job...
393: [13:20:00] <ferge> thx
394: [13:20:00] <ferge> maybe that's the reason why I could find a good one. ;)
395: [13:24:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/6378111
396: [13:24:00] * travis-ci has joined #silverstripe
397: [13:24:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#338 (3.1 - c6d6e24 : Ingo Schommer): The build passed.
398: [13:24:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/a15081fbcc8c...c6d6e2435e7d
399: [13:24:00] * travis-ci has left #silverstripe
400: [13:57:00] * ferge quit (Quit: Leaving.)
401: [13:57:00] * Zauberfisch has joined #silverstripe
402: [14:05:00] * jerga has left #silverstripe
403: [14:27:00] * guci0 quit (Ping timeout: 245 seconds)
404: [14:33:00] <ec8or> ok, i've got a DataObject SchoolClass that can have several Students
405: [14:33:00] <g4b0> how can I put the rotating wheel to my custom action (Like "Publish")?
406: [14:34:00] <ec8or> how do i return only records with at least one student?
407: [14:34:00] <ec8or> tried using a leftJoin but something is wrong in my head i think
408: [14:36:00] <g4b0> I think you have to iterate throught it
409: [14:36:00] <g4b0> ec8or
410: [14:36:00] <g4b0> and pop the one without student
411: [14:43:00] * travis-ci has joined #silverstripe
412: [14:43:00] <travis-ci> [travis-ci] silverstripe/sapphire#2005 (3.1 - 67ce9e0 : Ingo Schommer): The build passed.
413: [14:43:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/08bf2aa91eef...67ce9e08cc7c
414: [14:43:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/6380672
415: [14:43:00] * travis-ci has left #silverstripe
416: [15:16:00] * catcher has joined #silverstripe
417: [15:29:00] <kinglozzer> g4b0: You need to add a class "loading" to the button with javascript
418: [15:30:00] <g4b0> yep, I found it
419: [15:35:00] <g4b0> not for dataobjects through gridfields
420: [15:35:00] <g4b0> I did a http://pastebin.com/rGHkdqEe
421: [15:35:00] <g4b0> but It just work for pages
422: [15:40:00] * priithansen quit (Quit: priithansen)
423: [15:46:00] * ferge has joined #silverstripe
424: [15:53:00] * ajshort quit (Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344])
425: [15:56:00] * dendeffe quit (Quit: dendeffe)
426: [15:57:00] * g4b0 quit (Quit: Sto andando via)
427: [16:16:00] * Zauberfisch quit (Remote host closed the connection)
428: [16:26:00] * kinglozzer quit (Remote host closed the connection)
429: [16:30:00] * Liquide has joined #silverstripe
430: [16:44:00] * gelignite has joined #silverstripe
431: [16:51:00] * waveydave has left #silverstripe
432: [17:18:00] * jcwacky has joined #silverstripe
433: [17:20:00] * joelpittet quit (Remote host closed the connection)
434: [17:47:00] * zfmf quit (Ping timeout: 245 seconds)
435: [18:08:00] * Nivery has joined #silverstripe
436: [18:28:00] * jcwacky quit (Quit: jcwacky)
437: [18:56:00] * kerozene quit (Quit: it's pretty late, afterall)
438: [19:10:00] <FrozenFire> Well this should be fun. I need to query and sort by the number of different IP addresses used in successful login attempts.
439: [19:10:00] * ARNHOE has joined #silverstripe
440: [19:11:00] * dendeffe has joined #silverstripe
441: [19:13:00] * ferge quit (Quit: Leaving.)
442: [19:18:00] * ferge has joined #silverstripe
443: [19:26:00] * catcher quit (Ping timeout: 252 seconds)
444: [19:29:00] * ARNHOE quit (Remote host closed the connection)
445: [19:33:00] * arnhoe2 has joined #silverstripe
446: [19:34:00] * arnhoe2 quit (Client Quit)
447: [19:41:00] * SightUnseen has left #silverstripe
448: [19:41:00] * SightUnseen has joined #silverstripe
449: [20:00:00] * Nivery has left #silverstripe
450: [20:01:00] * timsnadden has joined #silverstripe
451: [20:01:00] * timsnadden_ has joined #silverstripe
452: [20:02:00] * timsnadden has left #silverstripe
453: [20:03:00] * timsnadden_ quit (Client Quit)
454: [20:11:00] * popeshoe quit (Ping timeout: 245 seconds)
455: [20:18:00] * simon_w quit (Ping timeout: 264 seconds)
456: [20:20:00] * simon_w has joined #silverstripe
457: [20:20:00] * mobiusnz has joined #silverstripe
458: [20:22:00] <FrozenFire> Just the man I was looking to pester
459: [20:22:00] * Zauberfisch has joined #silverstripe
460: [20:23:00] * UndefinedOffset quit (Quit: Leaving.)
461: [20:23:00] <FrozenFire> Or perhaps a better way to put it is, get a count of IP addresses used in LoginAttempts for each member and filter by that number being greater than a certain number.
462: [20:23:00] <FrozenFire> simon_w, Any clue how I might use DataList filters to get a list of Members who have associated successful LoginAttempts with a number of different IP addresses?
463: [20:26:00] <FrozenFire> Bah. Screw it. Straight SQL is probably the only solution
464: [20:32:00] * ferge quit (Quit: Leaving.)
465: [20:33:00] * Pyromanik has joined #silverstripe
466: [20:34:00] <Pyromanik> is it possible to make uploadfield delete the existing file if it's replaced?
467: [20:35:00] <simon_w> Pyromanik, no. Bad idea.
468: [20:35:00] <Zauberfisch> there is a replace feature in uploadfield? :O
469: [20:35:00] <Pyromanik> Zauberfisch|idle ?
470: [20:36:00] <Zauberfisch|idle> I just -.- because my other client died
471: [20:36:00] <simon_w> First, you should be sending cache headers with the images, so browsers will use a local version
472: [20:36:00] * Zauberfisch has joined #silverstripe
473: [20:36:00] <Pyromanik> Zauberfisch|idle: yeh, if you have a has_one
474: [20:36:00] <Zauberfisch|idle> -.-
475: [20:36:00] <Pyromanik> simon_w: oh?
476: [20:36:00] * Zauberfisch quit (Quit: Zauberfisch)
477: [20:36:00] <Pyromanik> and there's a file, if you 'upload' a new one it'll replace the relation.
478: [20:37:00] <simon_w> Should still be sending cache headers
479: [20:37:00] <Pyromanik> simon_w: but I'm talking PDF's
480: [20:37:00] <simon_w> Second, resampled images aren't flushed
481: [20:37:00] * catcher has joined #silverstripe
482: [20:37:00] <Pyromanik> mmm :<
483: [20:37:00] <simon_w> It's in assets/, it should have cache headers
484: [20:37:00] <Pyromanik> right, so basically the client wants to update their catalogue in pdf form weekly.
485: [20:38:00] <Pyromanik> or the DB
486: [20:38:00] <Pyromanik> what can I do here?
487: [20:38:00] <Pyromanik> I don't want it to choke our server.
488: [20:39:00] <simon_w> Like, include the date in the filename or something
489: [20:39:00] <simon_w> Well, you can delete the file, but you shouldn't replace it
490: [20:39:00] <Pyromanik> right
491: [20:39:00] <Pyromanik> well
492: [20:39:00] <Pyromanik> no wait
493: [20:39:00] <Pyromanik> I don't mean replace physically, I mean replace the relation.
494: [20:39:00] <Pyromanik> same as 'attaching' another existing.
495: [20:42:00] * nickmolhoek has joined #silverstripe
496: [20:42:00] * nickmolhoek quit (Remote host closed the connection)
497: [20:42:00] * dendeffe quit (Quit: dendeffe)
498: [20:42:00] <simon_w> Ah right. Having it not allow multiple files should mean it does that automagically?
499: [20:42:00] <Pyromanik> yeah
500: [20:43:00] <Pyromanik> I just need to remove the 'remove' action.
501: [20:43:00] <Pyromanik> but upon attaching a new file (with a new id and filename and physical file) I want the existing/old one to be removed from DB and filesystem, with no options about it.
502: [20:43:00] <Pyromanik> but just now having looked at the interface
503: [20:43:00] * nickmolhoek has joined #silverstripe
504: [20:43:00] <Pyromanik> because it's not like ImageField where you could upload without unsetting first
505: [20:45:00] <simon_w> Well, deleting it is an isChanged('FileID') type thing in onBeforeWrite
506: [20:46:00] * discorpia quit (Ping timeout: 252 seconds)
507: [20:46:00] <Pyromanik> oh yeah, that'll works.
508: [20:46:00] <Pyromanik> thanks simon_w
509: [20:47:00] <Pyromanik> just don't mail or itunes
510: [20:47:00] * mobiusnz quit (Quit: Leaving.)
511: [20:47:00] <simon_w> I really should look into getting an SSD for this laptop. Login takes so damn long because of Mail and iTunes
512: [20:47:00] * discorpia has joined #silverstripe
513: [20:48:00] <FrozenFire> Yeah, spinning discs of rust are so last decade
514: [20:52:00] <simon_w> Good thing my hard drive isn't iron then
515: [20:53:00] <Pyromanik> :< so one can't prevent the remove action on uploadfield
516: [20:53:00] <Pyromanik> guts
517: [20:55:00] <FrozenFire> CSS? :P
518: [20:57:00] <Pyromanik> NEXT!
519: [20:57:00] <Pyromanik> FrozenFire: hehehe, that would work.
520: [20:57:00] <Pyromanik> but simon_w's on before write idea is much nicer.
521: [20:58:00] <ss23> STOP NESTING!
522: [20:58:00] <ss23> Pyromanik: http://stackoverflow.com/questions/4293775/increasing-nesting-functions-calls-limit
523: [20:58:00] <Pyromanik> ikr, fly my pretties
524: [20:58:00] <ss23> protip: xdebug is fucking shit
525: [20:58:00] <ss23> Don't use it, ever
526: [20:58:00] <Pyromanik> ok
527: [20:58:00] <Pyromanik> als
528: [20:58:00] <ss23> Right up there with suhosin
529: [20:58:00] <Pyromanik> also
530: [20:58:00] <Pyromanik> wait what
531: [20:58:00] <Pyromanik> Fatal error: Maximum function nesting level of '200' reached, aborting! in \framework\core\manifest\ClassManifest.php on line 420
532: [20:58:00] <Pyromanik> what does?
533: [20:58:00] <Pyromanik> :<
534: [20:59:00] <Pyromanik> yeh but why suhosin bad?
535: [20:59:00] <ss23> "LOL WE ENCRYPTED YOUR SESSIONS, ENJOY YOUR SLOWDOWN"
536: [20:59:00] <ss23> etc
537: [20:59:00] <ss23> "oh we removed all these functions"
538: [20:59:00] <Pyromanik> oh
539: [20:59:00] <ss23> "btw if you wanna change any config options, you hae to do it in two places now"
540: [20:59:00] <Pyromanik> that all?
541: [20:59:00] <Pyromanik> meh
542: [20:59:00] <ss23> "LETS HOPE YOU NEVER FORGET THAT OR YOU'LL SPEND 2 DAYS DEBUGGING HAHA"
543: [20:59:00] <ss23> srsly
544: [20:59:00] <simon_w> (two legs better)
545: [20:59:00] <ss23> Causes more issues than it solves if you're not on shared hosting, Pyromanik
546: [20:59:00] <simon_w> suhosin bad, xdebug good
547: [20:59:00] <Pyromanik> suhosin bad?
548: [21:00:00] <ss23> No advanatage, and causes issues -> bad
549: [21:00:00] <Pyromanik> what do?
550: [21:00:00] <Pyromanik> sif
551: [21:00:00] <Pyromanik> what cause :<
552: [21:00:00] <ss23> simon_w: IS TOO
553: [21:00:00] <ss23> Pyromanik: Just set the nesting limit way higher
554: [21:00:00] <simon_w> Increasing the depth is not the answer
555: [21:00:00] <Pyromanik> simon_w: in the manifest.
556: [21:00:00] <ss23> lol
557: [21:00:00] <simon_w> Figure out where your infinite loop is
558: [21:00:00] <Pyromanik> no
559: [21:00:00] <ss23> Pyromanik: Did you read my link?
560: [21:00:00] <Pyromanik> nesting manifest issue
561: [21:00:00] * FrozenFire wats at ss23
562: [21:00:00] <Zauberfisch> what does "wat" mean?
563: [21:00:00] <Pyromanik> first build
564: [21:00:00] <Pyromanik> so
565: [21:01:00] <ss23> 5 mins of wat
566: [21:01:00] <simon_w> ss23, no.
567: [21:01:00] <ss23> Zauberfisch: http://www.youtube.com/watch?v=kXEgk1Hdze0
568: [21:01:00] <ss23> You never know, man
569: [21:01:00] <Zauberfisch> ty
570: [21:01:00] <simon_w> ss23, no.
571: [21:01:00] <Pyromanik> I never remember
572: [21:01:00] <Pyromanik> or is that a wot
573: [21:01:00] <Pyromanik> actually a wat is a temple in thailand
574: [21:01:00] <FrozenFire> "wat" == "Your statement makes no sense to me"
575: [21:01:00] <Pyromanik> Zauberfisch|idle: it's a condescending "what" in this case
576: [21:01:00] <ss23> but xdebug is holding him back
577: [21:01:00] <ss23> For all we know, he only needs a nesting level of 201
578: [21:02:00] * ss23 waves his hands around
579: [21:02:00] <Pyromanik> ss23: normally builds fine, today for first time ever manifest gives me nest issue
580: [21:02:00] <Zauberfisch> yeah, I know that video, just wasn't sure what wat means
581: [21:02:00] <ss23> simon_w: Nope
582: [21:02:00] <ss23> you never know
583: [21:02:00] * ss23 waves his hands around
584: [21:02:00] <simon_w> ss23, no.
585: [21:02:00] <ss23> simon_w: Nope
586: [21:02:00] <ss23> you never know
587: [21:02:00] <Pyromanik> obviously the problem is not in the setup.
588: [21:02:00] <ss23> Pyromanik: you know what causes that error though, right?
589: [21:02:00] <ss23> It's just like function foo() { foo(); }
590: [21:03:00] <Pyromanik> well
591: [21:03:00] <Pyromanik> according to xebug it's this:
592: [21:03:00] <Pyromanik> $lClass = strtolower($class);
593: [21:03:00] <ss23> Pyromanik: Same class of error, different semantics
594: [21:03:00] <ss23> Just meant it hit 200 specifically there, Pyromanik
595: [21:04:00] <Pyromanik> but the func entry is 2 lines above
596: [21:04:00] <ss23> It's just like function foo() { nestMeHarder($foo); foo(); } function nestMeHarder() { return false; }
597: [21:04:00] <Pyromanik> I don't
598: [21:04:00] <ss23> That has a 50% chance of hitting the limit on nestMeHarder instead of foo()
599: [21:04:00] <Pyromanik> what
600: [21:04:00] <Pyromanik> right
601: [21:04:00] <Pyromanik> speed issues
602: [21:04:00] <Pyromanik> fantastic
603: [21:04:00] <ss23> Speed issues? :S
604: [21:05:00] <Pyromanik> well that seems extremely stupid that the error is only picked up after the fact.
605: [21:05:00] <Pyromanik> when execution has already moved on
606: [21:06:00] <ss23> Pyromanik: Well, to help get your brain on the right track, you could try listening to some good music - http://www.youtube.com/watch?v=6SwiSpudKWI
607: [21:06:00] <ss23> I'M GENIE FOR YOU BOY~
608: [21:06:00] * ss23 grinds on Pyromanik
609: [21:06:00] <Pyromanik> nope
610: [21:06:00] <ss23> You might like it!
611: [21:06:00] <ss23> At least, it's eye candy
612: [21:06:00] <Pyromanik> nope.
613: [21:06:00] <Pyromanik> no sir, I don't like it.
614: [21:07:00] <Pyromanik> but you're probably too young to remember Ren and Stimpy
615: [21:07:00] <ss23> XD
616: [21:07:00] <ss23> You haven't heard it here!
617: [21:07:00] <ss23> lol, no, but what does that have to do with my link?
618: [21:07:00] <ss23> Or was taht a quote?
619: [21:07:00] <Pyromanik> you're not helping, you're a distraction.
620: [21:07:00] * Pyromanik quit (Quit: leaving)
621: [21:07:00] <ss23> I'm too young to remember a bunch of quoes, at least :P
622: [21:07:00] <ss23> Psh
623: [21:07:00] <ss23> He doesn't even understand the problem
624: [21:16:00] * Pyromanik has joined #silverstripe
625: [21:16:00] <Pyromanik> do too
626: [21:16:00] <Pyromanik> Blog.
627: [21:16:00] * willr_ has joined #silverstripe
628: [21:16:00] <Pyromanik> security
629: [21:16:00] <Pyromanik> typoimport
630: [21:16:00] <Pyromanik> contentcontroller
631: [21:16:00] <Pyromanik> page_controller
632: [21:16:00] <Pyromanik> blogentry_controller
633: [21:16:00] <Pyromanik> blogtree_controller
634: [21:16:00] <Pyromanik> blogholder_controller
635: [21:16:00] <Pyromanik> page_controller
636: [21:16:00] <Pyromanik> blogentry_controller
637: [21:16:00] <Pyromanik> blogtree_controller
638: [21:16:00] <Pyromanik> blogholder_controller
639: [21:16:00] <Pyromanik> page_controller
640: [21:16:00] <Pyromanik> blogentry_controller
641: [21:16:00] <Pyromanik> blogtree_controller
642: [21:16:00] <Pyromanik> blogholder_controller
643: [21:16:00] <ss23> So
644: [21:16:00] <Pyromanik> page_controller
645: [21:16:00] <ss23> Whats up with spam asye?
646: [21:16:00] <Pyromanik> etc
647: [21:17:00] * Pyromanik sunglasses
648: [21:17:00] <Pyromanik> deal with it
649: [21:17:00] <Pyromanik> so as you see, increasing nesting level will NOT solve my problem.
650: [21:17:00] <ss23> lol
651: [21:18:00] <ss23> And he still hasn't tried yet, so it might
652: [21:18:00] <ss23> I never said it *would* fix it, FYI
653: [21:18:00] <simon_w> Told you :p
654: [21:18:00] <ss23> ^.^
655: [21:19:00] * ss23 has joined #silverstripe
656: [21:19:00] <ss23> Sounds mad to me
657: [21:19:00] <Pyromanik> !ban
658: [21:19:00] <Pyromanik> simon_w: so does this mean something has gone corrupt?
659: [21:19:00] <simon_w> You are in no way correct
660: [21:19:00] <Pyromanik> nope.
661: [21:19:00] <ss23> mad because I'm technically correct?
662: [21:19:00] <Pyromanik> quite.
663: [21:19:00] <simon_w> Seriously
664: [21:20:00] <simon_w> The call stack
665: [21:20:00] <simon_w> The list of functions under the error message
666: [21:20:00] <simon_w> Pyromanik, well, something's doing something it shouldn't. Can you pastie the callstack?
667: [21:20:00] <Pyromanik> callback stack?
668: [21:20:00] <Pyromanik> {main}() main.php:0
669: [21:21:00] <simon_w> or whatever it is
670: [21:21:00] <simon_w> All 200-odd of them
671: [21:21:00] <Pyromanik> require_once(framework/core/Core.php), main.php:62
672: [21:21:00] <Pyromanik> SS_ClassManifest->__construct(), Core.php:276
673: [21:21:00] <simon_w> pastie.org
674: [21:22:00] <Pyromanik> SS_ClassManifest->regenerate(), ClassManifest.php:133
675: [21:22:00] <Pyromanik> SS_ClassManifest->coalesceDescendants(), ClassManifest.php:287
676: [21:22:00] <Pyromanik> SS_ClassManifest->coalesceDescendants(), ClassManifest.php:429
677: [21:22:00] <Pyromanik> SS_ClassManifest->coalesceDescendants(), ClassManifest.php:429
678: [21:22:00] <Pyromanik> SS_ClassManifest->coalesceDescendants(), ClassManifest.php:429
679: [21:22:00] <Pyromanik> SS_ClassManifest->coalesceDescendants(), ClassManifest.php:429
680: [21:22:00] <Pyromanik> etc
681: [21:22:00] <Pyromanik> until death.
682: [21:23:00] <simon_w> And which version?
683: [21:23:00] <Pyromanik> that's my paste spam above
684: [21:23:00] <Pyromanik> echo $lClass
685: [21:23:00] * Zauberfisch quit (Remote host closed the connection)
686: [21:23:00] <Pyromanik> I plonked an echo in that function to see what class it was trying to do
687: [21:23:00] <Pyromanik> just keeps rolling over the blog module repeatedly
688: [21:23:00] <Pyromanik> well, the controllers at least.
689: [21:23:00] <Pyromanik> 3.0.5
690: [21:24:00] <Pyromanik> never had this issue before, I think someone may have corrupted my blog
691: [21:24:00] <Pyromanik> (local store)
692: [21:25:00] * nimeso has joined #silverstripe
693: [21:26:00] <nimeso> Hi all :)
694: [21:26:00] <Pyromanik> hi nimeso
695: [21:26:00] * ZauberfischIPad has joined #silverstripe
696: [21:26:00] <ZauberfischIPad> php storm is 40% off if someone is considering buying it
697: [21:26:00] <nimeso> Ok this has been driving me nuts for 2 months now and I'm still no further in solving my issue... only happens in my IE, nobody elses. http://www.silverstripe.org/form-questions/show/5411
698: [21:27:00] <Pyromanik> found it!
699: [21:27:00] <simon_w> So, either it thinks page_controller is a child of page_controller, or page_controller is a child of bloghodler_controller
700: [21:27:00] <Pyromanik> thanks for helping simon_w
701: [21:27:00] <nimeso> I hate declaring a class twice :/ always freaks me out
702: [21:27:00] <Pyromanik> (forgot to rename to HomePage)
703: [21:27:00] <Pyromanik> declared page twice
704: [21:27:00] <nimeso> Hi Pyro! how ya doing man?
705: [21:28:00] <Pyromanik> no dessert for you ss23
706: [21:28:00] <simon_w> It should give you that too
707: [21:28:00] <Pyromanik> 3.0 charges on and then yeah.
708: [21:28:00] <Pyromanik> yeah well 2.4 would give us "decleared twice" error
709: [21:29:00] <FrozenFire> Can I add an arbitrary field to fetch as part of a DataList?
710: [21:29:00] <nimeso> Did the same thing last night pyro... took 30 mins to work it out then doh! silly me!
711: [21:30:00] <ss23> Technically I'm still correct :3
712: [21:30:00] <ss23> 09:29:12 < Pyromanik> no dessert for you ss23
713: [21:30:00] <FrozenFire> There's setQueriedColumns, apparently
714: [21:30:00] <FrozenFire> I don't know how I might make use of that, though
715: [21:30:00] <simon_w> maybe even as far down as sqlquery
716: [21:30:00] <simon_w> FrozenFire, need to alter the data query directly for that
717: [21:30:00] <FrozenFire> E.g. Member::get()->addSomeField("something as SomeField")
718: [21:31:00] * ZauberfischIPad quit (Remote host closed the connection)
719: [21:31:00] <simon_w> ss23, no. No you weren't.
720: [21:31:00] <ss23> simon_w: Why not?
721: [21:31:00] <ss23> Which part was incorrect? I'm curious
722: [21:31:00] <ss23> :D
723: [21:31:00] <simon_w> "might fix it"
724: [21:31:00] <nimeso> Anyone got just 2 mins to read my issue? client freaking and I can't test in IE. http://www.silverstripe.org/form-questions/show/5411
725: [21:31:00] <simon_w> might means there's a chance. There was no chance.
726: [21:31:00] <ss23> Yes, and it might have, if the situation that caused it was hitting the limit normally, simon_w
727: [21:32:00] <nimeso> Shit... stop... wronmg post
728: [21:32:00] <simon_w> ss23, there was no chance of that.
729: [21:32:00] <ss23> simon_w: Disagree
730: [21:32:00] <simon_w> ss23, I know the code. No chance.
731: [21:32:00] <nimeso> http://www.silverstripe.org/general-questions/show/23489 betta
732: [21:34:00] <ss23> Or cosmic rays
733: [21:34:00] * ZauberfischIPad quit (Remote host closed the connection)
734: [21:34:00] * ZauberfischIPad has joined #silverstripe
735: [21:34:00] <nimeso> Just had big solar flare!
736: [21:34:00] <Pyromanik> ^^
737: [21:34:00] <Pyromanik> 09:28 <@simon_w> It should give you that too
738: [21:34:00] <Pyromanik> simon_w: it doesn't :<
739: [21:34:00] <ss23> simon_w: Not a 100% chance it wasn't modified by him or a hacker
740: [21:35:00] <ss23> :D
741: [21:35:00] <ss23> ^^^
742: [21:35:00] <ss23> IT COULD HAPPEN
743: [21:35:00] <ss23> Point is, technically I'm still correct, because really close to 0 still isn't 0
744: [21:36:00] <nimeso> Some days i wish it would wipe out everything! (but mainly wipe out IE... :)
745: [21:36:00] <simon_w> This reminds me of the argument for with 0.9999.... ? 1 on unencyclopedia
746: [21:36:00] <simon_w> nimeso, which version of IE?
747: [21:36:00] <nimeso> Was on 8... upgraded to 9 to see if fixed... nadda
748: [21:36:00] <nimeso> happens on local and many differant servers
749: [21:37:00] <ss23> simon_w: rather different. In one case people are completely wrong, and in this case I'm annoyingly right
750: [21:37:00] <nimeso> on clean ss3 instal
751: [21:37:00] <nimeso> Thanks Simon! you rock
752: [21:38:00] <nimeso> I'm almost at the point of a OS re-install... sigh
753: [21:38:00] <simon_w> nimeso, do you get the same problems on demo.silverstripe.org? What version of SS are you running?
754: [21:39:00] <nimeso> I'll test on demo now, good thinking... stable release of SS 3.01 is it? not 3.1
755: [21:39:00] <nimeso> Also same sort of issues with 2.4 as well
756: [21:40:00] <simon_w> Are you using something like firebug lite by any chance?
757: [21:40:00] <simon_w> Or something else that doesn't encapsulate itself properly
758: [21:41:00] <nimeso> Simon.... just tried http://ss3.demo.silverstripe.org/admin same issue :(
759: [21:41:00] <nimeso> um..... not using firebug nope...
760: [21:42:00] <simon_w> Yeah, it's really starting to look like something's up with your setup
761: [21:42:00] <nimeso> chrome gets no errors FF gets a few errors and IE gets other errors... lol... read http://www.silverstripe.org/general-questions/show/23489 for the errors
762: [21:43:00] <nimeso> yes....man... just did a re-install! crap bum!@
763: [21:44:00] * FrozenFire regrets trying to create a SS_Report
764: [21:45:00] <nimeso> Thanks heaps for looking simon :)
765: [21:49:00] * nimeso quit (Ping timeout: 245 seconds)
766: [21:54:00] * Cam_ has joined #silverstripe
767: [21:55:00] * Cam_ is now known as Guest34405
768: [21:55:00] * Guest34405 is now known as camb
769: [21:56:00] <nimeso> Simon!!!! man... just went through and removed a heap of dodgy software my kids had managed to install.... AND IT WORKS!!! yippie! party time!
770: [21:56:00] * nimeso has joined #silverstripe
771: [21:57:00] <nimeso> Tell me bout it! lol
772: [21:57:00] <nimeso> Thanks again for looking bro... I owe you a beer
773: [21:57:00] <simon_w> Yay, toolbars!
774: [21:57:00] <camb> Hey all is there a way for me to render a partial using a string to determine the name of that partial? So like <% loop PartialNames %><% include PartialName %><% end_loop %>
775: [21:57:00] <nimeso> sure it was some dodgy sharing toolbar
776: [21:57:00] <nimeso> :)
777: [21:58:00] <camb> Or get the partial and render it from the controller?
778: [21:58:00] <simon_w> camb, $Me
779: [21:59:00] <willr_> camb - if include $PartialName doesn't work then having a function for it wouldn't be too hard. function RenderSomething($name) { return $this->renderWith(array('Includes/$name')); }
780: [22:00:00] <camb> ok cool thanks for your suggestions guys
781: [22:00:00] * FrozenFire hates SS so much right now
782: [22:01:00] <FrozenFire> http://www.sspaste.com/paste/show/516dca204f496
783: [22:08:00] <willr_> FrozenFire ?
784: [22:08:00] <FrozenFire> Naturally, butting up against the DataQuery limitations
785: [22:08:00] <FrozenFire> Trying to do nothing more than get a list of members with a count of how many different IP addresses they've used, descendingly.
786: [22:09:00] <FrozenFire> So I tried to use ArrayList, but ModelAdmin laughed in my face
787: [22:09:00] <camb> simon_w Could you point me to docs that explain $Me ? I can't find any in google
788: [22:09:00] <simon_w> camb, $Me is the current object
789: [22:09:00] <willr_> SS_Report is what you want, ModelAdmin is for Database backed objects
790: [22:10:00] <FrozenFire> hour**
791: [22:10:00] <FrozenFire> Spent an our trying to implement this in the most basic fashion
792: [22:10:00] <willr_> I did a patch in 3.1 to allow SS_Reports to work on ArrayLists
793: [22:10:00] <FrozenFire> SS_Report is so glaringly broken
794: [22:11:00] <FrozenFire> And really, this is database-backed.
795: [22:11:00] <FrozenFire> It's not forthcoming
796: [22:11:00] <FrozenFire> I simply want one additional computed field
797: [22:12:00] <FrozenFire> As in, producing it in the query
798: [22:12:00] <willr_> You'd have to move that one additional computed field to a decorator on Member / Login Attempt
799: [22:12:00] <FrozenFire> As opposed to storing it
800: [22:12:00] <FrozenFire> This is a computed field, not a stored field.
801: [22:16:00] <camb> simon_w how does the current object define which partial to use? I basically want to loop over a bunch of data objects, and they each have a corresponding partial which I need to render. I was basically going to have a field PartialName which I wanted to use to load the partial $PartialName.ss
802: [22:16:00] <willr_> Well no reason why you can't move it to the model - function getDistinctIP() { return DB::query("SELECT COUNT(DISTINCT `IP`) as DistinctIP FROM ..)->value(); Then use DistinctIP in your modeladmin summary fields. You could probably alter the underlying DataQuery in ModelAdmin but haven't had a play with it
803: [22:17:00] <FrozenFire> The reason why I couldn't is that this needs to be sortable.
804: [22:17:00] <willr_> A basic SS_Report outline might look something like https://gist.github.com/wilr/5400107 in 3.1 FrozenFire. Still lots of boilerplate
805: [22:19:00] <FrozenFire> What's a ReportsDataRow?
806: [22:20:00] * clodeindustrie has joined #silverstripe
807: [22:20:00] <willr_> https://gist.github.com/wilr/5400107
808: [22:20:00] <FrozenFire> Just need the rows to be linked
809: [22:20:00] <FrozenFire> Hrmm, this almost works.
810: [22:21:00] <willr_> sorry, it was just because GridField always called canView() without checking whether it existed.
811: [22:21:00] <FrozenFire> Ah
812: [22:22:00] <clodeindustrie> hi there, I'm having on of those problem when I get sql errors mentioning that a column doesn't exist when it actually does, I remember someone telling it's versioning related is there anything I can do about that?
813: [22:22:00] <FrozenFire> Wonder if you could do $row = new ArrayData(); $row->canView = function() { return true; }
814: [22:22:00] <willr_> not sure if I sent a patch to check for can view.
815: [22:23:00] <willr_> sounds like javascript.
816: [22:24:00] <FrozenFire> Making PHP more scripty
817: [22:24:00] <FrozenFire> Well, that's half the reasons for closures :P
818: [22:25:00] * SightUnseen has joined #silverstripe
819: [22:25:00] * SightUnseen has left #silverstripe
820: [22:25:00] <willr_> kids these days and there scripty hippy hoppity jazz
821: [22:27:00] <FrozenFire> Wow, it really shit itself
822: [22:27:00] <willr_> FrozenFire but I'm with you. Reports needs a good smack. I ripped it out of core for 3.1 in the hope it'll get some dev
823: [22:27:00] <FrozenFire> Is it rendering that string against the row's object?
824: [22:27:00] <FrozenFire> What is the syntax context for formatting?
825: [22:31:00] <FrozenFire> Thanks a bunch
826: [22:31:00] <FrozenFire> http://www.sspaste.com/paste/show/516dd13405e4d Ugly but working
827: [22:32:00] <willr_> So the canView() stufff wasn't needed?
828: [22:33:00] <FrozenFire> Well, maybe
829: [22:33:00] <FrozenFire> Didn't seem to be
830: [22:33:00] <FrozenFire> I'm just throwing a transient field onto each record
831: [22:33:00] <FrozenFire> So it already has it
832: [22:33:00] <FrozenFire> I'm using Member objects
833: [22:41:00] * mobiusnz has joined #silverstripe
834: [22:51:00] * Zauberfisch|idle has joined #silverstripe
835: [22:51:00] * Zauberfisch|idle quit (Read error: Connection reset by peer)
836: [23:11:00] * catcher quit (Quit: Leaving)
837: [23:12:00] * nicolaas has joined #silverstripe
838: [23:13:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
839: [23:15:00] * mehh has joined #silverstripe
840: [23:16:00] <nicolaas> hi guys, I am wondering how I can store a list of items, each containing an array of numbers ( e.g. 0 => array(8, 11, 3, 5,6, 1000), 1 => array(2,4,3333) ) in the database and sort it efficiently. I thought about making each number into three digits (e.g. 3 = 003, 10 = 010, etc...and then save in bigint (largest number = 18,446,744,073,709,551,615). However that leaves a maximum of 6 items...
841: [23:16:00] * mehh has left #silverstripe
842: [23:16:00] <nicolaas> ...per array, which is not enough. The maximum of individual array items is probably around 1000, that we can assume. Any ideas?
843: [23:17:00] * mobiusnz quit (Ping timeout: 252 seconds)
844: [23:17:00] * mobiusnz1 has joined #silverstripe
845: [23:17:00] * EasyCo has joined #silverstripe
846: [23:20:00] <simon_w> What will you be sorting on?
847: [23:21:00] <FrozenFire> This is almost certainly an X=>Y question :P
848: [23:22:00] <EasyCo> That is, which file.
849: [23:22:00] <EasyCo> Anybody know where the "Delete from files" action is handled?
850: [23:22:00] <nicolaas> simon_w: I want to store the full sort array for each page within the page
851: [23:23:00] <nicolaas> so that I keep them in the same logical sorting order when they are outside of their parent. I will also add dataobjects at the end of the pages list and include those numbers.
852: [23:24:00] <simon_w> json_encode and storing in a text may work
853: [23:25:00] <simon_w> EasyCo, where's the action?
854: [23:25:00] <nicolaas> hmmm simon that seems a bit clunky.... I was hoping more for something a bit more industrial...
855: [23:27:00] * dangerdan has joined #silverstripe
856: [23:27:00] <nicolaas> this might be the way to go: http://dev.mysql.com/doc/refman/5.0/en/binary-varbinary.html
857: [23:27:00] <EasyCo> simon_w: In the backend, from a scaffolded DataObject.
858: [23:28:00] <EasyCo> onBeforeWrite() is no good because I can't distinguish whether the request is to Delete files or just Remove them.
859: [23:28:00] <EasyCo> Basically what I'm trying to achieve (with little success): When a use clicks 'Delete from files' I need to update the database and delete files for 2 more fields which are hidden.
860: [23:29:00] <simon_w> Does it matter?
861: [23:30:00] <EasyCo> Yah before Delete files I need to actually delete the files from the filesystem. Whereas Remove just removes the link from the field to the File.
862: [23:30:00] <dangerdan> what about onBeforeDelete()? tho i have only just entered this half way through i might be totally off the mark
863: [23:32:00] <FrozenFire> So "delete" is really "unlink"
864: [23:32:00] <FrozenFire> I think he's managing relations
865: [23:32:00] <simon_w> Delete from Files unlinks, then deletes
866: [23:32:00] <simon_w> Not in UploadField
867: [23:32:00] <EasyCo> dangerdan: onBeforeDelete() will only trigger if I extend the File class which is cool but within that class I have no access to the actual parent Data Object where the relationship is managed.
868: [23:33:00] * SightUnseen has joined #silverstripe
869: [23:33:00] <simon_w> Unlink is the one called "Remove"
870: [23:33:00] <EasyCo> Exactly
871: [23:33:00] * chillu quit (Quit: chillu)
872: [23:34:00] <simon_w> FrozenFire, it cleans up the relation it's on
873: [23:34:00] * SightUnseen has left #silverstripe
874: [23:34:00] <dangerdan> what are you trying to do sorry cos i have only just joined this chat
875: [23:34:00] <FrozenFire> Does delete on an UploadField even bother cleaning up relations?
876: [23:34:00] <EasyCo> dangerdan: EasyCo: Basically what I'm trying to achieve (with little success): When a use clicks 'Delete from files' I need to update the database and delete files for 2 more fields which are hidden.
877: [23:34:00] <simon_w> dangerdan, logs
878: [23:35:00] <EasyCo> I've got 3 UploadFields, 2 of which are hidden. So I basically need to link them with the actions of the one that's not hidden.
879: [23:35:00] <simon_w> EasyCo, so, you need to know when someone clicks the delete button so you can delete the file that's going to be deleted after your relation has been updated?
880: [23:36:00] <simon_w> You don't need to know if it's a delete, a remove or a change. Just delete them.
881: [23:36:00] <simon_w> Oh right, this. So, when someone sets the main video, you always go and get the other two types encoded, right?
882: [23:36:00] <FrozenFire> Why not just adjust your getter?
883: [23:36:00] <EasyCo> Yah correct
884: [23:36:00] <EasyCo> So if somebody deletes it, I need to update the two other fields accordingly.
885: [23:36:00] <simon_w> So just delete those two when your relation gets changed
886: [23:36:00] <FrozenFire> Isn't this happening a bit... unstably?
887: [23:37:00] <simon_w> FrozenFire, he's using ZenCoder to generate the other two files
888: [23:37:00] <FrozenFire> Or am I missing something?
889: [23:37:00] <EasyCo> simon_w: If do just delete them, and somebody re-adds the file from the library I need to re-send the file to Zencoder which I'd rather not do.
890: [23:38:00] <simon_w> EasyCo, you just said you're already doing that
891: [23:39:00] <simon_w> And, if you're not, then you've already got some way of detecting if those files already exist. Just use that method to delete them as well in onBeforeDelete() in a DataExtension on File
892: [23:42:00] * dangerdan quit (Ping timeout: 245 seconds)
893: [23:43:00] <EasyCo> Ok perhaps I'm not expressing myself clearly. What I've got working so far: A user uploads a video.mp4, I catch that in onAfterWrite(), detect if it's a file being added or removed|deleted. If its added, I send the file to Zencoder and update two hidden fields: VideoOGG & VideoWEBM. Happy days.
894: [23:43:00] <EasyCo> simon_w: Disregard, I just saw you msgs then.
895: [23:44:00] <EasyCo> I'll give it some more love.
896: [23:52:00] * joelpittet has joined #silverstripe
897: [23:54:00] * camb quit (Quit: Textual IRC Client: www.textualapp.com)
898: [23:55:00] * joelpittet quit (Remote host closed the connection)
899: [23:55:00] * joelpittet has joined #silverstripe

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