#silverstripe IRC Log

IRC log for 29 January 2013

All timestamps are in UTC.

1: [00:00:00] * travis-ci has left #silverstripe
2: [00:00:00] * travis-ci has joined #silverstripe
3: [00:00:00] <travis-ci> [travis-ci] silverstripe/sapphire#1258 (master - cd1e87c : Ingo Schommer): The build has errored.
4: [00:00:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/f70652c8b4f3...cd1e87cb3b94
5: [00:00:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4441160
6: [00:12:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
7: [00:15:00] <Pyromanik> DesignerX: deadlytechnology.com, logs.silverstripe.org
8: [00:16:00] <Pyromanik> balbus.tk
9: [00:16:00] <pex__> logs... is defenitely good idea
10: [00:17:00] <Pyromanik> github
11: [00:17:00] * EPIK has joined #silverstripe
12: [00:17:00] <Pyromanik> forums
13: [00:17:00] <simon_w> it's logs.simon.geek.nz :p
14: [00:18:00] <Pyromanik> or whatever
15: [00:18:00] <Pyromanik> mm
16: [00:18:00] <simon_w> Yes, but that means searching it doesn't work too good
17: [00:18:00] <Pyromanik> or 302
18: [00:18:00] <Pyromanik> simon_w: I know, but it should 301 right?
19: [00:18:00] <Pyromanik> balbuss.com
20: [00:22:00] <DesignerX> Pyromanik: forums & github
21: [00:22:00] <simon_w> forums you get by searching silverstripe.org
22: [00:22:00] <simon_w> github is too broad
23: [00:22:00] <DesignerX> ?
24: [00:23:00] <Pyromanik> but probably not
25: [00:23:00] <Pyromanik> not unless the project has it's own subdomain I guess.
26: [00:23:00] <Pyromanik> mm, I wondered if there was a way to limit the broadness
27: [00:25:00] * hubertusanton quit (Ping timeout: 255 seconds)
28: [00:26:00] <DesignerX> searches sites including: http://www.silverstripe.org/for..., logs.simon.geek.nz, http://deadlytechnology.com/, http://www.ssbits.com/, http://api.silverstripe.org
29: [00:29:00] <Pyromanik> balbus.tk
30: [00:29:00] <Pyromanik> balbuss.com
31: [00:29:00] <Pyromanik> doc.silverstripe.org
32: [00:30:00] <DesignerX> balbus.tk is old
33: [00:33:00] <Pyromanik> rofl
34: [00:33:00] <Pyromanik> yeh
35: [00:33:00] <Pyromanik> gridfield
36: [00:33:00] <Pyromanik> you and your english heuristics
37: [00:33:00] <Pyromanik> "Add Slide" "Search for Slids by title"
38: [00:33:00] <Pyromanik> but still good
39: [00:34:00] <DesignerX> "Add Slide" "Search for Slids by title" ?
40: [00:34:00] <Pyromanik> ?
41: [00:34:00] <DesignerX> what is that !
42: [00:36:00] <Pyromanik> GridFieldConfig_RelationEditor
43: [00:36:00] <Pyromanik> on my has_many Slides
44: [00:38:00] * hubertusanton has joined #silverstripe
45: [00:45:00] <FrozenFire> DataObject::$singular_name and DataObject::$plural_name ?
46: [00:47:00] * hubertusanton quit (Ping timeout: 252 seconds)
47: [01:00:00] * aznain has joined #silverstripe
48: [01:01:00] <aznain> I am using function to get value inside template ... how can i test whether value return or not
49: [01:01:00] * hubertusanton has joined #silverstripe
50: [01:02:00] * mwm_ has joined #silverstripe
51: [01:05:00] <simon_w> <% if $Blah %>
52: [01:06:00] <aznain> <% if {$getSection('Section.Name')} %>
53: [01:07:00] <simon_w> no braces
54: [01:07:00] <aznain> i am trying like this but not working
55: [01:10:00] <aznain> @simon_w: thanks .. working
56: [01:44:00] * mwm_ quit (Ping timeout: 245 seconds)
57: [01:52:00] * FrozenFire quit (Read error: Connection reset by peer)
58: [01:56:00] * FrozenFire has joined #silverstripe
59: [01:59:00] * pex__ has left #silverstripe
60: [02:21:00] * SightUnseen has joined #silverstripe
61: [02:21:00] * SightUnseen has left #silverstripe
62: [02:24:00] <Pyromanik> FrozenFire: maybe, but I haven't set them, so I'm assuming it's just guessing to remove the e.
63: [02:32:00] <FrozenFire> Probably
64: [02:34:00] <Pyromanik> hmm
65: [02:35:00] <Pyromanik> error, method BooleanField does not exist on ThisDataObject
66: [02:35:00] <Pyromanik> $summary_fields = [...] 'BooleanField.Nice' => 'Is blah y/n'
67: [02:36:00] <Pyromanik> bug, y/n?
68: [02:36:00] <Pyromanik> (were $db [..] 'BooleanField' => 'Boolean'
69: [02:36:00] <Pyromanik> where*
70: [02:36:00] <Pyromanik> )
71: [02:37:00] <Pyromanik> hacked around by public function BooleanField(){return $this->dbObject('BooleanField');} but it seems like it should work regardless
72: [02:37:00] * aaron1245 quit (Quit: aaron1245)
73: [02:50:00] <simon_w> Pyromanik, well, the method didn't exist
74: [02:51:00] <Pyromanik> but
75: [02:51:00] <Pyromanik> yeh
76: [02:52:00] <Pyromanik> should it not just grab the dbobject, like a template checks?
77: [02:53:00] <Pyromanik> (I guess they return values not objects, but yeh)
78: [02:53:00] <Pyromanik> same way the rest of the summary fields work
79: [02:53:00] * aaron1245 has joined #silverstripe
80: [02:54:00] <Pyromanik> hence the discussion of whether nor not it's a bug rather than just proclaiming it is
81: [02:54:00] <Pyromanik> s/nor/or
82: [02:57:00] * ray__ has joined #silverstripe
83: [03:01:00] * Motoservo quit (Quit: Over & out.)
84: [03:09:00] * Err404NotFound has joined #silverstripe
85: [03:09:00] * Error404NotFound quit (Disconnected by services)
86: [03:21:00] * mirrors has joined #silverstripe
87: [03:22:00] <mirrors> Hi all...can anyone reccommend which module to use to make gridfield sortable
88: [03:22:00] <mirrors> SortableGridField vs gridfieldextensions
89: [04:11:00] * nickmolhoek quit (Quit: nickmolhoek)
90: [04:18:00] <mirrors> how about creating levels of tabs
91: [04:18:00] <mirrors> ?
92: [04:19:00] <mirrors> i can only get 2 levels working
93: [04:20:00] * willr_ quit (Quit: willr_)
94: [04:26:00] <mirrors> wow..ok you dont need to say new TabSet
95: [04:27:00] * aaron1245 quit (Quit: aaron1245)
96: [04:28:00] * ray__ quit (Ping timeout: 256 seconds)
97: [04:45:00] <mirrors> in SS 3 why can I not use Image.CMSThumbnail.Tag in summary fields anymore
98: [04:46:00] * instabil2 has joined #silverstripe
99: [04:47:00] * cloph_away has joined #silverstripe
100: [04:48:00] * cloph_away1 quit (Ping timeout: 260 seconds)
101: [04:50:00] * instabil quit (Ping timeout: 260 seconds)
102: [04:51:00] <mirrors> yeah cheers
103: [04:51:00] <DesignerX> mirrors: hi, for tabs, I justed test 4 levls of tabs, they work fine, just dor separated
104: [04:51:00] <DesignerX> looking at the image now,
105: [04:52:00] <DesignerX> mirrors: what is the .Tag for ?
106: [04:52:00] <DesignerX> I think you just do 'Image=>'Image' in the summary_fields & it should auto detect it ?
107: [04:53:00] <mirrors> yeah i ended up just creating a function getThumbnail() and then 'Thumbnail' => 'Image' in summary fields
108: [04:53:00] <mirrors> it is what i needed to do in SS2.4
109: [04:54:00] <mirrors> i am now getting this error when trying to upload an image SyntaxError: JSON.parse: unexpected character
110: [04:54:00] <mirrors> ah awesome removing the .Tag works
111: [04:54:00] <mirrors> now I am getting an upload error
112: [04:54:00] <DesignerX> thats new to me
113: [04:54:00] <mirrors> however the image still uploads and attaches
114: [04:54:00] <mirrors> very weird
115: [04:58:00] * mwm_ has joined #silverstripe
116: [05:03:00] * jrthomer quit (Quit: Leaving)
117: [05:09:00] * EPIK quit ()
118: [05:24:00] <mirrors> how do I include javascript when I open a dataobject in a gridfield
119: [05:34:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
120: [05:45:00] <aznain> you*
121: [05:45:00] <aznain> mirrors: are tou using modeladmin ?
122: [05:47:00] * liam has joined #silverstripe
123: [05:48:00] <mirrors> nope just gridfield on a page
124: [05:49:00] <mirrors> i just used requirements::javascript and I needed to end up using livequery
125: [05:51:00] <liam> anyone know if is possible to use the event calendar module without the cms and just a single controller?
126: [06:03:00] * liam quit (Read error: Connection reset by peer)
127: [06:36:00] * liam has joined #silverstripe
128: [06:56:00] * Shrike_Finland has joined #silverstripe
129: [06:57:00] <Shrike_Finland> Good morning
130: [07:02:00] <liam> trying to create a calendar in the event calendar module and keep getting this "[User Error] Uncaught InvalidArgumentException: SiteTree_Live is not a subclass of DataObject" any ideas why?
131: [07:17:00] <liam> is data extension used to extend controllers in ss3?
132: [07:23:00] * howardgrigg has joined #silverstripe
133: [07:25:00] * SightUnseen has left #silverstripe
134: [07:25:00] * SightUnseen has joined #silverstripe
135: [07:28:00] * mirrors quit (Quit: Page closed)
136: [07:37:00] * Err404NotFound quit (Quit: User guilty of hitting the Big Red X...)
137: [07:41:00] * DesignerX has joined #silverstripe
138: [08:03:00] <DesignerX> hi guys, I am having problem installing SS3 on my Ubuntu server , I get date.timezone setting and validity
139: [08:04:00] * hubertusanton quit (Quit: hubertusanton)
140: [08:04:00] <DesignerX> the "Default timezone " is correct in the phpinfo . I checked in the root foder & in /framework, they both return Australia/Melbourne
141: [08:05:00] <DesignerX> & I have date_default_timezone_set('Australia/Melbourne'); set in _config.php
142: [08:06:00] * guci0 has joined #silverstripe
143: [08:06:00] <guci0> Hi all!
144: [08:06:00] * hubertusanton has joined #silverstripe
145: [08:08:00] <DesignerX> hi
146: [08:09:00] <DesignerX> guci0: I get date.timezone setting and validity
147: [08:10:00] <DesignerX> has this happend to u before ?
148: [08:12:00] * Error404NotFound has joined #silverstripe
149: [08:14:00] * priithansen has joined #silverstripe
150: [08:19:00] <Marvanni> - = 0
151: [08:19:00] <DesignerX> Marvanni: let me see , I think I made an example a while back
152: [08:19:00] <Marvanni> any simple Gridfield example for a has_many relation ?
153: [08:19:00] <Marvanni> is can't get the auto relation save working
154: [08:19:00] <Marvanni> RelationID saves as -
155: [08:20:00] * travis-ci has left #silverstripe
156: [08:20:00] * travis-ci has joined #silverstripe
157: [08:20:00] <travis-ci> [travis-ci] silverstripe/sapphire#1263 (3.0 - 0a312b4 : Ingo Schommer): The build has errored.
158: [08:20:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/657c14fd8201...0a312b4eaf25
159: [08:20:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4447686
160: [08:21:00] <Marvanni> ah nvm
161: [08:22:00] <Marvanni> I need to use $this->Articles() instead of DataList::create()
162: [08:35:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
163: [08:36:00] <liam> ?
164: [08:36:00] <liam> anyone here ever used jquery fullcalendar?
165: [08:38:00] <DesignerX> not me
166: [08:40:00] * Error404NotFound has joined #silverstripe
167: [08:51:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
168: [08:54:00] * simon_w|air has joined #silverstripe
169: [08:56:00] * Error404NotFound has joined #silverstripe
170: [09:03:00] * Error404NotFound quit (Remote host closed the connection)
171: [09:08:00] * kinglozzer has joined #silverstripe
172: [09:15:00] * openbees has joined #silverstripe
173: [09:16:00] <openbees> Hello Everyone !
174: [09:17:00] <openbees> from silverstripe !
175: [09:17:00] <openbees> Is there any way to increase default login session timeout period ?
176: [09:17:00] <simon_w|air> That's an ini setting
177: [09:18:00] <openbees> hmm but can alter this using ini_set ?
178: [09:19:00] <simon_w|air> http://nz1.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime and http://nz1.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime, though the latter is overridden by Session::set_timeout(x)
179: [09:21:00] <simon_w|air> The cookie lifetime (so, Session timeout) is probably the main one to set
180: [09:22:00] <openbees> awesome thanks !
181: [09:24:00] <Guits> can you set locale in a controler to "force" it into another language?
182: [09:36:00] * bollox has joined #silverstripe
183: [09:40:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
184: [09:45:00] * chillu has joined #silverstripe
185: [09:48:00] * simon_w|air quit (Quit: This computer has gone to sleep)
186: [09:50:00] <Marvanni> What is the best way to set a public $var of a Page from within a Page_Controller?
187: [09:50:00] <Marvanni> I tried $this->dataRecord->var = true; but this does not seem to work
188: [10:04:00] * philbenoit has joined #silverstripe
189: [10:04:00] * openbees quit (Read error: Connection reset by peer)
190: [10:05:00] <travis-ci> [travis-ci] silverstripe/sapphire#1264 (3.0 - f0ef2ff : Ingo Schommer): The build has errored.
191: [10:05:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/0a312b4eaf25...f0ef2ff02bee
192: [10:05:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4449144
193: [10:05:00] * travis-ci has left #silverstripe
194: [10:05:00] <bollox> Hey guys, has anyone had any problems with content author permissions not being able to see results in a gridfield?
195: [10:05:00] <bollox> ss 3
196: [10:05:00] * travis-ci has joined #silverstripe
197: [10:07:00] * DigNZ has joined #silverstripe
198: [10:08:00] * DigNZ quit (Remote host closed the connection)
199: [10:08:00] * DigNZ has joined #silverstripe
200: [10:09:00] * DigNZ quit (Client Quit)
201: [10:12:00] <philbenoit> whats the best place to advice a plugin author of a potential security issue?
202: [10:14:00] <kinglozzer> Email them
203: [10:14:00] <kinglozzer> If you can
204: [10:15:00] * Error404NotFound has joined #silverstripe
205: [10:15:00] * openbees has joined #silverstripe
206: [10:17:00] * Error404NotFound quit (Disconnected by services)
207: [10:17:00] * Err404NotFound has joined #silverstripe
208: [10:19:00] * DigNZ has joined #silverstripe
209: [10:19:00] * DigNZ has joined #silverstripe
210: [10:19:00] * DigNZ quit (Remote host closed the connection)
211: [10:21:00] <philbenoit> thanks, done!
212: [10:22:00] <kinglozzer> If it's a security issue, then contact them any way you can that doesn't involve posting the issue in public :)
213: [10:23:00] <philbenoit> should be an easy fix for them
214: [10:23:00] <philbenoit> yeah got that
215: [10:24:00] <philbenoit> 150 pages of report
216: [10:24:00] <philbenoit> client had a full security audit done on the site, over 150 pages, and it passed with flying colors
217: [10:24:00] <philbenoit> good to know!
218: [10:30:00] <DesignerX> hi again, any idea whyt SS3 show this error in the installer ? date.timezone setting and validity date.timezone option in php.ini must be set correctly.
219: [10:30:00] <kinglozzer> DesignerX: Exactly what it says, you have to set a timezone in php.ini
220: [10:31:00] <kinglozzer> Is this on a local server or live?
221: [10:31:00] <DesignerX> the phpinfo has the timezone set + i set it in the _config.php
222: [10:31:00] <kinglozzer> For example, in my php.ini: date.timezone = "Europe/London"
223: [10:31:00] <DesignerX> i did , i dropped a pgp.ini in both root folder & /framework with no luck
224: [10:32:00] <DesignerX> a local server
225: [10:32:00] <DesignerX> I just made it available by ip (live )
226: [10:33:00] <kinglozzer> DesignerX: In your phpinfo, date.timezone has no value
227: [10:33:00] <DesignerX> kinglozzer: I PM u, dont wanan share my IP in public
228: [10:33:00] * zfmf has joined #silverstripe
229: [10:33:00] <kinglozzer> If it's on a local server, your php.ini won't be in your root website folder
230: [10:34:00] <ec8or> man ocado grocery shopping is fucking lush
231: [10:34:00] <DesignerX> i have webmin, is ther where it should be ?
232: [10:34:00] <kinglozzer> For example, I'm on mac and mine is in Applications/MAMP/bin/php/php5.3.6/conf/php.ini
233: [10:35:00] <philbenoit> love ocado!!
234: [10:35:00] <kinglozzer> DesignerX: Wait, it tells you in the install page for ss
235: [10:35:00] <kinglozzer> "Your php.ini file is located at /etc/php5/apache2/php.ini"
236: [10:35:00] <kinglozzer> Maybe that'll help
237: [10:35:00] <kinglozzer> DesignerX: http://www.ehow.com/how_8623639_edit-phpini-webmin.html
238: [10:35:00] <DesignerX> ah , i will look for it
239: [10:35:00] <DesignerX> this is ubuntu LAMP server + gui + Webmin in a VM , been working on it for a while, stuck at this + mod_rewrite
240: [10:36:00] <kinglozzer> For mod_rewrite
241: [10:36:00] <DesignerX> :)
242: [10:36:00] <kinglozzer> DesignerX: http://www.webhostingtalk.com/showpost.php?s=761cfd9a59afdfa20f95b66bf3d9b59d&p=6258598&postcount=4
243: [10:36:00] <kinglozzer> Google is great ;)
244: [10:37:00] <DesignerX> google, i though he is on a break ?! :)
245: [10:40:00] * howardgrigg quit (Ping timeout: 245 seconds)
246: [10:42:00] <DesignerX> kinglozzer: perfectt
247: [10:45:00] * kinglozzer quit (Read error: Connection reset by peer)
248: [10:48:00] * kinglozzer has joined #silverstripe
249: [10:50:00] * kinglozz_ has joined #silverstripe
250: [10:51:00] * kinglozz_ is now known as kinglozzer_
251: [10:53:00] * kinglozzer quit (Ping timeout: 256 seconds)
252: [10:57:00] * kinglozzer_ is now known as kinglozzer
253: [11:14:00] <Delfinisko> where can i download silverstripe 2.4.x?
254: [11:14:00] <Delfinisko> hello
255: [11:14:00] * Delfinisko has joined #silverstripe
256: [11:15:00] <kinglozzer> Delfinisko*
257: [11:15:00] <kinglozzer> Definisko: http://www.silverstripe.org/security-releases/
258: [11:16:00] <Delfinisko> wow, i was soo blind :) thank you :)
259: [11:17:00] <openbees> I am working with Translatable module for a mulit lang site .. Is there any way to change appearance of language name in front end .. like "Spanish" to "Espa?ol" right now it just gives me "Spanish" by using $Locale.Nice ?
260: [11:19:00] * liam quit (Quit: liam)
261: [11:20:00] <kinglozzer> chillu: What happened to ?debug_profile in 3.1? Has it been removed?
262: [11:20:00] <ss23> Delfinisko: MySQL 5.5 would be my recommendation. Not sure how well the pg support is for SS
263: [11:20:00] <Delfinisko> and... which database should i choose for SS? these are available from my hosting provider: MySQL 5.1, MySQL 5.5, postgres 9.1
264: [11:20:00] <bollox> Does anyone know if there is a problem with Content Author permissions not being able to see results in a grid field. It tells me there it is showing 1 of 5 results but doesn't list them
265: [11:20:00] <bollox> here is a screen shot??? http://cl.ly/image/1Y2B1z2F1y1u
266: [11:21:00] <chillu> Yes, xhprof is a much more sophisticated solution for this
267: [11:22:00] <kinglozzer> Ah damnit
268: [11:23:00] <kinglozzer> I don't have CLI access on our live sites :( I'm guessing you need that to install xhprof
269: [11:32:00] <Delfinisko> wow... strange problem. i cannot start silverstripe installation, but when i delete .htaccess, everything works. donno why
270: [11:33:00] <Delfinisko> pastebin htaccess: http://pastebin.com/3b4wMWis
271: [11:33:00] * Err404NotFound quit (Quit: User guilty of hitting the Big Red X...)
272: [11:33:00] <Delfinisko> permissions are 644 for all files
273: [11:34:00] * gelignite has joined #silverstripe
274: [11:37:00] <Delfinisko> anybody?
275: [11:37:00] * Error404NotFound has joined #silverstripe
276: [11:40:00] <kinglozzer> Hopefully it's an issue with the beta?
277: [11:40:00] <kinglozzer> Just trying 3.1beta, using Net tab in Firebug due to lack of CLI for profiling. Onload has increased from 220ms average to 575ms average...
278: [11:40:00] <kinglozzer> No idea, sorry
279: [11:43:00] <Delfinisko> 2.4.9 release, but maybe it is about strange configuration of my hosting provider
280: [11:49:00] * chillu quit (Quit: chillu)
281: [11:57:00] * philbenoit quit (Ping timeout: 245 seconds)
282: [12:02:00] * chillu has joined #silverstripe
283: [12:12:00] <openbees> anyone :( " I am working with Translatable module for a mulit lang site .. Is there any way to change appearance of language name in front end .. like "Spanish" to "Espa?ol" right now it just gives me "Spanish" by using $Locale.Nice ?"
284: [12:17:00] * Shrike_Finland quit (Quit: Leaving.)
285: [12:26:00] * openbees quit (Read error: Connection reset by peer)
286: [12:33:00] * Delfinisko quit (Quit: Leaving)
287: [12:33:00] * kinglozzer quit (Remote host closed the connection)
288: [12:35:00] * kinglozzer has joined #silverstripe
289: [12:52:00] * DimiStripe has joined #silverstripe
290: [12:58:00] <DimiStripe> Hi Guys ! , In SS3 if I have "many_many" RelatedPages to the ProductPage and place it to CMS with GridField , I cannot have any chekcboxes to check Products to be related. (It used to be in ManyManyComplexTableField in SS2) . Anyone can advise on how can I get checkboxes working there ?
291: [13:01:00] <priithansen> DimiStripe: I think maybe this is what you are looking for https://github.com/simonwelsh/silverstripe-GridFieldRelationHandler
292: [13:01:00] <kinglozzer> Stupid "wrong architecture" errors
293: [13:01:00] <kinglozzer> FINALLY. I've managed to install XHProf on my Mac :P
294: [13:02:00] * bollox quit (Quit: bollox)
295: [13:03:00] * UndefinedOffset has joined #silverstripe
296: [13:04:00] <DimiStripe> priithansen: Thanks - I'll try that !
297: [13:05:00] <priithansen> Have not tried it myself but the description seems to talk about what you're after
298: [13:31:00] <kinglozzer> chillu: Just been profiling 3.0.3 vs 3.1-beta1, 3.1 is considerably slower: http://i.imgur.com/H1hAYXT.png
299: [13:31:00] <kinglozzer> I'll pull the latest copy off Github this afternoon and see if there's any improvement
300: [13:32:00] * kinglozzer lunch
301: [13:32:00] <kinglozzer> For now..
302: [13:32:00] <chillu> Which URL? Custom code? Did the average of a couple of dozen runs?
303: [13:33:00] <chillu> kinglozzer: Great so see that you got xhprof going, its a crazy useful tool
304: [13:33:00] <chillu> Kudos to Facebook :)
305: [13:34:00] * DimiStripe quit (Ping timeout: 245 seconds)
306: [13:34:00] <kinglozzer> Yeah, it's pretty awesome! Home page on a site in development. I took 5 runs on each, the number of function calls matched each time, total inc. wall time varied by about 5000 microseconds at most
307: [13:35:00] <chillu> OK, 5 calls is a bit thin, but enough to drill down and debug. You'll want to look for the "exclusive wall time"
308: [13:36:00] <kinglozzer> 1
309: [13:36:00] <kinglozzer> mysqli::query is double on 3.1b
310: [13:37:00] <kinglozzer> Hmm, I've gotta go for my lunch. I'll take another look a bit later on :)
311: [13:38:00] <kinglozzer> chillu: Can you answer while I'm away: is there an easy way to take an average of say 15 runs? So I can compare more fairly. Thanks
312: [13:39:00] <chillu> xhprof should show you that if you click on the URL rather than an individual run
313: [13:40:00] <chillu> BTW, I'm using an (older version of) xhgui insetad of xhprof directly, gives you a bit more GUI capabilities: https://github.com/preinheimer/xhgui
314: [13:44:00] * MattyBalaam has joined #silverstripe
315: [13:46:00] <MattyBalaam> I???m wondering if it is possible to use Field::create rather than $fields->addFieldToTab when extending DataExtension?
316: [14:12:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/64ae19bba90b...4ce58eaf2d0a
317: [14:12:00] * travis-ci has left #silverstripe
318: [14:12:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/4452576
319: [14:12:00] <travis-ci> [travis-ci] chillu/sapphire#49 (pulls/remove-auto-controller-routing - 4ce58ea : Ingo Schommer): The build has errored.
320: [14:12:00] * travis-ci has joined #silverstripe
321: [14:23:00] * travis-ci has left #silverstripe
322: [14:23:00] * travis-ci has joined #silverstripe
323: [14:23:00] <travis-ci> [travis-ci] chillu/silverstripe-cms#9 (pulls/remove-auto-controller-routing - a96dbff : Ingo Schommer): The build has errored.
324: [14:23:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/faad04784875^...a96dbff3db5b
325: [14:23:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/4452608
326: [14:26:00] * priithansen quit (Ping timeout: 245 seconds)
327: [14:28:00] * ARNHOFF has joined #silverstripe
328: [14:34:00] * priithansen has joined #silverstripe
329: [14:35:00] * webguest has joined #silverstripe
330: [14:36:00] <webguest> how do you activate the spellings check on the CMS editor?
331: [14:36:00] <webguest> on SS 2.4.9
332: [14:39:00] * Shrike_Finland quit (Client Quit)
333: [14:39:00] * Shrike_Finland has joined #silverstripe
334: [14:47:00] * g4b0 has joined #silverstripe
335: [14:47:00] <g4b0> Hi all
336: [14:48:00] <g4b0> How can I bulk publish them all?
337: [14:48:00] <g4b0> I just versioned some DO with Object::add_extension('DoSchool', 'Versioned');
338: [15:06:00] <kinglozzer> chillu: XHGui is pretty awesome, thanks for the link
339: [15:18:00] <ARNHOFF> kinglozzer: You helped me last time great with that ajax and sorting, but is it possible to auto start it with ajax. Because I then I could use it as a all function or remove the categories, if you understand what I mean
340: [15:25:00] * DesignerX quit (Ping timeout: 256 seconds)
341: [15:27:00] <kinglozzer> ARNHOFF: You want an ajax request to fire on page load?
342: [15:27:00] <ARNHOFF> yeah
343: [15:27:00] <ARNHOFF> exactly
344: [15:29:00] * Mento has joined #silverstripe
345: [15:31:00] <Mento> Hey guys, what are your thoughts about the google sitemap module for 3.0? It seems to generate a .xml with 1 line of XML (LOC) locating to the full sitemap. Is this way any good? When i submit my sitemap to Google Webmaster Tools for testing, it returns me i have only 1 link and it seems not to follow the link any deeper to the full site map?
346: [15:32:00] <ARNHOFF> Mento, I have the same problem. It even breaks my chrome tab
347: [15:32:00] <Mento> like this: http://pastie.org/5938808
348: [15:33:00] <ARNHOFF> I think there went something wrong in latest commits, could you explain your problem in https://github.com/silverstripe-labs/silverstripe-googlesitemaps/issues/32 ?
349: [15:33:00] <Mento> ARNHOFF: Well, it seems to work for me no crashes though .. but not sure if Google likes it this way
350: [15:34:00] <ARNHOFF> Well, as much as I want. I am not the person to fix it, so I think its best to post your problem there and I am sure it will get fixed
351: [15:34:00] <Mento> yes, it will sure be - i've tested your link in Chrome and it seems to work on my machine
352: [15:35:00] <Mento> i'm on 24.0.1312.56 m
353: [15:35:00] <Mento> what version of chrome you've got running?
354: [15:36:00] <kinglozzer> ARNHOFF: Wrap your $.ajax() call in a function, for example call it callAjaxSearch(), then you can call that function on document ready, and call it when someone clicks on one of the categories
355: [15:36:00] <ARNHOFF> exact same
356: [15:36:00] <Mento> Willr said on github: I've done a semi large reorg for how the module works - sitemap.xml now shows an index to other sitemap files. Use the 1.0 branch if you can't get master to work.
357: [15:37:00] <Mento> so it seems the "index" to other sitemap sites seems to be the whole idea, but not sure if google likes it this way
358: [15:47:00] * Shrike_Finland has joined #silverstripe
359: [16:09:00] <Mento> Seems sitemap index are common - http://www.sitemaps.org/protocol.html#index
360: [16:12:00] * guci0 quit (Ping timeout: 245 seconds)
361: [16:18:00] * priithansen_ has joined #silverstripe
362: [16:19:00] * priithansen_ quit (Remote host closed the connection)
363: [16:19:00] * OxFF1 has joined #silverstripe
364: [16:19:00] * Mento quit ()
365: [16:20:00] * priithansen_ has joined #silverstripe
366: [16:20:00] * priithansen_ is now known as priithansen
367: [16:20:00] * priithansen quit (Ping timeout: 245 seconds)
368: [16:21:00] * catcher has joined #silverstripe
369: [16:29:00] * ray__ has joined #silverstripe
370: [16:43:00] * priithansen_ has joined #silverstripe
371: [16:46:00] * priithansen_ is now known as priithansen
372: [16:46:00] * priithansen quit (Ping timeout: 245 seconds)
373: [16:47:00] <travis-ci> [travis-ci] silverstripe/sapphire#1267 (master - 397729b : Ingo Schommer): The build has errored.
374: [16:47:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/cd1e87cb3b94...397729bf494a
375: [16:47:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4454943
376: [16:47:00] * travis-ci has joined #silverstripe
377: [16:47:00] * travis-ci has left #silverstripe
378: [16:49:00] <Marvanni> any ideas how to prevent links with brackets?
379: [16:49:00] <Marvanni> www.domain.com[http://www.domain.com] ?
380: [17:04:00] <kinglozzer> If we migrate them all to one dedicated, managed server, do you guys think it'll be sufficient?
381: [17:04:00] <kinglozzer> Our new sites are a lot more high traffic and resource intensive, so we need to switch (hitting resource limit errors)
382: [17:04:00] <kinglozzer> Server advice needed: Currently, we have about 100 sites on reseller shared hosting
383: [17:11:00] * g4b0 quit (Quit: Sto andando via)
384: [17:22:00] * Tom_______ has joined #silverstripe
385: [17:23:00] <Tom_______> evening, I've just moved my site on my vps from test.mydomain.com to mydomain .com and for some reason it isn't happy at all, i've checked the htacess file and it has the correct write base, is there something i'm missing?
386: [17:28:00] <Marvanni> any errors messages?
387: [17:28:00] * MattyBalaam quit (Ping timeout: 245 seconds)
388: [17:28:00] <Tom_______> no none, alli get in tottaly blank output
389: [17:29:00] <Marvanni> and in the error logs?
390: [17:29:00] * Shrike_Finland quit (Quit: Leaving.)
391: [17:30:00] <Tom_______> I don't get any error logs in plesk
392: [17:30:00] <Tom_______> I'm unsure where the error logs are in SS
393: [17:32:00] * Shrike_Finland has joined #silverstripe
394: [17:32:00] <Marvanni> ini_set("display_errors", 1);
395: [17:32:00] <Marvanni> try adding this in _config.php
396: [17:33:00] * kinglozzer quit (Remote host closed the connection)
397: [17:35:00] <Tom_______> still totally blank output in the browser
398: [17:37:00] <Marvanni> hm.. are you sure there aren't any logs in your plesk install?
399: [17:37:00] * webguest quit (Ping timeout: 245 seconds)
400: [17:39:00] <catcher> Tom_______, if you look at a debug console's network tab, what's being requested and what's the response?
401: [17:40:00] * OxFF1 quit (Quit: Leaving.)
402: [17:41:00] <Tom_______> I don't have a debug console on this machine, bare with me 2 mins
403: [17:41:00] * Bollig|DesignCty has joined #silverstripe
404: [17:42:00] * travis-ci has joined #silverstripe
405: [17:42:00] <travis-ci> [travis-ci] silverstripe/sapphire#1268 (3.0 - 7f4541e : Nicolaas): The build has errored.
406: [17:42:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/f0ef2ff02bee...7f4541e9f04f
407: [17:42:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4454989
408: [17:42:00] * travis-ci has left #silverstripe
409: [17:43:00] <catcher> Tom_______, most browsers have one
410: [17:43:00] <Tom_______> I've never used the firefox one, only crome
411: [17:44:00] <Tom_______> acording to the debug, it is just getting a 500 error
412: [17:45:00] <Tom_______> not loading anything
413: [17:45:00] <catcher> what's being requested?
414: [17:46:00] <catcher> is it requesting the url you expect?
415: [17:46:00] <Tom_______> GET 500 Internal Server Error text/html Other 198B 0B
416: [17:48:00] <Tom_______> I've tried the www http and https and all do the same... and if I replace the contents of that folder with a test.html it loads correctly
417: [17:49:00] <catcher> Tom_______, does your db hostname need to change in _config.php?
418: [17:51:00] <Tom_______> nope, same server and same database, just no longer a sub domain
419: [17:52:00] <catcher> Tom_______, any errors if you put your site in 'live' mode in _config.php?
420: [17:52:00] <catcher> in 'dev' mode rather
421: [17:53:00] <catcher> or ?isDev=1
422: [17:54:00] * aaron1245 has joined #silverstripe
423: [17:55:00] <Tom_______> I've found the correct error log in plesk
424: [17:55:00] <Marvanni> is it possible to add extra search fields to the many_many gridfields?
425: [17:56:00] <catcher> Marvanni, GridFieldAddExistingAutocompleter has a method setSearchFields, takes an array of fields
426: [17:57:00] <catcher> Marvanni, takes an array of fieldnames, more accurately
427: [17:58:00] <Marvanni> ah ok, so no dropdown select?
428: [18:00:00] <Marvanni> and is it also posible to use the checkboxes like the old ManyManyComplexTablefield?
429: [18:01:00] <catcher> Marvanni, I believe so, but you'd have to add them yourself.
430: [18:01:00] * lx-berlin has joined #silverstripe
431: [18:02:00] <priithansen> Marvanni: I think this could be what you're looking for https://github.com/simonwelsh/silverstripe-GridFieldRelationHandler
432: [18:04:00] <catcher> Tom_______, sounds like your framework has a copy of framework.
433: [18:04:00] <Tom_______> <catcher> t[Tue Jan 29 16:59:16 2013] [warn] [client 78.150.74.80] mod_fcgid: stderr: PHP Fatal error: Uncaught exception 'Exception' with message 'There are two files containing the "i18n" class: "/framework/i18n/i18n.php" and /framework/framework/i18n/i18n.php"' in /framework/core/manifest/ClassManifest.php:361
434: [18:06:00] <catcher> And there can be only one, as Muse says.
435: [18:06:00] <Tom_______> it doesn't appear to have a copy
436: [18:07:00] <Tom_______> tried ?flush=all
437: [18:07:00] <catcher> Tom_______, visit your main url with ?flush=all
438: [18:07:00] <ARNHOFF> catcher, are you mabye familiar with ajax calls in SilverStripe? Kinglozzer helped me a ton last time, but I would like to have the page start with a ajax call
439: [18:07:00] <Tom_______> no luck
440: [18:08:00] <catcher> Tom_______, do you have symbolic linking happening in your framework dir?
441: [18:08:00] <catcher> Tom_______, try a /dev/build at the end of your url too
442: [18:08:00] <Tom_______> tried the build aswell
443: [18:09:00] <catcher> Tom_______, no, filesystem pointers
444: [18:09:00] <Tom_______> symbolic linking being "nice urls"?
445: [18:09:00] <Tom_______> not that I know of
446: [18:10:00] <catcher> Tom_______, it just really sounds like your framework dir has another dir called framework inside of it.
447: [18:10:00] <catcher> Tom_______, next, try creating a directory called silverstripe-cache at the root of your site
448: [18:11:00] <catcher> make sure its permissions are wide open for the webserver.
449: [18:14:00] <Tom_______> double checked and have done a clean upload of the files
450: [18:15:00] <catcher> Tom_______, try creating that webserver-writeable silverstripe-cache dir
451: [18:16:00] <Tom_______> created, and tried a flush and a build
452: [18:18:00] * PigeonFriend quit ()
453: [18:25:00] <Tom_______> let me see if that error is still there
454: [18:25:00] <catcher> Tom_______, do you have some server-side caching happening? That error definitely indicates an additional framework/ dir inside your site's main framework/ dir.
455: [18:25:00] * lx-berlin has left #silverstripe
456: [18:26:00] <Tom_______> PHP Fatal error: Uncaught exception 'Zend_Cache_Exception' with message 'cache_dir must be a directory' in /var/www/vhosts/*domain*/framework/thirdparty/Zend/Cache.php:209
457: [18:28:00] <catcher> Tom_______, did you create a file called silverstripe-cache?
458: [18:28:00] <FrozenFire> Odd.
459: [18:28:00] <Tom_______> yes
460: [18:28:00] <FrozenFire> Did you set it writeable for the webserver user?
461: [18:28:00] <Tom_______> only the dir
462: [18:28:00] <FrozenFire> You didn't do something like "touch silverstripe-cache" did you?
463: [18:29:00] <Tom_______> I think the problem must've come from plesks move feature on the file manager tab
464: [18:29:00] <Tom_______> wooooooot
465: [18:29:00] <catcher> ?
466: [18:30:00] <Tom_______> I've just used filezilla to copy all the files to the same dir and it's working absolutely fine
467: [18:31:00] <Tom_______> WeIrD.co.annoying.eu.com
468: [18:31:00] <FrozenFire> You just managed to commit two atrocities in two sentences
469: [18:31:00] <catcher> plesk & filezilla?
470: [18:31:00] <FrozenFire> Plesk and, probably, FTP
471: [18:31:00] * FrozenFire shudders
472: [18:32:00] <FrozenFire> It could be expanded to more atrocities, certainly.
473: [18:32:00] <FrozenFire> Using something like GoDaddy for hosting
474: [18:32:00] * Tom_________ has joined #silverstripe
475: [18:32:00] <FrozenFire> Using Plesk's file manager for anything.
476: [18:33:00] <Tom_________> not my choice... clients!
477: [18:33:00] * mwm_ quit (Ping timeout: 245 seconds)
478: [18:33:00] * aznain quit (Ping timeout: 245 seconds)
479: [18:33:00] <Tom_________> no it's a 123-reg vps
480: [18:33:00] <FrozenFire> Sounds about as bad. :P
481: [18:34:00] <Tom_________> it runs centos6 which seems to be pants, you can't even use php 5.4 on it
482: [18:35:00] * Tom_______ quit (Ping timeout: 245 seconds)
483: [18:35:00] <FrozenFire> Guaranteed that it'll be bad
484: [18:35:00] <FrozenFire> Yep. This is why you don't use shitty hosting.
485: [18:35:00] <FrozenFire> Plesk on CentOS is rampant throughout shitty hosting
486: [18:35:00] <FrozenFire> They basically hand you an enterprise-grade distro of Linux with a turd on top
487: [18:37:00] <Tom_________> The client is a client I freelance for for other skills, and they did the "no we'll just add some hosting onto the account we use tobuy the domains"
488: [18:37:00] <FrozenFire> Yep. I'm just informing you that it's a bad decision, and you will pay for it in blood and tears.
489: [18:37:00] <FrozenFire> :P
490: [18:38:00] <Tom_________> tears and tea have ben spilled, no blood, well not until i see them tomorrow
491: [18:38:00] <FrozenFire> :P
492: [18:38:00] <FrozenFire> Blood will be spilled when the site gets actual traffic and promptly turns over and dies
493: [18:38:00] <FrozenFire> I speak as someone who's a competent sysadmin, and does the exact same sort of client work.
494: [18:39:00] <FrozenFire> That's what I thought
495: [18:39:00] <FrozenFire> Until the client ran a surprise marketing campaign during the Superbowl
496: [18:39:00] <Tom_________> you haven't seen the site... unlikely to ever get real traffic!
497: [18:40:00] <FrozenFire> Site promptly shit itself, and we scrambled to move everything to a real host with load balancing
498: [18:40:00] <FrozenFire> Client went bankrupt shortly thereafter, out of their own incompetence.
499: [18:41:00] * Guits quit (Read error: Connection reset by peer)
500: [18:41:00] <Tom_________> and it was all your fault that the site went down, in their eyes anyway
501: [18:41:00] <FrozenFire> Of course. Their economy GoDaddy VPS should've handled it just fine. It's web hosting, amirite?
502: [18:42:00] <FrozenFire> Until they do
503: [18:42:00] <Tom_________> indeed
504: [18:42:00] <Tom_________> the client is a tiny AV company in the uk, so I doubt any surprises will arise
505: [18:43:00] <Tom_________> well they have mentioned some new features... but aslong as the uploadfield works on the front end i dont see any issues
506: [18:43:00] * travis-ci has left #silverstripe
507: [18:43:00] * Nivery has joined #silverstripe
508: [18:43:00] * travis-ci has joined #silverstripe
509: [18:43:00] <travis-ci> [travis-ci] silverstripe/sapphire#1269 (3.1 - 56336c3 : Ingo Schommer): The build has errored.
510: [18:43:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/3457f438397d...56336c37587a
511: [18:43:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4455149
512: [18:51:00] <FrozenFire> Heh
513: [18:51:00] <Tom_________> <FrozenFire> cheers for the help, I'm off to ring a neck or to
514: [18:52:00] * Tom_________ quit (Quit: Page closed)
515: [18:52:00] * Nivery quit (Quit: Nivery)
516: [18:53:00] * Nivery has joined #silverstripe
517: [18:55:00] <catcher> any options to hide front-end form fields aside from css or replacing them with hiddenfield equivalents?
518: [18:56:00] <UndefinedOffset> catcher could try unclechease'es new module, though it depends what your trying to do
519: [18:57:00] <UndefinedOffset> https://github.com/unclecheese/silverstripe-display-logic
520: [18:58:00] <catcher> addExtraClass won't cover it either, since it applies below the control-group & label
521: [18:58:00] <catcher> UndefinedOffset, I have a bunch of fields from getFrontendFields which I need, and not looking forward to 20 ugly lines of replacements with hiddenfields.
522: [18:59:00] <UndefinedOffset> ah so you need them to appear in the submission?
523: [19:00:00] <catcher> right, I'll be setting 5 or 6 fields manually (some from the request's urlparams, others like current date)
524: [19:01:00] <UndefinedOffset> ok, ya short of using css or using replaceField() or javascript i can't think of another way
525: [19:02:00] <catcher> I'll just overload getFrontendFields and never look at the code again. ;)
526: [19:02:00] <UndefinedOffset> ya :) and it actually removes it from the form
527: [19:02:00] <catcher> kk, thanks UndefinedOffset. The module is a good suggestion, but a bit of overkill here.
528: [19:03:00] <UndefinedOffset> atleast thats my understanding of it... hahaha ya best plan lol
529: [19:17:00] * OomElvis has joined #silverstripe
530: [19:35:00] * nickmolhoek has joined #silverstripe
531: [19:35:00] * nickmolhoek quit (Remote host closed the connection)
532: [19:35:00] * nickmolhoek has joined #silverstripe
533: [19:38:00] <catcher> dear UncleCheese's bootstrap form module, why won't you show captcha failure error messages?
534: [19:40:00] * travis-ci has left #silverstripe
535: [19:40:00] * travis-ci has joined #silverstripe
536: [19:40:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4456176
537: [19:40:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/7f4541e9f04f...6cb157028257
538: [19:40:00] <travis-ci> [travis-ci] silverstripe/sapphire#1270 (3.0 - 6cb1570 : Ingo Schommer): The build has errored.
539: [19:44:00] * DigNZ quit (Read error: Connection reset by peer)
540: [19:46:00] * webguest has joined #silverstripe
541: [19:47:00] <webguest> HI all, im using SS 2.4.9. Have DataObjects as Pages installed with DataObject class: Employee.. now i would like to make a relation on some pages to certain employee's.. what is the best approach?
542: [19:50:00] <Pyromanik> Dear firefox: lolmemoryleaks
543: [19:51:00] <Pyromanik> I don't know much about it
544: [19:51:00] <Pyromanik> but
545: [19:51:00] <Pyromanik> webguest: probably not using dataobjectsaspages
546: [19:52:00] <Pyromanik> but in any case
547: [19:52:00] <Pyromanik> I can't imagine it being all that wonderful
548: [19:52:00] <FrozenFire> I've never really understood the DataObjects as Pages module. I certainly understand the process of using your model as pages, but restricting it to something so broadly-defined as "DataObjects as Pages" seems odd
549: [19:52:00] <Pyromanik> making relations shouldn't be any different
550: [19:52:00] <Pyromanik> Putting pages into a modeladmin in 2.4 was nasty.
551: [19:53:00] <Pyromanik> catcher: OIC. In any case, making a relation still remains the same.
552: [19:53:00] <catcher> Yeah, I was always a little confused by the module
553: [19:53:00] <catcher> Pyromanik, indeed :)
554: [19:53:00] <catcher> Pyromanik, it's the other way around, dataobjects behaving as pages (retrieving by ID, etc.)
555: [19:53:00] <Pyromanik> http://doc.silverstripe.org/framework/en/tutorials/2-extending-a-basic-site
556: [19:54:00] <Pyromanik> firefox oddly slow, using 2Gb of memory
557: [19:54:00] <Pyromanik> get to work this morning
558: [19:54:00] <Pyromanik> lolwut
559: [19:54:00] <FrozenFire> How do you filter a ManyManyList by one of the join IDs? I am so confused.
560: [19:54:00] <Pyromanik> so anyway
561: [19:55:00] <FrozenFire> That's what I had thought
562: [19:55:00] <Pyromanik> yes
563: [19:55:00] <FrozenFire> Shouldn't need to
564: [19:55:00] <FrozenFire> "Couldn't find field CatalogItemID in any of CatalogItem's tables"
565: [19:55:00] <Pyromanik> does has $belongs_many_many?
566: [19:55:00] <FrozenFire> But it gives me a bitchfest about that field not existing on CatalogItem
567: [19:55:00] <Pyromanik> hmm, bugger. Dunno then
568: [19:55:00] <Pyromanik> FrozenFire: where ObjectID = $id ?
569: [19:55:00] <FrozenFire> I have a many_many of Member -> CatalogItem
570: [19:56:00] <Pyromanik> ->id()
571: [19:56:00] <FrozenFire> "Fatal error: Call to a member function setValue() on a non-object in /var/www/clients/vhosts/flickeralley/framework/search/filters/SearchFilter.php on line 193"
572: [19:56:00] <Pyromanik> otherwise you surely should.
573: [19:56:00] <FrozenFire> I'm trying to do $member->CatalogItemAuthorizations()->filter("CatalogItemID", $item->ID)
574: [19:56:00] <simon_w> Woo! Fatal bug in 2.4!
575: [19:56:00] <FrozenFire> Yes. I get an ever worse error
576: [19:56:00] <FrozenFire> Having the reverse relationship doesn't make sense
577: [19:56:00] <Pyromanik> ??
578: [19:56:00] <simon_w> FrozenFire, have you tried just ID?
579: [19:56:00] <Pyromanik> unless CatalogItem is the $many_many side.
580: [19:56:00] <FrozenFire> :P
581: [19:56:00] <Pyromanik> oh right, instead of filter
582: [19:57:00] <FrozenFire> I need to filter a many_many_extraFields field
583: [19:57:00] <simon_w> hehe, extraFields
584: [19:57:00] <Pyromanik> lol SET value?
585: [19:57:00] <simon_w> FrozenFire, ->byID($item->ID)
586: [19:57:00] <dnz-> michael jackson - mad
587: [19:57:00] <FrozenFire> I actually can't use byID
588: [19:57:00] <dnz-> u mad, u mad, u know bb u mad
589: [19:57:00] <FrozenFire> And byID is... picky
590: [19:58:00] <FrozenFire> http://www.sspaste.com/paste/show/510829dc96f1c
591: [19:58:00] <FrozenFire> That's what I have at present
592: [19:59:00] <dnz-> all i see is DYEL
593: [20:00:00] <FrozenFire> A little
594: [20:00:00] <FrozenFire> This makes me a sad lifter.
595: [20:00:00] <dnz-> u mad
596: [20:00:00] <FrozenFire> All I see is my undying love for dnz-
597: [20:00:00] <simon_w> using where()'s probably the easiest way to do anything with extraFields
598: [20:01:00] <dnz-> good.
599: [20:02:00] * liam has joined #silverstripe
600: [20:03:00] <Pyromanik> Y U NO NICE API
601: [20:03:00] <Pyromanik> extraFields
602: [20:03:00] <simon_w> Because epic hack
603: [20:03:00] <FrozenFire> Uggh. where() does fix it
604: [20:03:00] <FrozenFire> That's bad.
605: [20:03:00] <Pyromanik> oh god
606: [20:03:00] <FrozenFire> I'm even using the latest 3.1, sfaik
607: [20:04:00] <Pyromanik> but epic useful
608: [20:04:00] <Pyromanik> yeh
609: [20:07:00] <Pyromanik> but sounds a but cluttery
610: [20:07:00] <FrozenFire> I would do that, but it's so... indirect.
611: [20:07:00] <Pyromanik> makes sesne
612: [20:07:00] <Pyromanik> ic
613: [20:07:00] <simon_w> I usually just end up with A -> has_many AB -> has_one B
614: [20:08:00] <FrozenFire> The difference is what you get back from the RelationList ;)
615: [20:08:00] <FrozenFire> Bah. Screw it. I'm doing it.
616: [20:08:00] <simon_w> It's exactly the same amount of tables as a many_many
617: [20:10:00] * DigNZ has joined #silverstripe
618: [20:10:00] * DigNZ quit (Remote host closed the connection)
619: [20:10:00] * DigNZ has joined #silverstripe
620: [20:12:00] <catcher> how can I remove the 'right' class from a formfield's label?
621: [20:12:00] * willr_ has joined #silverstripe
622: [20:13:00] <Pyromanik> override template?
623: [20:13:00] <Pyromanik> removeclass?
624: [20:15:00] <willr_> Pyromanik closed all your tags?
625: [20:15:00] <catcher> removeClass() == removeExtraClass? 'right' doesn't seem to be in the 'extraclass' list, so I get an array error
626: [20:15:00] <Pyromanik> next
627: [20:15:00] <Pyromanik> so
628: [20:15:00] <Pyromanik> ok
629: [20:15:00] <Pyromanik> mm, good suggestion
630: [20:15:00] <willr_> run it through the html validator and see if you're missing anything
631: [20:15:00] <Pyromanik> willr_: I don't <style>
632: [20:15:00] <Pyromanik> ie, after </body>, before </html>
633: [20:15:00] <Pyromanik> why does chrome keep sticking an empty <style type="text/css"></style> into the end of my documents/
634: [20:16:00] * DesignerX has joined #silverstripe
635: [20:16:00] <Pyromanik> catcher: tath's because it's not an EXTRA class
636: [20:16:00] <Pyromanik> just a class
637: [20:16:00] <Pyromanik> not being the overriddens
638: [20:16:00] <Pyromanik> I C+P'd in into theme
639: [20:16:00] <Pyromanik> in my module
640: [20:16:00] <Pyromanik> include
641: [20:16:00] <Pyromanik> I have a template
642: [20:16:00] <willr_> catcher I think the easiest way is to add an extra class that removes the propeties of right
643: [20:16:00] <Pyromanik> so like
644: [20:16:00] <Pyromanik> sucks balls then
645: [20:16:00] <Pyromanik> do template
646: [20:16:00] <catcher> but there is no removeClass()
647: [20:17:00] <Pyromanik> is choosing module over theme
648: [20:17:00] <Pyromanik> I'm confused
649: [20:18:00] <Pyromanik> 1 and all
650: [20:18:00] <Pyromanik> simon_w: I have
651: [20:18:00] <simon_w> Pyromanik, flush
652: [20:24:00] <Pyromanik> sut
653: [20:24:00] <Pyromanik> ok so the answer is /dev/build then flush
654: [20:24:00] * zfmf has left #silverstripe
655: [20:24:00] * houleness has joined #silverstripe
656: [20:24:00] <Pyromanik> wut*
657: [20:26:00] <houleness> I'd like to add fields above the default content field in the cms with the new form injector syntax??? So something like DateField::create("EntryDate","Date") In the past I've used new DateField('EntryDate', 'Date'), 'Content')
658: [20:26:00] <Pyromanik> it's exactly the same.
659: [20:26:00] <houleness> I couldn't find anything on this. Not even here in the docs - http://api.silverstripe.org/3.0/forms/core/FormField.html Any ideas?
660: [20:27:00] <FrozenFire> Weird... I have a tab in my CMS that won't go away
661: [20:27:00] <Pyromanik> the only thing that changes is "new BlahField()" becomes "BlahField::create()"
662: [20:28:00] <FrozenFire> Then I recreated it separately
663: [20:28:00] <simon_w> houleness, http://api.silverstripe.org/3.0/forms/fields-structural/FieldList.html#methodaddFieldToTab
664: [20:28:00] <FrozenFire> scaffolding was creating it
665: [20:28:00] <Pyromanik> remove by name
666: [20:28:00] <FrozenFire> Oh wait, I see
667: [20:29:00] <Pyromanik> depends
668: [20:29:00] <houleness> So, shouldn't it be this? DateField::create("EntryDate","Date"),"Content"
669: [20:30:00] <simon_w> in that case, you want it outside the array
670: [20:30:00] <Pyromanik> basically yes
671: [20:30:00] <Pyromanik> but not sure about the params for create()
672: [20:30:00] <simon_w> houleness, assuming you're in an addFieldToTab() call
673: [20:30:00] <houleness> $fields->addFieldsToTab("Root.Main", array(
674: [20:30:00] <houleness> DateField::create("EntryDate","Date"),"Content"
675: [20:30:00] <houleness>
676: [20:30:00] <houleness> ));
677: [20:30:00] <houleness> bah, it broke it up, but you get the gist
678: [20:31:00] <Pyromanik> use addFieldToTab instead of addFieldsToTab ?
679: [20:33:00] * priithansen quit (Quit: priithansen)
680: [20:35:00] <FrozenFire> As a SS_Datetime object?
681: [20:35:00] <FrozenFire> For an overloaded getter of an SS_Datetime field, from which I want to return a default value, how should I return it?
682: [20:36:00] <FrozenFire> Thanks
683: [20:36:00] <FrozenFire> Or as a date string?
684: [20:36:00] <simon_w> As a string
685: [20:38:00] <FrozenFire> I want a relational summary field with a specific label
686: [20:38:00] <FrozenFire> How do you set the title of a summary field?
687: [20:38:00] <simon_w> 'Title' => 'Field'?
688: [20:39:00] <FrozenFire> It gets ignored
689: [20:39:00] <FrozenFire> Tried it
690: [20:43:00] <simon_w> I can never remember
691: [20:43:00] <Pyromanik> it's it Field.Field => Title?
692: [20:43:00] <Pyromanik> err, -'
693: [20:43:00] * webguest quit (Ping timeout: 245 seconds)
694: [20:43:00] <Pyromanik> yeh, members left, title's right
695: [20:43:00] <Pyromanik> isnt' it*
696: [20:45:00] <FrozenFire> Tried both
697: [20:46:00] * lurker has joined #silverstripe
698: [20:47:00] <FrozenFire> Nope
699: [20:47:00] <Pyromanik> FrozenFire: did you get error about undefined method?
700: [20:48:00] * ray__ quit (Ping timeout: 255 seconds)
701: [20:48:00] <FrozenFire> Title as the key results in nothing changing from not specifying a key
702: [20:48:00] <FrozenFire> Title as the value results in it using the local Title method
703: [20:48:00] <Pyromanik> I did
704: [20:48:00] <Pyromanik> o
705: [20:49:00] <Pyromanik> error, Method LinkPage does not exist on YourDataObject?
706: [20:49:00] <Pyromanik> public static $summary_fields = array('LinkPage.Title' => 'Links to');
707: [20:49:00] <Pyromanik> ?
708: [20:50:00] <FrozenFire> The field name is definitely the value
709: [20:50:00] <FrozenFire> Setting a value for which there's no equivalent field on the *current* object results in a blank column
710: [20:50:00] <Pyromanik> probably because dof defined
711: [20:50:00] <Pyromanik> o
712: [20:50:00] <FrozenFire> Nope. No errors
713: [20:51:00] * travis-ci has joined #silverstripe
714: [20:51:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/d0585e484abd...b15b98345f96
715: [20:51:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#212 (3.0 - b15b983 : Ingo Schommer): The build has errored.
716: [20:51:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/4456225
717: [20:51:00] * travis-ci has left #silverstripe
718: [20:55:00] * houleness quit (Quit: houleness)
719: [21:04:00] * aaron1245 has left #silverstripe
720: [21:18:00] <FrozenFire> Why is it that when I render my page manually, and set one of the render fields called Title to a value, it results in SiteConfig.Title also producing that value?
721: [21:18:00] <FrozenFire> That's enormously frustrating
722: [21:20:00] * ARNHOFF quit (Read error: Connection reset by peer)
723: [21:21:00] <willr_> FrozenFire shouldn't do.
724: [21:21:00] <FrozenFire> Does
725: [21:22:00] <FrozenFire> SS seems to insert its own title tag
726: [21:22:00] <FrozenFire> But sometimes
727: [21:22:00] <FrozenFire> Now, that relates to another annoying behaviour I've found
728: [21:22:00] <FrozenFire> Not always
729: [21:23:00] <FrozenFire> Doesn't seem to be happening now, now that I check
730: [21:23:00] <FrozenFire> I'm doing this: http://www.sspaste.com/paste/show/51083dc1242a7
731: [21:23:00] <FrozenFire> And my title looks like <title>$Title - $SiteConfig.Title</title>
732: [21:25:00] <simon_w> FrozenFire, got $MetaTags(false)?
733: [21:25:00] <FrozenFire> No idea. Never heard of that
734: [21:26:00] <simon_w> Well, have a look in your Page.ss :p
735: [21:27:00] <FrozenFire> I guarantee I do not, if it's something I would have explicitly done
736: [21:27:00] <FrozenFire> I write my templates by hand from scratch each time, so there's nothing in there like that.
737: [21:35:00] * UndefinedOffset quit (Quit: Leaving.)
738: [21:54:00] * Nivery has left #silverstripe
739: [22:00:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4457550
740: [22:00:00] <travis-ci> [travis-ci] silverstripe/sapphire#1271 (3.0 - c048a01 : jean): The build has errored.
741: [22:00:00] * travis-ci has joined #silverstripe
742: [22:00:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/6cb157028257...c048a019f69d
743: [22:00:00] * travis-ci has left #silverstripe
744: [22:03:00] * liam quit (Quit: liam)
745: [22:08:00] <irogue> https://pbs.twimg.com/media/BBzxweoCAAA6YlV.jpg:large
746: [22:09:00] <simon_w> Yeah, that thread was amusing
747: [22:11:00] <simon_w> Interestingly, that pretty much describes this channel too...
748: [22:14:00] <FrozenFire> Indeed
749: [22:24:00] * liam has joined #silverstripe
750: [22:31:00] * Jakx has joined #silverstripe
751: [22:32:00] <Jakx> hope everyone had a good NY's :)
752: [22:32:00] <Jakx> mornin'
753: [22:36:00] * pex__ has joined #silverstripe
754: [22:38:00] <mirrors> Hi all I am running a task that takes a couple of minutes to complete. Can anyone tell me how I can run it and stop it from timing out
755: [22:38:00] * mirrors has joined #silverstripe
756: [22:39:00] <simon_w> set_time_limit(0)
757: [22:39:00] <mirrors> running via sake is not an option
758: [22:40:00] <simon_w> Though you really should run it with sake
759: [22:47:00] <Pyromanik> Jakx: long time
760: [22:47:00] <Pyromanik> is there easy way on 2.4 to stop the strip tags to returning a pesudo markdown?
761: [22:47:00] <Pyromanik> how was NB?
762: [22:47:00] <Pyromanik> mate here says it was fantastic
763: [22:48:00] <Pyromanik> irogue: hahahahahaaha
764: [22:48:00] <Pyromanik> simon_w: what thread?
765: [22:48:00] <irogue> that quote was from a twitter thread
766: [22:48:00] <Pyromanik> oic
767: [22:49:00] <irogue> Pyromanik: https://twitter.com/sminnee/status/296373725425721345
768: [22:49:00] <Pyromanik> dobros at home then walked up to the park for fireworks.
769: [22:49:00] <Jakx> Pyromanik, long time indeed. NB was good dude - couldn't have asked for better. Sound system was top notch, crowd was full of good vibes and the weather was well decent. I just played laxy summer anthems for my set and it went down a treat :D
770: [22:49:00] <Jakx> How was your NY?
771: [22:49:00] <Pyromanik> pretty boring for the most part
772: [22:50:00] <Pyromanik> simon_w: nope.
773: [22:50:00] <simon_w> Pyromanik, wanna rephrase that question?
774: [22:51:00] <Pyromanik> when you .firstParagraph or whatever a HTMLTextField
775: [22:51:00] <Pyromanik> just, striptags
776: [22:51:00] <Pyromanik> wtb plain plain text
777: [22:51:00] <Pyromanik> etc
778: [22:51:00] <Pyromanik> and it gives you *this is a heading* normal paragraph
779: [22:51:00] <simon_w> The one about strip tags
780: [22:51:00] <Pyromanik> oh wait, which one?
781: [22:52:00] <simon_w> $Field.NoHTML.FirstParagraph
782: [22:52:00] <simon_w> $Field.FirstParagraph(html)
783: [22:52:00] <Pyromanik> :<
784: [22:52:00] <Pyromanik> want plaintext
785: [22:52:00] <Pyromanik> also I think it's LimitWordCount
786: [22:53:00] <Pyromanik> in 2.4?
787: [22:53:00] <simon_w> Yes
788: [22:53:00] <Pyromanik> sweet, thanks
789: [22:54:00] * Jakx quit (Read error: Connection reset by peer)
790: [22:54:00] * SMaction has joined #silverstripe
791: [22:54:00] * Jakx has joined #silverstripe
792: [23:02:00] * lurker quit (Ping timeout: 276 seconds)
793: [23:03:00] * OomElvis quit (Ping timeout: 248 seconds)
794: [23:08:00] <SMaction> how to trouble shoot this?
795: [23:08:00] <SMaction> I am having the following problem. This line of code $results = DataObject::get("Photo", "PageID = ".$this->ID); correctly makes a DataObjectSet. This works fine however I want the set sorted on column ID. This column is in the table Photo and is not the same ID as $this->ID in the code. I have tried $results->sort('ID'); but this does not appear to work. Corrections? Suggestions on
796: [23:09:00] <Pyromanik> you are using 2.4?
797: [23:10:00] <Pyromanik> $results = $this->Photos(null, 'ID ASC')
798: [23:12:00] <Pyromanik> where ID is actually whatever the custom ID column is.
799: [23:13:00] <SMaction> Pyromanik are you saying add that line after the $results= DataObject::get .....?
800: [23:14:00] <Pyromanik> no
801: [23:14:00] <Pyromanik> replace with
802: [23:14:00] <Jakx> SMaction, have you read this? http://doc.silverstripe.org/framework/en/topics/datamodel
803: [23:15:00] <Pyromanik> is using 2.4, not 3.0
804: [23:15:00] <Pyromanik> assuming your relation to Photos is called Photos
805: [23:15:00] <Pyromanik> Jakx: can't, too old.
806: [23:15:00] <Jakx> 2.4 is still there in versions at the top of the page
807: [23:15:00] <Pyromanik> http://api.silverstripe.org/2.4/sapphire/model/DataObject.html#methodget
808: [23:16:00] <Pyromanik> OR
809: [23:16:00] <Pyromanik> SMaction: alternatively you could just add an extra param to your current code
810: [23:16:00] <Pyromanik> $results = DataObject::get("Photo", "PageID = ".$this->ID, 'customID ASC');
811: [23:16:00] <Pyromanik> add a new line to your Photo class
812: [23:16:00] <Pyromanik> public static $default_sort = "CustomID ASC";
813: [23:17:00] <Pyromanik> Jakx: but that's not what you linked :P
814: [23:18:00] <SMaction> Pyromanik I ran this line $results = DataObject::get("Photo", "PageID = ".$this->ID, 'ID ASC'); and there is no change in the order
815: [23:19:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
816: [23:19:00] <Pyromanik> well
817: [23:19:00] <SMaction> I am looking at the CMS database for this website and in teh Photos table there is a column ID
818: [23:19:00] <Pyromanik> you do, but that's the default sort anyway, since ID's go up with each new addition
819: [23:19:00] <Pyromanik> I think your issue is that you think you have a column named ID
820: [23:20:00] <Pyromanik> all dataObjects have an ID
821: [23:20:00] <Pyromanik> I think you need to clarify this: " This column is in the table Photo and is not the same ID as $this->ID in the code."
822: [23:20:00] <Pyromanik> of course it does
823: [23:20:00] <Pyromanik> if you have an ID that isn't the $this->ID, then you're mistaken. There can be only one.
824: [23:21:00] * Bollig|DesignCty has joined #silverstripe
825: [23:22:00] <SMaction> the this->ID is the page ID so that only the photos for that page are shown in a slide show. Yes there are two columns PageID which is what this->ID is the filter for and then the Photo table also contains an ID column
826: [23:22:00] <Pyromanik> I think your issue is that they ARE sorted by ID
827: [23:22:00] <Pyromanik> well yeah
828: [23:23:00] <Pyromanik> that's usually the way they come out.
829: [23:23:00] <Pyromanik> unless you've done something to alter that
830: [23:24:00] <simon_w> But appear to be sorted by ID from MySQL
831: [23:24:00] <Pyromanik> try $results = DataObject::get("Photo", "PageID = ".$this->ID, 'ID DESC'); and see if they come out backwards
832: [23:24:00] <simon_w> They're usually not sorted
833: [23:24:00] <SMaction> thanks trying now .../
834: [23:24:00] <Pyromanik> pretty much what I meant.
835: [23:24:00] <Pyromanik> ^
836: [23:25:00] <Pyromanik> simon_w: NoHTML didn't work
837: [23:25:00] <SMaction> $results = DataObject::get("Photo", "PageID = ".$this->ID, 'ID DESC'); this line does not change my slideshow results.
838: [23:25:00] * EPIK has joined #silverstripe
839: [23:26:00] <simon_w> Pyromanik, it does a strip_tags and turns it into a Text field. What more do you want? :p
840: [23:26:00] <Pyromanik> LimitWordCount(withparam) afterwards
841: [23:26:00] <Pyromanik> I don't have a backported ssviewer :<
842: [23:26:00] <Pyromanik> it doesn't work.
843: [23:26:00] <simon_w> <% control Field.NoHtml %>$LimitWordCount(withparam)<% end_control %>
844: [23:26:00] <Pyromanik> either spits out nothing, or the (param)
845: [23:27:00] <Pyromanik> Didn't love me.
846: [23:27:00] <simon_w> Backport SSViewer or upgrade! :p
847: [23:27:00] <simon_w> (preferably the latter)
848: [23:27:00] <Pyromanik> I tried
849: [23:28:00] <Pyromanik> ha
850: [23:28:00] <Pyromanik> it's in progress
851: [23:28:00] <Pyromanik> account manager was wanting to touch up existing site in the meantime though
852: [23:28:00] <Pyromanik> we are
853: [23:29:00] <Pyromanik> Me too!
854: [23:29:00] <simon_w> I'm tempted to get BurgerFuel, but don't really want to wait that long
855: [23:29:00] * irogue goes to get some sweet n sour pork
856: [23:29:00] <Pyromanik> so that's just a "Looked into it (again), still no go"
857: [23:29:00] <simon_w> And I think it is can be lunch time
858: [23:29:00] * Pyromanik looks forward to sammich
859: [23:30:00] <simon_w> You can ring one, but effort
860: [23:30:00] <Pyromanik> but burgerfuel
861: [23:30:00] <Pyromanik> pfft
862: [23:30:00] <Pyromanik> simon_w: can't you text an order in?
863: [23:31:00] * liam quit (Quit: liam)
864: [23:32:00] <simon_w> Yeah, had some last week
865: [23:32:00] <mirrors> I think I might be doing something very wrong. It takes over 5minutes to delete 3500 members
866: [23:32:00] <mirrors> this is my code
867: [23:32:00] <mirrors> http://pastie.org/5949796
868: [23:33:00] * liam has joined #silverstripe
869: [23:34:00] <simon_w> mirrors, lines 26 and 28 will be massive slowdowns
870: [23:38:00] <mirrors> that way it does the DB::query directly
871: [23:38:00] <mirrors> would I be better off passing an array of ids into the ComponentSet()->removeMany()
872: [23:40:00] <simon_w> Why still on 2.4?
873: [23:40:00] <mirrors> this is an old website with a new feature request....new websites are on SS3.0
874: [23:42:00] <simon_w> http://pastie.org/5950031
875: [23:43:00] <simon_w> That'll probably work
876: [23:46:00] * lurker has joined #silverstripe
877: [23:51:00] <mirrors> thank you so so so much for that
878: [23:51:00] <mirrors> WOW that was basically instant
879: [23:54:00] * aznain has joined #silverstripe
880: [23:56:00] <mirrors> i have learnt so much from that pastie...cheers again

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