#silverstripe IRC Log

IRC log for 21 June 2014

All timestamps are in UTC.

1: [00:09:40] * antmas quit (Ping timeout: 246 seconds)
2: [00:15:29] * Kingy[a] is now known as Kingy
3: [00:32:52] * spronk2 has joined #silverstripe
4: [00:51:33] * UncleCheese has joined #silverstripe
5: [01:13:39] * Colin[pi] has joined #silverstripe
6: [01:34:43] * spronk2 quit (Quit: spronk2)
7: [01:42:09] * Colin[pi] quit (Ping timeout: 255 seconds)
8: [01:56:25] * spronk2 has joined #silverstripe
9: [02:45:37] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10: [03:07:03] * willr quit (Quit: willr)
11: [03:09:54] * CodeTrap quit (Ping timeout: 255 seconds)
12: [03:12:31] * CodeTrap has joined #silverstripe
13: [03:14:19] * cloph_away has joined #silverstripe
14: [03:14:22] * cloph quit (Ping timeout: 245 seconds)
15: [03:46:34] * spronk2 quit (Quit: spronk2)
16: [04:27:46] * willr has joined #silverstripe
17: [05:42:34] * Colin[pi] has joined #silverstripe
18: [06:28:49] * willr quit (Quit: willr)
19: [06:33:54] * eagles0513875 quit (Changing host)
20: [06:33:54] * eagles0513875 has joined #silverstripe
21: [06:33:54] * eagles0513875 quit (Changing host)
22: [06:33:54] * eagles0513875 has joined #silverstripe
23: [07:05:00] * daslicht has joined #silverstripe
24: [07:23:09] <daslicht> when I get errors in the ss backend they shown very short
25: [07:23:15] <daslicht> eg when i try to import a csv
26: [07:23:33] <daslicht> an error is shown that fast i cant read it
27: [07:23:39] <daslicht> i tried to enable logging:
28: [07:23:46] <daslicht> ini_set("log_errors", "On");
29: [07:23:46] <daslicht> ini_set("error_log", "/Users/daslicht/Public/silverstripe/capesideport");
30: [07:23:46] <daslicht> SS_Log::add_writer(new SS_LogFileWriter('/Users/daslicht/Public/silverstripe/capesideport'), SS_Log::WARN, '<=');
31: [07:23:57] <daslicht> either php or ss log but nothing is written ?
32: [07:27:16] * Shrike_Finland has joined #silverstripe
33: [07:29:15] * Shrike_Finland quit (Client Quit)
34: [07:36:02] * Shrike_Finland has joined #silverstripe
35: [07:38:30] * Colin[pi] quit (Ping timeout: 240 seconds)
36: [08:37:30] * Azure quit (Ping timeout: 255 seconds)
37: [08:38:17] * Azure has joined #silverstripe
38: [08:42:40] * Shrike_Finland quit (Quit: Leaving.)
39: [08:57:49] * wmk has joined #silverstripe
40: [09:58:55] * wmk quit (Quit: nice to meet you ;))
41: [10:07:09] * Kingy is now known as Kingy[a]
42: [10:17:54] <Sj0hn> Morning
43: [11:01:19] * babak has joined #silverstripe
44: [11:20:00] * Shrike_Finland has joined #silverstripe
45: [12:06:47] <daslicht> i have added the following to my controller
46: [12:06:51] <daslicht> https://gist.github.com/daslicht/7ec7fe004af8330d968c
47: [12:06:58] <daslicht> but all i get is a blank page
48: [12:07:14] <ss23> Looks like invalid PHP?
49: [12:07:18] <ss23> Turn on error reporting, put it all in dev mode etc
50: [12:07:20] <daslicht> in my config yml i have:
51: [12:07:25] <daslicht> https://gist.github.com/daslicht/11ed4da4d36a51392117
52: [12:07:29] <ss23> Basic issue is that you need to do it in a method, not in a class, that's not how PHP works
53: [12:07:42] <daslicht> https://gist.github.com/daslicht/022842205a4b77206375
54: [12:07:49] <daslicht> andn thats my config.php
55: [12:08:06] <daslicht> i see
56: [12:08:11] <daslicht> i try the init
57: [12:08:34] <daslicht> anyways it makes me nervous to not have error messages
58: [12:10:02] <daslicht> itys working
59: [12:10:05] <daslicht> thanks
60: [12:14:17] <daslicht> any idea why i do not get errors ? or are there any erorrs for such kind of mistakes ?
61: [12:19:54] * Shrike_Finland quit (Quit: Leaving.)
62: [12:21:47] * Shrike_Finland has joined #silverstripe
63: [12:44:46] * Shrike_Finland1 has joined #silverstripe
64: [12:48:26] * Shrike_Finland quit (Ping timeout: 264 seconds)
65: [12:52:08] * Shrike_Finland1 quit (Ping timeout: 244 seconds)
66: [12:57:54] * Liongold has joined #silverstripe
67: [12:58:31] * Liongold has left #silverstripe
68: [13:06:11] * Liongold has joined #silverstripe
69: [13:06:26] <Liongold> Hi. Is someone responsible for UserForms here?>
70: [13:07:01] * Shrike_Finland has joined #silverstripe
71: [13:07:01] * Shrike_Finland quit (Read error: Connection reset by peer)
72: [13:07:07] * Shrike_Finland has joined #silverstripe
73: [13:07:09] * spronk2 has joined #silverstripe
74: [13:11:53] * superspring quit (Read error: Connection reset by peer)
75: [13:13:19] * superspring has joined #silverstripe
76: [13:27:46] * Shrike_Finland quit (Quit: Leaving.)
77: [13:49:45] <Liongold> t
78: [14:13:01] <Liongold> i
79: [14:17:50] <Liongold> Can someone help me with anextension?
80: [14:19:25] * Shrike_Finland has joined #silverstripe
81: [14:30:07] * spronk2 quit (Quit: spronk2)
82: [14:34:57] * krofek quit (Ping timeout: 244 seconds)
83: [14:40:28] <Liongold> j
84: [14:44:22] * spronk2 has joined #silverstripe
85: [14:46:56] * krofek has joined #silverstripe
86: [14:48:44] * spronk2 quit (Client Quit)
87: [14:57:19] <daslicht> jquery is freaking me out here
88: [14:57:27] <Liongold> hi
89: [14:57:30] <daslicht> hi
90: [14:57:40] <daslicht> i am trying to add a slideshow
91: [14:57:50] <Liongold> Are you familiar with Silverstripe?
92: [14:58:08] <daslicht> even when i manually add the script it always get that the slidesho is undefiend
93: [14:58:12] <daslicht> somehow
94: [14:58:19] <daslicht> i used it since yesetrday lol
95: [14:58:31] <daslicht> i use it since yesterday
96: [14:59:04] <Liongold> Oh sorry then
97: [14:59:11] <Liongold> I'm new here too.
98: [14:59:19] <daslicht> is silverlight loading jquery by default ?
99: [14:59:28] <daslicht> i dont get it why its not working
100: [14:59:30] <daslicht> grr
101: [15:00:06] <Liongold> Check your page's source code?
102: [15:01:02] <Liongold> or through the Network tab in your browser console
103: [15:04:59] <daslicht> now i have removed the script.js which comes with the simple theme
104: [15:05:06] <daslicht> teh slideshow is shgown , executed
105: [15:05:13] <daslicht> but i get tons of other erriors now
106: [15:05:54] <Liongold> Did you check the network tab when script.js was there?
107: [15:07:25] <daslicht> yeah
108: [15:07:32] <daslicht> i have no clue whats going on here
109: [15:07:51] <daslicht> never had such issues before
110: [15:07:55] <Liongold> Add script.js again
111: [15:08:20] <Liongold> Then reload the page and see whether there is jquery somethign files loaded through the Network tab
112: [15:09:25] <daslicht> the thing is , iview is working perfect stand alone
113: [15:09:36] <daslicht> but as far as i add it to the silverstripe project i get errors
114: [15:09:44] <daslicht> any files are loaded tho
115: [15:10:10] <daslicht> whioch slideshow with effects do you suggest using with silverstripe?
116: [15:10:24] <Liongold> Any console error?
117: [15:10:32] <daslicht> yeah massive
118: [15:10:44] <daslicht> undefined is not a function
119: [15:10:58] <daslicht> its not able to initialize iView
120: [15:11:04] <Liongold> click on the line and see the code
121: [15:12:18] * Shrike_Finland quit (Quit: Leaving.)
122: [15:12:45] <daslicht> funny
123: [15:12:50] <daslicht> localhost is not working at all
124: [15:12:55] <daslicht> but this:
125: [15:12:55] <daslicht> http://31.150.26.249/schiffdb/president-truman/
126: [15:13:08] <daslicht> but still errors
127: [15:14:46] <Liongold> You have a problem because you're loading JQuery in HTTPS.
128: [15:15:47] <Liongold> Can you update the site to load http://code.jquery?
129: [15:16:33] <daslicht> oh
130: [15:17:29] <daslicht> still
131: [15:17:42] <daslicht> i just copied the link form the jquery cdn
132: [15:17:58] <daslicht> i have now set it to http but still get that undefined errors
133: [15:18:00] <daslicht> strange
134: [15:18:45] <Liongold> The slideshow works
135: [15:18:55] <daslicht> but it thows errors
136: [15:19:27] <Liongold> Can it be because of .live()
137: [15:19:58] <daslicht> ok i try to fix this
138: [15:20:02] <Liongold> http://api.jquery.com/live/
139: [15:20:26] <daslicht> thats it
140: [15:20:31] <daslicht> it was removed in 1.9
141: [15:20:33] <daslicht> thank you !
142: [15:20:51] <Liongold> Does it work?
143: [15:22:14] <daslicht> not tested yet , i clone fork the project and fix it :D
144: [15:22:24] <daslicht> bettrer than double work
145: [15:22:47] * ZeroProx has joined #silverstripe
146: [15:22:57] <daslicht> thank you !
147: [15:23:09] <Liongold> No problem. Glad to help.
148: [15:24:25] <daslicht> i keep you posted
149: [15:24:27] <daslicht> :D
150: [15:24:30] <ZeroProx> hi, I just installed silverstripe on my xampp server but the admin panel hangs with javascript errors. How can i fix this?
151: [15:24:49] <daslicht> have you verified the permissions?
152: [15:24:50] <Liongold> What errors?
153: [15:24:59] <daslicht> maybe somethging is not loading properly
154: [15:25:33] <ZeroProx> Stack Trace: TypeError: undefined is not a function at HTMLInputElement.<anonymous> (http://localhost/Silverstripe/framework/admin/javascript/LeftAndMain.js?m=1399953070:970:42) at Function.jQuery.extend.each (http://localhost/Silverstripe/framework/thirdparty/jquery/jquery.js?m=1399953070:660:20) at jQuerySub.jQuery.fn.jQuery.each (http://localhost/Silverstripe/framework/thirdparty/jquery/jquery.js?m=1399953070:2
155: [15:25:46] <ZeroProx> not sure if that helps
156: [15:26:40] <ZeroProx> do you need to set permissions in a xampp server runnig on windows 7 ultimate 64?
157: [15:31:54] <daslicht> bettre:
158: [15:31:55] <daslicht> http://31.150.26.249/iview/
159: [15:32:03] <daslicht> one error left
160: [15:32:07] <daslicht> player.js
161: [15:32:26] <daslicht> but havent found it yet
162: [15:33:36] <Liongold> I'm not getting any player.js error
163: [15:37:28] <daslicht> ahh i see its the vimeo player
164: [15:37:37] <daslicht> cool
165: [15:39:16] * ZeroProx quit (Ping timeout: 246 seconds)
166: [15:42:56] <daslicht> https://github.com/daslicht/iView
167: [15:43:02] <daslicht> here we go :D
168: [15:43:53] * Shrike_Finland has joined #silverstripe
169: [15:43:59] <Zauberfisch> daslicht: did you need anything the other day?
170: [15:44:19] * cloph_away is now known as cloph
171: [15:44:22] <Zauberfisch> I remember you mentioned me by name, but can't recall what it was, only that you where offline by the time I got back to my pc
172: [15:45:08] <daslicht> i thing it was something with relations mapper and images
173: [15:45:10] <daslicht> hm
174: [15:45:17] <daslicht> i cant remember :D
175: [15:52:59] <daslicht> is jquery somewhere loaded automatically ?
176: [15:53:06] <daslicht> <script type="text/javascript" src="/framework/thirdparty/jquery/jquery.js?m=1399950403"></script><script>
177: [15:53:09] <daslicht> ?!
178: [15:54:05] <daslicht> aha found
179: [16:16:59] <Liongold> t
180: [16:38:51] <daslicht> ?
181: [16:39:01] <daslicht> when having this DataObject :
182: [16:39:05] <daslicht> https://gist.github.com/daslicht/a98210c0a16ecf74d80e
183: [16:39:34] <daslicht> i display it like :
184: [16:39:39] <daslicht> https://gist.github.com/daslicht/b55893da23a472abb104
185: [16:39:54] <daslicht> is there a way to access the related ShipPage in teh loop ?
186: [16:40:11] <daslicht> $ShipPage. ???
187: [16:40:25] <daslicht> brb goinbg to buy some beer
188: [16:46:46] <Zauberfisch> daslicht: yes, 2 ways actually
189: [16:47:12] <Zauberfisch> you have a has_one relation to ship page, which means you can do $ShipPage.
190: [16:47:31] <Zauberfisch> but I recommned using the features provided by the template. $Top and $Up
191: [16:47:39] <Zauberfisch> $Up means it goes up 1 scope
192: [16:47:58] <Zauberfisch> so if you are inside the <% loop $Images %> $Up leaves that loop
193: [17:03:58] * Liongold quit (Quit: Page closed)
194: [17:05:57] <daslicht> is there a way to dump vars in teh template ?
195: [17:09:08] <daslicht> oklets talk later ]
196: [17:09:11] <daslicht> weekend
197: [17:15:07] * superspring quit (Read error: Connection reset by peer)
198: [17:16:42] * superspring has joined #silverstripe
199: [17:32:28] * Shrike_Finland quit (Quit: Leaving.)
200: [18:12:23] * gelignite has joined #silverstripe
201: [18:12:40] <Zauberfisch> daslicht: not that I am aware of
202: [18:12:58] * Shrike_Finland has joined #silverstripe
203: [18:13:07] <Zauberfisch> daslicht: but there are some variables you can access that might be helpful
204: [18:13:43] <Zauberfisch> eg: $ClassName or $class
205: [18:18:03] <Shrike_Finland> Anyone familiar with Tumult Hype? Trying to figure out, how to "embed" Hype animation inside Silverstripe...
206: [18:23:53] * shellbackpacific has joined #silverstripe
207: [18:39:42] <shellbackpacific> i'm creating a page that is not to be handled by/in the CMS. My approach is creating a controller in cms/code/controllers/ and routing the request there. Is this a bad approach in Silverstripe?
208: [19:08:02] * Azure quit (Ping timeout: 240 seconds)
209: [19:08:46] * Azure has joined #silverstripe
210: [19:10:47] <Zauberfisch> shellbackpacific: when you say "creating a controller in cms/code/controllers/", do you mean actually creating files inside the cms folder?
211: [19:11:07] <shellbackpacific> yes that's what i am currently doing..
212: [19:11:16] <shellbackpacific> pbly not right
213: [19:11:29] <shellbackpacific> thinking it should be in mysite/code/
214: [19:11:30] <Zauberfisch> shellbackpacific: that is a bad idea in basically any framework
215: [19:11:38] <Zauberfisch> indeed
216: [19:12:11] <shellbackpacific> then should i just extend the Controller class ?
217: [19:12:17] <Zauberfisch> from your point of view, the cms folder is a 3rd party software, and should only be used. and _never_ modifyed
218: [19:12:21] <Shrike_Finland> Is there a way to use "Select image" kind of functionality on admin side of Silverstripe to pick up javascripts from assets-folder?
219: [19:12:48] <shellbackpacific> something like this: http://pastebin.com/fts0zvKK
220: [19:13:01] <shellbackpacific> Zauberfisch: gotcha
221: [19:13:14] <Zauberfisch> Shrike_Finland: well, you can use uploadfield to select a file. that works with any file type
222: [19:13:27] <Shrike_Finland> Ok, sounds great.
223: [19:13:52] <Zauberfisch> shellbackpacific: but thats not a problem, the code will work exactly the same, no matter where it is located
224: [19:14:09] <shellbackpacific> right on, thanks :)
225: [19:14:23] <Zauberfisch> shellbackpacific: you can either choose to place your code into the mysite folder, or create a new folder that is a module.
226: [19:14:33] <shellbackpacific> ok
227: [19:14:35] <Zauberfisch> not sure about your use case, but I am guessing mysite will do
228: [19:14:46] <Zauberfisch> (actually, mysite/code/
229: [19:14:53] <Zauberfisch> or mysite/code/somefolder/)
230: [19:15:16] <shellbackpacific> yep that's where i'm going
231: [19:15:17] <Zauberfisch> only choose the module way if you actually desire to make that paticular part of your code a module)
232: [19:15:22] <shellbackpacific> ((actually, mysite/code/)
233: [19:15:32] <shellbackpacific> ok
234: [19:16:25] <Zauberfisch> so the file might be
235: [19:16:32] <Zauberfisch> mysite/code/EventController.php
236: [19:16:59] <Zauberfisch> shellbackpacific: the code from your paste looks correct
237: [19:17:02] <Zauberfisch> just one note:
238: [19:17:30] <Zauberfisch> $this->customise(array('Foo' => 'bar'))->renderWith('mytemplate')
239: [19:17:33] <Zauberfisch> is the same as:
240: [19:17:51] <Zauberfisch> $this->renderWith('mytemplate', array('Foo' => 'bar'))
241: [19:18:02] <shellbackpacific> ah ok nice
242: [19:18:16] <Zauberfisch> the 2nd parameter to renderWith is an array, which does just a customise()
243: [19:18:40] <Zauberfisch> so in your code, you could remove the $result_info
244: [19:19:03] <shellbackpacific> cool
245: [19:19:04] <Zauberfisch> because you are already doing a customise(). you can just put your $result_info stuff in there
246: [19:21:52] <Shrike_Finland> Zauberfisch: should the has_one fieldtype be something special instead of image, as the data is javascript?
247: [19:27:54] <Zauberfisch> http://paste2.org/G11jPN44
248: [19:33:06] <Shrike_Finland> and to print it as URL on template file, just $MyJavaScriptFile.URL ?
249: [19:34:15] <Zauberfisch> yes
250: [19:34:24] <Shrike_Finland> Cool, thanx.
251: [19:34:27] <Zauberfisch> File is the baseclass, Image extends File
252: [19:34:46] <Zauberfisch> most functionality that you are used to from Image is actually in the File class
253: [19:35:02] <Zauberfisch> (Filename, Name, Title, URL, ID, ...)
254: [19:35:14] <Zauberfisch> only the resize methods are in the Image class
255: [19:36:02] <Shrike_Finland> Ok, haven't thought it… But makes sense ;)
256: [19:41:01] <Shrike_Finland> If I call script in the middle of tempalte, it seems to pick up all the js-script loaded in page.php and add this latest file at the end there… weird.
257: [19:42:56] <Zauberfisch> Shrike_Finland: yes, silverstripe walks through all your templates and looks for a <script
258: [19:43:08] <Zauberfisch> then it inserts all dependencies right before that first tag that was found
259: [19:43:22] <Zauberfisch> or, if none found, then at the bottom, right before the </body>
260: [19:43:50] <Shrike_Finland> Any change of stop doing that in this case? :)
261: [19:44:14] <Zauberfisch> the reason for that <script part is that some poeple might inset <script>jQuery stuff here</script>, but then this would produce an error, because jquery is included after that
262: [19:44:37] <Zauberfisch> no, there is no way to stop silverstripe from doing that
263: [19:44:38] <Shrike_Finland> That's true
264: [19:44:59] <Zauberfisch> well, actually there is one, but that is even worse. you can tell silverstripe to include the scripts in the <head>
265: [19:45:09] <Shrike_Finland> Nooo :)
266: [19:46:00] <Zauberfisch> I neither approve nor disaprove of that behaviour, to be honest, i don't really care
267: [19:46:12] <Zauberfisch> I have never put a <script> tag into my templates
268: [19:46:17] <Zauberfisch> thus I never ran into that problem
269: [19:46:26] <Zauberfisch> (I dislike mixing javascript and html)
270: [19:46:40] <Shrike_Finland> I'm trying to insert animation script inside template file, which should play in certain layout. Other way of inserting it is the legendaru iframe.
271: [19:46:46] <Zauberfisch> and, what ever your problem is, there mostlikely is a better way to solving your problem
272: [19:47:59] <Shrike_Finland> yep, got to thing something different.
273: [19:48:24] <Shrike_Finland> And get some sleep. Good night.
274: [19:48:28] <Zauberfisch> Shrike_Finland:
275: [19:48:32] <Zauberfisch> I am not sure what you mean
276: [19:48:40] <Zauberfisch> iframe?
277: [19:48:46] <Shrike_Finland> http://hype.desk.com/customer/portal/articles/175658-embedding-in-wordpress-posts-pages-themes-
278: [19:48:55] <Shrike_Finland> I think this explains a bit...
279: [19:49:11] <Shrike_Finland> Except, CMS is SS this time
280: [19:49:38] <Zauberfisch> I see
281: [19:49:48] <Zauberfisch> what I don't see is why you would need a script tag
282: [19:50:09] <Zauberfisch> is the script tag just a script with a src="" ?
283: [19:50:15] <Shrike_Finland> jep
284: [19:50:45] <Zauberfisch> then just include that file using requirements
285: [19:51:24] <Zauberfisch> I don't think that you need to put that <script> tag direct where you want the thing
286: [19:51:29] <Zauberfisch> you can place it anywhere I guess
287: [19:51:39] <Zauberfisch> so just use silverstripe requirements
288: [19:51:44] * SightUnseen has joined #silverstripe
289: [19:51:49] <Zauberfisch> how do you normaly include js files if I may ask?
290: [19:51:54] * SightUnseen has left #silverstripe
291: [19:53:00] <Shrike_Finland> Almost all are loaded in page.php (requirements) and just in special cases: <% require javascript(xxxx.js) %>
292: [19:53:14] <Zauberfisch> perfect. then you know how to use requirements
293: [19:54:13] <Shrike_Finland> Yep, but just somehow I didn't pick up that style in this case. And I do not know, why an earth! Maybe the clock is too much…
294: [19:55:05] <Zauberfisch> :)
295: [20:14:12] <shellbackpacific> can someone tell me what '$Menu(2)' means here: <body class="$ClassName<% if not $Menu(2) %> no-sidebar<% end_if %>"..i want that if condition to be true…not sure how to override that in a subtemplate
296: [20:16:05] * shellbackpacific quit (Quit: Leaving.)
297: [20:16:57] * Shrike_Finland quit (Quit: Leaving.)
298: [20:34:33] * willr has joined #silverstripe
299: [21:05:27] * SightUnseen has joined #silverstripe
300: [21:08:33] * SightUnseen has left #silverstripe
301: [21:13:03] * superspring quit (Read error: Connection reset by peer)
302: [21:14:42] * superspring has joined #silverstripe
303: [22:12:56] * superspring quit (Read error: Connection reset by peer)
304: [22:14:35] * superspring has joined #silverstripe
305: [22:24:15] * spronk2 has joined #silverstripe
306: [22:25:30] * superspring quit (Read error: Connection reset by peer)
307: [22:27:10] * superspring has joined #silverstripe
308: [22:30:56] * gelignite quit (Quit: http://bit.ly/nkczDT)
309: [22:31:26] * Colin[pi] has joined #silverstripe
310: [23:22:26] * daslicht quit ()
311: [23:30:18] <Zauberfisch> I need to version a file with the according dataobject
312: [23:31:20] <Zauberfisch> the file is a small image
313: [23:31:38] <Zauberfisch> I am actually considering to base64 encode it and save it into a Text db field.
314: [23:32:21] <Zauberfisch> am I crazy? is there a more suitable, reliable soltution to my problem (using silverstripe and without much effort)?
315: [23:32:36] * UncleCheese has joined #silverstripe
316: [23:34:43] <Zauberfisch> obviously I would loose the Image functionality, but I don't really need that once I have the image in the size I want it, it will not be modified again
317: [23:35:38] * Sj0hn quit ()
318: [23:37:45] <Zauberfisch> actually, I'll just skip that for now, other things are more important
319: [23:58:03] <willr> base64 encode isn’t too crazy

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