#silverstripe IRC Log

IRC log for 6 February 2015

All timestamps are in UTC.

1: [00:00:19] * muskie9_afk is now known as muskie9
2: [00:17:48] * Cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
3: [00:20:38] * veb has joined #silverstripe
4: [01:04:18] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
5: [01:04:52] * Motoservo has joined #silverstripe
6: [01:13:21] <Stomach> anyone ever had 'Created' dates being before the previous ID ?
7: [01:15:36] <zippy> seems strange, is someone playing with the Created date?
8: [01:23:19] * Tanger has joined #silverstripe
9: [01:26:14] * muskie9 is now known as muskie9_afk
10: [01:26:36] * muskie9_afk is now known as muskie9
11: [01:28:38] * muskie9 is now known as muskie9_afk
12: [01:30:58] * phuongle2611 quit (Ping timeout: 246 seconds)
13: [01:31:32] <zippy> if the api method was called latestResults - what order do you think the results should be? newest first or oldest first
14: [01:32:13] * muskie9_afk is now known as muskie9
15: [01:36:09] <Stomach> newest first
16: [01:36:24] <zippy> damn straight
17: [01:38:53] * muskie9 is now known as muskie9_afk
18: [01:40:11] * muskie9_afk is now known as muskie9
19: [01:40:59] * zippy likes him some guzzle
20: [01:42:30] * muskie9 is now known as muskie9_afk
21: [01:46:05] * willr quit (Quit: willr)
22: [01:46:11] * muskie9_afk is now known as muskie9
23: [01:49:32] <muskie9> anyone have a vagrant box with postgresql rather than mysql... trying to write a test for the addressable module, or my module that uses it, but my tests fail in postgresql... wanna use local unit tests rather than try to adjust my composer.json in the module to pull from a fork
24: [01:49:49] * muskie9 is getting frustrated over float vs decimal
25: [01:51:33] * jenniferaslan quit (Quit: jenniferaslan has left the room)
26: [01:52:02] * Cheddam has joined #silverstripe
27: [01:54:11] <Stomach> nope sorry I dont
28: [01:55:31] <zippy> yea float is fickle eh!
29: [02:03:17] * Colin[pi] quit (Ping timeout: 252 seconds)
30: [02:04:51] * muskie9 is now known as muskie9_afk
31: [02:06:01] * muskie9_afk is now known as muskie9
32: [02:11:41] * muskie9 is now known as muskie9_afk
33: [02:17:23] * muskie9_afk is now known as muskie9
34: [02:19:53] * muskie9 is now known as muskie9_afk
35: [02:20:35] * muskie9_afk is now known as muskie9
36: [02:21:24] * willr has joined #silverstripe
37: [02:23:08] <Stomach> anyone know if you can merge directories with composer and not keep the requirement in your .json ?
38: [02:24:32] <Stomach> i guess i could write a script to perform the merge and just run that after composer require happens on that repo, then delete it from the requirements and composer update again
39: [02:24:35] <Stomach> hacky but it would work
40: [02:25:08] <Stomach> but that doesn't work because only scripts in root will run
41: [02:40:12] * muskie9 is now known as muskie9_afk
42: [02:44:16] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
43: [02:44:48] * veb quit (Quit: veb-irc: &)
44: [02:48:42] * muskie9_afk quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
45: [02:53:23] * Colin[pi] has joined #silverstripe
46: [02:55:04] * muskie9 has joined #silverstripe
47: [03:04:41] <muskie9> is it possible to write a unit test for something applied via a DataExtension
48: [03:05:17] <muskie9> how would you apply the DataExtension to an DataObject/Page for testing
49: [03:07:29] * muskie9 is now known as muskie9_afk
50: [03:07:31] * muskie9_afk is now known as muskie9
51: [03:22:34] * UndefinedOffset quit (Quit: Leaving.)
52: [03:22:59] <muskie9> looks like protected $requiredExtensions as an array()
53: [03:25:14] <willr> muskie9 Just apply the extension via Object::add_extension in that case then
54: [03:25:45] <muskie9> can you apply that in a unit test?
55: [03:26:41] <muskie9> I'm going to take a crack at a test for a dataextensiona
56: [03:27:09] <muskie9> if ur still around I'll post it, otherwise I'll be looking through SS modules to see how it's done
57: [03:27:44] <muskie9> got the static from Translatable: @jasonirish
58: [03:27:49] <muskie9> https://github.com/silverstripe/silverstripe-translatable/blob/master/tests/unit/TranslatableSiteConfigTest.php#L9
59: [03:44:40] * Stomach quit (Quit: zzz)
60: [04:10:09] * willr quit (Quit: willr)
61: [04:21:52] * veb has joined #silverstripe
62: [04:29:15] * wmk has joined #silverstripe
63: [04:29:41] <muskie9> \o/ unit test w/extension's working!
64: [04:30:35] <muskie9> now can I break them to prove they're working...
65: [04:35:06] <muskie9> wmk, that getAncestory() made my life soo much easier
66: [04:35:08] * cloph_away has joined #silverstripe
67: [04:35:21] * cloph quit (Ping timeout: 250 seconds)
68: [04:35:24] <wmk> muskie9, fine ;)
69: [04:35:44] <muskie9> ... hours laterz lol
70: [04:35:55] <muskie9> it's the little things
71: [04:36:17] * willr has joined #silverstripe
72: [04:36:42] <wmk> oh yes.
73: [04:37:02] <wmk> the "will get this working in some minutes cause ss is a so cool framework" tingies
74: [04:37:51] <muskie9> yup... getting that w/some unit tests right now... just starting diggin into tests and now everything I've written code wise to this point is sooooo bad
75: [04:38:01] <muskie9> write for testing
76: [04:43:31] <wmk> oh.
77: [04:43:31] <wmk> i guess testing is on the all-time-todo-list of most of us
78: [04:43:31] <wmk> did you read about software calesthetics?
79: [04:43:31] <wmk> how to write better code?
80: [04:43:51] <wmk> muskie9, http://de.slideshare.net/rdohms/your-code-sucks-lets-fix-it-15471808
81: [04:49:34] <muskie9> I've heard about this and things similar, tried to get better at it... but there's always room for improvement...
82: [04:52:44] <wmk> it is.
83: [04:52:56] <wmk> generally everywhere
84: [05:03:23] * greengla has joined #silverstripe
85: [05:04:15] * Colin[pi] quit (Ping timeout: 264 seconds)
86: [05:05:05] <greengla> G'day everyone. I am trying to install SilverStripe for the first time and am struggling. When I go to the http://mysite.com I am redirected to index.php....I can however go http://mysite.com/contact-us and the index.php is skipped all together (which is what I want)
87: [05:07:50] <muskie9> greengla how did you go about your install? composer/git/download from the .org site?
88: [05:11:07] <wmk> greengla, you need a page called "home" for homepage.
89: [05:11:50] <greengla> I copied the code the github installer and ran a dev build.....3 pages were created automatically
90: [05:12:13] <greengla> home, contact-us and about-us
91: [05:12:24] <greengla> accessing contact-us and about-us work fine
92: [05:13:05] <greengla> I put a die(); in index.php for testing......when hitting contact-us and about-us the die is not hit, but when I access /home...I hit the die();
93: [05:13:23] <wmk> do you have a .htaccess in your webroot?
94: [05:13:26] <muskie9> well htaccess is 1/2 working
95: [05:13:44] <wmk> seems it doesn't fetch the call to domain only
96: [05:13:59] <greengla> yup I copied the one from the installer on github
97: [05:14:18] <muskie9> greengla, what branch/tag
98: [05:14:40] <greengla> https://github.com/silverstripe/silverstripe-installer/blob/3.1/.htaccess
99: [05:14:46] <wmk> should do
100: [05:14:55] <wmk> muskie9, how about just deleting index.php ?
101: [05:14:57] <muskie9> ya, that should be good
102: [05:15:13] <muskie9> wmk, we've done that on multiple ocassions and it's worked
103: [05:15:31] <muskie9> greengla, zap index.php and see what happens...
104: [05:15:40] <wmk> we don't need it importantly, as all calls should go to framework/main.php instead
105: [05:15:53] <muskie9> ^
106: [05:16:40] <greengla> ha wow that did it
107: [05:17:01] <greengla> thanks guys
108: [05:17:06] <muskie9> greengla, just for schmitz and giggles, what version of php are you running
109: [05:17:12] <greengla> 5.5
110: [05:17:26] <muskie9> ya, we've seen it in 5.5+
111: [05:17:50] <muskie9> 5.4 has had no issues iirc
112: [05:18:08] <greengla> I have a pretty complicated virtual hosts setup also...
113: [05:18:46] * willr quit (Quit: willr)
114: [05:19:26] <muskie9> would be interesting to track down the culprit in index.php
115: [05:26:21] * Error404NotFound has joined #silverstripe
116: [05:32:52] * willr has joined #silverstripe
117: [05:36:26] * veb quit (Quit: veb-irc: &)
118: [05:36:40] * greengla quit (Quit: Page closed)
119: [05:37:12] * willr quit (Ping timeout: 246 seconds)
120: [05:42:25] * Liquide quit ()
121: [06:05:47] * Cheddam quit (Ping timeout: 250 seconds)
122: [06:09:06] * veb has joined #silverstripe
123: [06:25:20] * veb quit (Quit: veb-irc: &)
124: [06:32:41] * r_hector has joined #silverstripe
125: [06:35:22] * Stomach has joined #silverstripe
126: [06:37:39] * Sticks quit (Quit: Leaving)
127: [06:56:51] * veb has joined #silverstripe
128: [06:57:19] <muskie9> time to catch some zzzzzz's
129: [06:57:27] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
130: [07:14:12] * r_hector quit (Quit: Leaving.)
131: [07:16:02] * Stomach quit (Quit: zzz)
132: [07:21:23] * wmk quit (Ping timeout: 256 seconds)
133: [07:27:36] * elgabbu has joined #silverstripe
134: [07:30:15] * joelpittet quit (Remote host closed the connection)
135: [07:46:06] * Stomach has joined #silverstripe
136: [07:46:58] * r_hector has joined #silverstripe
137: [07:59:19] * mobiusnz has joined #silverstripe
138: [08:03:49] * wmk has joined #silverstripe
139: [08:07:12] * Stomach quit (Quit: zzz)
140: [08:17:01] * Robke has joined #silverstripe
141: [08:18:15] <Robke> hello, is there a way to let onclick on CMS HTML Editor?
142: [08:30:06] * Eliseth quit (Ping timeout: 246 seconds)
143: [08:30:35] <Robke> wmk: maybe you know? :)
144: [08:31:21] <wmk> Robke, watt?
145: [08:31:32] <wmk> onclick on html editor?
146: [08:31:43] <Robke> yep
147: [08:31:48] <wmk> well, it's a tinymce, you can configure it with php in ss
148: [08:31:56] <wmk> so - what do you want to achieve?
149: [08:32:33] <Robke> a need to vahe like this <a onclick="whatever()">Text goes here</> another line of text
150: [08:32:45] <wmk> inside $Content ?
151: [08:32:48] <Robke> yes
152: [08:32:51] <wmk> ok
153: [08:33:00] <wmk> best / robust way: shortcode
154: [08:33:05] <Robke> i have read that its changeable only in framework
155: [08:33:15] <wmk> is the onclick event always the same?
156: [08:33:25] <Robke> yes
157: [08:33:52] <wmk> you could do: <a class="crazyClick">Foo</a>
158: [08:33:58] <wmk> and in js
159: [08:34:27] <wmk> $('.crazyClick').on('click', function() { alert('clicked');}
160: [08:34:42] <wmk> unobstrusive javascript!
161: [08:34:54] <wmk> onclick inside a html tag is evil
162: [08:34:54] <Robke> thanks im going to check ;)
163: [08:34:59] <Robke> why?
164: [08:35:27] <wmk> well, it should degrade gracefully, and it's ugly
165: [08:35:43] <Robke> :))
166: [08:35:59] <Robke> if expierenced ppl says this, i need to listen and dont do it :D
167: [08:36:01] <wmk> http://en.wikipedia.org/wiki/Unobtrusive_JavaScript
168: [08:36:02] <Robke> thanks for the help
169: [08:36:23] <wmk> Robke, this way you never get the "my code is elegant" badge!
170: [08:36:51] <Robke> i cannot learn two things at the same time :) coding and clean coding :D
171: [08:37:06] <wmk> you can add the css class for your <a> to htmleditor
172: [08:37:17] <wmk> eeeh! learn clean coding first!
173: [08:37:57] <wmk> Robke, your todays good-night-lecture: http://de.slideshare.net/rdohms/your-code-sucks-lets-fix-it-15471808
174: [08:38:07] <wmk> *G*
175: [08:38:38] <Robke> itsfriday dude :D
176: [08:38:41] <Robke> 134 slides? :D
177: [08:38:45] <Robke> be more kind :D
178: [08:39:10] <wmk> ok, your weekend lecture
179: [08:40:05] <Robke> thanks :)
180: [08:40:14] <Robke> im reading a book of clean code :)
181: [08:40:27] <Robke> danish JS master wrote it :)
182: [08:41:14] <Robke> http://ecx.images-amazon.com/images/I/71AmbnhelIL.jpg
183: [08:41:16] <Robke> this one
184: [08:41:27] * Stomach has joined #silverstripe
185: [08:41:57] <wmk> Robke, http://stackoverflow.com/questions/2141209/silverstripe-adding-styles-to-styles-drop-down-menu-on-editor to add the css to editor dropdown
186: [08:42:21] <wmk> Robke, is this book for js or is it very general?
187: [08:42:24] <wmk> Stomach, hi
188: [08:42:35] <Stomach> hey wmk
189: [08:42:54] <Robke> well code examples are from JS but
190: [08:43:01] <Robke> it hellps to understand everything in general
191: [08:43:20] <wmk> Stomach, i guess we don't need the catalog extension for dataobjects if there is a way to pass them trough to modeladmin
192: [08:43:53] <Stomach> wmk - yeah I just haven't ever used it in 18 months of using the catalog manager
193: [08:43:59] <Stomach> was wondering if you had or not
194: [08:44:25] <wmk> Robke, i see this book is also translated to german (from 2014)
195: [08:44:56] <wmk> Stomach, well i did a Manager for Product (page), category and product type (both do)
196: [08:45:20] <Stomach> yeah i guess its of no consequence to keep it there
197: [08:45:49] <wmk> Robke, oh, there are two books. "Clean Code" and "Clean coder" ?
198: [08:48:43] <Robke> wait i have two books need to check
199: [08:50:22] <wmk> Stomach, i see in my code i didn't add DO extension to my dataobjects, so it's passed through anyway
200: [08:50:23] <Robke> i have Clean code and another one Async JS :)
201: [08:50:27] <Robke> so no Clean Coder
202: [08:50:39] <wmk> "Clean coder" is about soft skills
203: [08:50:47] <wmk> not to waste too much time on IRC etc
204: [08:50:52] <wmk> (little joke)
205: [08:50:59] <Stomach> ah okay - can you comment on GH how you used it?
206: [08:51:24] <wmk> normally
207: [08:51:39] <Robke> :))
208: [08:51:49] <wmk> Stomach, your CatalogAdmin checks if the managed DO has an extension, if not it just does parent::getEditForm
209: [08:52:00] <Stomach> ah yup
210: [08:52:18] <Robke> wmk: do you want this book, or you are good at code writting? :D
211: [08:53:02] <wmk> Robke, i think everyone here can still get better, even the ones i learn from
212: [08:53:31] <Robke> just write your email if you want :) ill send it to you
213: [08:53:35] <Robke> but its in english :)
214: [08:53:37] <Robke> nto german
215: [08:55:38] * kinglozzer has joined #silverstripe
216: [09:00:44] * mobiusnz quit (Quit: Leaving.)
217: [09:03:52] <wmk> Stomach, what about refactoring CatalogAdmin to use updateEditForm() instead?
218: [09:03:58] * Tanger quit (Quit: Tanger)
219: [09:04:08] <wmk> just put it as an extension to your own Admin
220: [09:04:08] <Stomach> hmmm
221: [09:04:15] <Stomach> could do that
222: [09:04:34] <wmk> this way one could use more extensions possibly
223: [09:04:46] <wmk> though with extensions you don't have the control over the order
224: [09:04:52] * robke_ has joined #silverstripe
225: [09:05:00] <wmk> maybe as an alternative, either subclass or use extension
226: [09:05:16] * Robke quit (Ping timeout: 246 seconds)
227: [09:10:52] * robke_ quit (Ping timeout: 246 seconds)
228: [09:22:46] * Robke has joined #silverstripe
229: [09:23:49] <Robke> hate my internet connection :)
230: [09:27:09] <wmk> Robke, same over here sometimes
231: [09:27:21] <wmk> by theory in about an hour it crashes
232: [09:36:45] * darjus01 has joined #silverstripe
233: [09:37:05] <darjus01> Hi all
234: [09:37:26] * hotshot has joined #silverstripe
235: [09:38:25] * travis-ci has joined #silverstripe
236: [09:38:26] <travis-ci> silverstripe/silverstripe-framework#3998 (3.1 - a7588b2 : Loz Calver): The build has errored.
237: [09:38:26] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/b94e33ccc4a0...a7588b2ac43a
238: [09:38:26] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/49716392
239: [09:38:26] * travis-ci has left #silverstripe
240: [09:41:43] <wmk> hey darjus01
241: [09:45:04] <Robke> wmk: is there any other way to implement font which is not google font without fon-face? :)
242: [09:45:08] <Robke> font-face
243: [09:45:38] <wmk> if you have the fonts as file you can put them on the website
244: [09:45:49] <wmk> if you have the rights to use them on a website
245: [09:46:04] <wmk> maybe you'll have to pay for it
246: [09:46:12] <Robke> i dont know this thing :D
247: [09:46:18] <Robke> designer gave it to me D:
248: [09:46:51] <wmk> if the designer says you can use it... not that your customer gets massive problems in future
249: [09:47:03] <Robke> oh well :D
250: [09:47:09] <Robke> i think its free
251: [09:47:50] <wmk> ok. i just mentioned it
252: [09:48:23] <darjus01> cufon
253: [09:49:47] * zippy has joined #silverstripe
254: [09:49:57] <darjus01> wmk: http://cufon.shoqolate.com/generate/ you inserting font files it gives you font js and in jQuery you write tags to change
255: [09:50:41] <Robke> go away from cufon :D
256: [09:50:45] <Robke> its nonsence
257: [09:50:45] <Robke> :D
258: [09:50:53] <darjus01> its generates canvas type things with fonts, where not many pages is ok I not suggesting for big site
259: [09:51:04] <zippy> people still use cufon?
260: [09:51:25] <darjus01> yes is we need russian abc
261: [09:51:37] <Robke> ;)
262: [09:51:54] <wmk> Robke, in the one project i used a freeware font i used scss /compass @include font-face() with path to all files
263: [09:52:13] <darjus01> then designer sits on steroids and gives font with no language
264: [09:55:02] * UncleCheese has joined #silverstripe
265: [09:56:01] <zippy> hi UncleCheese
266: [09:56:05] <UncleCheese> i
267: [09:56:06] <UncleCheese> hi
268: [09:56:08] * Stomach quit (Quit: zzz)
269: [09:56:16] <zippy> for something that seems easy, it feels hard
270: [09:56:25] <zippy> I have forked a repo on github
271: [09:56:38] <zippy> locally, I have done a git clone of my repo
272: [09:56:45] <wmk> re zippy, found some zzz?
273: [09:57:03] <zippy> this was 6 months ago, now I want to update my local copy to use all changes from upstream....
274: [09:57:12] <zippy> it's not a simple git rebase master is it
275: [09:57:14] <zippy> wmk: mm?
276: [09:57:37] <wmk> zippy, oh, my fault. was another one here
277: [09:58:28] * darjus01 quit (Ping timeout: 246 seconds)
278: [09:59:10] * hotshot quit (Ping timeout: 246 seconds)
279: [09:59:39] * slievr_ has joined #silverstripe
280: [10:01:27] <Robke> ok thanks for the tips ")
281: [10:23:39] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
282: [10:30:13] * Shrike_Finland has joined #silverstripe
283: [10:36:57] * Sj0hn has joined #silverstripe
284: [10:39:31] * cloph_away is now known as cloph
285: [10:40:35] * travis-ci has joined #silverstripe
286: [10:40:35] <travis-ci> dhensby/silverstripe-framework#81 (master - 7d6263c : Daniel Hensby): The build has errored.
287: [10:40:35] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/58cb0af7532f...7d6263c80fae
288: [10:40:35] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/49721586
289: [10:40:35] * travis-ci has left #silverstripe
290: [10:42:00] * ss31noob has joined #silverstripe
291: [10:42:24] <ss31noob> hi guys, does anyone tried to do the template way translation in a JS file?
292: [10:43:25] <wmk> ?
293: [10:43:37] <wmk> js has an own system of translation, not _t but something similar
294: [10:46:59] * mento has joined #silverstripe
295: [10:48:17] * travis-ci has joined #silverstripe
296: [10:48:17] <travis-ci> dhensby/silverstripe-framework#82 (3.1 - a7588b2 : Loz Calver): The build has errored.
297: [10:48:17] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/4e9f94f9fddf...a7588b2ac43a
298: [10:48:17] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/49721627
299: [10:48:17] * travis-ci has left #silverstripe
300: [10:52:26] <mento> How do i get the URL of the uploaded image in an image object in my CSV Export using the getExportFields() functions? http://pastebin.com/RnpGHGsR
301: [10:55:45] * benjhocking quit (Read error: Connection reset by peer)
302: [10:57:17] <zippy> MemoServ: ImageRelation.URL
303: [10:57:42] <zippy> so if you have a $has_one = array('ProfilePicture' => 'Image') then you'd use ProfilePicture.URL
304: [11:01:03] <mento> I thought .URL was just a thing in templates :)
305: [11:01:33] <wmk> mento, no, it's a value of the image object
306: [11:01:49] <wmk> whic is of course called in templates
307: [11:02:01] <mento> I see :)
308: [11:04:05] * travis-ci has joined #silverstripe
309: [11:04:05] <travis-ci> dhensby/silverstripe-framework#83 (pulls/fix-empty-composite-fields - a0f9535 : Daniel Hensby): The build has errored.
310: [11:04:05] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/commit/a0f9535dd42d
311: [11:04:05] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/49724845
312: [11:04:05] * travis-ci has left #silverstripe
313: [11:04:52] <mento> another question, i created a ModelAdmin with a DataObject named Site - Site contains link, title and screenshot. I want to put them into a JSON, but where do i place the function to create the JSON?
314: [11:05:10] <mento> Will that just be in Page.php - or should i put it inside my modeladmin?
315: [11:06:01] * travis-ci has joined #silverstripe
316: [11:06:01] <travis-ci> dhensby/silverstripe-framework#84 (pulls/fix-empty-composite-fields - d68435e : Daniel Hensby): The build has errored.
317: [11:06:01] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/a0f9535dd42d...d68435e97858
318: [11:06:01] <travis-ci> Build details : http://travis-ci.org/dhensby/silverstripe-framework/builds/49725198
319: [11:06:01] * travis-ci has left #silverstripe
320: [11:09:32] <zippy> mento: on the DataObject named site, have a function called toJson() and return it there...
321: [11:12:20] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
322: [11:17:22] <discorpia> Am I the only one for who the ss3 admin system hangs constantly? I.e. hangs as in ajax requests never being completed/load indicator constantly showing until I either click again or reload the entire page?
323: [11:17:42] <wmk> discorpia, sounds like you have an error in your php
324: [11:18:01] <wmk> check network console in your browser for response and your error logs on server
325: [11:18:39] <discorpia> wmk: Already done, no errors/error outputs, seems like the connection itself is stalling/lagging but I get it both on localhost and production environment
326: [11:18:39] <wmk> if SS e.g. cannot save a Dataobject, php sends an error back which crashes the ajax admin
327: [11:19:01] <wmk> discorpia, hmm, dunno. sounds weird
328: [11:19:27] <discorpia> Yeah, might be a non-issue once caching is added.
329: [11:19:40] <discorpia> Maybe it's the blog module that break/slows down things.
330: [11:20:22] <wmk> discorpia, are you in dev mode or live mode?
331: [11:20:29] <wmk> switch to dev mode to grab errors
332: [11:21:05] <mento> i got this json function now in my dataobject http://pastebin.com/Xqfq0yUL but what URL do i need to access the JSON from my AngularJS App :/
333: [11:21:29] <wmk> mento, you need a controller to access it from outside
334: [11:23:47] <mento> hmmm ofcourse, some sort of handler is needed
335: [11:24:44] <discorpia> It's running in dev mode, forced via _config.php, however I get an error in the console I haven't really noticed before, "Uncaught SecurityError"
336: [11:25:16] <discorpia> That seems like a browser extension problem though, but they are all deactivated
337: [11:26:00] <discorpia> Hmm, unfortunately Firefox constantly crashes/hangs on my macbook so I have no choice but to run Chrome, but maybe I should flush it to make sure there is no lingering stuff
338: [11:31:55] * Robke quit (Ping timeout: 246 seconds)
339: [11:35:23] <wmk> mento, did you read about api ?
340: [11:35:41] * travis-ci has joined #silverstripe
341: [11:35:42] <travis-ci> silverstripe/silverstripe-framework#4001 (3.1 - 7c9810b : Will Morgan): The build has errored.
342: [11:35:42] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/a7588b2ac43a...7c9810bf497e
343: [11:35:42] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/49726442
344: [11:35:42] * travis-ci has left #silverstripe
345: [11:35:44] <wmk> there is some built in functionality to grab dataobjects as json or xml
346: [11:36:53] <discorpia> wmk: Thanks for the feedback/mental checklist aid, definitely seems to be something lingering in chrome. Installed Opera now and clicked around without it occuring once, usually it happens every three-four clicks
347: [11:36:55] <wmk> mento, https://github.com/silverstripe/silverstripe-restfulserver
348: [11:37:27] <wmk> discorpia, if it's a chrome thingie it's maybe a bug (in chrome or silverstripe). dunno
349: [11:39:01] * veb quit (Quit: veb-irc: &)
350: [11:39:23] * veb has joined #silverstripe
351: [11:48:12] * lerni_ has joined #silverstripe
352: [11:52:03] * wmk quit (Ping timeout: 246 seconds)
353: [11:54:36] * veb quit (Quit: veb-irc: &)
354: [12:00:09] * madmatt quit (Ping timeout: 265 seconds)
355: [12:00:09] * FrozenFire quit (Ping timeout: 265 seconds)
356: [12:00:09] * ss-log_ quit (Ping timeout: 265 seconds)
357: [12:00:18] * ss-log_ has joined #silverstripe
358: [12:01:13] * madmatt has joined #silverstripe
359: [12:01:37] * madmatt is now known as Guest74302
360: [12:02:00] * FrozenFire has joined #silverstripe
361: [12:05:16] * Motoservo quit (Read error: Connection reset by peer)
362: [12:05:43] * Motoservo has joined #silverstripe
363: [12:10:53] * lerni_ quit (Remote host closed the connection)
364: [12:16:55] <mento> wm i will look into it, thanks!
365: [12:17:48] <Sj0hn> Hiya,
366: [12:19:05] <Sj0hn> Anyone experienced uploading an image and not generation resampled versions of it?
367: [12:19:10] * r_hector quit (*.net *.split)
368: [12:19:20] <Sj0hn> generating*
369: [12:20:52] * r_hector has joined #silverstripe
370: [12:25:35] <kinglozzer> Sj0hn: Check 'em error logs
371: [12:25:40] <kinglozzer> Probably permissions
372: [12:28:56] * lerni_ has joined #silverstripe
373: [12:43:16] <mento> Argh, i just dont understand how to get myself a JSON that returns all objects inside a certain DataObject
374: [13:07:42] * Liquide has joined #silverstripe
375: [13:22:10] * ss31noob quit (Ping timeout: 246 seconds)
376: [13:38:03] <pigeonfriend> anyone got any idea what entwine events are fired after a CMS page is loaed?
377: [13:38:51] <pigeonfriend> Basically, I need to know if a tab is shown ON LOAD ie, not by an onclick
378: [13:48:34] * wmk has joined #silverstripe
379: [13:52:55] * wmk quit (Ping timeout: 250 seconds)
380: [13:55:35] * muskie9 has joined #silverstripe
381: [14:01:13] * lerni_ quit (Remote host closed the connection)
382: [14:01:29] <kinglozzer> pigeonfriend: I'd just bind to something generic like .cms-edit-form and check .is(':visible')
383: [14:02:12] <pigeonfriend> kinglozzer but bind to what event?
384: [14:02:22] <kinglozzer> pigeonfriend: onmatch
385: [14:03:09] <pigeonfriend> I don't think that'll work... it doesn't for onmatch of cms-tabset
386: [14:04:50] <kinglozzer> pigeonfriend: $('.cms-tabset').entwine({ onmatch: function() { alert('hello') } }); doesn't work at all?
387: [14:05:02] <pigeonfriend> not on after a save
388: [14:05:40] <kinglozzer> Oh I see...
389: [14:05:56] <kinglozzer> onadd?
390: [14:07:27] * lerni_ has joined #silverstripe
391: [14:07:38] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
392: [14:13:49] * DimiStripe quit (Quit: DimiStripe)
393: [14:21:53] * r_hector quit (Quit: Leaving.)
394: [14:23:25] <kinglozzer> Stupid o'clock time: return $this->customise(array('MyObject' => $object))->render() doesn't pass $object to the template. But return $this->customise(array('MyObject' => $object))->renderWith(array('MyObjectPage', 'Page')); does
395: [14:23:33] <kinglozzer> It's using the correct templates both times
396: [14:23:42] <kinglozzer> :(
397: [14:25:45] <kinglozzer> Never mind: return $this->render(array('MyObject' => $object)); = winner
398: [14:50:01] * UndefinedOffset has joined #silverstripe
399: [14:52:06] * blueman has joined #silverstripe
400: [14:56:37] * noname___ has joined #silverstripe
401: [15:05:44] * UndefinedOffset quit (Quit: Leaving.)
402: [15:08:44] <BackEndCoder> noname___, talk in the channel
403: [15:08:46] <BackEndCoder> don't pm people
404: [15:10:00] <noname___> ohh i'm sorry
405: [15:16:12] <elgabbu> hi guys trying to install PHPunit to start learning how to write up some tests
406: [15:16:30] <elgabbu> i went to the project root
407: [15:16:33] <elgabbu> and ran this command
408: [15:16:34] <BackEndCoder> php unit doesn't help you learn to write tests
409: [15:16:36] <elgabbu> composer require --dev "phpunit/phpunit:*@stable"
410: [15:16:39] <BackEndCoder> it tests your tests
411: [15:17:05] <elgabbu> but i get an error: bash: composer: command not found
412: [15:17:25] <muskie9> elgabbu do you have composer installed globally
413: [15:17:35] <elgabbu> yeah learning is by reading the documenation on the SS site
414: [15:18:34] <elgabbu> yeah fair enough but i need PHP unit to write/run a test :P ... or so it says on the SS site
415: [15:19:13] <elgabbu> not sure muskie9 ... how can I check?
416: [15:19:25] <muskie9> type composer in terminal
417: [15:19:32] <muskie9> guessing you don't from your error message
418: [15:19:47] <elgabbu> bash: composer: command not found
419: [15:19:55] <elgabbu> yum install composer?
420: [15:20:32] <muskie9> what OS are you using
421: [15:21:39] <elgabbu> centos
422: [15:21:53] <kinglozzer> elgabbu: https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx
423: [15:22:38] <muskie9> ^
424: [15:24:15] <elgabbu> should i use the local installation in this case?
425: [15:25:20] <muskie9> I think global if you plan on using composer regularly... local will put the composer.phar file in your current dir iir
426: [15:27:49] * blueman quit (Ping timeout: 246 seconds)
427: [15:28:11] <elgabbu> ok its installed and now php unit is installting
428: [15:28:19] <elgabbu> thanks
429: [15:28:26] <muskie9> sure
430: [15:35:21] <elgabbu> so phpunit just finished the installation
431: [15:35:39] <elgabbu> and now when i try to browse my ss3.1 project
432: [15:35:45] <elgabbu> i have this exception
433: [15:36:00] <elgabbu> User Error] Uncaught ReflectionException: Class Cookie_Backend does not exist
434: [15:55:44] * joelpittet has joined #silverstripe
435: [15:57:10] * lerni_ quit ()
436: [16:20:55] * Sj0hn quit ()
437: [16:35:16] * CodeTrap has joined #silverstripe
438: [16:35:34] <noname___> Hello
439: [16:35:40] <noname___> I’m working on this website: http://beplanting.pixodemo.nl/producten/planten/
440: [16:35:46] <noname___> When you hover over the first image on the top left you see 2 buttons.
441: [16:35:55] <noname___> 1 for the lightbox image, and 1 button: informatie aanvragen.
442: [16:36:00] <noname___> When you click on the button informatie aanvragen you get a modal with a form. This is an contact form for more informatie about the product.
443: [16:36:04] <noname___> What is need is to send the product title with the form in a hidden field
444: [16:36:10] <noname___> I put this next line in my code but the I am getting the page title: http://pastie.org/9892508
445: [16:36:14] <noname___> What I need is the product title. And not the page title
446: [16:36:33] * mento quit (Quit: Page closed)
447: [16:37:20] <noname___> i need the image title
448: [16:38:18] * jenniferaslan has joined #silverstripe
449: [16:42:14] * MrGuits has joined #silverstripe
450: [16:42:53] * Guits quit (Ping timeout: 240 seconds)
451: [16:48:35] * cloph is now known as cloph_away
452: [16:55:21] * MrGuits quit (Read error: Connection reset by peer)
453: [16:55:37] * MrGuits has joined #silverstripe
454: [17:00:41] * kinglozzer quit ()
455: [17:07:03] * CodeTrap quit (Ping timeout: 250 seconds)
456: [17:12:27] * _hschillig has joined #silverstripe
457: [17:13:45] <_hschillig> I keep getting this error when submitting a form : Cannot call constructor in E:\WD SmartWare.swstor\HALEY-HP\Source\SCDL\scdl\framework\forms\RequiredFields.php on line 34 I'm not using the RequiredFields array when building my form. My form construction looks like this: http://pastebin.com/qLyh4GBk
458: [17:19:02] * FrozenFire quit (Ping timeout: 245 seconds)
459: [17:24:11] * FrozenFire has joined #silverstripe
460: [17:50:13] * Shrike_Finland quit (Quit: Leaving.)
461: [17:51:09] * Shrike_Finland has joined #silverstripe
462: [18:05:40] * noname___ quit (Ping timeout: 246 seconds)
463: [18:12:45] * SamSagaZ has joined #silverstripe
464: [18:12:52] * SamSagaZ has left #silverstripe
465: [18:21:06] * Shrike_Finland quit (Quit: Leaving.)
466: [18:22:10] * MrGuits quit (Ping timeout: 255 seconds)
467: [18:26:13] * Shrike_Finland has joined #silverstripe
468: [18:33:09] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
469: [18:54:57] * LEDfan has joined #silverstripe
470: [18:55:19] <LEDfan> What is the default RSS url for the blog extension? I can't find it.. Thanks!
471: [19:06:20] * gelignite has joined #silverstripe
472: [19:24:56] * Shrike_Finland quit (Quit: Leaving.)
473: [19:34:29] * Stomach has joined #silverstripe
474: [19:36:19] * DimiStripe has joined #silverstripe
475: [19:37:05] * babak has joined #silverstripe
476: [19:38:00] * CodeTrap has joined #silverstripe
477: [19:45:56] * muskie9 has joined #silverstripe
478: [19:47:44] * CodeTrap quit (Quit: CodeTrap)
479: [19:59:51] * DimiStripe quit (Quit: DimiStripe)
480: [20:08:18] <_hschillig> I keep getting this error when submitting a form : Cannot call constructor in E:\WD SmartWare.swstor\HALEY-HP\Source\SCDL\scdl\framework\forms\RequiredFields.php on line 34 I'm not using the RequiredFields array when building my form. My form construction looks like this: http://pastebin.com/qLyh4GBk
481: [20:08:31] <_hschillig> Even before I submit it too.. just the page that contains it
482: [20:10:01] <muskie9> _hschillig what does your controller look like
483: [20:16:12] * greenman___ has joined #silverstripe
484: [20:16:55] <greenman___> I
485: [20:17:29] <_hschillig> http://pastebin.com/4gkTCwHT
486: [20:17:35] <_hschillig> That's my controller that calls the form
487: [20:17:43] <_hschillig> The template has $UserReferenceForm in it
488: [20:17:56] <greenman___> I've got a question about using Versioned with DataObjects - is it possible to get a 'History' tab like you see with Pages?
489: [20:23:51] * joelpittet quit ()
490: [20:24:25] <muskie9> _hschillig, do you get the error if you comment out 29-34 in UserReferenceForm
491: [20:26:15] <muskie9> greenman__ you'd probably have to build one...
492: [20:26:24] <muskie9> greenman___ ^
493: [20:27:02] <muskie9> maybe dig through here a bit: https://github.com/silverstripe/silverstripe-cms/blob/3.1/code/controllers/CMSPageHistoryController.php
494: [20:29:10] <greenman___> thanks muskie9
495: [20:30:11] * mobiusnz has joined #silverstripe
496: [20:40:54] * LEDfan quit (Remote host closed the connection)
497: [20:45:30] * Azure quit (Read error: Connection reset by peer)
498: [20:47:31] * zippy has joined #silverstripe
499: [20:47:51] * Azure has joined #silverstripe
500: [20:47:57] * zippy quit (Remote host closed the connection)
501: [20:49:17] * Motoservo quit (Quit: Over & out.)
502: [20:54:22] * greenman___ quit (Ping timeout: 246 seconds)
503: [20:54:28] * veb has joined #silverstripe
504: [21:00:50] <_hschillig> muskie, yes I still get the error when I remove the template method in the Form class.
505: [21:01:27] * Stomach quit (Quit: zzz)
506: [21:08:08] * mobiusnz quit (Quit: Leaving.)
507: [21:09:08] * Azure quit (Ping timeout: 245 seconds)
508: [21:11:45] * masnun has joined #silverstripe
509: [21:16:22] * Stomach has joined #silverstripe
510: [21:35:14] * Azure has joined #silverstripe
511: [22:11:55] * Stomach quit (Quit: zzz)
512: [22:13:27] * Stomach has joined #silverstripe
513: [22:15:10] * masnun is now known as masnun|away
514: [22:15:10] * masnun|away quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
515: [22:29:20] * Stomach quit (Quit: zzz)
516: [22:32:34] * muskie9 is now known as muskie9_afk
517: [22:35:08] * muskie9_afk is now known as muskie9
518: [22:53:02] * muskie9 is now known as muskie9_afk
519: [22:53:35] * muskie9_afk is now known as muskie9
520: [22:59:36] * _hschillig has left #silverstripe
521: [23:09:02] * joelpittet has joined #silverstripe
522: [23:15:13] * benjhocking has joined #silverstripe
523: [23:46:02] * muskie9 is now known as muskie9_afk
524: [23:55:38] * UncleCheese has joined #silverstripe

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