#silverstripe IRC Log

IRC log for 1 June 2013

All timestamps are in UTC.

1: [00:00:05] * travis-ci has joined #silverstripe
2: [00:00:05] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#201 (3.1 - 1cebfc5 : Sean Harvey): The build passed.
3: [00:00:05] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/f5b6c552454e...1cebfc5d51a6
4: [00:00:05] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7680748
5: [00:00:05] * travis-ci has left #silverstripe
6: [00:15:41] * willr_ has joined #silverstripe
7: [00:15:41] * willr_ quit (Changing host)
8: [00:15:41] * willr_ has joined #silverstripe
9: [00:15:42] * Kolin quit (Ping timeout: 252 seconds)
10: [00:17:30] * Kolin has joined #silverstripe
11: [00:41:31] * slith has joined #silverstripe
12: [00:41:39] * slith quit (Client Quit)
13: [01:15:33] * priithansen quit (Quit: priithansen)
14: [01:44:21] * guzzlefry has left #silverstripe
15: [01:48:05] * Guest23775 has joined #silverstripe
16: [02:26:30] * willr_ quit (Quit: willr_)
17: [02:35:22] * lastprophet has joined #silverstripe
18: [02:35:29] <lastprophet> hi
19: [02:37:28] <lastprophet> hi
20: [02:39:54] * lastprophet quit (Client Quit)
21: [02:41:36] * FrozenFire quit (Ping timeout: 240 seconds)
22: [02:46:48] <Nightjar> hi
23: [02:46:49] <Nightjar> hi
24: [02:46:53] * Nightjar quits
25: [02:49:59] * FrozenFire has joined #silverstripe
26: [02:56:28] * MrJeremy has joined #silverstripe
27: [02:59:53] * robert_ has joined #silverstripe
28: [02:59:55] * robert_ quit (Changing host)
29: [02:59:55] * robert_ has joined #silverstripe
30: [03:00:37] * SightUnseen has joined #silverstripe
31: [03:01:19] * SightUnseen has left #silverstripe
32: [03:09:01] * cloph_away1 has joined #silverstripe
33: [03:09:23] * cloph_away quit (Ping timeout: 256 seconds)
34: [03:58:35] * lenix- has joined #silverstripe
35: [04:00:02] * ugly_duck quit (Ping timeout: 260 seconds)
36: [04:00:56] * onre_ quit (Ping timeout: 246 seconds)
37: [04:01:30] * onre has joined #silverstripe
38: [04:01:54] * onre is now known as Guest26797
39: [04:07:10] * lenix quit (Ping timeout: 240 seconds)
40: [04:07:11] * irogue quit (Ping timeout: 276 seconds)
41: [04:07:29] * irogue has joined #silverstripe
42: [04:07:53] * Liquide quit (Ping timeout: 276 seconds)
43: [04:12:09] * Liquide has joined #silverstripe
44: [04:13:03] * DigNZ has joined #silverstripe
45: [04:13:03] * DigNZ quit (Client Quit)
46: [05:42:29] * alexis has joined #silverstripe
47: [05:42:53] * alexis is now known as Guest36679
48: [06:29:30] * pippy_ is now known as pippy
49: [07:30:57] * Guest23775 quit (Remote host closed the connection)
50: [07:41:03] * Guest36679 quit (Read error: Connection reset by peer)
51: [07:56:05] * Motoservo quit (Quit: Motoservo)
52: [08:13:21] * Guest26797 quit (Changing host)
53: [08:13:22] * Guest26797 has joined #silverstripe
54: [08:13:23] * Guest26797 is now known as onre
55: [08:15:05] * nikrolls has joined #silverstripe
56: [08:17:51] * chillu has joined #silverstripe
57: [08:20:03] * Motoservo has joined #silverstripe
58: [08:39:35] * SightUnseen has joined #silverstripe
59: [08:41:51] * SightUnseen has left #silverstripe
60: [08:51:37] * smaranika has joined #silverstripe
61: [08:51:52] <smaranika> hi all need help for slideshow
62: [08:51:57] <smaranika> in silverstripe
63: [08:51:59] <Nightjar> ok
64: [08:52:36] <smaranika> need to add caption for the photos
65: [08:52:46] <smaranika> I have used uploadify module
66: [08:52:54] <Nightjar> how are the relations set up?
67: [08:52:56] <Nightjar> oh yeah
68: [08:53:05] <Nightjar> so you're using silverstripe 2.4?
69: [08:53:59] <smaranika> yes
70: [08:54:09] <smaranika> page->file
71: [08:54:17] <smaranika> oopps sorry
72: [08:55:17] <Nightjar> http://deadlytechnology.com/silverstripe/bare-bones-silverstripe-image-gallery-module/
73: [08:55:34] <Nightjar> oh
74: [08:55:35] <Nightjar> http://deadlytechnology.com/silverstripe/silverstripe-image-gallery/
75: [08:55:36] <Nightjar> rather
76: [08:56:11] <Nightjar> use uploadify instead of swfupload though
77: [08:56:13] <smaranika> ok
78: [08:56:17] <Nightjar> the tutorial is really old
79: [08:56:56] <smaranika> Ok trying
80: [09:24:27] * wmk has joined #silverstripe
81: [09:26:29] <wmk> hi all
82: [09:35:44] <Nightjar> hi
83: [09:38:13] <smaranika> Please help me
84: [09:38:19] <smaranika> I am trying http://stackoverflow.com/questions/14432739/silverstripe-uploadify-add-fields
85: [09:38:30] <smaranika> but the 2.4 version gives an error
86: [09:38:49] <Nightjar> there is no not 2.4 version
87: [09:38:55] <smaranika> FileDataObjectManager::__construct():Could not determine file relationshipHomePageSlideImage
88: [09:39:20] <smaranika> it is there below
89: [09:40:14] <smaranika> This is for Silverstripe 2.4 using dataobjectmanager and uploadify modules: HomePageSlide
90: [09:42:47] <smaranika> Please help me
91: [09:46:46] <Nightjar> smaranika: you didn't follow the tutorial properly.
92: [09:48:36] <Nightjar> It should work fine if your ImageResource object has_one to page and have a simpledropdownfield in it's getCMSFields.
93: [09:54:06] * chillu23 has joined #silverstripe
94: [09:54:06] * chillu23 quit (Changing host)
95: [09:54:06] * chillu23 has joined #silverstripe
96: [09:55:23] * SightUnseen1 has joined #silverstripe
97: [09:55:32] * SightUnseen1 has left #silverstripe
98: [09:56:03] * nikrolls quit (Ping timeout: 276 seconds)
99: [09:56:03] * chillu quit (Ping timeout: 276 seconds)
100: [09:56:04] * chillu23 is now known as chillu
101: [09:56:53] * ooystein_ quit (Ping timeout: 276 seconds)
102: [09:57:09] * ooystein has joined #silverstripe
103: [10:10:58] * smaranika quit (Ping timeout: 250 seconds)
104: [10:14:41] * nikrolls has joined #silverstripe
105: [10:19:22] * MrJeremy quit (Remote host closed the connection)
106: [10:26:00] * nikrolls quit (Ping timeout: 256 seconds)
107: [10:26:34] * priithansen has joined #silverstripe
108: [10:33:29] * nikrolls has joined #silverstripe
109: [10:39:09] * priithansen quit (Quit: priithansen)
110: [10:50:08] * zfmf1 has joined #silverstripe
111: [10:50:41] * willmorgan has joined #silverstripe
112: [10:56:47] * ugly_duck has joined #silverstripe
113: [10:56:47] * ugly_duck quit (Changing host)
114: [10:56:47] * ugly_duck has joined #silverstripe
115: [11:25:36] * zfmf1 quit (Ping timeout: 252 seconds)
116: [11:28:52] * pex has joined #silverstripe
117: [11:37:56] * smaranika has joined #silverstripe
118: [11:42:58] <smaranika> Hi having trouble with uploadify module on silverstripe 2.4
119: [12:00:38] * pex quit (Ping timeout: 256 seconds)
120: [12:03:05] * pex has joined #silverstripe
121: [12:03:22] <ss23> smaranika: Do you want to tell us about it? No one can help if you don't tell us anything...
122: [12:03:44] <smaranika> I want to attach multiple images from cms
123: [12:04:00] <smaranika> and also want to keep a title tag for the images
124: [12:04:34] <Nightjar> smaranika: follow the tutorial
125: [12:04:40] <smaranika> I followed
126: [12:05:01] <smaranika> it gone through the steps and atlast it got stuck on 'closing....'
127: [12:05:16] <smaranika> it does not come back to the page it started from
128: [12:14:16] * priithansen has joined #silverstripe
129: [12:19:12] * Nightjar has left #silverstripe
130: [12:32:33] <smaranika> Please help me
131: [12:32:42] <smaranika> Everyhting came
132: [12:33:00] <smaranika> then it does not come back to the original page after uploading
133: [12:56:04] * smaranika quit (Ping timeout: 250 seconds)
134: [13:49:46] * cwsoft has joined #silverstripe
135: [13:51:45] <cwsoft> Hi out there. I am having timeout/memory issues when trying to update database image fields using the image->write() method and would like to ask if there is somebody out here keen to have a look at the code I am using?
136: [14:06:07] <cwsoft> Anybody keen to have a look?
137: [14:08:58] <cwsoft> ok, will check at a later time, bye
138: [14:09:02] * cwsoft quit (Quit: Page closed)
139: [14:53:05] * cwsoft has joined #silverstripe
140: [14:53:36] * cwsoft quit (Client Quit)
141: [15:30:10] <wmk> anyone can help me with allowed_actions and a custom controller?
142: [15:31:56] <wmk> i just get a 404 (ss 3.1)
143: [16:15:53] * Emil_Blume has joined #silverstripe
144: [16:19:05] * wmk quit (Ping timeout: 256 seconds)
145: [16:19:09] * Werner_2_ has joined #silverstripe
146: [16:36:59] * Werner_2_ quit (Ping timeout: 240 seconds)
147: [16:42:22] * wmk has joined #silverstripe
148: [16:45:42] * gelignite has joined #silverstripe
149: [17:01:43] * Emil_Blume quit (Ping timeout: 260 seconds)
150: [17:09:39] * pex quit (Ping timeout: 260 seconds)
151: [17:14:39] * Emil_Blume has joined #silverstripe
152: [17:23:59] * pex has joined #silverstripe
153: [18:08:54] * chillu quit (Quit: chillu)
154: [18:22:32] * wmk quit (Quit: nice to meet you ;))
155: [18:27:34] * zfmf1 has joined #silverstripe
156: [18:29:40] * pex quit (Ping timeout: 252 seconds)
157: [19:33:34] * aragonne quit (Quit: aragonne)
158: [19:38:07] * robert_ has left #silverstripe
159: [19:47:07] * sam__ has joined #silverstripe
160: [19:47:28] <sam__> hi
161: [19:47:42] <sam__> i am facing problem with image gallery
162: [19:48:47] <sam__> after adding the image captions, it comes to a blank page just saying 'closing....'
163: [19:50:31] <sam__> problem lies in protected function closePopup() { Requirements::clear(); if($this->isNested) Requirements::customScript("parent.jQuery('#iframe_".$this->id()." a').click();"); else { Requirements::customScript(" var container = parent.jQuery('#".$this->id()."'); parent.jQuery('#facebox').fadeOut(function() { parent.jQuery('#facebox .content').removeClass().addClass('content'); parent.jQuery
164: [19:51:28] <sam__> parent.refresh(container, container.attr('href')); });"); } return $this->customise(array( 'String' => true, 'DetailForm' => 'Closing...' ))->renderWith($this->templatePopup); }
165: [20:22:52] * pex has joined #silverstripe
166: [20:26:18] * sam__ quit (Ping timeout: 250 seconds)
167: [21:18:48] * gelignite quit (Quit: http://bit.ly/nkczDT)
168: [21:43:10] * zfmf1 has left #silverstripe
169: [21:44:52] * Emil_Blume quit (Quit: Leaving.)
170: [21:55:27] * Nightjar has joined #silverstripe
171: [22:15:12] * SightUnseen has joined #silverstripe
172: [22:16:06] * SightUnseen quit (Client Quit)
173: [22:20:51] * folibis has joined #silverstripe
174: [22:22:10] * pex quit (Quit: pex)
175: [22:29:37] <folibis> hi all!!
176: [22:37:41] <Nightjar> hi
177: [22:42:52] <folibis> i want to add avatar image to user profile. looks very simple but already 2 days I cant get it work )
178: [22:44:16] <folibis> i created post on the forum - http://www.silverstripe.org/general-questions/show/23892 and I really dont understand what I do wrong
179: [22:47:28] <nikrolls> Hard to tell going by that. Devlin is correct regarding the implementation of an avatar
180: [22:48:03] <nikrolls> To debug page load errors in the CMS I usually open up the Chrome Inspector / Firebug and open the Network panel
181: [22:48:23] <nikrolls> Take a look at the failed request on those pages you mention don't load
182: [22:48:40] <nikrolls> And if you're in Dev mode as you say then you can see the error in the response
183: [22:55:00] <folibis> in fact I see nothing I mean no error
184: [22:55:16] <nikrolls> Have you checked the HTTP response in the network tab?
185: [22:55:36] <nikrolls> Because the CMS often doesn't show anything if there is an error, but you can see it in Firebug/Inspector
186: [22:56:11] <folibis> ok nice idea
187: [22:56:17] <nikrolls> :)
188: [22:56:24] * DigNZ has joined #silverstripe
189: [22:57:44] * DigNZ quit (Client Quit)
190: [22:59:23] <folibis> hmm
191: [23:01:33] <folibis> from the Page section I an clicking on the Files. nothing happened. in firebug i see GET /admin/assets and in response the is 1.5M of HTML code what looks like Files page
192: [23:02:01] <folibis> but i still see Pages ))
193: [23:02:07] <nikrolls> What do you get if you refresh the page after that error? Sometimes that coaxes the error out into the main page
194: [23:03:29] <folibis> if I refresh i see Files
195: [23:04:05] <nikrolls> Hmm. I would check the very end of that firebug response. It sounds like an issue I had once where the json was being cut off at the end by a few characters. You could copy the output and paste it into a parser such as json.parser.online.fr and see if there are any errors
196: [23:04:55] <nikrolls> So you could go back to pages, refresh, then click on Files, copy the page response from Firebug into a JSON parser, and see if there is an error
197: [23:07:41] <folibis> SyntaxError: JSON.parse: end of data after property value in object
198: [23:07:54] <nikrolls> Hmm
199: [23:08:06] <folibis> there is no "}" at end of string
200: [23:08:16] <nikrolls> Ah, sounds exactly like what I had
201: [23:08:53] <folibis> is admin pages loaded with Ajax?
202: [23:09:02] <nikrolls> Yep
203: [23:09:09] <nikrolls> The cause was that I had a PHP closing tag in one one my files, and some spaces after it
204: [23:09:34] <nikrolls> SS counts the length of the response, but it wasn't counting these spaces
205: [23:09:51] <nikrolls> And so the browser would stop loading a few chars short
206: [23:09:55] <folibis> it looks strange and I really dont understans how my extension can do it wrong
207: [23:10:22] <nikrolls> Not necessarily your extension, but somewhere I suspect your code is echoing a few chars where it shouldn't be
208: [23:10:44] <nikrolls> Check if you have any PHP files with closing ?> tags, and remove them (or ensure there are no blank lines after the tag)
209: [23:10:55] <nikrolls> That was the issue in my case anyway
210: [23:11:29] <folibis> wow!!
211: [23:12:09] <folibis> guess what? I removed ?> at end of php file with extension class and now it works )
212: [23:12:14] <nikrolls> :)
213: [23:12:23] <nikrolls> Awesome
214: [23:12:31] <nikrolls> Yeah, those can sometimes catch you out
215: [23:13:09] <folibis> oh thank you dude )
216: [23:13:17] <nikrolls> No worries!
217: [23:13:51] <nikrolls> I've seen a few people get caught on that over time
218: [23:17:46] <folibis> and now i am loss - is it bug or feature
219: [23:18:30] <nikrolls> I would say bug, because it should handle that. I think it's to do with starting output buffering too late
220: [23:18:54] <nikrolls> But to be honest I haven't really looked into it apart from figuring out how to avoid it
221: [23:22:04] <nikrolls> Is your avatar image working now that the page is loading?
222: [23:24:14] <folibis> yes now it works. have to try it in template
223: [23:24:22] <nikrolls> Great stuff :)
224: [23:29:03] * aragonne has joined #silverstripe
225: [23:38:06] <Nightjar> folibis: ah
226: [23:38:09] <Nightjar> never ever ?>
227: [23:38:59] <Nightjar> white space at the end instantly gets output to the browser, which is no good since the app has not finished processing
228: [23:39:47] <nikrolls> Yeah, there are arguments for and against using ?> at the end of the file. Some saying that it is semantic and you should just 'code better' (eg, make sure that there's nothing after it). But I'm fairly certain that the arguments against using ?> outweigh the others
229: [23:40:06] <nikrolls> And that's the way SS core is written, so.
230: [23:40:55] <folibis> i guess i had enter charactes at the end of file
231: [23:41:32] <nikrolls> Yeah, it's easy to do. I myself never use ?>, but I had set up a new IDE and it had it in the template, so I didn't notice
232: [23:41:50] <folibis> but it is good unix style to end your code with enter
233: [23:41:51] <Nightjar> nikrolls: people making such arguements are just sillg
234: [23:41:53] <Nightjar> silly*
235: [23:42:13] <Nightjar> php recognises EOF as a close off point in the absense of >?
236: [23:42:15] <Nightjar> err ?>
237: [23:42:20] <nikrolls> I agree. And I think we're with the majority :)
238: [23:42:30] <willmorgan> leaving ?> in there leaves you vulnerable to random newlines
239: [23:42:34] <Nightjar> there is no benefit to ?> if there's nothing but PHP in the file.
240: [23:42:38] <nikrolls> But some people get a bit OCD :)
241: [23:42:53] <Nightjar> some people just don't understand how writing code works.
242: [23:42:57] <nikrolls> Haha
243: [23:43:06] <folibis> )
244: [23:43:08] <Nightjar> if you're coming from wordpress then yeah.
245: [23:43:27] <nikrolls> Zing
246: [23:43:43] <Nightjar> folibis: ))
247: [23:43:45] <folibis> i came from modx )
248: [23:44:05] <Nightjar> folibis: I'm sorry you had to endure through that. But you've found SilverStripe now ))
249: [23:44:23] <folibis> i found it very very nice
250: [23:44:28] <Nightjar> )
251: [23:44:31] <Nightjar> this is good
252: [23:45:11] <Nightjar> it's too logical for some people coming from other systems, and they get angry then run away.
253: [23:45:27] <nikrolls> I built a few sites in ModX. I was ... interesting.
254: [23:45:37] <nikrolls> I didn't know much better at the time
255: [23:45:44] <Nightjar> PHP in yo database! YAAY
256: [23:45:52] <nikrolls> haha
257: [23:45:53] <Nightjar> eval() ALL THE THINGS!!!111
258: [23:46:10] * MrJeremy has joined #silverstripe
259: [23:46:24] <Nightjar> hey guys, we updated modx and now we call it revolution. BUT WE STILL EVAL EVERYTHING. We like to call this a framework.
260: [23:46:51] <nikrolls> Yeah, I always felt a bit dirty coding in the CMS
261: [23:46:55] * priithansen quit (Quit: priithansen)
262: [23:46:57] <Nightjar> urgh. such a bad system.
263: [23:47:46] <Nightjar> Active Records ftw.
264: [23:47:56] <Nightjar> SS>about most anything.
265: [23:48:02] <nikrolls> :)
266: [23:48:23] <nikrolls> I read a recent review to that effect
267: [23:48:27] <nikrolls> Found it yesterday
268: [23:48:28] <folibis> modx got so monstrous. and I hate this idea to store code in database
269: [23:48:49] <Nightjar> nikrolls: yesterday you say?
270: [23:48:52] <Nightjar> welcome :)
271: [23:49:11] <nikrolls> Yeah, it was actually a post from Feb
272: [23:49:15] <nikrolls> http://www.noupe.com/cms/when-to-build-a-site-with-silverstripe-cms-and-when-not-to-74945.html
273: [23:49:29] <nikrolls> The title sounds not so good, but the post is actually very complimentary
274: [23:50:06] <nikrolls> Pretty much saying: If you're looking for Wordpress, then use Wordpress, silly. But for everything else, there's SilverStripe.
275: [23:51:32] <nikrolls> Oh, not that I found SS yesterday ... been using it for the last year. Found the post yesterday :)
276: [23:54:28] * folibis quit (Quit: Page closed)
277: [23:56:12] * willmorgan quit (Quit: Leaving.)
278: [23:59:11] * ugly_duck quit (Ping timeout: 256 seconds)

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