#silverstripe IRC Log

IRC log for 11 June 2013

All timestamps are in UTC.

1: [00:02:12] <abitran> bbl
2: [00:09:23] * catcher quit (Quit: Leaving)
3: [00:10:07] <Peavers> is there something in the .htcaccess file that would stop someone going mysite/code.php?
4: [00:10:19] <Peavers> htaccess*
5: [00:13:02] <nikrolls> Peavers: Not by default
6: [00:13:21] <Peavers> hmm
7: [00:13:30] <Peavers> mysite/script.php doesn't excute
8: [00:14:03] <Peavers> running the script from the cml its fine though
9: [00:15:01] <nikrolls> Only .ss and web.config files are locked out in .htaccess as far as I can see
10: [00:15:09] <Peavers> yeah just looked too
11: [00:15:10] <nikrolls> As long as the file exists it should be accessible
12: [00:15:30] <nikrolls> Though running the script directly won't have any of the SS core included, if that makes a difference
13: [00:15:41] <nikrolls> It will be pure PHP
14: [00:16:03] <Peavers> the script is just <?php 'git pull';
15: [00:16:08] <Peavers> trying to get hooks working with gitlab
16: [00:16:13] <nikrolls> Oh right
17: [00:16:29] <Peavers> but even visiting the script from the browser doesn't trigger a pull
18: [00:16:34] <Peavers> but running the script does
19: [00:16:40] <nikrolls> I've never tried in mysite, though I've done a similar thing from another root folder
20: [00:23:36] * zippy__ has joined #silverstripe
21: [00:23:48] * mobiusnz has joined #silverstripe
22: [00:37:54] * mattybalaam quit (Quit: mattybalaam)
23: [00:54:13] <supernovah> peavers, mysite/.htaccess prevents access to any scripts directly > <FilesMatch "\.(php|php3|php4|php5|phtml|inc)$"> > Deny from all > </FilesMatch>
24: [00:54:47] <Peavers> thats not in the ss .htaccess file?
25: [00:54:59] <supernovah> But it applies to the mysite directory
26: [00:55:11] <Peavers> so the apache .htconfig?
27: [00:55:16] <Peavers> htaccess sorry
28: [00:55:20] <supernovah> Yeah
29: [00:56:12] <supernovah> You can edit the htaccess to allow a one off access
30: [00:56:18] <supernovah> to a particular file
31: [00:56:39] <Peavers> would I edit the ss .htaccess to overwrite the apache default, or just edit the default?
32: [00:57:27] <spronk> anyone know what v of subsites i need for 3.0.5?
33: [00:57:50] <supernovah> What do you mean by the ss one? the root directory?
34: [00:58:28] <Peavers> sorry, in the .htaccess file in my ss directory, on the "global" .htaccess
35: [00:58:57] <supernovah> Because as far as I can tell, the htaccess in ../ doesn't prevent ../mysite/<here>.php being accessed, it's just the access file inside ../mysite/
36: [01:01:16] <supernovah> You can add this rule insie ../mysite/.htaccess to grant external access to it - you realise the risks though? <Files "script.php"> Order Deny,Allow Allow from All </Files>
37: [01:01:33] <Peavers> yeah fully aware of the risks
38: [01:01:33] * zippy__ quit (Read error: Connection reset by peer)
39: [01:01:37] <Peavers> its only on a test server
40: [01:02:00] <supernovah> Okay well I g2g, those tabs are new lines obv bb
41: [01:03:33] * Stomach quit (Quit: Leaving.)
42: [01:04:02] <Peavers> I actually think the issue is with www-data not having an sshkey paired with gitlab...
43: [01:04:15] * Stomach has joined #silverstripe
44: [01:04:44] * joelpitt_ has joined #silverstripe
45: [01:05:01] * joelpittet quit (Read error: No route to host)
46: [01:14:32] <mobiusnz> is it possible to get the link to a modeladmin managed object without hardcoding in a template?
47: [01:24:04] * joelpitt_ quit (Remote host closed the connection)
48: [01:24:24] * joelpittet has joined #silverstripe
49: [01:26:16] * zippy__ has joined #silverstripe
50: [01:49:58] <Peavers> about to install willr's comments... better work big fella!
51: [01:50:53] <Stomach> still no luck Privoxy?
52: [01:51:01] <Peavers> With what?
53: [01:51:06] <Stomach> gitlab
54: [01:51:11] <Peavers> na
55: [01:51:28] <Peavers> I've given up for the moment
56: [01:51:38] <Peavers> think its to do with www-data not having the ssh key for the gitlab server
57: [01:51:44] <Peavers> but won't play nice in creating one for that user
58: [01:52:05] <Stomach> ah yep, that makes sense
59: [01:52:08] <willr> Peavers heh not my comments, I just stripped the bitch out of core
60: [01:52:24] <willr> but yeah blame me if it doesn't work
61: [01:52:28] <Peavers> lol its got your name next to it, thats enough to be the fodder when it all blows up in my face
62: [02:09:36] <nikrolls> Peavers: Had trouble with git and keys on an internal project of ours. Got around it by calling ssh-agent via exec/proc, and enabling it temporarily. Makes it a bit environment-specific, not sure if it's the best way, but it's been working well so far
63: [02:10:47] <mobiusnz> Hmm, anyone know much about search contexts? The docs appear to be wrong
64: [02:10:59] <mobiusnz> http://doc.silverstripe.org/framework/en/reference/searchcontext#pagination
65: [02:11:35] <mobiusnz> Line 12 gives an error the method 'setpagesize' does not exist on 'PaginatedList'
66: [02:12:04] * folibis has joined #silverstripe
67: [02:12:17] <folibis> hi all!
68: [02:13:15] <folibis> is anybody khow - inside page controller how can I access page object
69: [02:13:20] <nikrolls> mobiusnz: Inspecting the PaginatedList class reveals setPageLength
70: [02:13:45] <mobiusnz> nikrolls: was just hunting for the paginated list class ;)
71: [02:14:03] <nikrolls> folibis: $this will get you the hybrid of the page object and the controller
72: [02:14:09] <nikrolls> mobiusnz: :)
73: [02:14:56] <nikrolls> mobiusnz, do you use Netbeans/PHPStorm? Netbeans has a great shortcut Ctrl+O, you can search a class by name very quickly. PHPStorm has the same, though on a different shortcut
74: [02:15:12] <Peavers> netbeans causes cancer.
75: [02:15:15] <folibis> nikrolls: thank you dude )
76: [02:15:18] <nikrolls> Ha
77: [02:15:28] <mobiusnz> nah, I use textmate. There's probably something similar in there
78: [02:15:41] <nikrolls> I use PHPStorm myself, but came from Netbeans so I activated the Netbeans key combinations
79: [02:15:52] <Peavers> also rolling with phpstorm
80: [02:15:57] <nikrolls> mobiusnz Probably
81: [02:16:07] <Stomach> phpstorm ftw
82: [02:16:08] * nikrolls high-fives Peavers
83: [02:16:21] <Peavers> I'm a jetbrains billboard, use intellij for java, the android studio for android, teamcity for ci,
84: [02:16:49] <nikrolls> I use ReSharper and PHPStorm, but very interested in the rest of the suite
85: [02:17:50] * folibis quit (Quit: Page closed)
86: [02:18:40] * zippy__ quit (Ping timeout: 256 seconds)
87: [02:21:56] <mobiusnz> gah
88: [02:22:08] <mobiusnz> I don't think the search context docs have been properly updated for SS3
89: [02:22:35] * LoveDuckie quit (Read error: Connection reset by peer)
90: [02:35:25] <Peavers> spellcheck seems busted in the latest dev build for what its worth.
91: [02:35:55] <MrJeremy> is it too late to defend netbeans?
92: [02:35:59] <Peavers> yup
93: [02:36:08] <Peavers> its terrible software for everything ;)
94: [02:36:28] <MrJeremy> lol
95: [02:37:20] <Peavers> Its free and open source which is great, but it really feels "free" as in it feels like it was made by collage students. It doesn't have anywhere near the level of polish that phpstorm has.
96: [02:39:10] <MrJeremy> I tried it but may have to try it again
97: [02:39:18] * zippy__ has joined #silverstripe
98: [02:39:29] <zippy__> I I have been using phpstorm for the past two weeks, think I will buy it..
99: [02:39:47] <zippy__> coming from sublime, I have found it to be more useful
100: [02:40:23] <Peavers> sublime is great, and I use it daily for small quick changes but I find I get lost in my files as to what I'm trying to do, its hard to manage a project structure with it compared to a full IDE
101: [02:40:48] * Colin[pi] has joined #silverstripe
102: [02:40:54] <Colin[pi]> hey all
103: [02:41:03] <zippy__> hello
104: [02:41:09] <zippy__> I find vim good for small quick changes
105: [02:41:24] <zippy__> but yea, I find it hard for large projects
106: [02:45:13] <Colin[pi]> if anyone does wireframing here check out Balsamiq Mockups, it's pretty sweet
107: [02:45:26] * Stomach quit (Quit: Leaving.)
108: [02:46:52] * supernovah has joined #silverstripe
109: [02:47:01] <Peavers> if I want to override the default .ss for a module I should be able to create that file with the same name in my template folder and ss will load it first yeah?
110: [02:47:21] * willr quit (Quit: willr)
111: [02:47:35] <nikrolls> Colin[pi] We use Balsamiq here, very nice
112: [02:48:03] <nikrolls> Peavers: Usually
113: [02:48:44] <supernovah> Peavers did the .htaccess work
114: [02:48:54] <Peavers> na it didn't
115: [02:49:20] <supernovah> Did I give you order allow, deny or the other way around
116: [02:49:27] <Peavers> allow
117: [02:50:04] <supernovah> I'll pm you what your ../mysite/.htaccess should look like
118: [02:51:28] * Stomach has joined #silverstripe
119: [02:58:31] <supernovah> Um, when I try to create a page with the page type of a page I made earlier, I get a response with "bad class to singleton" line 346 of core.php (sapphire) and none of my scripts are in the trace
120: [02:59:17] <supernovah> Where can I find a stable release of 2.4.x
121: [02:59:52] <Colin[pi]> www.silverstripe.org
122: [03:01:31] <supernovah> The stable release only contains 3.x+
123: [03:02:04] <Colin[pi]> http://www.silverstripe.org/security-releases/
124: [03:02:11] <Colin[pi]> http://www.silverstripe.org/assets/releases/SilverStripe-cms-v2.4.10.tar.gz
125: [03:02:44] <supernovah> I have that but it has a lot of bugs
126: [03:03:02] <Colin[pi]> all software has bugs
127: [03:03:16] <Colin[pi]> I have it too but find it ok
128: [03:05:12] <supernovah> Ok well, how do I then remove a page from the draft site that just gives a popup with errors and wont let me select it
129: [03:05:52] <Colin[pi]> hmm if it's doing that, I'd try removing it via phpMyAdmin if all else fails in the CMS
130: [03:08:06] <abitran> back
131: [03:16:09] <supernovah> Ok flushed my templates but still have an old file showing up that doesn't exist in mysite, it's not in sitetree either, but it shows up in the viewcode list
132: [03:16:48] <supernovah> I am an idiot
133: [03:18:37] <abitran> supernovah: change to dev mode..
134: [03:19:42] <supernovah> I am lol
135: [03:20:20] <abitran> so.. if you select the page.. you should be able to see the error
136: [03:20:30] <supernovah> I can yeah, but it was in the CMS
137: [03:20:34] <nikrolls> "I am an idiot" = "I found it", or "I am an idiom" = "I can't find it?" ;)
138: [03:20:39] <nikrolls> *idiot
139: [03:20:50] <supernovah> It was a typo between my class and class_controller names
140: [03:20:56] <supernovah> I had class and oldClassName_controller
141: [03:21:20] <abitran> so you fixed it
142: [03:24:24] <supernovah> yeah, what do I put in my page or page controller that lets me add the page to the root instead of under another page
143: [03:24:34] <supernovah> It was called like, can_be_root or something
144: [03:25:07] <nikrolls> That's the one
145: [03:27:06] <supernovah> Oh nice
146: [03:27:30] * zippy__ quit (Ping timeout: 248 seconds)
147: [03:32:31] <supernovah> The CMS should have a clear cookies function I think
148: [03:32:46] <supernovah> Because different sessions seem to mess up if you go about deleting stuff manually from the DB
149: [03:34:25] <supernovah> Alright bb
150: [03:34:29] * zippy__ has joined #silverstripe
151: [03:57:21] * cloph_away has joined #silverstripe
152: [03:58:31] * cloph_away1 quit (Ping timeout: 245 seconds)
153: [04:02:22] * Peavers quit (Ping timeout: 264 seconds)
154: [04:04:55] * robert__ is now known as robert_
155: [04:09:46] * zippy__ quit (Read error: Connection reset by peer)
156: [04:13:07] <mobiusnz> lol
157: [04:13:27] <mobiusnz> DataObject::plural_name is a bit buggy
158: [04:14:32] <mobiusnz> well, it's very naïve
159: [04:14:54] <Pyromanik> whaaaaaat! so mad right now. WHO WOULD SULLY OUR PURE WATERS!?
160: [04:14:56] <Pyromanik> http://sspaste.com/paste/show/51afba0b94437
161: [04:18:24] <spronk> DISGUSTING
162: [04:24:56] <Colin[pi]> ╯°□°)╯ ︵ ┻━┻
163: [04:28:08] * Peavers has joined #silverstripe
164: [04:30:11] <Peavers> While I love the work willr has done with the comments, I want to override a few things in the CommentsController, whats the cleanest way to do this? its my understanding php doesn't support method overloading?
165: [04:38:13] <MrJeremy> Peavers: not really
166: [04:41:15] <Peavers> Not really what? lol
167: [04:44:42] <MrJeremy> Peavers: http://php.net/manual/en/language.oop5.overloading.php
168: [04:46:09] <MrJeremy> nothing like java
169: [04:46:20] <Peavers> stink.
170: [04:46:50] <Peavers> is there a ss perfered way rather than hacking the modul to bits?
171: [04:47:55] <MrJeremy> Im not sure sorry. Im fairly new to SS
172: [04:48:24] * gordon has joined #silverstripe
173: [04:48:48] * gordon is now known as Guest22634
174: [04:50:26] * Guest22634 quit (Client Quit)
175: [04:50:29] * DigNZ quit (Quit: DigNZ)
176: [04:50:56] <elgrodo> let me share a tale of woe, wonderful wonderful woe
177: [04:51:13] <elgrodo> received a site handed over from a previous web development company
178: [04:51:20] <elgrodo> client complained the site was 'slow'
179: [04:52:00] <elgrodo> the main pages of the site contained a list of 'Posts' be they videos, photos, with infinite scroll, 20 being shown at a time
180: [04:52:23] <elgrodo> now in order to show todays most popular posts then the rest, 2 separate queries are done, not a union
181: [04:52:43] <elgrodo> it results in ALL of the posts of type video or photograph being loaded in memory just to paginate down to 20 :(
182: [04:52:54] <elgrodo> But it gets better
183: [04:53:36] <elgrodo> Click on a single photograph, which appears in a fancybox popup. Even more queries logged, WTF?
184: [04:54:15] <elgrodo> Turns out it was trying to render the base listing template (the one that erroneously loads all the posts), discaring that HTML and then rendering the view that appears in the popup
185: [04:54:39] <irogue> haha
186: [04:55:03] <elgrodo> I couldn't find the source of the second problem, but explicitly setting the template resolves it
187: [04:55:26] <elgrodo> It is probably the worst implementation I have seen of basic search functionality in my entire career
188: [04:55:38] <elgrodo> Also, no compressing or combing of CSS / JS
189: [04:55:44] <elgrodo> No partial caching in the templates
190: [04:56:00] <elgrodo> So a single listing page takes up to 900 queries, and for some reason the magazine listing takes up 1800
191: [04:56:07] <elgrodo> yip 1800 queries to render a single page
192: [04:56:11] <elgrodo> each time
193: [05:00:38] <irogue> hahahaha
194: [05:00:54] <irogue> did they outsource it to the wheedle devs in india?
195: [05:02:06] <elgrodo> UK company
196: [05:02:15] <elgrodo> I am duty bound not to mention names though
197: [05:03:07] <irogue> lol
198: [05:04:17] * nickmolhoek quit (Quit: nickmolhoek)
199: [05:09:09] <elgrodo> how do i add Thai to the list of available languages?
200: [05:09:30] <elgrodo> i18n::$common_locales['th_TH'] = array('Thai'); < cannot do that now
201: [05:13:04] <nikrolls> Something like Config::inst()->update('i18n', 'common_locales', ...)
202: [05:13:10] <nikrolls> Though I'm not sure about that last param
203: [05:14:02] * coldblooded01 quit (Quit: Page closed)
204: [05:15:07] <nikrolls> Looks like it might be: Config::inst()->update('i18n', 'common_locales', array('th_TH' => 'Thai')
205: [05:15:12] <nikrolls> Untested though
206: [05:15:23] <nikrolls> And missing a ) on the end :)
207: [05:15:44] <elgrodo> Thanks, just saw http://doc.silverstripe.org/framework/en/trunk/topics/i18n
208: [05:16:29] <nikrolls> Ah!
209: [05:17:08] <nikrolls> Heh, nice example: en_NZ, native name: Niu Zillund
210: [05:19:09] <mobiusnz> hey, is there a nice CRUD module/methodology for SS3?
211: [05:19:13] <elgrodo> :)
212: [05:19:19] <elgrodo> nikrollos: mmm, didn't work
213: [05:19:32] <nikrolls> Yaml or Config?
214: [05:19:45] <elgrodo> yml
215: [05:19:58] <elgrodo> lets try config.php
216: [05:22:09] <elgrodo> I get a language appearing called 'T', just the letter T
217: [05:22:12] <elgrodo> then Action 'LangForm' isn't available on class CMSPagesController.
218: [05:22:13] <elgrodo> :(
219: [05:23:03] <elgrodo> will need to park it for now
220: [05:23:57] <elgrodo> was hoping for 'it just works'... :(
221: [05:39:25] <mobiusnz> hmm, is there a way to get a Controller to /not/ pop the param array?
222: [05:40:23] * Stomach quit (Quit: Leaving.)
223: [06:01:35] * MrJeremy quit (Quit: MrJeremy)
224: [06:06:20] * SightUnseen has joined #silverstripe
225: [06:06:25] * SightUnseen has left #silverstripe
226: [06:34:56] * joelpittet quit (Remote host closed the connection)
227: [06:38:19] * chillu has joined #silverstripe
228: [06:44:16] * r3v3rb has joined #silverstripe
229: [06:44:26] * r3v3rb quit (Client Quit)
230: [06:48:33] <mobiusnz> anyone able to help me with url_handlers?
231: [07:02:38] * zfmf1 has joined #silverstripe
232: [07:10:19] * travis-ci has joined #silverstripe
233: [07:10:20] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#416 (3.1 - 4bc942d : Ingo Schommer): The build passed.
234: [07:10:20] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/e9fe4f7c68b7...4bc942df7619
235: [07:10:20] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/7974104
236: [07:10:20] * travis-ci has left #silverstripe
237: [07:14:54] * lewellyn has joined #silverstripe
238: [07:15:15] * priithansen has joined #silverstripe
239: [07:22:08] * travis-ci has joined #silverstripe
240: [07:22:09] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#263 (3.1 - a643f95 : Ingo Schommer): The build passed.
241: [07:22:09] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1c150ac3a023...a643f9579662
242: [07:22:09] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7974306
243: [07:22:09] * travis-ci has left #silverstripe
244: [07:36:47] * PigeonFriend quit (Read error: No route to host)
245: [07:37:38] * kinglozzer has joined #silverstripe
246: [07:39:28] * PigeonFriend has joined #silverstripe
247: [07:50:50] * supernovah has joined #silverstripe
248: [08:03:14] * popeshoe has joined #silverstripe
249: [08:09:15] <supernovah> How do you catch the change and run a controller function when a dataObject is updated through its popup?
250: [08:12:36] <supernovah> And is it possible to have different options for add and edit
251: [08:13:12] * wotaen has joined #silverstripe
252: [08:14:14] <wotaen> Hi All, I'm manipulating images, according to documentation, I should have methods like paddedImage, resizeRatio and so on. paddedImage works just fine, however resizeRation doesn't with this: Uncaught Exception: Object->__call(): the method 'resizeratio' does not exist on 'Image'
253: [08:14:17] <wotaen> any ideas?
254: [08:15:04] <kinglozzer> wotaen: SetRatioSize perhaps?
255: [08:16:15] <wotaen> let me try
256: [08:17:44] <wotaen> excellent, thanks! :)
257: [08:21:17] <supernovah> when you set out a data structure with $db, can you set say "Varchar(256)" and "Int(11)" ?
258: [08:22:52] <mobiusnz> I don't believe varchar can be over 255… use text instead
259: [08:23:01] <kinglozzer> supernovah: Yes, just not over 255 for varchar
260: [08:23:07] <supernovah> oh right
261: [08:23:15] <supernovah> Because it's defaulting to 50 which is irritating
262: [08:23:56] * chillu quit (Quit: chillu)
263: [08:24:37] * willr_ has joined #silverstripe
264: [08:24:37] * willr_ quit (Changing host)
265: [08:24:37] * willr_ has joined #silverstripe
266: [08:27:22] * chillu has joined #silverstripe
267: [08:29:05] <supernovah> So Varchar(255) works but Int(11) sets the default value at 11 even when I have a $db map before a $defaults map with different values o.0
268: [08:31:02] <elgrodo> what is the SS3 equivalent of this?
269: [08:31:03] <elgrodo> $records = DB::query('SELECT *, CASE WHEN "ThumbnailID" = 0 THEN 2 ELSE 1 END AS "HasThumbnail" FROM "TempDoc" ORDER BY "HasThumbnail", "Name" ASC');
270: [08:31:04] <elgrodo> $items = singleton('TempDoc')->buildDataObjectSet($records);
271: [08:40:38] <kinglozzer> elgrodo: I've never seen an equivalent of ->buildDataObjectSet(), I've always simply done: $arrayList = new ArrayList(); foreach ($records as $record) { $arrayList->push(new TempDoc($record)); }
272: [08:49:57] <wotaen> hey everyone...I've got a question
273: [08:50:11] <wotaen> what is the best way of resizing an image with a given x,y and width and height?
274: [08:50:27] <wotaen> I want to keep the cache mechanism and everything else as it is
275: [08:56:09] <willr_> wotaen so you mean resize from an xy point? normally all you need is a height and width
276: [08:56:16] <elgrodo> kinglozzer: Went with this: $post = Injector::inst()->create('Post', $record);
277: [08:56:46] <wotaen> nope, I need to create a custom thumbnail
278: [09:00:06] * LoveDuckie has joined #silverstripe
279: [09:04:08] * mattybalaam has joined #silverstripe
280: [09:16:32] * mobiusnz quit (Quit: Leaving.)
281: [09:33:31] * wotaen quit (Ping timeout: 250 seconds)
282: [09:35:10] <mattybalaam> Silverstripe converts Page titles to a URL friendly string with hyphens instead of spaces. Say I wanted to convert a
283: [09:35:37] * gumble has joined #silverstripe
284: [09:36:12] <gumble> hey I have asked this question http://www.silverstripe.org/template-questions/show/23941 a few days ago on the forums, but nobody answers. can anyone help me maybe?
285: [09:36:26] <mattybalaam> Silverstripe converts Page titles to a URL friendly string with hyphens instead of spaces. Say I wanted to convert something else on a page in the same way - is there a way of calling this inside a template?
286: [09:37:48] <kinglozzer> mattybalaam: .XML ?
287: [09:38:25] <ec8or_> i think you'd have to copy the method
288: [09:38:44] <kinglozzer> Or .HTMLATT, .URLATT, .RAWURLATT
289: [09:38:50] <kinglozzer> One of those will probably do it
290: [09:41:58] <mattybalaam> Cool, .URLATT converts spaces to 'plus', and .RAWURLATT with percent-encoding. One of those should do what I want it to do, which is create classes. Many thanks!
291: [09:54:49] <mattybalaam> gumble: where have you put the function?
292: [09:57:02] * gordon__ has joined #silverstripe
293: [09:57:32] <gumble> mattybalaam, in the Page_Controller
294: [09:58:38] <LoveDuckie> I think I discovered a bug with silverstripe in the way that a page handles its child pages.
295: [09:58:57] * elgrodo quit (Ping timeout: 245 seconds)
296: [10:02:17] <willr_> LoveDuckie how so?
297: [10:05:22] <LoveDuckie> Let me take a screenshot
298: [10:06:26] <LoveDuckie> http://imgur.com/vOlHCYr
299: [10:06:39] <LoveDuckie> This is the response I get when I try to navigate to a non-existen page under the one that I am viewing
300: [10:09:16] <LoveDuckie> *non-existent
301: [10:10:36] <willr_> Looks like your code in Portfolio:40 doesn't handle the case if the page doesn't exist
302: [10:11:21] <willr_> Can you post the function around Portfolio line 40
303: [10:12:25] <LoveDuckie> It's not that
304: [10:12:31] <LoveDuckie> I've completely commented out that code now
305: [10:12:41] <LoveDuckie> it was a function that was overriding what was in SiteTree for handlerequest
306: [10:12:58] <LoveDuckie> http://sspaste.com/paste/show/51b6f7fcdc17e
307: [10:13:00] <LoveDuckie> That's all it was
308: [10:13:14] <LoveDuckie> I've commented it out and now it's the same but without the trace on that function as it no longer exists in Portfolio.php
309: [10:13:49] <willr_> Well get_by_link() only takes a string and for it to be getting something other than a string indicates it's being called wrong
310: [10:14:29] <LoveDuckie> Understood, but it's not my portfolio code.
311: [10:14:43] <LoveDuckie> Even on a live site that I have now, it's doing the same but hiding the error because it's in "live" mode
312: [10:14:50] <willr_> Doing a <% loop Page(foo) %> anywhere?
313: [10:14:57] <LoveDuckie> nope
314: [10:15:07] <LoveDuckie> doing loop Children
315: [10:15:10] <LoveDuckie> in Portolio.ss
316: [10:15:11] <LoveDuckie> but that's it
317: [10:15:20] <LoveDuckie> http://lucshelton.com/employment/page
318: [10:15:24] <LoveDuckie> Just put my site into dev mode
319: [10:15:26] <LoveDuckie> and it's spitting out the same
320: [10:15:29] <LoveDuckie> completely different project.
321: [10:16:16] <LoveDuckie> I'll investigate the stack trace to determine where an object could be placed into the argument, but I think it's an SS3 issue
322: [10:17:12] <willr_> Could be related to your action being 'page' and mucking up with the page helperfunction
323: [10:17:43] <LoveDuckie> Perhaps.
324: [10:17:58] <LoveDuckie> Seems like a nasty bug at any rate.
325: [10:18:07] <willr_> Is page a child page or a custom controller action?
326: [10:18:22] <LoveDuckie> I want it to be a custom controller action
327: [10:18:30] <LoveDuckie> e.g. I want to handle the request for /page/1
328: [10:18:32] <LoveDuckie> within the portfolio_controller
329: [10:18:48] <LoveDuckie> If you understand.
330: [10:19:06] <willr_> Yeah I'd try not using page for the action name and seeing if that works
331: [10:20:40] <LoveDuckie> Alright, I'll change it to something else. Meanwhile, is that worth reporting as a bug somewhere?
332: [10:20:50] <LoveDuckie> Perhaps the argument should be sanitised before being placed into trim()
333: [10:21:21] <willr_> well that fixes one issue but the bigger issue is that it's even calling that method at all.
334: [10:21:45] <LoveDuckie> Yeah...
335: [10:21:47] <LoveDuckie> Weird.
336: [10:21:55] <LoveDuckie> I'll put it on the forums anyway, see what people say
337: [10:22:09] <willr_> It's because template helpers such as Page() are functions exactly the same as action handlers so when SS comes to match the routes hey look it matches the wrong method
338: [10:22:38] <willr_> Part of the side effects of automagic!
339: [10:22:46] <LoveDuckie> Ah, I see what you mean.
340: [10:24:11] <willr_> So even I'm not completely sure of the possible 'fix' for this that won't break things. To be fair it's a bit of an edge case, could rewrite the template helpers to get* such as getPage() but people may still use actions called getPage
341: [10:24:53] <LoveDuckie> you mean that they could easily just use /employment/getPage/ etc?
342: [10:25:41] <willr_> yeah nothing to prevent the matching, looking at the result of the method doesn't help as action functions don't need to return anything
343: [10:26:04] <willr_> might need to make them explicitly return responses (but that'll break a lot of apps)
344: [10:26:06] <kinglozzer> I've encountered similar issues: you can't have a database field called 'model'. Can't remember the exact reason, but think it was due to magic getters
345: [10:28:01] <willr_> I guess then my solution would be to blacklist names that interfere and throw an error if a dev tries to use them (like page with the warning of a conflict). Making it explicit would at least prevent this sort of thing
346: [10:28:30] <willr_> Otherwise core will just have even more magic to cover over magic
347: [10:28:43] <LoveDuckie> I see.
348: [10:28:46] <LoveDuckie> Crazy.
349: [10:28:57] <kinglozzer> Yeah, or even just a doc page of reserved names would do
350: [10:44:18] * micmania1 has joined #silverstripe
351: [10:49:28] <gumble> hey, I am getting "date.timezone option in php.ini must be set correctly" during installation. Problem is, I can't set date.timezone because it's not my server, it is hosted at strato.de
352: [10:58:14] * dangerdan has joined #silverstripe
353: [11:00:47] <dangerdan> http://www.sspaste.com/paste/show/51b702703c7a0 <- is there a simple way of getting the pos from the first control into the second one? to achieve something like $AccordionSection.Pos $Pos $Title ? Or is it something I will need to do in PHP?
354: [11:00:51] <kinglozzer> humble: in .htaccess php_value date.timezone "Europe/London"
355: [11:01:44] <willr_> dangerdan in 3.0 yes, $Up will do that but not in 2.4
356: [11:02:02] <dangerdan> Thanks, in 3.0 so that sounds exactly what i need :) thanks
357: [11:06:51] * lobarvaz has joined #silverstripe
358: [11:22:13] * willr_ quit (Quit: willr_)
359: [11:32:31] * dangerdan quit (Quit: Page closed)
360: [11:56:07] * gumble quit (Ping timeout: 256 seconds)
361: [12:03:27] * UndefinedOffset has joined #silverstripe
362: [12:27:01] * gumble has joined #silverstripe
363: [12:28:00] * UncleCheese has joined #silverstripe
364: [12:29:17] * UncleCheese quit (Client Quit)
365: [12:50:49] * RojoD has joined #silverstripe
366: [12:50:50] * RojoD quit (Changing host)
367: [12:50:50] * RojoD has joined #silverstripe
368: [13:10:58] * Colin[pi] quit (Ping timeout: 248 seconds)
369: [14:05:40] * micmania1 quit (Ping timeout: 250 seconds)
370: [14:05:53] * priithansen quit (Quit: priithansen)
371: [14:10:52] * RojoD quit (Ping timeout: 240 seconds)
372: [14:30:46] * Nivery has joined #silverstripe
373: [14:54:43] * priithansen has joined #silverstripe
374: [14:56:05] * kinglozzer Just spent 10 minutes trying to URL encode parts of a hashbang, only to realise they are encoded - Firefox is just decoding them before displaying them in the address bar
375: [14:56:09] <kinglozzer> Gr.
376: [14:58:16] * mattybalaam quit (Quit: mattybalaam)
377: [15:28:42] * mattybalaam has joined #silverstripe
378: [15:30:20] * mattybalaam quit (Client Quit)
379: [15:39:22] * mattybalaam has joined #silverstripe
380: [15:40:19] * catcher has joined #silverstripe
381: [15:41:19] <catcher> What's the right way to set some site-wide data via framework-only? Specifically, SiteConfig.tite, etc.
382: [15:41:32] <catcher> title*
383: [15:44:47] * Nivery quit (Quit: Nivery)
384: [15:49:27] * catcher quit (Read error: Operation timed out)
385: [15:49:50] * catcher has joined #silverstripe
386: [15:51:43] * nikrolls quit (Ping timeout: 255 seconds)
387: [16:06:17] * jakiw_ has joined #silverstripe
388: [16:11:48] * gumble quit (Ping timeout: 246 seconds)
389: [16:12:39] <FrozenFire> catcher, SiteConfig/SiteTree are CMS stuff
390: [16:13:00] <FrozenFire> Implementing configuration in the model would be your own stuff.
391: [16:13:55] <catcher> Ah, thought I saw it in the framework section of the docs. Is that kind of thing best left to a custom model? Or a site-wide static with config.yml (if that's even possible)
392: [16:15:15] <priithansen> Is it just me or is CompositeDBField more complicated then it should be
393: [16:20:53] * popeshoe quit (Quit: Leaving)
394: [16:25:34] * popeshoe has joined #silverstripe
395: [16:28:51] <FrozenFire> catcher, Depends on your needs.
396: [16:29:38] <FrozenFire> If it's static configuration, then yeah just put it into Config and provide a getter on your controller
397: [16:40:44] <catcher> Will someone please verify a bug I'm seeing in 3.0.5 and 3.1.0-beta3? In the CMS, add an image via tinymce, then click "from the CMS". The pagination input box doesn't allow typing a page #.
398: [16:42:42] <catcher> It gets click, but not focus.
399: [16:44:45] * Nivery has joined #silverstripe
400: [16:44:47] <catcher> even if I explicitly give it focus on click, it still won't accept input.
401: [16:48:58] * lobarvaz quit (Remote host closed the connection)
402: [17:20:11] * kinglozzer quit (Remote host closed the connection)
403: [17:27:45] * gelignite has joined #silverstripe
404: [17:28:34] * chillu quit (Quit: chillu)
405: [17:33:16] * Nivery quit (Quit: Nivery)
406: [17:42:16] * popeshoe quit (Quit: This computer has gone to sleep)
407: [17:43:47] * Nivery has joined #silverstripe
408: [18:01:42] <catcher> has anyone gotten uploadfield working with the widgets module?
409: [18:08:14] * RojoD has joined #silverstripe
410: [18:08:15] * RojoD quit (Changing host)
411: [18:08:15] * RojoD has joined #silverstripe
412: [18:12:22] * RojoD quit (Ping timeout: 240 seconds)
413: [18:35:25] * zfmf1 quit (Ping timeout: 240 seconds)
414: [18:43:20] * RojoD has joined #silverstripe
415: [18:43:20] * RojoD quit (Changing host)
416: [18:43:20] * RojoD has joined #silverstripe
417: [18:48:48] <Nivery> how do you require a cmd field in ss3?
418: [18:48:52] <Nivery> cms field*
419: [18:49:59] <Nivery> in getCMSFields
420: [19:01:28] * C10ne has joined #silverstripe
421: [19:07:33] * willmorgan has joined #silverstripe
422: [19:07:55] * SightUnseen has joined #silverstripe
423: [19:07:56] * SightUnseen has left #silverstripe
424: [19:07:58] * Guits has joined #silverstripe
425: [19:11:48] <ss23> 1 ノ( ゜-゜ノ)
426: [19:11:49] <ss23> (╯°□°)╯︵ 0
427: [19:11:51] <ss23> bitflip.
428: [19:44:44] * PigeonFriend quit ()
429: [20:00:07] * micmania1 has joined #silverstripe
430: [20:04:58] <catcher> I need to add error handling to a core method that's pretty specific to my case. I don't want to replace the entire class, and I can't override methods in a dataextension, so how?
431: [20:07:49] <ss23> hmm hmm hmm
432: [20:08:33] * Peavers quit (Ping timeout: 256 seconds)
433: [20:08:53] * Peavers has joined #silverstripe
434: [20:11:31] * Zauberfisch^idle quit (Read error: Connection reset by peer)
435: [20:11:42] * DigNZ has joined #silverstripe
436: [20:11:43] * DigNZ quit (Remote host closed the connection)
437: [20:11:57] * DigNZ has joined #silverstripe
438: [20:12:00] * Zauberfisch^idle has joined #silverstripe
439: [20:19:14] * pex has joined #silverstripe
440: [20:19:58] * UndefinedOffset quit (Quit: Leaving.)
441: [20:24:59] <micmania1> is it possible to map actions to functions? (ie "create" => "createLeague")
442: [20:28:16] <micmania1> I can't use the words 'new' or 'create'. Anybody got any suggestions? :)
443: [20:28:17] * joelpittet has joined #silverstripe
444: [20:28:36] * gelignite quit (Quit: http://bit.ly/nkczDT)
445: [20:28:38] <Peavers> Why would you want to?
446: [20:29:15] <micmania1> Nice URLs. I want the user to be able to create a league or join a league. I have /leagues/join & I'd like /leagues/create also
447: [20:30:20] * Liquide has joined #silverstripe
448: [20:33:28] <catcher> micmania1, 'add' is pretty common
449: [20:36:02] * mobiusnz has joined #silverstripe
450: [20:37:13] <micmania1> catcher: I've settled for /leagues/create-league. Messes up my naming convention but I can live with that. just.
451: [20:51:50] * Stomach has joined #silverstripe
452: [20:55:27] <irogue> [08:24] <micmania1> is it possible to map actions to functions? (ie "create" => "createLeague")
453: [20:56:02] <irogue> i've got some hacky code for 2.4 that simon_w wrote for me, i'm planning to take that and try to tidy it up and get it into core at some point
454: [20:56:05] <irogue> but right now, no
455: [20:57:46] <ss23> into 2.4 core?
456: [20:58:31] <C10ne> Anybody knows why, when a page has many dataobjects, on first loading of the edit form it doesn't load templated js, but only on reload works?
457: [20:58:37] * Motoservo quit (Ping timeout: 255 seconds)
458: [20:58:49] * MrJeremy has joined #silverstripe
459: [21:00:06] * zippy__ has joined #silverstripe
460: [21:00:36] <mobiusnz> hey, anyone here know much about HTTPRequest and RequestHandler logic?
461: [21:00:44] * Motoservo has joined #silverstripe
462: [21:06:08] * Motoservo quit (Ping timeout: 252 seconds)
463: [21:08:37] <micmania1> iroque, that would be useful.
464: [21:08:42] * Motoservo has joined #silverstripe
465: [21:09:14] <micmania1> Does anybody know how to add many_many_extraFIelds to a Gridfield? I know its supposed to be supported in 3.1 but I can't find anything about it.
466: [21:11:51] * MrJeremy quit (Ping timeout: 276 seconds)
467: [21:12:38] <irogue> ss23: 3.x core
468: [21:12:48] * MrJeremy has joined #silverstripe
469: [21:13:24] <ss23> kswt
470: [21:14:01] * jakiw_ quit (Ping timeout: 256 seconds)
471: [21:16:11] <Pyromanik> micmania1: extraFields is a huge hack. It surprises me someone has added support to gridfield without first fixing the huge mess it is.
472: [21:16:45] <mobiusnz> whenever I want to create many_many_extrafields I usually just go for creating a joining object
473: [21:16:46] * Guits quit (Ping timeout: 248 seconds)
474: [21:16:53] <Pyromanik> irogue: micmania1: mapping actions to functions is possible.
475: [21:17:03] <Pyromanik> irogue: you're thinking about direct rules.
476: [21:17:16] <Pyromanik> micmania1: look at $url_handlers
477: [21:17:20] <Pyromanik> (static iirc)
478: [21:18:29] <Peavers> Is there a quick way to send an email notification when a new blog post is posted?
479: [21:18:47] <irogue> Pyromanik: oh yes, good point, /leagues/create is still within the right controller scope
480: [21:19:09] <micmania1> Pyromanik, ah! Of course! Cheers.
481: [21:19:13] <irogue> i screw with my controller scopes, so can't use url_handlers, so forgot about that
482: [21:19:41] * Nivery quit (Quit: Nivery)
483: [21:20:03] <micmania1> |I rarely use them. I always end up doing it another way.
484: [21:21:12] <micmania1> I agree about extrafields. I created a ManyManyListField to handle many_many relations a little nicer than Gridfield. It works well but its a mess from start to finish.
485: [21:22:42] <irogue> i basically have two controllers that handle all of my "logged-in" stuff, StorePage and ChipPage. all my URLs like /product/dv120 or /brand/draytek get pushed to StorePage_Controller::product or StorePage_Controller::brand - so i have to get all hacky
486: [21:25:45] <irogue> didn't want /store/product/dv120 cos that's ugly and unneccesary :P
487: [21:28:28] <mobiusnz> I'm having similar problems irouge
488: [21:29:45] <mobiusnz> I have a page that manages a collection of dataobjects, and I have to have the url /mypage/list/id/action when I really want /mypage/id/action
489: [21:30:18] <irogue> yeah
490: [21:30:19] <mobiusnz> I can't stop the page from shifting the request params when passing control to the collection controller
491: [21:30:23] <irogue> 2.4 or 3.x?
492: [21:30:26] <mobiusnz> 3.x
493: [21:30:33] <mobiusnz> had same problem in 2.4
494: [21:30:38] <irogue> damn, can't help you then
495: [21:30:58] <mobiusnz> other than that, I've got a pretty nice nested collection controller setup going
496: [21:31:00] <irogue> i have yet to look into Director in 3.x
497: [21:31:45] <mobiusnz> it traverses relationships and such
498: [21:33:03] * micmania1 quit (Quit: Page closed)
499: [21:36:51] * micmania1 has joined #silverstripe
500: [21:49:27] <micmania1> is it possible to filter by extaFields?
501: [21:57:41] <Pyromanik> micmania1: nope
502: [21:57:48] <Pyromanik> well
503: [21:57:57] <Pyromanik> maybe, but easy answer nope.
504: [21:58:25] <Pyromanik> I want to write a magic setter, but am scared because I always 'mare it.
505: [21:58:30] <Pyromanik> anyone done this?
506: [21:59:06] <Pyromanik> do I just function setDBProperty($newval){blah, $this->db.. No shit there's my problem.
507: [21:59:09] <Pyromanik> argh
508: [21:59:12] <Pyromanik> how to write setter?
509: [21:59:27] <Pyromanik> can I name a form field after a function and have that go as a validator?
510: [21:59:30] * pex quit (Ping timeout: 248 seconds)
511: [21:59:39] <Pyromanik> should I make a new form field that does my parsing before the saving?
512: [22:01:53] <Pyromanik> does that even make sense?
513: [22:01:54] <Pyromanik> halp me obi wan kenobi, you're my only hope.
514: [22:01:54] * micmania1 quit (Ping timeout: 250 seconds)
515: [22:01:54] * joelpittet quit (Read error: Connection reset by peer)
516: [22:01:54] * joelpittet has joined #silverstripe
517: [22:01:56] <irogue> ss23 will help you, he knows all of the things
518: [22:02:10] <Pyromanik> hey ss23
519: [22:02:12] <Pyromanik> events/view/2011-09-15/2011-09-15?filter=1&filter_PicaEventDateTime_Location=Taranaki%27%29%20UNION%20SELECT%20%22Member%22.%22ClassName%22,%20%22Member%22.%22Created%22,%20%22Member%22.%22LastEdited%22,%20%22Member%22.%22FirstName%22,%20CURRENT_DATE%28%29%20as%20%22StartDate%22,%20CURRENT_TIME%28%29%20as%20%22StartTime%22,%20CURRENT_DATE%28%29%20as%20%22EndDate%22,%20CURRENT_TIME%28%29%20as%20%22EndTime%22,%20%22Member%22.%22Em
520: [22:02:42] <Pyromanik> event_calendar - not even once.
521: [22:03:12] * spronk quit (Ping timeout: 240 seconds)
522: [22:03:13] * chillu has joined #silverstripe
523: [22:03:13] <irogue> ... oh god
524: [22:05:17] <ss23> um
525: [22:05:19] <ss23> wtf Pyromanik
526: [22:05:20] <ss23> plz kill it
527: [22:08:11] <irogue> Pyromanik: i think we all know what has to happen
528: [22:08:18] <ss23> Pyromanik develop a new one
529: [22:08:20] <ss23> :D
530: [22:08:23] <irogue> yup
531: [22:08:32] <irogue> its the only way to kill that grossness
532: [22:08:59] <ss23> :D
533: [22:10:34] * willmorgan quit (Read error: Connection reset by peer)
534: [22:11:25] * DigNZ quit (Remote host closed the connection)
535: [22:24:56] <Pyromanik> irogue: I've actually half planned one.
536: [22:25:08] <Pyromanik> the motivation to actually implement though...
537: [22:25:12] <ss23> lol
538: [22:25:13] <Pyromanik> ...yeah
539: [22:25:14] <ss23> Know that feel
540: [22:25:18] <Pyromanik> dem feels
541: [22:25:22] <ss23> I mean, I have an entire p2p botnet designed
542: [22:25:28] <ss23> But to actually *build* it
543: [22:25:43] * travis-ci has joined #silverstripe
544: [22:25:43] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#266 (3.1 - dfdb274 : Sean Harvey): The build passed.
545: [22:25:43] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/a643f9579662...dfdb274773ef
546: [22:25:43] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7999551
547: [22:25:43] * travis-ci has left #silverstripe
548: [22:25:55] * DigNZ has joined #silverstripe
549: [22:25:56] * DigNZ quit (Remote host closed the connection)
550: [22:26:10] * DigNZ has joined #silverstripe
551: [22:27:00] <Pyromanik> p2p eh?
552: [22:27:06] <Pyromanik> dem 90's buzzwords
553: [22:27:15] <Pyromanik> wait no, early 2000's
554: [22:27:15] <ss23> PEER TO PEER BRO
555: [22:27:18] * ss23 waves his hands around
556: [22:27:24] * Pyromanik prefers pears
557: [22:27:36] <ss23> My contract at Silverstripe specifically has a clause saying "NO P2P AT WORK"
558: [22:27:39] <ss23> I gotta wonder if that includes Skype
559: [22:27:41] <Pyromanik> rofl
560: [22:27:50] <ss23> Or any of those websites that use the p2p API
561: [22:27:51] <ss23> like...
562: [22:27:54] <ss23> Such a weird clause to have
563: [22:28:04] <ss23> You would think they'd just have "don't be a dick on the internetS", not specifically choose P2P
564: [22:28:06] <Pyromanik> not really
565: [22:28:20] <Pyromanik> dem torrents n dat bandwif.
566: [22:28:45] <Pyromanik> "don't be a dick" is too broad.
567: [22:28:46] <ss23> Torrents are just a single use of P2P, and even then, lots of legit things should be downloaded over torrents
568: [22:28:53] <Pyromanik> encompasess more, but easier to escape too
569: [22:29:02] <Pyromanik> ss23: yeh.
570: [22:29:19] <ss23> p2p encompasses the wrong things and leaves out too much
571: [22:29:20] <Pyromanik> but the thing with contracts you'll learn is that they're not so much a "yes no", more of a "that's there incase we need it"
572: [22:29:22] <MrJeremy> anyone know of something like smtp4dev for linux (server)?
573: [22:29:39] <Pyromanik> torrenting for legit purposes is probably fine if you run it past the bossfolk
574: [22:29:44] <ss23> Pyromanik: If it was an incase we need it, it should be "don't be a dick", cause there are plenty of ways to ruin stuff without p2p
575: [22:29:55] <ss23> I'm just saying it's a stupid thing to point out *specifically*
576: [22:29:56] <Pyromanik> but then if you suddenly all the movies and & naughty boy notices... yeah.
577: [22:30:51] <Pyromanik> ss23: yeah, but you have to be specific, so just put in the more likely cases.
578: [22:30:59] <Pyromanik> most other things would probably come under 'misconduct'
579: [22:31:05] <ss23> sifsifsif
580: [22:31:20] <ss23> If you have to be specific to cover your ass, you should cover *everything*.
581: [22:31:32] <ss23> If you can catch things under misconduct, then there's no need for p2p to be pointed out specifically
582: [22:31:40] <irogue> ss23: it's likely written by lawyer-folk who don't really know what they're talking about tech-wise
583: [22:31:47] <ss23> ^^^
584: [22:31:52] <ss23> I like this explanation
585: [22:32:09] <ss23> "p2p is bad rite?" "yeah lets say that's not allowed!"
586: [22:33:22] <Pyromanik> yep
587: [22:33:28] <Pyromanik> but is agreed with
588: [22:33:30] <Pyromanik> by folks that do know
589: [22:33:40] <Pyromanik> who likely far more apathetic than you are.
590: [22:39:02] * Colin[pi] has joined #silverstripe
591: [22:43:33] * xyphoid quit (Read error: Operation timed out)
592: [22:43:41] * xyphoid has joined #silverstripe
593: [22:47:23] <Pyromanik> how to steal youtube preview images?
594: [22:47:26] <Pyromanik> :<
595: [22:48:56] <ss23> wget!
596: [22:49:13] <Pyromanik> but they all the same size :<
597: [22:49:48] <Pyromanik> oh
598: [22:49:50] <Pyromanik> 0.jpg
599: [22:49:54] <Pyromanik> dat trap
600: [22:50:34] * clodeindustrie has joined #silverstripe
601: [22:51:18] <clodeindustrie> hi there
602: [22:52:00] <clodeindustrie> how would you go at rescuing pages that have been deleted
603: [22:52:14] <clodeindustrie> and are now only visible on the _versions table ?
604: [22:52:22] <clodeindustrie> I would like them back in the loop
605: [22:52:45] <Pyromanik> view deleted
606: [22:53:00] <clodeindustrie> some pages were children of a holder type page that has been deleted so they all went to the dogs
607: [22:53:13] <Pyromanik> it's built in
608: [22:53:16] <Pyromanik> in the cms
609: [22:53:26] <Pyromanik> view all, including deleted
610: [22:54:01] <clodeindustrie> that's the thing, they don't appear there either
611: [22:54:14] <clodeindustrie> I can only find them in my SiteTree_versions
612: [22:54:16] <clodeindustrie> table
613: [22:54:25] <Pyromanik> fffffffffffff
614: [22:54:28] <Pyromanik> no tables
615: [22:54:30] <Pyromanik> just cms
616: [22:54:59] * Pyromanik tries in 3.0.5
617: [22:55:02] <Pyromanik> oh god, someone broke it
618: [22:55:08] <clodeindustrie> :)
619: [22:55:13] <Pyromanik> who would do that!?
620: [22:55:22] <clodeindustrie> wasn't me
621: [22:55:29] <Pyromanik> not only do I not get deleted, I don't get most of my pages either.
622: [22:55:56] <Pyromanik> in fact I can only see: "About us, Page not found, Server error"
623: [22:55:58] <clodeindustrie> true now I realize I get something like 4 pages out of 30
624: [22:56:04] <Pyromanik> yep
625: [22:56:07] <Pyromanik> is f'd
626: [22:56:15] <clodeindustrie> meh
627: [22:56:25] <Pyromanik> well now, taht' use dto work :<
628: [22:56:45] <Pyromanik> clodeindustrie: switch it to list view, taht seems to work
629: [22:56:49] <Pyromanik> (top right)
630: [22:58:23] <Pyromanik> I lied, it still doesn't bring up deleted pages.
631: [22:58:26] <Pyromanik> SO MAD RIGHT NOW
632: [22:58:39] <clodeindustrie> yeah I was about to say that
633: [22:58:47] <clodeindustrie> more pages but not deleted
634: [23:01:00] <Pyromanik> not even a willr around to blame!
635: [23:01:33] <Pyromanik> oh, but chillu is here.
636: [23:01:42] <Pyromanik> but it may have already come right in 3.1 betas
637: [23:01:43] * nikrolls has joined #silverstripe
638: [23:01:55] <chillu> Sup?
639: [23:05:19] <unsignedint> 'sup.
640: [23:06:23] <Pyromanik> chillu: undeleting pages seems to be bung in 3.0.5
641: [23:07:09] <chillu> how about 3.1? Error message? 3.0 branch?
642: [23:11:51] <Pyromanik> chillu: tarball at the least
643: [23:12:04] <Pyromanik> clodeindustrie should be testing 3.1 right about now
644: [23:12:30] <clodeindustrie> wat!?
645: [23:12:33] <Pyromanik> chillu: no error message, just returns incorrect results
646: [23:13:13] <clodeindustrie> I was trying to find where it happens in the code
647: [23:13:26] <clodeindustrie> seemed straighforward
648: [23:13:47] <Pyromanik> clodeindustrie: check to make sure it hasn't already been fixed first ;)
649: [23:17:22] * spronk has joined #silverstripe
650: [23:23:55] <clodeindustrie> can I update only with composer?
651: [23:24:37] <spronk> ugh
652: [23:25:04] <spronk> how much of a PITA is it to update from 3.0.5 to 3.1 beta3, is 3.1 beta3 stable enough for prod, and, is subsites any better with master branch than 0.4?
653: [23:29:48] <catcher> spronk, the upgrade isn't too bad for a small-ish site. Beta3 seems as stable as 3.0.5 so far. No clue on subsites.
654: [23:30:21] * chillu quit (Quit: chillu)
655: [23:30:30] <Pyromanik> spronk: can be because of public static => private static
656: [23:30:40] <Pyromanik> is stable enough, but still unstable.
657: [23:30:49] <Pyromanik> subsites, ... probably about the same.
658: [23:30:50] <Pyromanik> dunno
659: [23:31:58] * supernovah has joined #silverstripe
660: [23:37:08] <supernovah> For a page I have a simple holder that can be enabled/disabled by a single boolean in its $db map. If I go to the database manually and change it to 0 (disabled) the page remains enabled. What do I have to do to get it to work? flush all doesn't help.
661: [23:37:49] <supernovah> It works normally if I go to the CMS, turn off the checkbox and hit save and publish - but it seems to rebuild every time
662: [23:38:01] * dospuntocero has joined #silverstripe
663: [23:38:19] <mobiusnz> supernovah: you'd need to edit the _live version of the page
664: [23:39:02] <spronk> hmm
665: [23:39:11] <spronk> subsites 0.4 is horribly broken with 3.0.5
666: [23:39:19] <spronk> just bugs everyhwere, can't use SS VirtualPages
667: [23:39:24] * catcher quit (Quit: Leaving)
668: [23:39:27] <spronk> subsite selector dropdown doesn't even work
669: [23:40:14] <supernovah> Oh ok
670: [23:49:39] * RojoD quit (Ping timeout: 255 seconds)
671: [23:54:21] * dospuntocero quit (Remote host closed the connection)
672: [23:54:49] * dospuntocero has joined #silverstripe
673: [23:55:31] * dospunto_ has joined #silverstripe
674: [23:55:32] * dospuntocero quit (Read error: Connection reset by peer)
675: [23:55:36] <clodeindustrie> Fatal error: Access level to ErrorPage::$db must be public (as in class Page) in /home/sites/sisters-new/cms/code/model/ErrorPage.php on line 310
676: [23:55:44] <clodeindustrie> is it something common?
677: [23:56:52] <clodeindustrie> nevermind
678: [23:56:56] <clodeindustrie> googled it myslf
679: [23:56:58] <Peavers> Anyone got the oauth modul working? Can't even see it in the CMS

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