#silverstripe IRC Log

IRC log for 26 January 2017

All timestamps are in UTC.

1: [00:22:06] * micmania1 has joined #silverstripe
2: [00:30:05] * janneklouman-- quit (Ping timeout: 252 seconds)
3: [00:50:49] * LimRes has joined #silverstripe
4: [00:52:33] <LimRes> Hi SS Peeps! I have been using Omnipay nicely with SS-Omnipay wrapper, but just started a fresh install with latest of both Omnipay and SS 3.5, and although one class is recognised and built ("Payment"), I can't call any other classes within the module
5: [00:52:59] <LimRes> Can anyone give me a hint as to why classes in the same folder aren't found during a fresh install build?
6: [00:54:21] <LimRes> I thought manifest_exlude was the only way to hide classes from SS
7: [01:00:04] <ss-helper> Silverstripe $url_handlers not working - runs method but also triggers a 404 error - http://stackoverflow.com/questions/41864318/silverstripe-url-handlers-not-working-runs-method-but-also-triggers-a-404-err
8: [01:29:14] * LimRes quit (Ping timeout: 260 seconds)
9: [01:42:23] * samsamek quit (Quit: samsamek)
10: [02:01:01] * pweh has joined #silverstripe
11: [02:11:07] * spronk has joined #silverstripe
12: [02:37:35] * janneklouman-- has joined #silverstripe
13: [02:41:42] * janneklouman-- quit (Ping timeout: 240 seconds)
14: [02:59:20] * pweh quit (Ping timeout: 276 seconds)
15: [03:09:48] * pweh has joined #silverstripe
16: [03:11:29] * BackEndCoder quit (Excess Flood)
17: [03:11:36] * BackEndCoder has joined #silverstripe
18: [03:45:29] * pweh quit (Ping timeout: 276 seconds)
19: [03:47:41] * pweh has joined #silverstripe
20: [03:52:47] * micmania1 quit (Quit: micmania1)
21: [04:22:32] * pweh quit (Ping timeout: 276 seconds)
22: [04:34:05] * Admonish has joined #silverstripe
23: [04:34:30] <Admonish> Hey all.
24: [04:36:39] <Admonish> Im having a YAML file issue. See I have a python script I am running to generate the config.yml file (located in mysite/_config/). The script uses pyYAML to convert python objects into valid YAML which is then placed in the config file.
25: [04:38:43] <Admonish> The problem is that the script outputs YAML that is not in alignment with silverstripes YAML parser. Its still valid YAML (see http://stackoverflow.com/questions/5953338/indenting-a-yaml-sequence-inside-a-mapping). Its just not what silverstripe expects
26: [04:39:35] <Admonish> Ill make a gist to demonstrate
27: [04:42:20] <Admonish> Heres the gist https://gist.github.com/mooror/e306edf45e2f29083e73760a164d4e57
28: [04:43:31] <Admonish> From what I see, Ill either have to change silverstripes parser or pyYAML's yaml generator
29: [04:44:02] <Admonish> Is there any easy way to extend the YAML parser in silverstripe?
30: [04:49:44] * janneklouman-- has joined #silverstripe
31: [04:51:13] <DanaeNZ> Admonish: you can't place to spaces before - framework and - cms ?
32: [04:51:28] <DanaeNZ> The rest looks fine
33: [04:54:10] * janneklouman-- quit (Ping timeout: 240 seconds)
34: [05:02:29] * spronk quit (Quit: I may need a longer sleep timer...)
35: [05:02:45] * Admonish quit (Ping timeout: 260 seconds)
36: [06:03:19] * Admonish has joined #silverstripe
37: [06:03:57] <Admonish> DanaeNZ: Sorry I was AFK. But yeah, I was doing some more research and I think Ill just use a search and replace/regex. It would be alot less complacated then editing either of the YAML parser/generators
38: [06:23:47] * spronk has joined #silverstripe
39: [06:25:53] * DanaeNZ quit (Quit: TIME TO FEED)
40: [06:32:38] * micmania1 has joined #silverstripe
41: [06:39:00] * Admonish quit (Ping timeout: 260 seconds)
42: [07:03:15] * micmania1 quit (Quit: micmania1)
43: [07:13:14] * UncleCheese has joined #silverstripe
44: [07:13:35] <UncleCheese> lol ss23
45: [07:18:51] <ss23> UncleCheese: Hmm? :O
46: [07:19:07] <UncleCheese> funny seeing you here
47: [07:33:17] <ss23> :P
48: [07:43:04] * wmk has joined #silverstripe
49: [08:01:18] * spronk quit (Quit: I may need a longer sleep timer...)
50: [08:08:30] * saiyan quit (Quit: BYE)
51: [08:09:09] * saiyan has joined #silverstripe
52: [08:20:41] * Eliseth has joined #silverstripe
53: [08:56:21] * wmk quit (Read error: Connection reset by peer)
54: [09:02:09] * kinglozzer has joined #silverstripe
55: [09:13:03] * janneklouman-- has joined #silverstripe
56: [09:22:21] * filisko has joined #silverstripe
57: [09:27:27] * samsamek has joined #silverstripe
58: [10:01:31] * agent44 has joined #silverstripe
59: [10:46:17] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
60: [10:59:17] * DarjusIT has joined #silverstripe
61: [11:12:32] * samsamek quit (Quit: samsamek)
62: [11:17:51] * samsamek has joined #silverstripe
63: [11:18:54] <NETim> Morning. Any way to use routing to route to a pagetype?
64: [11:21:33] * NETim quit (Quit: Leaving)
65: [11:22:17] * NETim has joined #silverstripe
66: [12:21:21] * NETim_ has joined #silverstripe
67: [12:24:02] * NETim quit (Ping timeout: 240 seconds)
68: [12:32:57] * BackEndCoder quit (Excess Flood)
69: [12:33:16] * NETim has joined #silverstripe
70: [12:34:35] * BackEndCoder has joined #silverstripe
71: [12:36:02] * NETim_ quit (Ping timeout: 240 seconds)
72: [12:37:40] * NETim_ has joined #silverstripe
73: [12:40:42] * NETim quit (Ping timeout: 240 seconds)
74: [12:49:11] * wmk has joined #silverstripe
75: [13:12:29] <Eliseth> Hey, is there an easy way to get all pages from sitetree with hierarchy in an array?
76: [13:26:57] * UndefinedOffset has joined #silverstripe
77: [13:46:37] <wmk> Eliseth, hierarchy means you have to loop over it
78: [13:47:35] <wmk> you could get all pages from DB, then loop over the result array and sort it how you need it
79: [13:48:01] <wmk> depending on how many pages you have it's either worth the effort or not
80: [13:48:08] <wmk> I'd cache the result anyway
81: [13:48:39] <Eliseth> Hmmh
82: [13:49:05] <Eliseth> Breaking my head over the logic of it, as there's no way of knowing how "deep" the sitetree goes...
83: [13:57:09] <kinglozzer> recursion, yo!
84: [13:57:13] * samsamek quit (Quit: samsamek)
85: [14:04:07] <kinglozzer> Eliseth: Something like this perhaps? https://gist.github.com/kinglozzer/58ff38823590799dcbfe31ab71eebf37
86: [14:06:03] <Eliseth> That seems useful, never thought of recursion... *doh*
87: [14:06:10] <Eliseth> Thanks kinglozzer \o/
88: [14:06:50] * filisko quit (Ping timeout: 255 seconds)
89: [14:11:25] <wmk> Eliseth, as said before: depending on how many pages you have / how deep the tree is: cache that result
90: [14:16:08] * filisko has joined #silverstripe
91: [14:39:51] * samsamek has joined #silverstripe
92: [14:44:53] * UndefinedOffset quit (Quit: Leaving.)
93: [15:11:40] * agent44 quit (Quit: zzz)
94: [15:12:02] * r5v3rb has joined #silverstripe
95: [15:12:14] <r5v3rb> helllloooooooooooooooo
96: [15:14:19] <r5v3rb> any idea why every so often a random ‘write’ to a db record would cause the MySQL db to crash and burn, thus corrupting the table?
97: [15:15:34] * samsamek quit (Quit: samsamek)
98: [15:18:10] <kinglozzer> r5v3rb: Sure it's related to the write? Could it just be that MySQL is running out of memory and crapping out or something? Syslogs?
99: [15:18:58] <r5v3rb> yeh, could be but its such a simple write I can’t see it running out of memory to be honest! - its only half a dozen items in a single record
100: [15:20:18] <kinglozzer> r5v3rb: Reason I ask is that I had an issue before where apache would slowly eat more and more memory, until there wasn't enough left for apache to keep growing, so the system chose to kill off the MySQL process instead of apache...
101: [15:21:03] <r5v3rb> arhh… well maybe - it’s only ever on this windows MAMP dev station afaik, so it could be something like that
102: [15:31:14] * UndefinedOffset has joined #silverstripe
103: [15:38:38] * agent44 has joined #silverstripe
104: [16:08:51] * samsamek has joined #silverstripe
105: [16:29:25] * filisko quit (Ping timeout: 245 seconds)
106: [16:38:04] * samsamek quit (Quit: samsamek)
107: [16:39:01] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
108: [16:42:01] * filisko has joined #silverstripe
109: [17:16:02] * filisko quit (Ping timeout: 252 seconds)
110: [17:19:44] * kinglozzer quit ()
111: [17:31:13] * filisko has joined #silverstripe
112: [17:33:30] * r5v3rb quit (Quit: r5v3rb)
113: [17:41:51] * samsamek has joined #silverstripe
114: [17:57:43] * janneklouman-- quit (Ping timeout: 240 seconds)
115: [18:40:09] * samsamek quit (Quit: samsamek)
116: [18:41:23] * UncleCheese has joined #silverstripe
117: [19:37:56] * Phlunk3 has joined #silverstripe
118: [19:48:10] * filisko quit (Ping timeout: 240 seconds)
119: [20:01:05] * filisko has joined #silverstripe
120: [20:03:02] * samsamek_ has joined #silverstripe
121: [20:04:49] * wmk quit (Ping timeout: 240 seconds)
122: [20:09:58] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
123: [20:13:40] * filisko quit (Ping timeout: 240 seconds)
124: [20:29:07] * filisko has joined #silverstripe
125: [20:36:32] * gelignite has joined #silverstripe
126: [20:49:25] * UndefinedOffset quit (Quit: Leaving.)
127: [20:52:53] * micmania1 has joined #silverstripe
128: [20:54:50] <DarjusIT> Hi all so I am looking at tinymce 4, and I see that upload image button is paid option now, has anyone find solution for this except buying it?
129: [21:00:01] * agent44 quit (Quit: zzz)
130: [21:23:09] * UncleCheese has joined #silverstripe
131: [21:23:11] * DanaeNZ has joined #silverstripe
132: [21:23:45] * UndefinedOffset has joined #silverstripe
133: [21:43:09] * UndefinedOffset quit (Quit: Leaving.)
134: [21:43:40] * BackEndCoder quit (Excess Flood)
135: [21:45:37] * BackEndCoder has joined #silverstripe
136: [21:51:49] <Nightjar_> DarjusIT, SilverStripe implements it's own image insertion button anyway. But if you're using it for another project... I think the only way around would be to make your own plugin (or find one, but I assume you've tried that).
137: [21:52:45] <Nightjar_> DarjusIT, in regards to the strange template issue you had a few days ago, are you able to provide steps on how to recreate that problem?
138: [21:53:27] <Nightjar_> This one: https://silverstripe.logged.nz/index.php?date=2017-01-22#log_1925201
139: [21:53:27] <DarjusIT> Nightjar_, about tinymce4 I found this http://test.albertoperipolli.com/filemanager4tinymce/
140: [21:53:35] <DarjusIT> and it is exelant
141: [21:53:43] <Nightjar_> Neat :)
142: [21:54:12] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
143: [22:00:07] <DarjusIT> Nightjar_, simple to remake. 1. install clean ss,2. make HomePage.php extends page, 3. in it controller make simple function with DB query you want no matter ORM or DB::query simply make so you can identify it.4. In simple theme Layout/HomePage.ss call that function, 5. CMS admin go and change home page type to "HomePage", 6. Go to themes/simple/templates/Page.ss and delete file content, 7. flush=all 8. then make ?showqueries on homepage, 9. you
144: [22:00:07] <DarjusIT> will see your homepage controller query.
145: [22:02:12] <DarjusIT> I found you that, if I have HomePage.ss, silverstripe ignores that i deleted parent Page.ss content with $Layout, and still executes queries that are in HomePage.ss called
146: [22:04:14] <Nightjar_> Interesting, thanks for that
147: [22:04:30] <DarjusIT> So I was a bit lost that I have deleted parent file contents so basically it shouldn't load homepage at first place, because in page.ss i have deleted $Layout for :)
148: [22:04:32] <Nightjar_> I'll have a look at some point when I have some spare time - it seems interesting to me.
149: [22:05:24] <Nightjar_> It might be that SSViewer loads Layout into a variable - even though it's not used it's populated.
150: [22:06:02] <DarjusIT> I have wrote this to silverstripe chat some days ago, but hadn't got any answer to email :)
151: [22:06:34] <DarjusIT> Nightjar_, yes that is the case but it shouldn't in my opinion
152: [22:06:37] <Nightjar_> SSViewer usually uses the format: ['main' => $maintemplate, 'Layout' => $layouttemplate] and even sometimes 'Content' => $contentTemplate
153: [22:06:48] <Nightjar_> Perhaps not.
154: [22:07:09] <Nightjar_> If I'm correct (have not checked at all), it's a case of eager loading, rather than lazy loading.
155: [22:07:41] <Nightjar_> (of main and Layout)
156: [22:08:19] <Nightjar_> or rather, of Layout, because it's a special variable.
157: [22:08:25] <DarjusIT> maybe it SSViewer thinks I am making something like renderWith('HomePage'); because $LAyout not there
158: [22:08:46] <Nightjar_> Yeah, but then you would see your Layout/HomePage.ss content
159: [22:09:05] * janneklouman-- has joined #silverstripe
160: [22:09:13] <DarjusIT> content no
161: [22:09:26] <DarjusIT> but ?showqueries I see query
162: [22:09:34] <DarjusIT> from homepage controller
163: [22:36:16] * janneklouman-- quit (Ping timeout: 240 seconds)
164: [22:37:12] * janneklouman-- has joined #silverstripe
165: [23:00:01] * ss-helper quit (Remote host closed the connection)
166: [23:00:17] * ss-helper has joined #silverstripe
167: [23:01:55] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
168: [23:08:16] * UncleCheese has joined #silverstripe
169: [23:09:55] * samsamek_ quit (Quit: samsamek_)
170: [23:10:24] * samsamek has joined #silverstripe
171: [23:21:38] * DarjusIT quit (Read error: Connection reset by peer)
172: [23:30:41] * Phlunk3 quit (Quit: Leaving)
173: [23:36:22] * janneklouman-- quit (Ping timeout: 264 seconds)
174: [23:45:03] <ss-helper> Silverstripe 3.4+ / how combine certain boolean fields into CheckboxFieldSet? - http://stackoverflow.com/questions/41884926/silverstripe-3-4-how-combine-certain-boolean-fields-into-checkboxfieldset

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