#silverstripe IRC Log

IRC log for 10 December 2013

All timestamps are in UTC.

1: [00:00:59] <wracu> sortng the child dataobjects is simple enough, $obj = $obj->sort('FieldName'); when adding it to a tab, but the parent one has foxed me..
2: [00:01:21] <wracu> do I need to modify the DataObject itself or the ModelAdmin?
3: [00:08:45] <Stomach> you can add a $default_sort to the object
4: [00:11:05] * helenclarko has joined #silverstripe
5: [00:13:00] <helenclarko> Hi Chillu, I'm using your subsites module for SS 2.3 on SS 2.4.5. Seems to work fine except that whenver I change the siteconfig on the subsite, it wipes the man sites siteconfig. Any idea why?
6: [00:15:08] <Colin[pi]> subsites: here be dragons
7: [00:37:37] * mrzero_ has joined #silverstripe
8: [00:37:39] * mrzero_ quit (Changing host)
9: [00:37:40] * mrzero_ has joined #silverstripe
10: [00:44:13] <Jayden90> Is there a way to get basic HTML do display as html in a gridfield column? Google just shows up this unanswered forym question: http://www.silverstripe.org/general-questions/show/25966
11: [00:44:27] * cloph has joined #silverstripe
12: [00:46:06] * cloph_away quit (Ping timeout: 250 seconds)
13: [00:46:06] * mrzero quit (Ping timeout: 250 seconds)
14: [00:46:07] * mrzero_ is now known as mrzero
15: [00:46:17] * oskarholo quit (Quit: bye)
16: [00:46:41] * wracu quit (Quit: Page closed)
17: [00:50:13] * wracu has joined #silverstripe
18: [00:57:05] * nickmolhoek has joined #silverstripe
19: [01:01:43] * oskarholo has joined #silverstripe
20: [01:20:23] <helenclarko> should I just do away with subsites?
21: [01:21:11] <pippy_> helenclarko: it's up to you, I avoid it because of the extra complexity
22: [01:21:18] <pippy_> virtual hosts work just as good
23: [01:22:24] <zippy__> ^
24: [01:22:35] <helenclarko> I was simply interested in having an additional site with seperate menus but will still remember if you are logged in/have items in your cart.
25: [01:23:04] <helenclarko> although I could probably get the same effect by sharing cookies.
26: [01:24:48] <zippy__> you could still do sub domain, then, use a different theme based on the hostname
27: [01:26:37] * Jakx has left #silverstripe
28: [01:28:34] <Colin[pi]> helenclarko: ask spronk for his honest opinion of subsites ;)
29: [01:56:10] * variable_office quit (Quit: Leaving)
30: [01:58:31] * antmas has joined #silverstripe
31: [01:59:17] <antmas> guten tag
32: [02:03:05] <Ryan-Toast> "I deleted some javascript files and now my site doesn't work properly". God damn people are stupid.
33: [02:10:21] * chillu quit (Quit: chillu)
34: [02:12:21] * antmas quit (Ping timeout: 250 seconds)
35: [02:17:06] * antmas has joined #silverstripe
36: [02:17:28] <antmas> Ryan-Toast: that mouse pad you posted a pic of a while ago, was that a steel series?
37: [02:23:26] <antmas> huzzah
38: [02:23:29] <antmas> it works
39: [02:23:31] <antmas> yay
40: [02:24:06] <Colin[pi]> ANTMAS HAI
41: [02:24:19] <antmas> Colin[pi]: ZOMG
42: [02:24:23] <antmas> Colin[pi]: HI COLIN!
43: [02:25:13] <Colin[pi]> !!!
44: [02:25:23] * DigNZ quit (Quit: DigNZ)
45: [02:25:43] <antmas> oh god
46: [02:25:50] <antmas> dentist in 30 mins o.O
47: [02:26:33] <Colin[pi]> YAY
48: [02:26:39] <Colin[pi]> BZzzzrRRRRzzzrrRRRRzzzz
49: [02:26:42] <Ryan-Toast> antmas: Yeah, man./
50: [02:26:51] <antmas> when I called them this morning
51: [02:27:09] <antmas> they were just opening the building and there was this super loud drilling sound
52: [02:27:11] <antmas> o.O
53: [02:27:33] <antmas> thankfully, she heard my deep breathing and told me it was the vaccum cleaner hahaha
54: [02:27:37] <Ryan-Toast> antmas: Was this one: http://www.mightyape.co.nz/product/SteelSeries-Steelpad-Qck/1547103/
55: [02:27:48] <Colin[pi]> it's that ultrasonic water cleaning thingy that I also don't like
56: [02:28:08] <antmas> Colin[pi]: yeh, that thing that makes your teeth feel super cold?
57: [02:28:17] <Colin[pi]> yup
58: [02:28:29] <Colin[pi]> ugh I got a shiver just now thinking of it
59: [02:32:43] * antmas quit (Ping timeout: 250 seconds)
60: [02:35:21] * Stomach quit (Read error: Connection reset by peer)
61: [02:36:27] * DigNZ has joined #silverstripe
62: [02:39:50] * DigNZ quit (Client Quit)
63: [02:44:38] * UncleCheese quit (Quit: UncleCheese)
64: [02:49:44] * UncleCheese has joined #silverstripe
65: [02:50:49] * DigNZ has joined #silverstripe
66: [03:06:45] * zippy__ quit (Ping timeout: 248 seconds)
67: [03:07:22] * simon_w has joined #silverstripe
68: [03:30:08] * helenclarko quit (Quit: Page closed)
69: [03:32:57] * wracu quit (Ping timeout: 250 seconds)
70: [03:35:00] <Ryan-Toast> "We can't do that in just javascript, we need jQuery.", you do know jQuery is javascript, right? "No, jQuery is different"...is it a full moon or something tonight?
71: [03:35:50] <guzzlefry> Ryan-Toast: 0.o
72: [03:35:57] <guzzlefry> client?
73: [03:36:16] <Ryan-Toast> guzzlefry: Clients inhouse dev
74: [03:36:37] <guzzlefry> oh, those are fun
75: [03:37:04] <Bollig|DesignCty> lol, when you say they're in-house dev, you need to use quotes, like he's the "in-house dev"
76: [03:37:29] <Ryan-Toast> He's a coldfusion dev. I didn't even know that was still a thing.
77: [03:37:34] <guzzlefry> in-da house dev
78: [03:37:34] <Ryan-Toast> sorry "dev"
79: [03:40:00] <guzzlefry> Apparently there are lots of opensource Coldfusion servers now...
80: [03:40:36] <Ryan-Toast> guzzlefry: Why?
81: [03:41:13] <guzzlefry> no clue
82: [03:41:17] <guzzlefry> I thought it was dead as well.
83: [03:41:45] <guzzlefry> The only major application to use Coldfusion that I can recall was Myspace, but they converted over to ASP.NET afaik...
84: [03:42:10] <Ryan-Toast> He triedd to make their form responsive...he failed: http://i.imgur.com/Z6GbxJf.png
85: [03:42:44] <Snowman23> ahhahaha
86: [03:42:52] <Snowman23> You guys remember how antmas was scared about going to the dentist?
87: [03:42:59] <Snowman23> His tweet: I can hear someone crying in the other room at the dentist. I'm in for an excellent evening :(
88: [03:44:50] <guzzlefry> haha
89: [03:54:06] * DigNZ quit (Quit: DigNZ)
90: [03:54:57] <Colin[pi]> Snowman23: mm, you think I should tweet to him "don't worry, you won't be able to cry if you're dead."
91: [03:55:05] <Snowman23> hahaha
92: [03:55:18] * nickmolhoek quit (Quit: nickmolhoek)
93: [03:59:52] <Colin[pi]> sleepy time of afternoon -_-
94: [04:02:52] <Ryan-Toast> I wish the concept of "The Fold" would just die.
95: [04:03:22] <Ryan-Toast> everyone wantrs a minimal nicely spaced website, but in the same vein they want everything squashed into a small space so you can see everything...sigh.
96: [04:04:55] <Colin[pi]> "make it pop
97: [04:05:06] <Ryan-Toast> Can we make it 20% sexier?
98: [04:06:01] <Colin[pi]> I had one the other week, they come to me and say "NOW we dont want full graphic design, it's expensive, so we'll use a template"
99: [04:06:07] <Colin[pi]> looks at some templated designed
100: [04:06:09] <Colin[pi]> *designs
101: [04:06:23] <Colin[pi]> comes back to me in one week "eeehhhhhh all of these designs look kinda templatey"
102: [04:06:24] <Colin[pi]> LOL
103: [04:06:44] <Ryan-Toast> Rofl.
104: [04:06:45] <Colin[pi]> "um... ya"
105: [04:06:58] <Ryan-Toast> IT'S ALMOST LIKE THEY'RE TEMPLATES.
106: [04:07:03] <Colin[pi]> lol yep
107: [04:07:18] <Ryan-Toast> I need more designers, so I don't have to deal with this shit./
108: [04:07:21] <Colin[pi]> if you want something that doesn't look like a template, PAY FOR THE GOD DAMN DESIGN
109: [04:07:55] <Ryan-Toast> Just do it for free, then you can put it on your portfolio \s
110: [04:08:30] <Colin[pi]> lol
111: [04:09:37] <Colin[pi]> one come to me with a proposal a while back... "oh I think this could be big, I think if we do this right, you'll be able to retire to a tropical island in a few years"
112: [04:09:41] <Colin[pi]> me: "Uh huh..."
113: [04:10:02] <Ryan-Toast> In other words - they had no $$
114: [04:10:06] <Colin[pi]> ding ding
115: [04:10:33] <Colin[pi]> wish they wouldn't waste time with that crap
116: [04:10:40] <Colin[pi]> can see right through it, transparent as glass
117: [04:11:02] <Ryan-Toast> That's why my contact form has a budget field.
118: [04:11:15] <Colin[pi]> oh that's a good idea :)
119: [04:11:31] * cloph_away has joined #silverstripe
120: [04:11:40] <Ryan-Toast> and a timeframe, so you don't get the NEEDS TO BE DONE IN 1 WEEK
121: [04:11:51] * cloph quit (Ping timeout: 260 seconds)
122: [04:20:41] * DigNZ has joined #silverstripe
123: [04:28:39] <simon_w> This is a great SilverStripe site! https://beta.govt.nz :p
124: [04:31:13] <Colin[pi]> simon_w: idgi
125: [04:31:28] * CodeTrap quit (Ping timeout: 246 seconds)
126: [04:32:46] <simon_w> Is also hosted in Japan by the looks of things
127: [04:32:58] <simon_w> Colin[pi], look how good our government is at using SilverStripe!
128: [04:33:35] <simon_w> Oh, is going through a cloudflare-like system
129: [04:33:50] * CodeTrap has joined #silverstripe
130: [04:34:08] <Colin[pi]> yep I get japan also
131: [04:34:38] <Snowman23> Colin[pi]: antmas says ";________________;"
132: [04:34:40] <simon_w> Ooh, it gets better https://beta.govt.nz/about/
133: [04:34:51] <simon_w> Snowman23, did you guys build this? :p
134: [04:35:02] <Snowman23> I doubt it
135: [04:35:04] <Colin[pi]> simon_w: I still DGI... is it just a shitty theme/css?
136: [04:35:15] <Colin[pi]> it's the CWP look-n-feel right?
137: [04:35:33] <simon_w> Colin[pi], I think this predates CWP
138: [04:35:42] <simon_w> But yeah, it's just a shitty design and implementation
139: [04:36:10] <Snowman23> We don't host anything in Japan anyway
140: [04:36:32] <simon_w> Now importing block chain from disk, so home time!
141: [04:36:43] <simon_w> Snowman23, isn't hosted there. Is a load-balancing proxy thing
142: [04:37:10] <simon_w> http://www.incapsula.com
143: [04:37:23] * Ryan-Toast quit (Quit: Ryan-Toast)
144: [04:38:14] <Snowman23> Oh yhea, all gov does that junk
145: [04:38:28] <Colin[pi]> I tried /admin and it's security blocked
146: [04:38:31] <Colin[pi]> :(
147: [04:38:46] <Snowman23> hahaha
148: [04:56:02] * UncleCheese quit (Quit: UncleCheese)
149: [05:02:19] * new_learner has joined #silverstripe
150: [05:13:29] * new_learner quit (Ping timeout: 250 seconds)
151: [05:20:09] * simon_w|air has joined #silverstripe
152: [05:27:18] * boytikz has joined #silverstripe
153: [05:27:25] <Zauberfisch23> Snowman23: is that https://github.com/cam-findlay cam?
154: [05:27:41] <boytikz> how do I access CustomSiteConfig when inside a Controller?
155: [05:27:55] <Zauberfisch23> custom siteconfig?
156: [05:28:18] <Zauberfisch23> you can get the siteconfig from anywhere with SiteConfig::current_siteconfig()
157: [05:28:32] <boytikz> I've tried SiteConfig::current_site_config()->get<ConfigName>() but returns nothing
158: [05:28:49] <Zauberfisch23> if you have extensions hooked to SiteConfig, than they are part of the SiteConfig
159: [05:28:55] <Zauberfisch23> if you have subclassed it, no idea
160: [05:29:22] <boytikz> Hmmm
161: [05:29:25] <boytikz> I extended DataExtension
162: [05:29:34] <Zauberfisch23> then it should work
163: [05:29:42] <Zauberfisch23> show me your DataExtension
164: [05:29:42] <boytikz> weird
165: [05:31:23] <boytikz> really simple one : https://gist.github.com/anonymous/79b56bd1eeb80d5f329a
166: [05:31:59] <boytikz> trying to retrieve value through SiteConfig::current_site_config()->getPDFPath()
167: [05:32:17] <Zauberfisch23> that won't work because thats not how you get DB fields
168: [05:32:25] <Zauberfisch23> SiteConfig::current_site_config()->PDFPath
169: [05:32:38] <Zauberfisch23> DB fields are properties, not methods
170: [05:32:43] <Snowman23> Zauberfisch23: Looks like it!
171: [05:33:00] <Zauberfisch23> only DB relations are accessable as methods
172: [05:33:29] <boytikz> ah! works now, thanks!
173: [06:06:29] * Jayden90 quit (Ping timeout: 248 seconds)
174: [06:07:25] * joelpittet has joined #silverstripe
175: [06:08:01] * openbees has joined #silverstripe
176: [06:25:53] * DigNZ quit (Quit: DigNZ)
177: [06:33:23] * new_learner has joined #silverstripe
178: [06:34:20] <new_learner> everything ok with my code...though it shows page not found ....
179: [06:34:26] <new_learner> what may be the issue?
180: [06:35:08] <Zauberfisch23> who says that everything is ok with your code?
181: [06:36:28] * willr has joined #silverstripe
182: [06:38:20] <openbees> Zauberfisch23 good one :D .. new_learner : show ur code please !
183: [06:42:28] <new_learner> http://sspaste.com/paste/show/52a6b578a6acc
184: [06:43:33] <Zauberfisch23> ok, its a page, nothing intresting to see
185: [06:43:39] <Zauberfisch23> other possible sources of the isseu:
186: [06:43:50] <Zauberfisch23> - the page does not exist (not created in the CMS)
187: [06:44:02] <Zauberfisch23> - the url of the page is not what you think it is
188: [06:44:16] <Zauberfisch23> - you defined custom routes and broke everything else with that
189: [06:44:40] <Zauberfisch23> - maybe there is a problem in your Page_Controller
190: [06:46:34] <Zauberfisch23> - and in rare cases, it could also be a mod_rewrite problem, but I doubt thats the case here
191: [06:46:53] <new_learner> but other pages are working well with the same Page_controler..
192: [06:47:13] <Zauberfisch23> have you checked 1) and 2) ?
193: [06:47:50] <new_learner> ya i have already created page in the CMS...
194: [06:49:11] <Zauberfisch23> double check that the URL is correct
195: [06:50:24] <new_learner> how can i check the url...........
196: [06:50:53] <new_learner> checking url is first time for me.... would u help me...
197: [06:53:39] <Zauberfisch23> what I mean is log into the CMS, and see if the URL is really the one you think it is
198: [06:54:11] <new_learner> oh....you mean CMS url .....
199: [06:54:18] <new_learner> that one is ok....
200: [06:54:30] <new_learner> again checked just now...
201: [06:54:34] <Zauberfisch23> no, I mean that in the CMS you can see the URL of each page
202: [06:54:48] <Zauberfisch23> like there where you can edit the title, right below it displays the URL
203: [06:54:49] <new_learner> ya ....got it.....
204: [06:54:58] <Zauberfisch23> I want you to check if that URL
205: [06:55:06] <Zauberfisch23> just to make sure you are on the right page
206: [06:55:37] <new_learner> ya i remembered the process ..........it displayed wen we create new page of ant type.....
207: [06:56:01] * Guits quit (Ping timeout: 246 seconds)
208: [06:57:07] <new_learner> the url is ok...
209: [06:58:49] <Zauberfisch23> hmmm
210: [06:59:12] <Zauberfisch23> well, I guss we can't help much then, this is an issue that you need to debug
211: [06:59:39] <Zauberfisch23> there are some useful url parameters for debuging:
212: [06:59:48] <new_learner> its ohk.....thanx for ur help......
213: [06:59:54] <Zauberfisch23> ?http://doc.silverstripe.org/framework/en/reference/urlvariabletools
214: [07:00:05] <Zauberfisch23> ?debug_request=1
215: [07:00:07] <Zauberfisch23> is a good start
216: [07:00:19] <Zauberfisch23> or ?showqueries=1
217: [07:02:06] <new_learner> http://sspaste.com/paste/show/52a6b578a6acc
218: [07:02:48] <new_learner> is the line 32 ok regarding the syntax as per ss 3.1
219: [07:03:20] <Zauberfisch23> yes
220: [07:03:26] <Zauberfisch23> but are you sure that this is 3.1?
221: [07:03:33] <Zauberfisch23> because to me this looks like 3.0 code
222: [07:03:42] <Zauberfisch23> public static $db
223: [07:03:49] <Zauberfisch23> in 3.1 it is private static $db
224: [07:06:47] <new_learner> i will correct it....
225: [07:07:00] <Zauberfisch23> new_learner: but then you actually need to be on 3.1
226: [07:07:12] <Zauberfisch23> if you correct it and you are actually on 3.0, then you will get errors
227: [07:07:26] <Zauberfisch23> so if public static $db works without errors, then you probably are on 3.0
228: [07:07:56] <new_learner> but i installed 3.1 on november.....
229: [07:08:10] <Zauberfisch23> how did you install 3.1?
230: [07:09:00] <new_learner> my friend did it....
231: [07:10:01] <new_learner> downloaded the zip from ss website...
232: [07:10:22] <Zauberfisch23> well, doesn't really matter to your issue
233: [07:10:23] <new_learner> unzipped and copied it to www/
234: [07:10:57] <new_learner> then there was install procedure ....tutorial by ss
235: [07:12:42] <Zauberfisch23> hmmm, no idea
236: [07:13:16] <Zauberfisch23> maybe downloaded the 3.0 zip, or maybe that zip was a version between 3.0 and the time public statics where changed to private static
237: [07:13:19] <Zauberfisch23> well, anyway
238: [07:13:25] <Zauberfisch23> doesn't matter if its 3.0 or 3.1
239: [07:13:32] <Zauberfisch23> the pages work in both versions
240: [07:14:53] <new_learner> i will try to sort out the issue.....
241: [07:15:01] <new_learner> thanx for ur time n help....
242: [07:26:14] * lerni has joined #silverstripe
243: [07:30:31] * zippy__ has joined #silverstripe
244: [07:32:35] * new_learner quit (Ping timeout: 250 seconds)
245: [07:33:18] * openbees quit (Quit: Leaving)
246: [07:50:01] <Snowman23> Goddam it guzzle cuts off the error from solr
247: [07:54:54] * g4b0 has joined #silverstripe
248: [07:55:54] * willr quit (Read error: Connection reset by peer)
249: [07:56:23] * willr has joined #silverstripe
250: [08:00:05] * Azure quit (Quit: My MBP went to sleep.)
251: [08:04:55] * zippy__ quit (Quit: zippy__)
252: [08:06:04] * ARNHOE has joined #silverstripe
253: [08:11:05] * violetina has joined #silverstripe
254: [08:16:27] <g4b0> hi all
255: [08:18:33] <g4b0> Did anyone managed to get UploadField in widget? Issue: https://github.com/silverstripe/silverstripe-widgets/issues/20
256: [08:19:54] * joelpittet quit ()
257: [08:21:59] * webdave has joined #silverstripe
258: [08:25:15] <webdave> hey guys, I'm working on upgrading our company's silverstripe servers from 3.0.5 to 3.1.2 and I've run into a sticky situation. we have some legacy code that still hasn't been ported to silverstripe and as an interim solution our Page_Controller has a custom handleRequest method that intercepts 404s and checks with the old system, serving up the content from that if needed.
259: [08:25:45] <webdave> In 3.1.2 it continues to correctly serve up the content but preserves the 404 status code. It appears that Director
260: [08:26:00] <webdave> ;::handleRequest is setting the status code separately.
261: [08:26:29] <webdave> any way to override that Director call or force the status code so our band-aid can continue to work?
262: [08:27:07] * willr quit (Quit: willr)
263: [08:40:05] * Bollig|DesignCty quit (Ping timeout: 248 seconds)
264: [08:46:19] * webdave quit (Quit: Page closed)
265: [08:46:54] * new_learner has joined #silverstripe
266: [08:47:05] * lerni quit (Quit: lerni)
267: [08:59:12] * svandragt has joined #silverstripe
268: [09:02:49] * DigNZ has joined #silverstripe
269: [09:04:24] * willr has joined #silverstripe
270: [09:05:33] * kinglozzer has joined #silverstripe
271: [09:05:47] * guci0 has joined #silverstripe
272: [09:05:51] <guci0> Morning!
273: [09:07:51] * willr quit (Client Quit)
274: [09:14:29] * zippy__ has joined #silverstripe
275: [09:16:39] * g4b0 quit (Ping timeout: 272 seconds)
276: [09:18:40] * ARNHOE_ has joined #silverstripe
277: [09:21:47] * new_learner quit (Ping timeout: 250 seconds)
278: [09:22:08] * ARNHOE quit (Ping timeout: 240 seconds)
279: [09:25:49] * g4b0 has joined #silverstripe
280: [09:33:27] * DigNZ quit (Quit: DigNZ)
281: [09:39:01] <Marvanni2> hm, in 2.4 I could use MultipleOf in php... in 3.x is does not exist anymore?
282: [09:39:11] * dilshan has joined #silverstripe
283: [09:40:57] <dilshan> hello there
284: [09:41:01] <dilshan> http://www.sspaste.com/paste/show/52a6df391a2d7
285: [09:41:26] <dilshan> I'm trying to get all the validations errors using this function
286: [09:41:55] <dilshan> but i couldn't see anything
287: [09:42:07] <dilshan> help me!!!!
288: [09:43:08] <dilshan> I'm doing this because i want to display all the error messages in same place..
289: [09:43:40] <Marvanni2> probably beacse the form already cleared the messages
290: [09:44:13] <dilshan> but can see the error messages under the textboxes
291: [09:49:11] <Marvanni2> yeah, but Form clears the messages when they are shown
292: [09:49:19] <Marvanni2> check Form.php how its done
293: [09:53:12] <dilshan> i don't know much about ss...can u give me a solution to this ?
294: [10:02:05] * boytikz quit (Ping timeout: 250 seconds)
295: [10:06:24] * dilshan quit (Quit: Page closed)
296: [10:08:17] <kinglozzer> Hmm, as part of a build task we're running: php framework/cli-script.php dev/build flush=1. It's definitely performing the task, but it seems we still need to do it a second time for some reason. Any ideas why?
297: [10:13:49] * simon_w|air quit (Quit: This computer has gone to sleep)
298: [10:30:43] * chillu has joined #silverstripe
299: [10:56:03] * violetina quit (Remote host closed the connection)
300: [11:10:33] * guci0 quit (Ping timeout: 250 seconds)
301: [11:16:48] <g4b0> how can I handle $summary_fields through GridFieldAddNewMultiClass ?
302: [11:17:20] <g4b0> It seems not working...
303: [11:19:04] * new_learner has joined #silverstripe
304: [11:19:10] <new_learner> $query = DataObject::get("PublicarNoticias", null, "Created DESC", null, "20");
305: [11:19:25] <new_learner> last one in this is limit???
306: [11:35:05] * NobrainerWeb has joined #silverstripe
307: [11:35:28] <NobrainerWeb> Hi
308: [11:36:35] <NobrainerWeb> Anyone in here with a good understanding of composer, that can learn me how to do the basics? Would like a Skype session or so in English - willing to pay of course
309: [11:38:06] * dangerdan has joined #silverstripe
310: [11:38:42] * Bollig|DesignCty has joined #silverstripe
311: [11:51:30] <kinglozzer> If I make two requests for the same image, the ETag should be the same, right? Provided the image hasn't changed of course
312: [11:51:44] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
313: [11:52:09] * new_learner quit (Ping timeout: 250 seconds)
314: [11:52:19] <Marvanni2> What is the best way to add allowed_extensions for file upload in asset admin ?
315: [11:55:11] <dangerdan> is there a way of getting the name of a foreign key for a relationship, without having an instance of one of the objects in the relationship?
316: [11:56:14] <dangerdan> if i make a singleton of one of the objects, and there are no records, i get an unsavedrelationlist, which doesnt have a foreign key field
317: [11:56:58] <dangerdan> if there are records however it is fine, but for my use i want to be able to get the key regardless of if there are records are not, is this possible?
318: [11:57:33] <kinglozzer> dangerdan: $this->RelationName()->getForeignKey() should do it
319: [11:59:05] <dangerdan> but i want to do this external to the object instance
320: [12:01:08] <dangerdan> because its an unsavedrelationlist, i get "the method 'getforeignkey' does not exist on 'UnsavedRelationList'"
321: [12:08:02] <kinglozzer> dangerdan: Look into how getManyManyComponents() (if it's many_many) / getComponents() (if it's has_many) get them
322: [12:08:13] <kinglozzer> Sorry, both of those methods are on DataObject
323: [12:13:32] <dangerdan> the thing that i want to know, that i cant access, is what you would pass as $componentName for getComponents()
324: [12:13:49] <dangerdan> i might have to post my code to explain why...
325: [12:13:55] <dangerdan> cant really type it out
326: [12:27:29] * Colin[pi] quit (Ping timeout: 244 seconds)
327: [12:34:16] * svandragt quit (Ping timeout: 272 seconds)
328: [12:45:43] <Marvanni2> how hard can it be to allow a 40MB psd to upload in assetadmin??????
329: [12:47:24] <Zauberfisch23> :D
330: [12:48:00] <Zauberfisch23> Marvanni2: I take it you already did set the php upload size and post max size limit?
331: [12:48:13] <Marvanni2> of the charts
332: [12:48:27] <Marvanni2> the psd is not allowed
333: [12:48:44] <Marvanni2> I have a complete copy of assetadmin
334: [12:48:49] <Marvanni2> $uploadField->setAllowedExtensions(array_merge(MediaFile::$file_extensions, $uploadField->getAllowedExtensions()));
335: [12:49:05] <Zauberfisch23> is the uploadfield saying that the file is to big or is it failing during upload?
336: [12:49:09] <Marvanni2> where MediaFile::$file_extension has the psd to it
337: [12:49:24] <Marvanni2> and I added psd to the .htaccess file in assets
338: [12:49:39] <Marvanni2> "Validation error writing a File object: Extension is not allowed
339: [12:49:40] <Zauberfisch23> Marvanni2: you don't need to extend AssetAdmin for that, you should be able to use the config system to add psd to File::$allowed_extensions
340: [12:49:57] <Marvanni2> Yeah I know, but I need more tweaks then that
341: [12:51:20] <Marvanni2> how?
342: [12:51:40] <Zauberfisch23> don't have it in mind, would need to jump in and debug
343: [12:53:03] <Zauberfisch23> maybe your extension contains a . already?
344: [12:53:17] <Zauberfisch23> like array('.psd', '.random')
345: [12:53:31] <Marvanni2> Config::inst()->update('File', 'allowed_extensions', array_merge(MediaFile::$file_extensions, Config::inst()->get('File', 'allowed_extensions')));
346: [12:53:31] <Zauberfisch23> but it should be array('psd', 'zauberfisch', 'is', 'awesome')
347: [12:53:42] <Marvanni2> this works, but feels stupid...
348: [12:55:34] <Marvanni2> hm
349: [12:55:39] <Marvanni2> this does it as well
350: [12:55:39] <Marvanni2> Config::inst()->update('File', 'allowed_extensions', MediaFile::$file_extensions);
351: [12:55:51] <Marvanni2> no need to get the present settings first
352: [13:05:49] * dangerdan quit (Ping timeout: 250 seconds)
353: [13:14:08] * UndefinedOffset has joined #silverstripe
354: [13:18:47] * Sj0hn has joined #silverstripe
355: [13:24:00] * svandragt has joined #silverstripe
356: [13:35:39] * Bollig|DesignCty has joined #silverstripe
357: [13:39:29] <svandragt> just wanted to praise the genius that decided on the days_between date method :)
358: [13:39:56] * Bollig|DesignCty quit (Ping timeout: 240 seconds)
359: [13:55:25] <Zauberfisch23> svandragt: the idea is good, but the whole date class sucks
360: [13:55:59] <Zauberfisch23> the methods are not well thought through
361: [14:00:32] * chillu quit (Quit: chillu)
362: [14:07:36] * CodeTrap quit (Ping timeout: 246 seconds)
363: [14:08:46] * CodeTrap has joined #silverstripe
364: [14:12:06] * chillu has joined #silverstripe
365: [14:21:53] <svandragt> Zauberfisch23: true also
366: [14:25:51] <NobrainerWeb> Hmm is it not possible to have subfolders in the include folder of a theme? This gives me nothing: <% include "navigation/Topnav-responsive" %>
367: [14:37:29] <kinglozzer> NobrainerWeb: Try just <% include Topnav-responsive %>
368: [14:38:19] <NobrainerWeb> kinglozzer: i just tested various stuff, and the - is a problem and it's also not possible to include from a subdir
369: [14:38:46] <NobrainerWeb> <% include Topnav_responsive %> will work, but <% include Topnav-responsive %> will not
370: [14:39:22] <NobrainerWeb> Would have been nice to be able to group templates in subfolders
371: [14:39:44] <kinglozzer> NobrainerWeb: <% include Topnav_responsive %> doesn't work if it's in a subfolder?
372: [14:40:05] <NobrainerWeb> ohh shit, i did not think about that - will test
373: [14:40:18] <kinglozzer> It should work
374: [14:41:10] <NobrainerWeb> That works yes :-) thank you
375: [15:01:04] * violetina has joined #silverstripe
376: [15:06:09] * catcher has joined #silverstripe
377: [15:08:00] * zippy__ quit (Quit: zippy__)
378: [15:14:31] * jcwacky has joined #silverstripe
379: [15:15:11] <jcwacky> Is there any module that can provide the facility of User Defined Forms, but with the ability to split a form into multiple steps/pages?
380: [15:17:37] * dangerdan has joined #silverstripe
381: [15:19:45] <Zauberfisch23> jcwacky: not that I am aware of
382: [15:19:57] <ARNHOE_> multiform but don't think that does mailing
383: [15:19:58] <dangerdan> im trying to make a dataobject that keeps track of various increment counters, I thought this would be simple enough to do but for some reason the ORM makes the record in the DB, but doesnt actually save any of the data -> http://pastebin.com/5Bu4ntZe
384: [15:20:10] <dangerdan> when i write i just get NULL and 0 for name & id
385: [15:20:16] <dangerdan> but a new record
386: [15:22:41] <jcwacky> ARNHOE_: Does multiform allow the creation of forms in the CMS?
387: [15:22:45] <ARNHOE_> no
388: [15:31:00] <catcher> dangerdan, have you run a /dev/build since creating the class?
389: [15:31:40] * NobrainerWeb quit (Quit: NobrainerWeb)
390: [15:32:31] <dangerdan> yes
391: [15:32:35] * svandragt quit (Ping timeout: 272 seconds)
392: [15:32:47] <dangerdan> db table is there with correct schema
393: [15:32:58] * ARNHOE_ quit ()
394: [15:34:43] <catcher> dangerdan, try a write after creation, before writing properties - http://pastebin.com/ncu1yT4p
395: [15:36:31] <dangerdan> I have tried that too, still no luck...
396: [15:37:02] <dangerdan> i have manually put in a 'name' in php my admin,l and with the get_one, it retrieves the object correctly, but still i cannot update then write
397: [15:39:21] <kinglozzer> dangerdan: How about if you pass in the info to the constructor?
398: [15:39:36] <kinglozzer> $obj = new MyObject(array('Name' => $name, 'Inc' => 20));
399: [15:39:50] * Sj0hn quit (Ping timeout: 272 seconds)
400: [15:40:21] <dangerdan> i know what it is
401: [15:40:26] <catcher> dangerdan, is it possible you're passing the same name?
402: [15:40:27] <dangerdan> foolish
403: [15:40:36] <dangerdan> trying to do this in cli
404: [15:40:48] <kinglozzer> Ah
405: [15:40:58] <dangerdan> thanks anyways guys
406: [15:41:17] <catcher> can't do ORM writes from CLI?
407: [15:41:26] <kinglozzer> The damn forum spammers are back
408: [15:42:07] <dangerdan> i would have thought u could? but it looks like i cant, possibly a permissions thing? i dont need to do this update in cli so it doesnt matter
409: [15:42:12] <kinglozzer> You can
410: [15:42:25] <dangerdan> i was just testing the class in cli
411: [15:42:30] <kinglozzer> It might be a $_FILE_TO_URL_MAPPING thing
412: [15:42:48] <kinglozzer> Is it writing to the wrong database or something?
413: [15:43:10] <dangerdan> no its writing to the right db, right table, just the object properties arent saving
414: [15:43:26] <dangerdan> so name and inc are always null & 20
415: [15:43:47] <kinglozzer> Have you flushed on the command line? Shouldn't matter, but worth a shot
416: [15:45:10] <dangerdan> i get "Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set. You probably want to define an entry in $_FILE_TO_URL_MAPPING"
417: [15:45:36] <dangerdan> there is an entry for $_FILE_TO_URL_MAPPING but its wrong i think
418: [15:54:14] <catcher> dangerdan, is it possible you're giving them all the same name, and you keep viewing the very first entry which was missing data?
419: [15:54:40] <catcher> dangerdan, it'd be good to look at the full contents of that DB table
420: [15:55:10] <dangerdan> no its not that
421: [15:55:23] <dangerdan> the table is full on NULL's
422: [15:55:26] <dangerdan> *of
423: [15:55:51] * jcwacky quit (Quit: jcwacky)
424: [15:55:58] <dangerdan> and keeps adding NULLS
425: [15:56:39] <catcher> Anyone here well-versed w/ partial caching? My controller action isn't bypassed when the cache key matches, shouldn't it be?
426: [15:57:44] <catcher> dangerdan, probably best to get the URL_MAPPING correct, then /dev/build from CLI and make sure all is well.
427: [16:06:41] * Guits has joined #silverstripe
428: [16:08:16] <Guits> I want to use the FB-SDK with facebook and cant get it to work
429: [16:08:50] <Guits> tried https://github.com/tractorcow/silverstripe-facebook-sdk with no luck
430: [16:11:32] <Guits> anyone that could point me in the right direction
431: [16:11:36] <Guits> ?
432: [16:19:14] <kinglozzer> catcher: It should be bypassed, yeah
433: [16:19:57] * dangerdan quit (Ping timeout: 250 seconds)
434: [16:20:35] <catcher> kinglozzer, it's working elsewhere, with regular data getters, but not the actual controller action.
435: [16:21:01] <catcher> My action forms a big ArrayList for the template, and all of those getters are still running.
436: [16:21:38] <kinglozzer> catcher: How about if you remove the cache key?
437: [16:22:03] <kinglozzer> <% cached 1 %> $MyAction <% end_cached %> - then it should only call $MyAction the first time, I think
438: [16:22:06] <catcher> kinglozzer, it forms the cache entry properly, but it still runs through all the calculations
439: [16:22:14] <kinglozzer> I'm pretty sure that's how it's supposed to work :P
440: [16:22:29] <kinglozzer> Hmm
441: [16:22:39] <catcher> kinglozzer, but the template isn't calling a function, it's outputting pre-formed data from an action that's returned with Customise()
442: [16:24:34] <catcher> maybe I need to split the data retrievers into a separate function and let the template call them.
443: [16:28:49] * chillu quit (Quit: chillu)
444: [16:30:12] * g4b0 quit (Quit: Sto andando via)
445: [16:40:06] * chillu has joined #silverstripe
446: [16:41:46] * chillu23 has joined #silverstripe
447: [16:41:46] * chillu23 quit (Changing host)
448: [16:41:46] * chillu23 has joined #silverstripe
449: [16:41:46] * chillu quit (Read error: Connection reset by peer)
450: [16:41:47] * chillu23 is now known as chillu
451: [16:45:06] * Azure has joined #silverstripe
452: [16:47:27] * MrGuits has joined #silverstripe
453: [16:50:46] * Guits quit (Ping timeout: 272 seconds)
454: [16:53:30] * MrGuits quit (Read error: Connection reset by peer)
455: [16:55:27] * Guits has joined #silverstripe
456: [17:01:55] * Guits quit (Ping timeout: 252 seconds)
457: [17:18:34] * kinglozzer quit ()
458: [17:21:26] * svandragt has joined #silverstripe
459: [17:56:21] * svandragt quit (Ping timeout: 272 seconds)
460: [17:59:23] <UndefinedOffset> anyone manage to get htmleditorfield working on the frontend?
461: [17:59:28] <UndefinedOffset> (in 3.1)
462: [18:21:51] <FrozenFire> Doesn't seem wise
463: [18:26:30] <UndefinedOffset> its in a logged in area where only members (who are given access by an admin) can use anyways, doesn't seem to work in the blog module eather
464: [18:30:27] * Alexwijn has joined #silverstripe
465: [18:31:21] <Alexwijn> Hi, does anyone know how the custom Authenticators work?
466: [18:31:42] <Alexwijn> For example, how does this affect the Users tab at /admin
467: [18:31:52] <Alexwijn> Will the use that is logged in be listed and locked?
468: [18:31:55] <Alexwijn> user*
469: [18:41:38] * SightUnseen has joined #silverstripe
470: [18:41:44] * SightUnseen has left #silverstripe
471: [18:52:15] * andylockran has joined #silverstripe
472: [18:52:20] <andylockran> hey all
473: [18:52:38] <andylockran> If i goto $silverstripe/Security it shows up the intro page - how to disable this?
474: [18:53:22] <andylockran> where $silverstripe is my silverstripe website domain
475: [18:59:08] * Liquide has joined #silverstripe
476: [19:03:51] * Alexwijn quit ()
477: [19:07:35] * ARNHOE has joined #silverstripe
478: [19:22:22] * DigNZ has joined #silverstripe
479: [19:32:03] * gelignite has joined #silverstripe
480: [19:40:47] * zippy__ has joined #silverstripe
481: [19:41:12] * Ryan-Toast has joined #silverstripe
482: [20:00:08] <pippy_> how do i install tidy
483: [20:00:15] <pippy_> is it the silverstripe extention?
484: [20:03:24] <simon_w> It's a PHP extension
485: [20:05:57] <simon_w> So, something like pecl install tidy or apt-get install php5-tidy
486: [20:08:51] <pippy_> ah cool
487: [20:09:15] <pippy_> thanks
488: [20:09:37] * UncleCheese has joined #silverstripe
489: [20:11:06] <zippy__> morning
490: [20:11:26] <zippy__> simon_w: ordered that ssd drive? :P
491: [20:12:06] <simon_w> zippy__, learnt some basic reading comprehension? :p
492: [20:12:19] <zippy__> every dayt
493: [20:12:38] <zippy__> still a long way to go it seems :)
494: [20:13:14] <Ryan-Toast> What is it with legacy code and naming inputs uppercase? <SELECT> just doen't look right.
495: [20:13:59] <simon_w> Key points: http://logs.simon.geek.nz/index.php?date=2013-12-10#log_1140001 and 425
496: [20:19:08] * SightUnseen has joined #silverstripe
497: [20:19:25] * SightUnseen has left #silverstripe
498: [20:23:21] <catcher> If I'm forming custom data in a controller action & returning w/ Customise, I should expect those calculations to run even if the data is partial-cached, right?
499: [20:23:32] * lerni has joined #silverstripe
500: [20:23:37] <simon_w> yes
501: [20:24:12] <catcher> so the only way to avoid those calculations is to put them in a separate function that the template calls, yes?
502: [20:24:21] * wracu has joined #silverstripe
503: [20:24:25] <simon_w> Or to cache them yourself
504: [20:25:13] <simon_w> http://api.silverstripe.org/3.1/class-SS_Cache.html
505: [20:26:01] <catcher> aha.. does that mean my action will need to listen for ?flush, and then clear manually?
506: [20:28:05] * wracu quit (*.net *.split)
507: [20:28:49] * aragonne has joined #silverstripe
508: [20:29:21] <simon_w> partial caching doesn't listen for ?flush either
509: [20:30:04] <aragonne> hey guys, I have a method that is called twice on every request, but I'm only expecting it to be called once. Does SS have any way to output the stack trace so I can find out where the second call to this method is being made?
510: [20:30:55] <simon_w> SS_Backtrace::backtrace()
511: [20:31:20] <catcher> simon_w, good to know. ?flush seemed to be clearing a partial cache before, but must have been a coincidence. So it really comes down to just the key and/or time expiration?
512: [20:31:36] <simon_w> yes
513: [20:33:36] * chillu quit (Quit: chillu)
514: [20:37:37] * chillu has joined #silverstripe
515: [20:44:10] * CodeTrap quit (Quit: CodeTrap)
516: [20:47:27] * ARNHOE quit ()
517: [20:51:21] * simon_w quit (Quit: This computer has gone to sleep)
518: [20:51:35] * simon_w has joined #silverstripe
519: [20:52:01] * simon_w quit (Client Quit)
520: [20:55:48] <aragonne> thanks simon_w
521: [20:57:07] <aragonne> that method is getting me closer but doesn't reveal the 2 calls … is there any way to get a even more granular report?
522: [21:01:47] * simon_w has joined #silverstripe
523: [21:04:46] <simon_w> Turns out killing mds is a bad idea
524: [21:05:19] * Guits has joined #silverstripe
525: [21:05:20] <catcher> I need automatic serialization to cache an array, arraylist, etc., right?
526: [21:05:34] <simon_w> Yes
527: [21:06:31] <catcher> I'm passing an assoc array to the 3rd param in factory(), it doesn't seem to like that.
528: [21:17:26] <catcher> should I serialize myself?
529: [21:21:49] * pippy_ is now known as pippy
530: [21:29:50] * svandragt has joined #silverstripe
531: [21:30:47] <simon_w> You could
532: [21:32:21] <catcher> simon_w, is that the recommended way? Or is there a proper way to provide the auto_serialize config that I'm missing?
533: [21:32:44] <zippy__> simon_w: killing mds?
534: [21:32:51] <zippy__> ah, a process
535: [21:33:03] <catcher> I tried it myself, the serialize was crazy slow, and the unserialize was slower than the DB retrieval :-P Granted, I'm just using the filesystem cache.
536: [21:34:53] * svandragt1 has joined #silverstripe
537: [21:36:09] * svandragt quit (Read error: Connection reset by peer)
538: [21:41:06] * svandragt1 quit (Ping timeout: 250 seconds)
539: [21:41:20] * Liquide quit ()
540: [21:47:36] * Colin[pi] has joined #silverstripe
541: [21:56:19] <Colin[pi]> hai everybody
542: [21:56:50] <simon_w> Morning Colin[pi]
543: [22:02:01] * UndefinedOffset quit (Quit: Leaving.)
544: [22:02:22] * lerni quit (Ping timeout: 272 seconds)
545: [22:04:03] * wracu has joined #silverstripe
546: [22:04:03] <simon_w> zippy__, metadata service
547: [22:05:02] <zippy__> Colin[pi]: hi
548: [22:08:44] * gelignite quit (Quit: http://bit.ly/nkczDT)
549: [22:13:34] * lerni has joined #silverstripe
550: [22:31:25] * nickmolhoek has joined #silverstripe
551: [22:34:44] * Guits quit (Read error: Connection reset by peer)
552: [22:35:00] * Guits has joined #silverstripe
553: [22:37:21] * aragonne quit (Quit: aragonne)
554: [22:57:56] * catcher quit (Quit: Leaving)
555: [22:58:59] * kerosene has joined #silverstripe
556: [23:33:03] * Bollig|DesignCty has joined #silverstripe
557: [23:35:45] * Colin[pi] quit (Ping timeout: 246 seconds)
558: [23:54:25] * zippy__ quit (Ping timeout: 252 seconds)
559: [23:54:45] * lerni quit (Quit: lerni)
560: [23:55:06] * travis-ci has joined #silverstripe
561: [23:55:06] <travis-ci> [travis-ci] chillu/silverstripe-framework#127 (pulls/validate-write-message - be5484b : Ingo Schommer): The build passed.
562: [23:55:06] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/20e082d00e63^...be5484b1d247
563: [23:55:07] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/15256842
564: [23:55:07] * travis-ci has left #silverstripe
565: [23:57:43] * kerosene quit (Ping timeout: 252 seconds)
566: [23:59:00] * kerosene has joined #silverstripe

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