#silverstripe IRC Log

IRC log for 15 August 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:17] * ss-helper has joined #silverstripe
3: [00:20:25] * Robin__ has joined #silverstripe
4: [00:20:25] <ss-helper> Robin__: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
5: [00:21:25] <Robin__> Hi, what is the best way to access a soap server using silverstripe, 3.3?
6: [00:21:53] <Robin__> I have a wsdl url
7: [00:25:02] <Hailwood> With a shotgun is my normal method for dealing with soap.
8: [00:25:30] <Hailwood> *developers who build soap APIs
9: [00:25:38] <spronk> hahahah
10: [00:25:38] <spronk> :D
11: [00:25:45] <spronk> whole new meaning to the term shotgun surgery
12: [00:26:46] <Hailwood> I have *never* had a good experience using a soap server
13: [00:26:58] * micmania1 quit (Quit: micmania1)
14: [00:27:34] <Hailwood> Anyone know why SS Omnipay marks it's Payment class as Final?
15: [00:32:14] <Robin__> Thanks Hailwood, that's how I'm feeling at the moment, although I have made some progress with: RestfulService using the wsdl url.
16: [00:33:50] <Hailwood> Honestly I'd just use the standard PHP soap libraries, afaik RestfulService is actually getting overhauled or dropped in SS4. My first suggestion though is to get a wsdl explorer extension for you browser and then load up the wsdl url
17: [00:39:11] <Firesphere> RestfulService is being dropped from SS4 yes
18: [00:39:38] <Firesphere> Using the standard PHP Soap library is the best way to do it actually. Second option is using Guzzle
19: [00:40:03] <Hailwood> I didn't think guzzle could handle soap very well without a lot of manual wrangling?
20: [00:49:38] <Robin__> Thanks, testing using the SoapClient
21: [01:01:35] * DanaeNZ quit (Remote host closed the connection)
22: [01:02:07] * DanaeNZ has joined #silverstripe
23: [01:04:26] * stumck has joined #silverstripe
24: [01:04:26] <ss-helper> stumck: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
25: [01:06:12] * DanaeNZ quit (Ping timeout: 240 seconds)
26: [01:06:39] * stumck quit (Client Quit)
27: [01:07:29] * stumck has joined #silverstripe
28: [01:09:41] <stumck> Hi there I have a Technical Issue I am trying to solve. We have a website using Silverstripe v3.4 CMS. We have installed the blog module and are using it on two pages. ‘News’ and ‘Projects’. On the Projects page only we want to change the headings on the Blog Tag Widget and Blog Categories Widget. From ‘Categories’ to ‘Facility Type’ and ‘Tags’ to ‘Location’. The widget headings are located in the Widget
29: [01:09:53] * micmania1 has joined #silverstripe
30: [01:10:27] <stumck> <div class="WidgetHolder $ClassName<% if FirstLast %> $FirstLast<% end_if %>"> <% if Title %><h3>$Title</h3><% end_if %> $Content </div>
31: [01:10:45] <stumck> What I was tiring to do was to have a If statement in the WidgetHolder.ss file to override the $Title variable. But my problem is I can’t access the default page placeholder $Title variable which would tell me I am on the Projects page. Cheers Stuart
32: [01:17:26] * phorloop has joined #silverstripe
33: [01:22:01] * DanaeNZ has joined #silverstripe
34: [01:35:57] <Firesphere> The scope in an Include changes to the Include, not the Page anymore. You need to pass in the current controller or title.
35: [01:40:27] * gelignite quit (Read error: Connection reset by peer)
36: [01:40:56] * gelignite has joined #silverstripe
37: [01:42:20] * gelignite quit (Read error: Connection reset by peer)
38: [02:01:24] * phorloop_ has joined #silverstripe
39: [02:01:55] * phorloop quit (Read error: Connection reset by peer)
40: [02:11:31] <stumck> You need to pass in the current controller or title. Could you please explain this in a wee bit more detail
41: [02:15:31] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
42: [02:19:24] * Exor has joined #silverstripe
43: [02:22:16] <Exor> Hi all, how does one log errors/warnings to a file in SS4? It appears that the SS_LogFileWriter class no longer exists according the API (master)?
44: [02:29:46] <vitaly_> Hello! I have a problem with my mysql - Ver 14.14 Distrib 5.6.19, for debian-linux-gnu (x86_64). I run it on Ubuntu 12.04 64 bit (2 Cores, 1.50 GB memory) and every other day it goes down for about 15 sec. Usually it comes back to live but sometimes I have to start it manually. During this time it becomes unavailable and websites shod DB error. Server is not very busy and running various WordPress and SilverStripe websites. He
45: [02:29:46] <vitaly_> re is the log of a typical crash - usually SS tables marked as crashed: http://pastie.org/private/cij0osowu9vlipcsxwsecg - is there a way to fix this problem and improve updite?
46: [02:29:46] <vitaly_> http://pastie.org/private/ni5zzggjhdlytpkmpreng - my.cnf
47: [02:43:19] * bubaphex has joined #silverstripe
48: [02:49:45] * xananax has joined #silverstripe
49: [02:50:16] * spronk quit (Quit: I may need a longer sleep timer...)
50: [02:51:21] <xananax> Hello, I like SS, but my server runs PHP 7. Do any of you guys know of another CMS that offers this near-framework flexibility yet a neat content management admin? All I can find is either too CMS-y (wordpress) or framework-y (Igniter)
51: [02:51:40] <xananax> Or is it ok to use SS 4 for a simple website?
52: [02:59:05] * UncleCheese has joined #silverstripe
53: [03:02:33] * UncleCheese quit (Client Quit)
54: [03:02:52] * UncleCheese has joined #silverstripe
55: [03:09:35] <Hailwood> Is it just me or is this example in silverstripe omnipay wrong? https://github.com/silverstripe/silverstripe-omnipay#make-a-purchase
56: [03:10:12] <Hailwood> as $payment will be the ID of the payment rather than the payment itself...
57: [03:21:22] <Hailwood> Because depreciating a method you're still using internally is always a good idea... http://i.imgur.com/auut7ru.png
58: [03:41:47] <Firesphere> xananax: You can use PHP7.x, just install and run lekoala/silverstripe-327
59: [03:42:57] <Firesphere> SilverStripe 4 should be compatible with PHP7 anyways
60: [03:43:20] <xananax> Firesphere, when you say run lekoala, you mean through composer?
61: [03:43:31] <xananax> Yea, I know SS4 is compatible, but it's not yet out
62: [03:43:34] <Firesphere> https://github.com/lekoala/silverstripe-327
63: [03:43:46] <Firesphere> Yes, I meant adding it to composer. I run it on all my live sites.
64: [03:44:43] <Firesphere> Works great and indeed way faster than 5.6
65: [03:46:09] <Firesphere> After installing it with composer, you need to run `php7 327/migrate.php`
66: [03:46:16] <Firesphere> and then do a dev/build
67: [03:48:30] <xananax> So just to make sure (excuse me for being obnoxious, but I just want to make sure I understand), I install the latest stable silverstripe, then install lekoala thingy, then run migrate, and it works on php 7?
68: [03:55:53] <Hailwood> xananax, ☑
69: [04:02:02] <xananax> Ok thanks :)
70: [04:02:50] * Exor quit (Ping timeout: 264 seconds)
71: [04:05:17] * DorsaiNZ has joined #silverstripe
72: [04:06:44] <DorsaiNZ> Hey all - anyone here know everything there is to know about running SilverStripe on MAMP with particular reference to subsites? Or even just more than me - which wouldn't be difficult at this stage...
73: [04:08:58] <UncleCheese> Does anyone know how $depdenencies works in Injector?
74: [04:09:12] <UncleCheese> What's the difference between properties, constructor, and depdencies when doing DI?
75: [04:12:47] * micmania1 quit (Quit: micmania1)
76: [04:27:08] * micmania1 has joined #silverstripe
77: [04:48:48] * DorsaiNZ_ has joined #silverstripe
78: [04:48:49] <ss-helper> DorsaiNZ_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
79: [04:52:02] * DorsaiNZ quit (Ping timeout: 264 seconds)
80: [04:52:02] * DorsaiNZ_ is now known as DorsaiNZ
81: [04:55:04] * DanaeNZ quit (Quit: TIME TO FEED)
82: [04:58:44] * bubaphex quit (Quit: My Mac has gone to sleep. ZZZzzz…)
83: [05:05:05] <Hailwood> Gah, anyone know what the different endpoints are about with paymentexpress?
84: [05:16:04] * Hailwood quit (Remote host closed the connection)
85: [05:20:29] * micmania1 quit (Read error: Connection reset by peer)
86: [05:20:34] * micmania2 has joined #silverstripe
87: [05:24:51] * stumck quit (Quit: Page closed)
88: [05:32:50] * Robin__ quit (Ping timeout: 264 seconds)
89: [05:55:33] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
90: [05:55:47] * neilf__ has joined #silverstripe
91: [06:07:16] * xananax quit (Quit: Leaving)
92: [06:23:22] * micmania2 quit (Quit: micmania2)
93: [06:28:10] * pweh has joined #silverstripe
94: [06:39:12] * pweh quit (Quit: Leaving)
95: [06:53:32] * pweh has joined #silverstripe
96: [07:00:09] <ss-helper> SilverStripe Check if record is being edited or added? - http://stackoverflow.com/questions/38950571/silverstripe-check-if-record-is-being-edited-or-added
97: [07:04:54] * arnhoe has joined #silverstripe
98: [07:33:59] * Hailwood has joined #silverstripe
99: [07:53:28] * phorloop_ quit (Quit: My laptop go to sleep. ZZZzzz…)
100: [07:55:04] * pweh quit (Ping timeout: 258 seconds)
101: [08:03:34] * swaiba has joined #silverstripe
102: [08:06:06] * pweh has joined #silverstripe
103: [08:06:33] * janneklouman-- has joined #silverstripe
104: [08:11:45] * UncleCheese has joined #silverstripe
105: [08:13:39] * spronk has joined #silverstripe
106: [08:45:32] * spronk quit (Quit: I may need a longer sleep timer...)
107: [08:53:29] * spronka has joined #silverstripe
108: [08:54:53] * spronka quit (Client Quit)
109: [08:56:19] * neilf__ quit (Quit: Connection closed for inactivity)
110: [09:01:50] * spronka has joined #silverstripe
111: [09:01:54] * agent44 has joined #silverstripe
112: [09:11:53] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
113: [09:15:13] * pweh quit (Ping timeout: 252 seconds)
114: [09:15:38] * pweh has joined #silverstripe
115: [09:22:16] * UncleCheese has joined #silverstripe
116: [09:30:12] <ss-helper> locations within radius X around location Y per mysql within the SilverStripe ORM - http://stackoverflow.com/questions/38952387/locations-within-radius-x-around-location-y-per-mysql-within-the-silverstripe-or
117: [09:34:20] * hewp has joined #silverstripe
118: [09:37:13] * pweh quit (Ping timeout: 252 seconds)
119: [09:38:50] * arnhoe_ has joined #silverstripe
120: [09:38:50] * arnhoe quit (Read error: Connection reset by peer)
121: [10:08:25] * Hailwood quit (Remote host closed the connection)
122: [10:28:22] * hewp quit (Ping timeout: 252 seconds)
123: [10:32:36] * hewp has joined #silverstripe
124: [11:57:13] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
125: [12:09:13] * arnhoe has joined #silverstripe
126: [12:12:07] * arnhoe_ quit (Ping timeout: 244 seconds)
127: [12:35:02] * UndefinedOffset has joined #silverstripe
128: [12:54:09] * muskie9 has joined #silverstripe
129: [13:07:19] * shellbac1pacific quit (Ping timeout: 252 seconds)
130: [13:10:04] * shellbackpacific has joined #silverstripe
131: [13:49:16] * arnhoe quit (Remote host closed the connection)
132: [13:49:52] * arnhoe has joined #silverstripe
133: [13:52:22] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
134: [13:59:16] * hewp quit (Read error: Connection reset by peer)
135: [14:00:45] * spronka has joined #silverstripe
136: [14:09:26] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
137: [14:16:38] * adrexia quit (Ping timeout: 260 seconds)
138: [14:23:03] <darjusIT> Hi when you add simple upload field to frontend, whitch js nad css files from framework need to be included to template?
139: [14:25:04] <swaiba> darjusIT I think none
140: [14:26:02] <muskie9> ya, the most basic upload field (FileField?) shouldn't require any
141: [14:27:14] <darjusIT> hmm, http://pasteboard.co/8XSPjAzmq.png it dont hides upload field after adding image
142: [14:27:40] <muskie9> darjusIT are you using UploadField?
143: [14:27:45] <darjusIT> not FileField but upload field
144: [14:28:08] <muskie9> ya, I've had hard times getting that to work on frontend forms properly, give this a try: https://github.com/unclecheese/silverstripe-dropzone
145: [14:28:29] <darjusIT> tied
146: [14:28:31] <muskie9> I've used that module before in both front and backend forms, seems to work well
147: [14:28:38] <darjusIT> it have one thing
148: [14:29:15] <darjusIT> when you making edit form with edit/6 then it has errors on delete
149: [14:35:16] * muskie9 quit (Ping timeout: 264 seconds)
150: [14:36:11] * muskie9 has joined #silverstripe
151: [14:38:27] <darjusIT> oh solved problem with dropzone in latest version this issue was fixed :)
152: [14:58:28] * arnhoe quit ()
153: [15:02:31] <neomang> So I'm passing a custom ArrayData to a page using $this->customise($arrayData) but it's apparently not appearing on the page using the name I gave it in PHP
154: [15:02:49] <swaiba> hi neomang
155: [15:02:56] <swaiba> what does your template code look like?
156: [15:02:58] <neomang> because when I using <% if $arrayData %> in the template, it returns false
157: [15:03:32] <swaiba> it shoudl be like $this->customise(ArrayData::create(array('Foo' => 'Bar'))
158: [15:03:48] <swaiba> and then <% if Foo %> $Bar <% end_if %>
159: [15:04:46] <neomang> Yeah I have it like that
160: [15:04:49] <neomang> lemme share the paste
161: [15:05:18] <neomang> http://www.sspaste.com/paste/show/57b1da27cf739
162: [15:05:37] <neomang> I've dumped the arraydata before returning and it's definitely there
163: [15:05:47] <swaiba> <%if $SeriesInfo%> should be <% if $SeriesInfo %>
164: [15:05:53] <swaiba> always spaces after and before the %
165: [15:06:18] <swaiba> problem is it's still impossible to see the data in that postie
166: [15:06:25] <neomang> alright, I just did that but it's still not showing
167: [15:06:37] <swaiba> REPEAT : it's still impossible to see the data in that postie
168: [15:06:57] <neomang> you mean to see the ArrayData?
169: [15:06:58] <swaiba> getSeries could return any number of things of any name
170: [15:07:14] <swaiba> yeah - you want to var_dump it so we can confirm it's content
171: [15:07:42] <neomang> I have var_dumped it and confirmed it's building it the way I need it to)
172: [15:08:24] <neomang> I don't have it doing so at the moment because it's a huge dump, considering it's got multiple nested levels
173: [15:09:20] <neomang> I just need to access it via the template
174: [15:09:32] <neomang> last time I did this it used the name of the PHP variable I used
175: [15:12:17] <neomang> Nevermind, I sorted it out
176: [15:23:12] * janneklouman-- quit (Quit: Lost terminal)
177: [15:32:37] * muskie9__ has joined #silverstripe
178: [15:33:43] * ccburns has joined #silverstripe
179: [15:34:33] * muskie9 quit (Ping timeout: 265 seconds)
180: [15:37:27] * muskie9__ is now known as muskie9
181: [15:41:08] <darjusIT> if any function before Delete?
182: [15:41:34] <muskie9> darjusIT onBeforeDelete() ? http://api.silverstripe.org/3.3/class-DataObject.html#_onBeforeDelete
183: [15:42:03] <darjusIT> yes thx, I always forget how it called :D
184: [16:02:24] * Azure quit (Ping timeout: 260 seconds)
185: [16:40:24] * ccburns has left #silverstripe
186: [17:15:20] <ss-helper> How to catch AJAX requests (SilverStripe 3.4) - http://stackoverflow.com/questions/38641125/how-to-catch-ajax-requests-silverstripe-3-4
187: [17:25:16] * agent44 quit (Quit: zzz)
188: [17:30:16] * jenniferaslan has joined #silverstripe
189: [17:31:41] * jenniferaslan quit (Client Quit)
190: [17:47:16] * muskie9 quit (Ping timeout: 264 seconds)
191: [18:04:27] * muskie9 has joined #silverstripe
192: [18:15:20] <ss-helper> SilverStripe 3.1+ Site will not output Page.ss template content - http://stackoverflow.com/questions/38960516/silverstripe-3-1-site-will-not-output-page-ss-template-content
193: [18:33:55] * shellbackpacific quit (Quit: Lost terminal)
194: [18:42:54] * muskie9 quit (Ping timeout: 258 seconds)
195: [18:47:16] * gelignite has joined #silverstripe
196: [19:40:11] * UncleCheese has joined #silverstripe
197: [19:59:11] * UncleCheese quit (Read error: Connection reset by peer)
198: [20:35:09] * bubaphex has joined #silverstripe
199: [20:43:59] * UndefinedOffset quit (Quit: Leaving.)
200: [21:20:46] * Hailwood has joined #silverstripe
201: [21:22:11] * darjusIT quit (Quit: Leaving)
202: [21:36:48] * micmania1 has joined #silverstripe
203: [21:42:17] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
204: [21:53:05] * UncleCheese has joined #silverstripe
205: [21:54:51] * UncleCheese quit (Read error: Connection reset by peer)
206: [21:57:34] * DanaeNZ has joined #silverstripe
207: [22:08:55] * BackEndCoder quit (Excess Flood)
208: [22:09:18] <Hailwood> When was SS 3 released/
209: [22:09:45] <DanaeNZ> Hailwood: a million years ago in April
210: [22:09:51] * BackEndCoder has joined #silverstripe
211: [22:10:05] <Hailwood> Lol the "million years ago" is the part I'm most interested in :D
212: [22:10:26] <Hailwood> 2013 maybe?
213: [22:10:48] * micmania1 quit (Quit: micmania1)
214: [22:26:18] * Azure has joined #silverstripe
215: [22:28:57] * micmania1 has joined #silverstripe
216: [22:40:44] * muskie9 has joined #silverstripe
217: [22:44:18] * spronk has joined #silverstripe
218: [23:37:02] * bubaphex quit (Quit: My Mac has gone to sleep. ZZZzzz…)
219: [23:40:05] * bubaphex has joined #silverstripe
220: [23:41:54] * BackEndCoder quit (Excess Flood)
221: [23:42:21] * BackEndCoder has joined #silverstripe

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