#silverstripe IRC Log

IRC log for 22 July 2014

All timestamps are in UTC.

1: [06:57:34] * eagles05- has joined #silverstripe
2: [08:22:46] * ss-log has joined #silverstripe
3: [08:22:58] <simon_w> Hello ss-log
4: [08:22:59] <willr> welcome back ss-log
5: [08:23:10] <willr> nice of you to join us
6: [08:23:12] <simon_w> Yay, it's logging more than travis again!
7: [08:23:20] * markcl quit (Quit: Leaving.)
8: [08:27:17] * spronk2 has joined #silverstripe
9: [08:28:20] * spronk2 quit (Client Quit)
10: [08:37:12] <willr> Always handy.
11: [08:45:04] * simon_w quit (Quit: This computer has gone to sleep)
12: [08:45:37] * Pymtngk has joined #silverstripe
13: [08:47:48] * spronk2 has joined #silverstripe
14: [09:06:56] * simon_w has joined #silverstripe
15: [09:08:00] * micmania1 has joined #silverstripe
16: [09:17:22] * Tanger quit (Quit: Tanger)
17: [09:53:58] * cloph quit (Remote host closed the connection)
18: [09:54:48] * ajmitch quit (*.net *.split)
19: [09:54:48] * FrozenFire quit (*.net *.split)
20: [09:54:48] * Kingy[a] quit (*.net *.split)
21: [09:54:48] * MickRip_ quit (*.net *.split)
22: [09:54:55] * MickRip has joined #silverstripe
23: [09:54:58] * Kingy^ has joined #silverstripe
24: [09:55:01] * ajmitch has joined #silverstripe
25: [09:55:06] * FrozenFire has joined #silverstripe
26: [10:04:04] * cloph_away has joined #silverstripe
27: [10:08:42] * cloph_away is now known as cloph
28: [10:10:04] <Pymtngk> catch the game micmania1?
29: [10:10:11] <Pymtngk> party day at work is it?
30: [10:10:14] <micmania1> Pymtngk: most of the second half
31: [10:10:18] <micmania1> missed all 4 goals
32: [10:10:18] <Pymtngk> nice
33: [10:10:21] <Pymtngk> oh
34: [10:10:25] <Pymtngk> all magpies I guess?
35: [10:10:30] <micmania1> yep lol
36: [10:10:32] <Pymtngk> heheh
37: [10:10:46] <Pymtngk> Who did they play in Dunedin? Some Aussie crowd right?
38: [10:10:59] <micmania1> Sydney
39: [10:11:13] <Pymtngk> Demo'd 7-0?
40: [10:11:24] <micmania1> 4-0
41: [10:11:36] <Pymtngk> oh, ALL four goals, lol.
42: [10:11:42] <micmania1> yep
43: [10:11:47] <Pymtngk> all in the first half? interesting.
44: [10:12:16] <Pymtngk> must have been a hell of a half time speech from the Sydney coach, hehe
45: [10:12:19] * wmk has joined #silverstripe
46: [10:12:33] <Pymtngk> KFC for lunch then is it? :P
47: [10:13:24] * Werner_2_ has joined #silverstripe
48: [10:13:51] * simon_w quit (Quit: This computer has gone to sleep)
49: [10:14:26] <Pymtngk> micmania1: I tried to have a look at stuff when I got home, but the pages load so slowly most the data doesnt' even show up :<
50: [10:14:32] * UncleCheese has joined #silverstripe
51: [10:15:12] <micmania1> Try cloning the repository
52: [10:15:19] <micmania1> download vagrant and stuff
53: [10:15:25] <micmania1> then just vagrant up
54: [10:15:26] <Pymtngk> yeh, I'll give it a go.
55: [10:15:42] <Pymtngk> but still I need to see Pete's comments and things though, ideally
56: [10:16:55] * wmk quit (Ping timeout: 250 seconds)
57: [10:18:05] * wmk has joined #silverstripe
58: [10:19:07] * Werner_2_ quit (Ping timeout: 256 seconds)
59: [10:19:13] * Shrike_Finland has joined #silverstripe
60: [10:19:26] <wmk> hi all
61: [10:21:20] <micmania1> areet
62: [10:21:59] <ocm> howdy
63: [10:22:44] * Werner_2_ has joined #silverstripe
64: [10:25:47] * wmk quit (Ping timeout: 264 seconds)
65: [10:26:14] * Colin[pi] quit (Ping timeout: 240 seconds)
66: [10:28:00] * Werner_2_ quit (Ping timeout: 260 seconds)
67: [10:28:50] * wmk has joined #silverstripe
68: [10:31:12] * Werner_2_ has joined #silverstripe
69: [10:34:02] * wmk quit (Ping timeout: 255 seconds)
70: [10:34:08] <Pymtngk> areet
71: [10:34:42] * wmk has joined #silverstripe
72: [10:35:14] <Pymtngk> still nfi why I get this in my wamp install: No URL rule was matched (loading site/ssintalldir/ControllerName)
73: [10:35:34] * Werner_2_ quit (Ping timeout: 240 seconds)
74: [10:36:35] <Pymtngk> site/ssinstalldir/ works fine, site/ssinstalldir/controller doesn't :< (literally 'controller', ie the ancestor of all controllers, the default thing loaded when requesting root GET / )
75: [10:36:53] <Pymtngk> I can't get my head around it.
76: [10:45:25] * Werner_2_ has joined #silverstripe
77: [10:48:14] * wmk quit (Ping timeout: 240 seconds)
78: [10:51:22] * Werner_2__ has joined #silverstripe
79: [10:51:55] <Werner_2__> this damn wifi is breaking down all the time
80: [10:52:48] <mobiusnz> Pymtngk: have you set up any routes?
81: [10:54:12] * wmk has joined #silverstripe
82: [10:54:14] <mobiusnz> Pymtngk: read http://doc.silverstripe.org/framework/en/topics/controller#routing
83: [10:54:37] * Werner_2_ quit (Ping timeout: 250 seconds)
84: [10:54:53] <Pymtngk> mobiusnz: I don't need to.
85: [10:55:23] <Pymtngk> mobiusnz: https://github.com/silverstripe/silverstripe-framework/blob/3.1/_config/routes.yml#L18
86: [10:56:07] * Werner_2__ quit (Ping timeout: 245 seconds)
87: [10:56:10] <Pymtngk> I should mention I suppose that this works perfectly on the production machine (actually the dev machine, but the code has never made it off there for some reason so it's both test and live now)
88: [10:56:34] * willr quit (Quit: willr)
89: [10:57:11] <mobiusnz> broken .htaccess?
90: [10:57:12] * Werner_2__ has joined #silverstripe
91: [10:58:32] <Pymtngk> mobiusnz: nup. It gives the error, which means that it's trying to match a rule.
92: [10:58:32] * wmk quit (Ping timeout: 245 seconds)
93: [10:58:42] <Pymtngk> ie, rewrite is working
94: [10:59:57] <Pymtngk> although I suppose it could be failing to pass the url var through properly :<
95: [10:59:58] <Pymtngk> hmm
96: [11:01:29] * Werner_2__ quit (Ping timeout: 255 seconds)
97: [11:01:52] * Shrike_Finland quit (Quit: Leaving.)
98: [11:08:17] <mobiusnz> well, my screen is going redder which means it's probably just about time to hit the sack
99: [11:09:17] <mobiusnz> http://cl.ly/image/1H131W0i3t2Y
100: [11:09:19] <mobiusnz> yup
101: [11:30:43] <ocm> mobiusnz what is the name of that again?
102: [11:32:22] <Pymtngk> So it turns out I work just down the road from Ubisoft.
103: [11:35:26] * micmania1 quit (Ping timeout: 256 seconds)
104: [11:43:13] <Pymtngk> how about that.
105: [11:50:16] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
106: [12:04:55] <ocm> "down the road"?
107: [12:04:59] <ocm> what should I assume from that? :P
108: [12:09:57] * micmania1 has joined #silverstripe
109: [12:18:53] * Shrike_Finland has joined #silverstripe
110: [12:22:18] * fdrechsler has joined #silverstripe
111: [12:24:52] * eagles0513875 quit (Quit: ZNC @ TrekWeb - https://trekweb.org)
112: [12:26:15] * eagles0513875 has joined #silverstripe
113: [12:28:25] * Shrike_Finland quit (Quit: Leaving.)
114: [12:38:18] * muskie9 has joined #silverstripe
115: [12:40:27] <fdrechsler> has anyone recently used the silverstripe payment module?
116: [13:08:45] * harold__ has joined #silverstripe
117: [13:08:51] <harold__> Hi everyone, I'm folloeing the tutorial here to make a simple contact form
118: [13:08:55] <harold__> http://doc.silverstripe.org/framework/en/howto/simple-contact-form
119: [13:09:06] <harold__> I created the ContactPage.php file as instructed
120: [13:09:09] <harold__> dev build
121: [13:09:21] <harold__> i get a white screen when i try to access my admin
122: [13:09:27] <harold__> i'm in dev mode
123: [13:09:29] <harold__> no error messgae
124: [13:10:11] <muskie9> harold__ can you post your code
125: [13:10:22] <micmania1> harold_: try ini_set("display_errors", 1) and ini_set("display_startup_errors", 1) in your _ss_environment.php file
126: [13:10:31] <micmania1> Sounds liks its throwing an error but not displaying it
127: [13:10:33] <muskie9> ^^
128: [13:10:44] <harold__> http://paste2.org/0gh6sO7h
129: [13:11:01] * UndefinedOffset has joined #silverstripe
130: [13:12:21] <harold__> thanks that worked i see errors now
131: [13:12:32] <harold__> the allowed actions had to be public and not private
132: [13:12:47] <muskie9> what version of SS are you using?
133: [13:13:56] <harold__> I'm not sure because this is a site that has already been built
134: [13:14:00] <harold__> i am adding a feature
135: [13:14:15] <harold__> and afaik the version number is not dispalyed in the admin
136: [13:14:26] <ocm> harold__ check for the file silverstripe_version
137: [13:14:30] <ocm> in framework/cms directories
138: [13:14:35] <muskie9> I see, do you have the folder sapphire or framework
139: [13:14:51] * catcher has joined #silverstripe
140: [13:23:24] <harold__> there isn't a cms folder in framework
141: [13:23:27] <Pymtngk> ocm: about 5 mins walk down river.
142: [13:23:52] <muskie9> harold__ cms and framework are in your root directory
143: [13:24:31] <muskie9> if you have framework and $allowed_actions is public then my gues is 3.0.x
144: [13:24:32] <Pymtngk> harold__: he meant cms OR framework folders.
145: [13:24:56] <Pymtngk> but if it has to be public, and doesn't thrown an error, then it's definitely 3.0
146: [13:24:58] <Pymtngk> .x
147: [13:25:08] <harold__> thanks
148: [13:25:16] <Pymtngk> 3.1 throws an error if you have public config settings.
149: [13:25:24] <ocm> hm, good thinking pymtngk
150: [13:25:49] <muskie9> in the docs you can switch it to 3.0 towards the top of the page, each version's docs are updated (to some extent)
151: [13:25:58] <Pymtngk> ocm: hmm?
152: [13:26:16] <ocm> the 3.1 vs 3.0 error throwing to determen what version is used
153: [13:26:47] <Pymtngk> ocm: yeh, I read it in the changelogs yesterday.
154: [13:27:10] <Pymtngk> http://doc.silverstripe.org/framework/en/changelogs/3.1.0
155: [13:27:29] <Pymtngk> Upgrading Statics in custom Page classes need to be "private" Requires action on every SilverStripe installation. Typical error message: Access level to ErrorPage::$db must be public
156: [13:30:09] <Pymtngk> of course, that's not always the case.
157: [13:30:26] <Pymtngk> only when you've been a good person and set stuff private, but they're defined as public on an ancestor.
158: [13:30:52] <Pymtngk> because PHP is stupid and lets you change visibility (upwards only_
159: [13:30:52] <Pymtngk> )
160: [13:31:08] <Pymtngk> ie private vars can become public, but then cannot become private again.
161: [13:31:16] <Pymtngk> so erro.
162: [13:31:20] <kinglozzer> Pymtngk: Because fuck logic
163: [13:31:23] <kinglozzer> :P
164: [13:32:36] <ocm> yay \o/
165: [13:32:37] <Pymtngk> but it won't naturally error if you have defined all things as public. But I imagine Controller being with Allowed Actions... that should be private on Controller & ContentController, so setting private and having it not work should mean either error as above because you've got some crap code in Page::allowed_actions (because Page comes in your project dir, not cms or framework)
166: [13:34:49] <Pymtngk> in which case, harold__ should still check frameworkd/silverstripe_version to ensure he's using 3.0 - or go and update the Page.php code or something. (as otherwise the config won't work). Although again... 3.1 direction checks allowed_actions through the config (because it has to), so if it's public I don't think it'd work at all because the action wouldn't be set to allowed because public config stuff won't get picked up.
167: [13:35:17] <Pymtngk> Also, whoever made markdown is a dick.
168: [13:35:46] <Pymtngk> which having it seem like it was the daringfireball knob sounds about right.
169: [13:36:19] <Pymtngk> _ == underline, / == italic, *or | for bold. £jsutsayn
170: [13:36:35] <Pymtngk> * for bold.
171: [13:36:38] <Pymtngk> | for something else.
172: [13:36:55] <veb> I'm unsure if he's a dick.
173: [13:37:15] <veb> He may actually not be a man.
174: [13:37:28] <ocm> women can be dicks aswell
175: [13:38:04] <ocm> actually, I think the average woman has endulged more dicks than any non-homosexual man
176: [13:38:04] <veb> ha
177: [13:38:06] <veb> define: dicks
178: [13:38:14] <veb> 1. a mans penis
179: [13:38:20] <veb> I suppose a woman could.
180: [13:38:21] <ocm> dicks, allmost the same like asshoels
181: [13:38:22] <ocm> or pussies
182: [13:39:10] <Pymtngk> wankers
183: [13:39:15] <ocm> http://www.youtube.com/watch?v=y2GwrR-4Q9E
184: [13:39:22] <ocm> that video explains it all
185: [13:39:24] <Pymtngk> tosspots, bellends, morons
186: [13:39:28] <ocm> bullocks
187: [13:39:44] <Pymtngk> aka, users.
188: [13:39:47] <Pymtngk> lusers.
189: [13:39:59] <ocm> haha
190: [13:40:23] <Pymtngk> not heard that one before ocm?
191: [13:40:38] <Pymtngk> that's old gold late 80's sysadmin speak that one.
192: [13:40:42] <Pymtngk> BOFH stuff.
193: [13:41:49] <Pymtngk> oh, 90's actually.
194: [13:41:51] <Pymtngk> http://en.wikipedia.org/wiki/Bastard_Operator_From_Hell
195: [13:42:00] * shellbackpacific has joined #silverstripe
196: [13:42:56] <shellbackpacific> hey all….i have a text variable in a template…how do i do a search and replace on it ? for example, replace all spaces with '+'
197: [13:43:50] <Pymtngk> You don't.
198: [13:44:00] <Pymtngk> well, not in the template.
199: [13:44:02] <catcher> shellbackpacific, write a controller method, php has str_replace, etc.
200: [13:44:23] <shellbackpacific> catcher: ok thanks
201: [13:44:27] <Pymtngk> shellbackpacific: sounds like you want url escape, pretty sure there's a method on Controller for doing that.
202: [13:44:32] <Pymtngk> building a query string.
203: [13:44:41] <Pymtngk> Controller::join_links() iirc
204: [13:53:31] <harold__> how do i call a function in a different controlleR?
205: [13:53:32] <shellbackpacific> Pymtngk: thanks. join_links works nicely
206: [13:56:37] <Pymtngk> harold__: well just like any other object.
207: [13:56:44] <Pymtngk> you need to make one first.
208: [13:57:08] <Pymtngk> ThatController::create()->function()
209: [13:58:02] * Liquide has joined #silverstripe
210: [13:58:45] <harold__> thank you will try
211: [14:01:04] * Alboes has joined #silverstripe
212: [14:01:28] <catcher> Any clever methods of finding all many_many relationships with a particular class?
213: [14:02:09] <catcher> Well, maybe has_one, assuming the reverse isn't necessarily set.
214: [14:05:37] <Pymtngk> $this->config()->many_many ?
215: [14:06:22] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
216: [14:08:18] * muskie9 has joined #silverstripe
217: [14:11:51] * muskie9 quit (Client Quit)
218: [14:16:02] <Alboes> hi
219: [14:16:10] <Pymtngk> hi
220: [14:16:38] <Alboes> is it possible to set the max upload file size for images in general?
221: [14:16:46] <Pymtngk> yes
222: [14:17:15] <Pymtngk> I think.
223: [14:17:29] <Pymtngk> Set the config option for UploadField in general, not just for any particular instance.
224: [14:20:34] <Alboes> how do i do that?
225: [14:24:45] <Pymtngk> http://doc.silverstripe.org/framework/en/reference/uploadfield
226: [14:25:32] <Pymtngk> #limit-the-maximum-file-size
227: [14:37:18] <ocm> hm, what does this mean?
228: [14:37:18] <ocm> Error at framework/core/Object.php line 675: Uncaught Exception: Object->__call(): the method 'data' does not exist on 'Security'
229: [14:39:48] <Pymtngk> it means Security::data() isn't a thing.
230: [14:40:04] <ocm> weird stuff, it is on a deployed website
231: [14:40:14] <ocm> live for a year right now
232: [14:40:20] <ocm> on 3.0.4
233: [14:40:27] <ocm> nothing changed
234: [14:40:35] <Pymtngk> and also, that Security has no Extension that defines data()
235: [14:40:50] <ocm> I figured
236: [14:40:53] <Pymtngk> ocm: ContentController::data() returns the DataObject.
237: [14:40:59] <ocm> client just called me with this problem
238: [14:41:06] <ocm> worked fine yesterday (as he stated)
239: [14:41:53] <Pymtngk> I'd hazard a guess that there's just a bit of an issue with either someone doing it in a case where they think they've got a normal controller, or it's to do with Security instantiating a Page_Controller to render the login form (if the class exists).
240: [14:42:15] <ocm> seems no files have been changed
241: [14:42:24] * spronk2 quit (Quit: spronk2)
242: [14:42:26] <Pymtngk> yeah 'worked fine' could be an error thing where the server itself has been modified.
243: [14:42:28] <ocm> not recently anyhow
244: [14:42:31] <Pymtngk> rather than the system.
245: [14:42:42] <ocm> hm, not as far as I know
246: [14:42:47] <Pymtngk> that or (s)he's doing something new that they didn't do yesterday.
247: [14:42:50] <ocm> I maintain that server
248: [14:43:06] <ocm> hurray for debugging on the end of the day
249: [14:43:11] <ocm> pizza's anyone? :D
250: [14:44:09] <Pymtngk> too hot for pizza :<
251: [14:44:33] <ocm> fair enough
252: [14:44:51] <ocm> though it reminds me on getting outside and get a smoke while enjoying the sun
253: [14:44:52] <ocm> brb :D
254: [14:45:39] <harold__> if i am making a customer form template, i first need to extend a form
255: [14:45:47] <harold__> for example class MyForm extends Form
256: [14:45:53] <harold__> should this be in MyForm.php
257: [14:46:01] <Pymtngk> ha only 23 degrees, fuck this humidity man :<
258: [14:46:38] <Pymtngk> harold__: is there a question in there anywhere?
259: [14:46:53] <Pymtngk> also, you don't have to extend Form, you can just use Form::setTemplate()
260: [14:46:55] <Pymtngk> iirc
261: [14:48:51] * muskie9 has joined #silverstripe
262: [14:48:53] <harold__> ok that's much easier
263: [14:49:15] <harold__> i just want to apply my own class and styling to the form I have made
264: [14:52:03] <harold__> although most tutorials say I should extend a basic form
265: [14:57:44] <harold__> here is my paaste
266: [14:57:45] <harold__> http://paste2.org/BUCkZDZA
267: [14:57:51] <ocm> damn it's hot
268: [14:57:55] <ocm> and no, that is not just me
269: [14:58:07] <harold__> the method 'settemplate' does not exist on 'ContactPage_Controller'
270: [15:00:37] <muskie9> attempting a 2.4.x to 3.1.5 upgrade makes for greater headaches
271: [15:03:12] <Pymtngk> harold__: no, the form, not the page.
272: [15:03:40] <Pymtngk> also, if you just want to add a class, $form->addExtraClass('class names here')
273: [15:04:19] <ocm> hm, I think the blog module (BlogTree.php) is causing the error
274: [15:04:22] <ocm> if($controller) $page = $controller->data();
275: [15:04:27] <ocm> that, or the archive widget
276: [15:04:58] <Pymtngk> also harold__ most 'tutorials' are about 4 years old and 100% out of date. You used to have to subclass form because form didn't render with a template. Now it does.
277: [15:05:28] <Pymtngk> ocm: where is the if controller statement?
278: [15:05:48] <ocm> #45/#46
279: [15:05:56] <Pymtngk> you could on Security.php right?
280: [15:06:06] <ocm> I think the problem is the archivewidget
281: [15:06:18] <ocm> the cms has an 'global sidebar' function
282: [15:06:22] <harold__> Pymtngk: like this>
283: [15:06:28] <harold__> class ContactPage extends Page { Form::setTemplate('ConactForm'); }
284: [15:06:36] <ocm> all widgets in that sidebar display everywhere, including the loginpage
285: [15:06:50] <Pymtngk> ocm: nope, it's that it's not making a Page_Controller for $controller, it's using Security itself.
286: [15:06:57] <ocm> but how?
287: [15:07:20] <Pymtngk> harold__: no. You don't code php much? You should read the difference between a static call and an instance call..
288: [15:07:41] <harold__> not OO no I'm trying to learn
289: [15:07:46] <ocm> the archivewidget makes it bug
290: [15:07:55] <ocm> just disabled it from the db and now I can go to /admin
291: [15:09:18] * Fisix_AIX has joined #silverstripe
292: [15:10:14] <Fisix_AIX> Hello, in the ORM can I tell my Object::get to only return a specific property? for example only return the ID's ?
293: [15:10:40] <Pymtngk> ContactPage_Controller extends Page_Controller { function Form() { return Form::create($this, __FUNCTION__, FieldList::create(TextField::create('Name'), EmailField::create('Email'), TextareaField::create('Message')), FieldList::create(FormAction::create('doAction', 'Submit')), RequiredFields::create('Name', 'Email', 'Message'))->addExtraClass('fancy style classes'); } }
294: [15:10:57] <Pymtngk> harold__: ^
295: [15:11:00] <ocm> pymtngk, how can I make sure it won't use the controller of security itself? Do a check on ID?
296: [15:11:18] <ocm> check for a page or smthng?
297: [15:11:24] <Pymtngk> ocm: FFFFFFFFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCKKKKKKKKKKKKKKKKKKKKKKKKKKK
298: [15:11:38] <harold__> Pymtngk: i just read what you said about most tutorials being out of date
299: [15:11:54] <harold__> so I'll do as you said and just add the class to my form rather than create a new template
300: [15:11:54] <Pymtngk> I would answer you but I'm too busy being distracted by the most uncomfortable wedgie & sack on leg & itch combination.
301: [15:12:05] <harold__> all i am trying to do is apply bootstrap to my web form
302: [15:12:26] <Pymtngk> harold__: yeah, I gathered as much.
303: [15:12:36] <Pymtngk> harold__: it's a common question.
304: [15:13:02] <Pymtngk> A stuipd one in my opinion, but common. I hate css frameworks, but other people seem to get a lot of value out of them, so whatever works for you.
305: [15:13:12] <Pymtngk> harold__: I think there's a bootstrap module out there that could help you.
306: [15:13:47] <harold__> thanks
307: [15:14:08] * Guits has joined #silverstripe
308: [15:15:00] <Guits> Can you change items per page on ModelAdmin ?
309: [15:15:51] <harold__> I wonder if SS is maybe just a little beyond me, everything takes about 20x as long for me to achieve, which isn't right I nkow
310: [15:15:59] <Pymtngk> harold__: http://addons.silverstripe.org/add-ons?search=bootstrap
311: [15:16:10] <Pymtngk> harold__: it's not, you just have to pay attention.
312: [15:16:27] <Pymtngk> to things you learn, and also learn PHP in general, it'll help you a lot.
313: [15:16:47] * spronk2 has joined #silverstripe
314: [15:18:29] <Fisix_AIX> Pymtngk, Or do I have to iterate and push the id's to another array?
315: [15:19:28] <Pymtngk> Fisix_AIX: DataList::column()
316: [15:19:40] <harold__> for example your example has too much shorthand so I'm trying to keep it simple and use my older notation so I can better underastand the flow
317: [15:19:44] <harold__> i want to add the class
318: [15:19:46] <harold__> return new Form($this, 'Form', $fields, $actions)->addExtraClass('fancy style classes');
319: [15:19:58] <Pymtngk> harold__: my example has 0 shorthand.
320: [15:20:14] <Pymtngk> and no, you cannot do that.
321: [15:20:15] <harold__> you pretty much condensed my 20 lines into one
322: [15:20:23] <Pymtngk> harold__: because I can only type it on 1.
323: [15:20:52] <Fisix_AIX> Pymtngk, Cheers
324: [15:21:54] <Pymtngk> harold__: http://sspaste.com/paste/show/53ce7d6c65747
325: [15:22:46] <Pymtngk> harold__: using new Form() isn't wrong, but it has several disadvantages.
326: [15:23:07] <Pymtngk> such as you cannot chain ( new Form()->method() )
327: [15:23:15] <Pymtngk> people have no chance to use Injector
328: [15:23:18] <Pymtngk> tc.
329: [15:23:20] <Pymtngk> etc*
330: [15:23:27] <harold__> thank you i will study that
331: [15:23:32] <Pymtngk> use Form::create()
332: [15:23:35] <Pymtngk> instead of new Form
333: [15:23:39] <harold__> before though can you tell me what is wrong with this
334: [15:23:39] <harold__> http://paste2.org/gGhPyVEE
335: [15:23:46] <Pymtngk> and any other class that extends Object.
336: [15:24:02] <harold__> ncaught Exception: Object->__call(): the method 'addextraclass' does not exist on 'ContactPage_Controller'
337: [15:24:06] <Pymtngk> yeah, no.
338: [15:24:09] <Pymtngk> that's wrong.
339: [15:24:29] <Pymtngk> $this is the class. ie Page_Controller.
340: [15:24:44] <ocm> Pymtngk, was that loud and long lasting fuck really necesary? :P
341: [15:25:16] <Pymtngk> you want $form = new Form($this, __FUNCTION__, $fields, $actions); $form->addExtraClass('class');
342: [15:25:23] <Pymtngk> return $form;
343: [15:25:24] <Pymtngk> ocm: yes.
344: [15:25:39] <Pymtngk> it accurately described my state at the time.
345: [15:25:54] <Pymtngk> just about yelled it out loud in the office.
346: [15:26:04] <ocm> LOUD NOISES!!!
347: [15:26:10] <Pymtngk> yep.
348: [15:26:12] <ocm> why is your state so bad?
349: [15:26:25] <Pymtngk> see 2 lines down from noise.
350: [15:26:48] <ocm> bwhahahaha
351: [15:26:57] <ocm> you are a bad excuse man
352: [15:26:59] <Pymtngk> I dunno if you've noticed or if it's the same there as here, but it's hot as hell and humid as all nastyness.
353: [15:27:09] <ocm> the humidity is not that bad actually
354: [15:27:16] <Pymtngk> it is here :<
355: [15:27:17] <ocm> normaly it gets like hell around here
356: [15:27:25] <ocm> like on friday
357: [15:27:37] <ocm> I changed shirts 3 times while at the office because it was soaked
358: [15:27:44] <ocm> so now I got a nice stash of salt
359: [15:27:58] <Pymtngk> I want to go to ansterdam and buy a suit, but... too much moneys
360: [15:28:15] <ocm> why go to amsterdam to buy a suit?
361: [15:28:21] <ocm> why go to amsterdam anyway?
362: [15:28:23] <Pymtngk> they only sell them there
363: [15:28:25] <ocm> just tourism there
364: [15:28:35] <Pymtngk> well, probably not entirely true.
365: [15:28:38] <ocm> a suit made of canabis? haha
366: [15:28:39] <Pymtngk> ocm: I would be a tourist!
367: [15:28:44] <harold__> could it be that I have an old verison of SS
368: [15:28:46] <harold__> http://paste2.org/7ZOA3ZsP
369: [15:28:50] <ocm> but amsterdam is tourist city, we got better places to visit
370: [15:28:57] <harold__> the method 'addextraclass' does not exist on 'ContactPage_Controller'
371: [15:29:12] <ocm> harold__ why don't you use the bootstrap addon for silverstripe forms?
372: [15:29:16] <Pymtngk> harold__: you didn't remove the error is why. see line 3
373: [15:29:16] <ocm> way easier imho
374: [15:29:32] <Pymtngk> ocm: because it's terrible.
375: [15:29:42] <harold__> for this particular project I am not adding bootstrap but a custom css
376: [15:29:43] <Pymtngk> but probably quite good if your'e into that kinda thing I guess.
377: [15:29:54] <harold__> i know i said earlier i am adding bootstrap but this is leading to it
378: [15:30:38] <harold__> ok i think i got it at last
379: [15:30:41] <harold__> thnaks
380: [15:30:56] * jenniferaslan has joined #silverstripe
381: [15:31:09] * spronk2 quit (Quit: spronk2)
382: [15:32:44] <Pymtngk> http://sspaste.com/paste/show/53ce7ff715b8e
383: [15:32:47] <Pymtngk> gah, too late :<
384: [15:32:57] <Pymtngk> But yeah, don't use new.
385: [15:33:01] <Pymtngk> use ::create()
386: [15:33:35] <Pymtngk> if the object you're making's class extends from Object
387: [15:35:49] <ocm> how do I get the classname of a controller?
388: [15:35:55] <ocm> controller->className?
389: [15:36:45] <Pymtngk> yes
390: [15:36:53] <Pymtngk> controller->class also works
391: [15:37:00] <Pymtngk> get_class($this) also works
392: [15:37:01] <ocm> ah thnx
393: [15:37:15] <Pymtngk> depends on what it extends from, etc.
394: [15:37:38] <ocm> the security controller
395: [15:38:45] <Pymtngk> ->data doesn't exist on security controller
396: [15:38:59] <ocm> hm I just notice
397: [15:39:05] <ocm> I don't need to fix the bug myself
398: [15:39:11] <ocm> seems it has been done already
399: [15:39:14] <ocm> https://github.com/silverstripe/silverstripe-blog/blob/master/code/BlogTree.php
400: [15:39:44] <ocm> was about to do a pullrequest for my solutiuon
401: [15:39:47] <ocm> but it is already there
402: [15:41:00] <Pymtngk> yep, that's the fix alright. was going to suggest that
403: [15:41:29] <Pymtngk> really it should probably be if($controller && $controller->hasMethod())
404: [15:41:44] <Pymtngk> but it depends on whether Controller::curr() returns null on failure
405: [15:42:03] <Pymtngk> if it returns Controller::create, then it's probably not all bad.
406: [15:42:06] <ocm> it all seems to work, the whole current function is fixed there
407: [15:42:33] <ocm> now atleast I have a good argument for the client to upgrade and pay me for it
408: [15:42:38] <ocm> instead of fixing bugs
409: [15:43:04] <Pymtngk> ah, it errors actually http://api.silverstripe.org/3.1/source-class-Controller.html#388-398
410: [15:43:59] <Pymtngk> still, not sure why that causes a security error
411: [15:44:39] <ocm> the error wasn't a security error I think, it was looking for something that does not exist in the Security_Controller
412: [15:44:41] * lietzmk has joined #silverstripe
413: [15:45:12] <Pymtngk> yes but it shouldn't be looking for data on the security controller
414: [15:45:15] <ocm> well, I think it is time to go home and place my ass in a freezer
415: [15:45:40] <ocm> oh well, people shoulnd't do stupid thing nor fight wars
416: [15:45:42] <Pymtngk> Security uses itself, not a blog page.
417: [15:45:47] <ocm> they do both, and they can think for themself
418: [15:45:55] <Pymtngk> hmm... sometiems.
419: [15:45:57] <Pymtngk> heh
420: [15:47:29] * Alboes quit (Remote host closed the connection)
421: [15:48:35] <ocm> hell yea, I have had such a productive day today
422: [15:48:44] <ocm> fixed 5 whole bugs (not counting this one)
423: [15:48:58] <ocm> and created a nice passwordtstrength checker
424: [15:49:24] <ocm> it only passes if you use 62 _unique_ alphanumberic characters
425: [15:49:30] <ocm> upper/lowercase
426: [15:49:31] <ocm> :D
427: [15:50:06] <Pymtngk> ocm: so... just the entire alphabet. A single string with only a set number of combinations?
428: [15:50:43] <ocm> :A
429: [15:50:45] <ocm> :D
430: [15:50:48] <ocm> I was kidding
431: [15:50:52] <Pymtngk> lol
432: [15:50:57] <ocm> you can set your own rules
433: [15:51:20] <ocm> might put it on github or gist it somewhere
434: [15:51:34] <Pymtngk> today I did the hard sudoku.
435: [15:51:47] <ocm> oh wow
436: [15:51:49] <Pymtngk> micmania1: save travels and happy journey!
437: [15:52:06] <ocm> anyway, I am out now need to catch this bus
438: [15:52:16] <ocm> otherwise I have to stay here for another 75 minutes
439: [15:52:23] <Pymtngk> Just walk, the weather is good
440: [15:52:29] * Liongold has joined #silverstripe
441: [15:52:45] <micmania1> Pymtngk: cheers! Guess i'll see you on the other side at some point?
442: [15:52:53] <Pymtngk> micmania1: undoubtedly!
443: [15:53:06] <Pymtngk> probably in about a year and a half¬ish
444: [15:53:09] <Pymtngk> ~ish
445: [15:53:23] <Pymtngk> what the fuck even is ¬
446: [15:53:25] <Pymtngk> this
447: [15:55:03] <Pymtngk> ¦
448: [15:55:05] <Pymtngk> idek
449: [15:55:15] <Pymtngk> ijdek ss23
450: [15:56:32] <Pymtngk> ¬¦€£éúíóá
451: [15:58:25] <Pymtngk> oh it is negation. I thought it was :>
452: [15:59:14] <micmania1> logging out for the last time (from here)
453: [15:59:23] <micmania1> see ya
454: [16:00:00] * harold__ quit (Quit: Page closed)
455: [16:01:23] <Pymtngk> yep, it's like f'n hometime nearly 'n shit.
456: [16:01:28] * Pymtngk quit ()
457: [16:02:23] <Liongold> Hi. I have a function which checks for url parameters. However, I don't know how I can implement it in the page exactly.
458: [16:04:33] <Liongold> can anyone help me please?
459: [16:05:33] * r3v3rb has joined #silverstripe
460: [16:09:03] * zfmf has joined #silverstripe
461: [16:09:14] * zfmf has left #silverstripe
462: [16:10:07] <kinglozzer> Liongold: Well, if you have a function in your Page_Controller called MyParameterCheck, you can use <% if MyParameterCheck %> in templates
463: [16:10:17] <kinglozzer> Is that what you mean?
464: [16:10:50] <Liongold> kinglozzer: So I put that underneath include $Sidebar?
465: [16:11:22] <Liongold> And why is the if?
466: [16:11:37] <kinglozzer> Liongold: I have no idea where you put it, I don't know what your page looks like...
467: [16:11:50] <kinglozzer> Liongold: The if was just an example, you could use $MyParameterCheck on its own
468: [16:11:56] <Liongold> Does it matter where it is put, I mean?
469: [16:12:23] <Liongold> My code includes some if statements already.....
470: [16:12:30] <kinglozzer> Nope. Unless it's inside a <% loop %> statement
471: [16:13:30] <Liongold> So I can do include <% include $Check %>?
472: [16:13:54] <Liongold> and that does not need any output?
473: [16:15:57] <kinglozzer> Liongold: What does your Check() function return?
474: [16:18:07] <Liongold> kinglozzer: nothing
475: [16:18:20] <kinglozzer> Well it won't do anything then
476: [16:18:23] <kinglozzer> What do you want it to do?
477: [16:18:26] <Liongold> It just checks for the paramter and then runs a query depending on the parameter.
478: [16:18:51] <Liongold> I just wanted to know if it's possible to implement it without return. Thanks for your help.
479: [16:19:11] <kinglozzer> Liongold: If it doesn't return anything, why are you calling it from a template?
480: [16:19:37] <Liongold> I want to check if the paramater is present on the page.
481: [16:21:04] <kinglozzer> It sounds to me like you should call it from the Controller instead
482: [16:21:14] <kinglozzer> Can you paste the Controller? http://pastie.org
483: [16:23:55] <Liongold> http://pastie.org/private/9blk1knlrcne49um4yama
484: [16:24:27] * Fisix_AIX quit (Quit: Leaving)
485: [16:26:03] <kinglozzer> Liongold: You're running a query, getting an object and doing nothing with it?
486: [16:26:13] <kinglozzer> Why? D:
487: [16:26:20] <Liongold> The query is an update one.
488: [16:26:37] <kinglozzer> oic
489: [16:26:57] <Liongold> I might add a success meesage to it
490: [16:28:12] <kinglozzer> You don't need to call it from the template, you could add an allowed action (e.g. 'confirm') then users would visit http://mysite.com/some-page/confirm?key=foo. See http://doc.silverstripe.org/framework/en/topics/controller
491: [16:28:39] <kinglozzer> Anyway, home time
492: [16:28:43] <Liongold> Oh that's what I was looking for.
493: [16:28:47] <Liongold> Thanks.
494: [16:28:52] <kinglozzer> Liongold: No problem :)
495: [16:28:56] * kinglozzer quit ()
496: [16:30:50] * stnvh quit ()
497: [16:40:53] * lietzmk quit (Quit: Leaving)
498: [16:44:19] * MischaK has joined #silverstripe
499: [17:04:44] * Liongold quit (Quit: Page closed)
500: [17:24:30] <MischaK> do the require tags in ss templates auto combine css / js files when in live mode ?
501: [17:25:47] <MischaK> or should this be done in php code ?
502: [17:49:16] <muskie9> MischaK, you would need to do it in the page types controller using Requirements::combine_files() http://doc.silverstripe.com/framework/en/reference/requirements#combining-files
503: [17:50:12] * r3v3rb quit (Quit: r3v3rb)
504: [18:27:58] * fdrechsler quit (Ping timeout: 260 seconds)
505: [18:36:48] <MischaK> k thx muskie9
506: [18:56:37] * BPower has joined #silverstripe
507: [18:56:45] <BPower> Heyo.
508: [18:57:00] <catcher> hey hey
509: [18:57:10] <BPower> So this (http://userhelp.silverstripe.org/framework/en/for-website-administrators/managing-roles-and-permissions) gives the example of a "Role" called "Author".
510: [18:57:22] <BPower> Authors could create and edit content, but not publish.
511: [18:57:36] <BPower> But I don't see any way to actually create such a role...
512: [18:57:51] <BPower> There's no "Publish any page" permission.
513: [18:57:55] <BPower> Am I missing something?
514: [19:11:05] <MischaK> probably :)
515: [19:11:29] <MischaK> let me have a quick look
516: [19:15:00] <harold_> hi has anyone got silverstripe bootstrap forms working
517: [19:15:09] <harold_> this is infinitely frustrating
518: [19:15:17] <harold_> 3 days and it still doesn't work
519: [19:16:24] <MischaK> BPower, you are looking for the publisher role
520: [19:17:21] <BPower> MischaK: I want a role which *restricts* publishing. In other words, they should be able to create and edit, but not publish.
521: [19:17:35] <harold_> how can it be so painful to create a bootstrap styled form
522: [19:17:44] <BPower> MischaK: I see no way to do that.
523: [19:17:51] <harold_> am I just not capable or am I just a sucker for punishment
524: [19:18:02] <harold_> I'm rapidly losing faithj
525: [19:18:24] <MischaK> BPower, isn't that the autohor role already
526: [19:18:31] <BPower> harold_: do you have a link? I haven't heard of SS Bootstrap
527: [19:18:48] <BPower> MischaK: ...there's no author role. A fresh install of SS comes with no roles.
528: [19:18:59] <harold_> https://github.com/unclecheese/silverstripe-bootstrap-forms
529: [19:19:41] <MischaK> BPower, weird mine has author and admin
530: [19:22:37] <harold_> it just doesn't work
531: [19:23:09] <MischaK> harold_, any errors given ?
532: [19:23:20] <BPower> harold_: I'd have to see your code or errors to help.
533: [19:23:28] <harold_> no errors just no output
534: [19:23:30] <BPower> does anything in this list describe your problem? https://github.com/unclecheese/silverstripe-bootstrap-forms/issues
535: [19:23:47] <BPower> harold_: be sure you've turned on error reporting.
536: [19:24:03] <BPower> and set your testing environment to "dev"
537: [19:24:30] <harold_> error reporting is on
538: [19:24:31] <harold_> http://paste2.org/6kvcd1NA
539: [19:24:46] <MischaK> you ran /dev/build ?
540: [19:25:00] <harold_> and my ss
541: [19:25:05] <harold_> templatte
542: [19:25:06] <harold_> http://paste2.org/8BMaJyO4
543: [19:25:12] <harold_> yes rebuilt and flushed 100 times
544: [19:27:19] * kerosene is now known as kerozene
545: [19:27:51] <MischaK> harold_, if you've been working on it for 3 days i'd probably have just gone for a pure html + js solution
546: [19:28:19] <harold_> i'm beginning to question if it's worth using SS
547: [19:28:34] <harold_> seriously something so basic - how can it be so draining
548: [19:29:56] <BPower> It's unlikely a SS issue.
549: [19:30:03] <MischaK> harold_, i know that feeling :)
550: [19:30:05] <BPower> What's the URL you're trying to access it from
551: [19:30:09] <BPower> ?*
552: [19:30:28] <BPower> And can you paste your template?
553: [19:30:44] <harold_> http://paste2.org/8BMaJyO4
554: [19:30:48] <harold_> I include that
555: [19:31:56] <BPower> where is $Form?
556: [19:32:10] <BPower> Try adding $Form to the very top and ?flush=1
557: [19:32:15] <BPower> as a test
558: [19:34:12] <MischaK> BPower, have you looked at the workflow modules as a potential solution for your problem?
559: [19:35:02] <harold_> [User Error] Uncaught Exception: Object->__call(): the method 'addhelptext' does not exist on 'TextField'
560: [19:35:16] <harold_> that's when I add $form to the top of my template
561: [19:35:24] <harold_> it just goes on and on
562: [19:35:53] <harold_> frustrating almost to the point of tears
563: [19:36:45] <BPower> that's actually a good sign
564: [19:36:47] <harold_> I rmove the lines that cause that error
565: [19:36:47] <harold_> [Notice] Use of undefined constant BOOTSTRAP_FORMS_DIR - assumed 'BOOTSTRAP_FORMS_DIR'
566: [19:36:51] <harold_> and on and on it goeas
567: [19:37:05] <BPower> You need to turn notice errors off.
568: [19:38:59] * kerozene is now known as kerosene
569: [19:39:14] <BPower> Add this to your _ss_environment or _config.php file: error_reporting(E_ALL ^ E_NOTICE);
570: [19:41:47] <harold_> [User Error] Uncaught Exception: Object->__call(): the method 'addhelptext' does not exist on 'TextField' GET /plumber/index.php/lewisham-plumber-contact Line 761 in D:\Software\WAMP\www\plumber\framework\core\Object.php
571: [19:41:55] <harold_> I've got to scrap this
572: [19:42:03] <harold_> need another approach
573: [19:42:35] <BPower> Just remove ->addHelpText('Enter some text above')
574: [19:43:19] <BPower> (nevermind)
575: [19:43:21] <harold_> I did and it gave another erro
576: [19:43:26] <harold_> [Notice] Use of undefined constant BOOTSTRAP_FORMS_DIR - assumed 'BOOTSTRAP_FORMS_DIR'
577: [19:43:38] <MischaK> notice = no error
578: [19:43:39] <harold_> however I am following the example from the authors' github
579: [19:43:54] <harold_> so if the example doesnt given there is little hope
580: [19:43:58] <BPower> yes -- you need to set your environment to disable notices.
581: [19:44:30] <BPower> it sounds to me like you're headed in the right direction. I think the there's something simple that you've not handled (e.g. maybe the module is installed in the wrong location, or a missing file, ...)
582: [19:44:58] <BPower> once we identify what that is, it should be smooth sailing
583: [19:45:23] <BPower> (at least comparatively)
584: [19:45:44] <BPower> do you have this code in a repo on GitHub or something that I could take a look at?
585: [19:48:57] <harold_> https://github.com/unclecheese/silverstripe-bootstrap-forms
586: [19:49:22] <BPower> I meant, *your* code.
587: [19:49:41] <harold_> http://paste2.org/6kvcd1NA
588: [19:49:44] <harold_> http://paste2.org/8BMaJyO4#
589: [19:49:50] <harold_> http://paste2.org/8BMaJyO4
590: [19:50:07] <harold_> new error
591: [19:50:08] <harold_> [User Error] Uncaught Exception: Object->__call(): the method 'bootstrapify' does not exist on 'FieldList'
592: [19:50:44] <BPower> harold_: I need to see ALL your code in order to help. There is something fundamentally wrong with how you've tried to install it.
593: [19:51:24] <harold_> I appreciate the offer of help, it's just too much effort and time to post all my code for such a fundamental function
594: [19:51:29] <harold_> I have to find another approach
595: [19:52:23] <BPower> if you installed this one wrong, then you'll likely install others wrong. Like I said, it's likely a very simple solution.
596: [19:52:41] <BPower> We just can't diagnose it without seeing it in context.
597: [19:52:43] <harold_> I've checked the zip 3 times over
598: [19:52:52] <BPower> zip?
599: [19:52:54] <harold_> copied the file structure excatly
600: [19:55:51] <BPower> that's fine. but where did you put the files in your SilverStripe installation?
601: [19:56:09] <harold_> in the correpsonding folders
602: [19:56:40] <BPower> that's probably the problem.
603: [19:57:07] <BPower> are you using the CMS or just the Framework?
604: [19:59:41] <harold_> CMS
605: [20:02:16] <BPower> harold_: this is what it should look like in a FRESH silverstripe CMS install + the module: http://imgur.com/RkAt4MD
606: [20:03:42] <harold_> i don't have the silverstripe-bootstrap-forms-master
607: [20:05:29] <BPower> Correct. It seems when you installed the module, you copied all the files into their respective folders inside mysite. That's actually not correct. You should undo all of that.
608: [20:06:01] <BPower> Instead, simply extract the ZIP folder directly at the top level. That should create the silverstripe-bootstrap-forms-master folder that you see.
609: [20:06:08] <harold_> so i just copy the folder into the root and I don't copy things into their corresponding folders?
610: [20:06:14] <BPower> correct
611: [20:06:30] <harold_> wow no mention of that on the github page
612: [20:07:30] <BPower> ya. it's an assumed feature of SilverStripe. SilverStripe ought to do a better job explaining how to install modules in general. As you can see, it's much easier than most people think.
613: [20:09:39] <harold_> no help for the newbies
614: [20:12:20] <harold_> ok so now I don't get the errors
615: [20:12:33] <harold_> but now I have no form on my template page
616: [20:12:48] <harold_> do i need to includes the BootstrapForm.ss?
617: [20:14:29] * Olliepop has joined #silverstripe
618: [20:15:44] * mobiusnz quit (Quit: Leaving.)
619: [20:16:55] <BPower> Now you can add the Form method to your Page_Controller like before
620: [20:19:28] <harold_> here is my paste
621: [20:19:29] <harold_> http://paste2.org/c7K8UHeb
622: [20:20:21] * UndefinedOffset quit (Quit: Leaving.)
623: [20:20:31] <harold_> and my template:
624: [20:20:34] <harold_> http://paste2.org/G7kjUxFj
625: [20:20:35] <harold_> brb
626: [20:22:21] <BPower> So to access that form, you'll need to change "$form = " to "return "
627: [20:22:23] <BPower> see here: https://gist.github.com/nathanbrauer/dd7ee6240e43bb4e1b0a/revisions
628: [20:22:43] <BPower> Here's the final: https://gist.github.com/nathanbrauer/dd7ee6240e43bb4e1b0a/
629: [20:22:53] <BPower> Now you have two options.
630: [20:24:02] <BPower> The way you currently have it setup, if your page URL is example.com/contact, you'll have to visit example.com/contact/ContactForm to access the form itself.
631: [20:24:15] <BPower> You probably just want to include the ContactForm directly on /contact.
632: [20:24:32] <BPower> So, remove 'ContactForm' from allowed_actions.
633: [20:24:44] <BPower> Then add $ContactForm to your template where you want it to appear.
634: [20:25:06] <BPower> (to ContactPage.ss)
635: [20:26:12] * Stomach has joined #silverstripe
636: [20:34:15] * mobiusnz has joined #silverstripe
637: [20:42:33] * nickmolhoek has joined #silverstripe
638: [20:55:46] * irogue_ has joined #silverstripe
639: [20:57:05] <irogue_> halp textual is wearing a party hat
640: [20:59:37] * Ryan-Toast has joined #silverstripe
641: [21:01:27] * firefox2kx quit (Ping timeout: 245 seconds)
642: [21:01:29] * Cheddam has joined #silverstripe
643: [21:09:02] * travis-ci has joined #silverstripe
644: [21:09:02] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2925 (3.1 - 350ee4d : Damian Mooyman): The build passed.
645: [21:09:02] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/59e7f777a241...350ee4d421d0
646: [21:09:02] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/30593953
647: [21:09:02] * travis-ci has left #silverstripe
648: [21:11:09] <harold_> BPower: wow I think it works!
649: [21:12:22] * willr has joined #silverstripe
650: [21:16:42] * shellbackpacific quit (Quit: Leaving.)
651: [21:17:39] <irogue_> THE BUILD PASSED
652: [21:17:46] <irogue_> that'll be why tractorcow was dancing in the corner
653: [21:17:55] * catcher quit (Quit: Leaving)
654: [21:23:17] * UncleCheese has joined #silverstripe
655: [21:25:44] <muskie9> that moment when you've been wrestling with a require once error for hours and you realize your framework folder was empty... http://i.imgur.com/5WQskMW.gif
656: [21:32:00] <irogue_> muskie9: bahahaha
657: [21:32:38] <muskie9> my rewrites in nginx still arent working, but at least the site comes up now
658: [21:33:02] <muskie9> anyone work with nginx before? first timer
659: [21:35:02] <irogue_> muskie9: yep. can you pastie your rewrite stuff?
660: [21:35:13] <muskie9> using this: https://gist.github.com/chtombleson/8703899
661: [21:35:45] <muskie9> here's mine: https://gist.github.com/anonymous/a97aceb291a6f5ab57e8
662: [21:37:06] <irogue_> muskie9: and what's the behaviour currently?
663: [21:38:18] <muskie9> uses index.php rather than the rewriting, so mysite.com/about-us is mysite.com/index.php/about-us
664: [21:39:13] <irogue_> and if you go to mysite.com/about-us it errors?
665: [21:41:15] <muskie9> doesn't error, but shows the home page's content
666: [21:42:19] <muskie9> home: http://i.imgur.com/mmCgzII.png
667: [21:42:33] <muskie9> index.php/about-us: http://i.imgur.com/birXIok.png
668: [21:43:18] <irogue_> so going to mysite.com/about-us redirects to mysite.com/index.php/about-us?
669: [21:43:39] <muskie9> no, stays /about-us/ but shows the home page
670: [21:43:47] <muskie9> http://i.imgur.com/p38yWzI.png
671: [21:43:57] <irogue_> weird
672: [21:44:03] <muskie9> definitely
673: [21:44:55] <irogue_> have you run a /dev/build and a /?flush=all since you put the rewrites in?
674: [21:46:29] <muskie9> hadn't
675: [21:47:08] <muskie9> same result after /dev/build/ and a flush
676: [21:50:07] <irogue_> muskie9: unfortunately I haven't got the time at the moment to set up a site with that config and see if I can figure it out
677: [21:50:17] <irogue_> damn clients and their deadlines
678: [21:50:58] <muskie9> no worries, I'll play around with the conf file... I assume that's something is/isn't happening currently for the rewrite
679: [21:56:17] <irogue_> fwiw I generally use a slightly modified version of http://doc.silverstripe.org/framework/en/installation/nginx
680: [21:56:47] <irogue_> ignore the comment about it missing important bits, that was 2 years ago and it's been updated a lot since then by simon_w|work
681: [21:57:13] <muskie9> I'll give that one a go, thanks irogue_
682: [22:02:21] * shellbackpacific has joined #silverstripe
683: [22:03:10] <Stomach> Ryan-Toast, TI4 finals were a bit shit
684: [22:03:18] <Ryan-Toast> Stomach: Yup
685: [22:03:26] <Cheddam> Magic is the wurst
686: [22:03:35] <Ryan-Toast> Stomach: VG has one strat, and NewBee knew how to counter it.
687: [22:03:40] <Ryan-Toast> gg
688: [22:04:01] <Ryan-Toast> “Okay guys, deathball failed, let’s try it again and again"
689: [22:04:10] <Stomach> with squishier heroes!
690: [22:04:25] <Ryan-Toast> I’m not mad, rest of the tournament was amazing.
691: [22:04:44] <Ryan-Toast> Would have loved to see a DK EG final though.
692: [22:11:26] <Stomach> anything with > 17 minute long games and more than one rax going down would have been nice
693: [22:18:05] <Stomach> how was the pubstomp?
694: [22:30:47] <MischaK> nice gif :)
695: [22:33:10] * shellbackpacific quit (Quit: Leaving.)
696: [22:33:54] <Ryan-Toast> Stomach: It was good, nice atmosphere. Plenty of booze too.
697: [22:35:10] <Ryan-Toast> what’s the path to show queries again? is it ?showqueries=1 ?
698: [22:38:20] <muskie9> Ryan-Toast, yes: http://doc.silverstripe.org/framework/en/reference/urlvariabletools#database
699: [22:42:39] <UncleCheese> hmm... can you do casting from within a TemplateIteratorProvider?
700: [22:49:59] <Stomach> it just provides methods that can be called, so can you not cast from within those methods?
701: [22:52:54] <Ryan-Toast> Stomach: Was reading wool on my flights, and at night. It’s great!
702: [22:59:50] * markcl has joined #silverstripe
703: [23:01:25] <UncleCheese> Stomach yes!
704: [23:01:35] <UncleCheese> just return new HTMLText()
705: [23:01:44] <UncleCheese> should have thought of that
706: [23:27:36] <BPower> harold_: Wonderful!! Did you notice, the writer of the module is in IRC now. UncleCheese :)
707: [23:29:17] <UncleCheese> hmm?
708: [23:29:38] <MischaK> Fame and recognition !!
709: [23:33:36] <MischaK> UncleCheese, recap: harold_ has / had a problem with the bootstrap forms module.
710: [23:33:42] <UncleCheese> ohhh
711: [23:34:51] <UncleCheese> must have been the "sorry, doesn't work" ticket i got this morning
712: [23:35:44] <BPower> UncleCheese: He's new to SS and wasn't aware of exactly how to install modules. I believe he copied each file into mysite (e.g. module/code/Something.php to mysite/code/Something.php)
713: [23:37:15] <UncleCheese> yeah, i think i turned him on to composer
714: [23:37:30] <BPower> Rather than just placing the directory at root level
715: [23:37:41] <BPower> I'm still not up to speed on composer.
716: [23:37:47] <BPower> I need someone to walk me through it some time.
717: [23:38:11] <MischaK> to be honest i dont think that's really clear, where you have to place modules etc.
718: [23:38:41] <MischaK> a modules directory placeholder might have been easier
719: [23:38:41] <BPower> MischaK: I completely, absolutely agree.
720: [23:39:08] <UncleCheese> yeah.. one big problem is that no one really enfoces the directory name
721: [23:39:17] <UncleCheese> you can do that via composer extras
722: [23:39:33] <UncleCheese> or just define a constant in the _config.php to the install directory
723: [23:39:52] <simon_w|work> If you enforce a name for your module's folder, you're doing it wrong
724: [23:39:54] <UncleCheese> but 3.2 is supposed to start using the vendor folder
725: [23:39:59] <BPower> Technically everything is a module in SS. I think it would be good to do something like /framework, /modules/mysite, /modules/cms, /modules/unclecheese
726: [23:40:24] <UncleCheese> nah, i think we shoujld just adhere to the convention of using the vendor folder
727: [23:40:43] <BPower> If so, then it should be forced.
728: [23:40:47] <UncleCheese> root directory is way too polluted right now
729: [23:40:57] <BPower> E.g. modules outside of vendor won't work.
730: [23:41:11] <UncleCheese> simon_w|work do you know why non-ss dependencies install to vendor, but ss modules don't? I never got that
731: [23:41:12] <simon_w|work> While we're at it, we should follow the convention of having a case-sensitive class loader!
732: [23:41:24] <BPower> . /vendor, /modules same thing to me
733: [23:41:24] <UncleCheese> psr-4!
734: [23:41:31] <simon_w|work> UncleCheese, there's a handler for silverstripe-module in composer/installers
735: [23:41:45] <UncleCheese> ohh
736: [23:42:00] <ss23> ^ which is something I hate about composer, how it handles that
737: [23:42:22] <ss23> If you don't explicitly include the dependency on composer/installers, it won't include it, and even if you've specified an installer, it'll silently ignore it
738: [23:42:33] <ss23> and you can get weird situations where it'll install some in the right place, and some not
739: [23:42:37] <ss23> idk
740: [23:42:37] <ss23> it's stupid
741: [23:44:23] <BPower> So this (http://userhelp.silverstripe.org/framework/en/for-website-administrators/managing-roles-and-permissions) gives the example of a "Role" called "Author".
742: [23:44:27] <BPower> Authors could create and edit content, but not publish.
743: [23:44:32] <BPower> But I don't see any way to actually create such a role...
744: [23:44:36] <BPower> There's no "Publish any page" permission.
745: [23:44:41] <BPower> Am I missing something?
746: [23:45:15] <simon_w|work> BPower, the userhelp includes a bunch of modules that aren't stock
747: [23:45:26] * Colin[pi] has joined #silverstripe
748: [23:45:33] <simon_w|work> In that case, advanceworkflow
749: [23:46:09] <MischaK> I did suggest to look at workflow modules :)
750: [23:46:19] <UncleCheese> roles are stock, no?
751: [23:46:35] <simon_w|work> UncleCheese, advanceworkflow isn't
752: [23:46:38] <BPower> simon_w|work: OK. So, simply put, I just want to give my client access to edit, but not publish. That seems like it should be included in stock roles.
753: [23:46:54] <MischaK> i have author / administrator not publisher which is referred in the help website
754: [23:46:58] <BPower> I mean, stock roles have "Edit any page" and "View any page"
755: [23:47:21] <BPower> It doesn't make sense that it stops at editing.
756: [23:47:29] <simon_w|work> BPower, canPublish() is just a call to canEdit() by default. Is relatively simple to make it check a different permission
757: [23:48:28] <BPower> So, I guess I'm arguing that it shouldn't be that by default.
758: [23:49:32] <Kingy^> ORDER BY
759: [23:49:32] <Kingy^> (Category='Dairy') DESC, (Category='Red Meat') DESC, (Category = 'Forest') DESC
760: [23:49:33] <Kingy^> Hey all. Is it possible to do something like this
761: [23:49:59] <ss23> Yeah, in raw SQL definitly... not sure about the SS way of doing it with the ORM
762: [23:50:22] <simon_w|work> BPower, there's a place for feature requests now!
763: [23:50:34] <Kingy^> alright thanks ss23
764: [23:51:37] <BPower> simon_w|work: ;)
765: [23:51:46] <irogue_> http://silverstripe.uservoice.com/forums/251266-new-features
766: [23:51:49] * irogue_ throws that into the mix
767: [23:52:16] <Colin[pi]> moin moin
768: [23:52:27] <irogue_> oh hello Colin[pi], nice of you to finally join us :P
769: [23:52:35] <Kingy^> ss23: do I need to do the whole query raw? Or can I go Products::get()->exclude(blah) and then throw in some raw sql for ordering?
770: [23:52:39] <Colin[pi]> kid, school, traffic, all that jazz
771: [23:52:50] <ss23> lol @ "make the framework faster" irogue_
772: [23:52:59] <ss23> I mean, I'm not going to disagree, but one of those "easier said than done" things, right?
773: [23:53:06] <Kingy^> Colin[pi]: does your kid go to school halfway across the country?
774: [23:53:20] <ss23> Kingy^: I am not sure sorry :(
775: [23:53:21] <Colin[pi]> Kingy^: basically, yes
776: [23:53:31] <simon_w|work> Colin[pi], man, how fast were you driving?
777: [23:53:42] <Colin[pi]> simon_w|work: ludicrous speed
778: [23:53:42] <simon_w|work> I know the roads are all straight, but that's still excessive
779: [23:53:48] <irogue_> ss23: just sam stirring up conversation :P
780: [23:54:05] <Colin[pi]> I gave it two votes, that's my biggest issue with SS3
781: [23:54:51] <ss23> >biggest issue
782: [23:54:54] <simon_w|work> Gah! Bloody PHP, passing in an empty string to the session reader
783: [23:55:00] <ss23> >still won't merge simon_w|work's change that speeds shit up easily and quickly
784: [23:55:11] <ss23> simon_w|work: do you have a link to that PR btw?
785: [23:55:46] <irogue_> one thing we should do is make opcode cache compulsory :P
786: [23:55:54] <simon_w|work> ss23, https://github.com/silverstripe/silverstripe-framework/pull/2736
787: [23:56:08] <simon_w|work> Gave up on it since it wasn't getting anywhere (thanks Hamish!)
788: [23:56:15] <irogue_> which would really piss off those on shitty shared hosts they shouldn't be trying to run SS on anyway
789: [23:57:02] <Colin[pi]> shared hosts need to die
790: [23:57:28] <irogue_> some shared hosts are ok
791: [23:57:38] <irogue_> mostly those who aren't running plesk or cpanel
792: [23:57:59] <ss23> I'd rather drop IIS and 5.3 support before we make opcode cache compulsary
793: [23:58:03] <MischaK> there shouldnt be any problems with shared hosting if the shared hosting isn't really bad
794: [23:58:27] <irogue_> MischaK: yes, and shared hosting that isn't shit will have opcode caching, so all g :)
795: [23:58:41] <Colin[pi]> are opengraph tags standard on SS3? or via module?
796: [23:58:46] <irogue_> ss23: absolutely both of those things need to happen also
797: [23:58:48] <ss23> We could make it faster and infinitly more simple by removing the errorchaincontroller too...
798: [23:59:13] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
799: [23:59:16] <ss23> irogue_: FWIW, Sam said he was open to dropping IIS *if* we can make it incredibly simple to set up for beginniners on Windows, like maybe use Vagrant etc
800: [23:59:19] <ss23> ;)
801: [23:59:33] <ss23> Though that was more made in passing than serious talk
802: [23:59:42] <irogue_> well, sam knows I'm already working on vagrant stuff
803: [23:59:53] <Colin[pi]> ss23: fuck I run it on apache on windows, manual install, was not difficult at all
804: [23:59:59] <MischaK> what, dropping IIS support :(

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