#silverstripe IRC Log

IRC log for 6 June 2014

All timestamps are in UTC.

1: [00:01:59] <Ryan-Toast> Stomach: Just set a new instance of the class then accessed the method
2: [00:02:12] <Stomach> :S
3: [00:06:08] * markcl has joined #silverstripe
4: [00:06:26] <markcl> Hello. How do I add a new tab to a Page?
5: [00:06:57] <markcl> ex. in a normal Page, there is a Content, Settings and History, how can I add another tab after the History tab?
6: [00:09:21] * zippy__ quit (Ping timeout: 240 seconds)
7: [00:10:30] * zippy__ has joined #silverstripe
8: [00:13:50] <simon_w> markcl, you can't. Those tabs are hardcoded in the template.
9: [00:14:57] <markcl> I mean on the CMS
10: [00:15:45] <simon_w> Yes, and those tabs are hardcoded in the template
11: [00:16:16] <simon_w> You can add tabs under Content and Settings, but you can't add to those three tabs
12: [00:16:23] <AdriAn_s> anyone here ever set up swipestripe with paymentexpress payment module? I have the dev count but payments just go through as Pending and I dont get redirected to the paymentexpress site like should.
13: [00:21:43] <Stomach> AdriAn_s, yes I have
14: [00:21:52] <Stomach> have you set up the payment details in a yml config?
15: [00:24:59] * Ryan-Toast quit (Quit: Ryan-Toast)
16: [00:24:59] <AdriAn_s> yup.
17: [00:25:11] <AdriAn_s> PaymentProcessor:
18: [00:25:12] <AdriAn_s> supported_methods:
19: [00:25:12] <AdriAn_s> dev:
20: [00:25:12] <AdriAn_s> - 'PaymentExpressPxPay'
21: [00:25:14] <Stomach> and is your site in 'dev' mode?
22: [00:25:45] <AdriAn_s> yup
23: [00:25:57] <Stomach> and you have
24: [00:25:58] <Stomach> PaymentGateway:
25: [00:25:58] <Stomach> environment:
26: [00:25:59] <Stomach> 'dev'
27: [00:26:15] <Stomach> and the config for PxPay like
28: [00:26:15] <Stomach> PaymentExpressGateway_PxPay:
29: [00:26:16] <Stomach> dev:
30: [00:26:16] <Stomach> ?
31: [00:26:19] * jenniferaslan quit (Remote host closed the connection)
32: [00:26:19] <AdriAn_s> when i had bad userID and key it said payments failed. now they are pending
33: [00:26:43] <AdriAn_s> PaymentGateway:
34: [00:26:43] <AdriAn_s> environment:
35: [00:26:43] <AdriAn_s> 'dev'
36: [00:26:43] <AdriAn_s> PaymentProcessor:
37: [00:26:43] <AdriAn_s> supported_methods:
38: [00:26:43] <AdriAn_s> dev:
39: [00:26:43] <AdriAn_s> - 'PaymentExpressPxPay'
40: [00:26:44] <AdriAn_s> PaymentExpressGateway_PxPay:
41: [00:26:44] <AdriAn_s> dev:
42: [00:26:45] <AdriAn_s> authentication:
43: [00:26:45] <AdriAn_s> user_id: 'my ID'
44: [00:26:46] <AdriAn_s> key: 'my key'
45: [00:26:56] <Stomach> is the user you are logged in as a customer
46: [00:27:01] <Stomach> customers are different from regular members
47: [00:27:35] <AdriAn_s> mmm, i thought so. il go through the motions again and sign up with a new account
48: [00:28:26] <AdriAn_s> does the same thing
49: [00:28:34] <AdriAn_s> I have also added supported_currencies:
50: [00:28:35] <AdriAn_s> 'AUD' : 'Australian Dollar'
51: [00:28:44] <AdriAn_s> to the config
52: [00:30:00] <AdriAn_s> looking in my paymentexpress account via their login ther eis no sign of a transaction so it doesnt apepar to be hitting their site
53: [00:30:20] * sminnee has joined #silverstripe
54: [00:34:53] <Stomach> yeah you should get to a payment page
55: [00:35:01] <Stomach> then enter the test credit card details etc
56: [00:41:35] * sminnee quit (Quit: sminnee)
57: [00:42:23] * zippy__ quit (Quit: zippy__)
58: [00:43:12] <AdriAn_s> Stomach: yeah. that redirect is not happening, any ideas?
59: [00:44:57] <Stomach> not really, it quite hard to trace that stuff remotely
60: [00:44:58] <Stomach> :(
61: [00:45:18] * sminnee has joined #silverstripe
62: [00:46:54] <AdriAn_s> yeah fair call. im going through it now. just was hoping someone else had a similar issue.
63: [00:48:39] <Stomach> I have come across it before, but it was due to incorrect yml setup
64: [00:48:48] <Stomach> it was passing through the wrong details
65: [00:49:05] <Stomach> you can watch to see if the request is being sent to dps using charles or something
66: [00:52:28] <AdriAn_s> SLAPS HIS HEAD!!
67: [00:52:44] <AdriAn_s> when i double clicked the api key out of the email it only copied half :(
68: [00:52:51] <AdriAn_s> so the api key was invalid
69: [00:53:00] <AdriAn_s> n0ob mistake :p
70: [00:54:16] <Stomach> haha
71: [00:54:17] <Stomach> sweet
72: [00:54:31] <Stomach> at least you found it :P
73: [00:54:39] <markcl> Hey guys! How can I show an iframe inside the CMS for a Page's settings?
74: [00:55:12] <Stomach> markcl, what are you trying to achieve?
75: [00:56:38] <markcl> Stomach: I have a custom settings page and would like this page to be usable inside the CMS for ease-of-use purposes
76: [00:57:42] * Kingy is now known as Kingy[a]
77: [00:57:55] <Stomach> custom settings, like things that are usually in SiteConfig? where is the data for the custom settings stored?
78: [00:59:33] <markcl> Stomach: its a custom php script
79: [01:00:52] <Zauberfisch> the injector does not play nicely with arraydata, does he?
80: [01:01:10] <UncleCheese> sure it does
81: [01:01:21] <UncleCheese> just make sure you use ArrayData::create()
82: [01:01:30] <irogue__> markcl: you can add a LiteralField and just throw the HTML for the iframe into there
83: [01:02:04] <markcl> most awesome irogue__! Thanks
84: [01:02:32] <Zauberfisch> UncleCheese: thats the deal, creating ArrayData with injector errors
85: [01:02:47] <Zauberfisch> but I am investigating
86: [01:02:56] <UncleCheese> i always use ArrayData::create()
87: [01:03:06] <UncleCheese> so i think you got something going on
88: [01:03:28] <Zauberfisch> ah, silly me. its gridfield
89: [01:03:36] <Zauberfisch> gridfield doesn't seem to play well here
90: [01:03:51] <Zauberfisch> trying to create a singleton of ArrayData
91: [01:04:03] <Zauberfisch> which fails because ArrayData expects an array
92: [01:04:21] <Zauberfisch> but since I subclassed it, I can simply make a constructor that does not need an array
93: [01:06:48] <irogue__> what kind of voodoo magic are you working on, Zauberfisch? :P
94: [01:12:09] <UncleCheese> Zauberfisch broke silverstripe
95: [01:13:19] <Zauberfisch> irogue__: using gridfield to handle data from an rest api
96: [01:13:53] <irogue__> Zauberfisch: ah yes, fun fun
97: [01:14:09] <Zauberfisch> and there I was thinking GridField was designed to work with any data source
98: [01:14:27] * Zauberfisch is re-implementing half of DataObject :/
99: [01:14:58] <irogue__> lol
100: [01:15:16] <Zauberfisch> one error message at a time
101: [01:15:49] <Zauberfisch> "the method 'canview' does not exist on"
102: [01:18:39] <Zauberfisch> correction, 90% of gridfield
103: [01:18:52] <Zauberfisch> ah, DataObject
104: [01:18:55] <Zauberfisch> 90% of DataObject
105: [01:20:19] <Zauberfisch> ...
106: [01:20:23] <Zauberfisch> I am calling it a day
107: [01:20:37] <Zauberfisch> this is to anoying to continue now
108: [01:21:07] <UncleCheese> here's the secret
109: [01:21:22] <UncleCheese> DataObject is not a very good separation of concerns. :(
110: [01:21:55] <UncleCheese> but we already knew that
111: [01:22:18] <Zauberfisch> yeah
112: [01:22:28] <Zauberfisch> most of the stuff shouldn't even be in DataObject
113: [01:28:45] * letitrain has joined #silverstripe
114: [01:29:52] * Kingy[a] is now known as Kingy
115: [01:30:38] <irogue__> one of the many things that people here know is broken but noone has had the time yet to fix
116: [01:32:48] * letitrain quit (Ping timeout: 240 seconds)
117: [01:39:59] <unsignedint> yo
118: [01:41:27] <unsignedint> does anyone know how to set the 'Master' view? I have created a custom controller that I dont want to inherit the Page.ss layout. I can return $this->renderWith("CustomLayout.ss") but what I really want to do is use "CustomLayout.ss" as the main view and have $Layout within that view resolve to whatever I pass to renderWith()
119: [01:41:32] <unsignedint> is this possible?
120: [01:41:39] <Colin[pi]> rofl: https://www.youtube.com/watch?v=uuoL1gsF-wY "BITCH, HURRY UP"
121: [01:41:58] <unsignedint> I guess what I am asking is "how can I set another Top-level view that isnt Page.ss"
122: [01:42:19] <Stomach> unsignedint, throw a new template called "CustomView.ss" in the templates folder
123: [01:42:26] <unsignedint> yep got that
124: [01:42:31] <Stomach> and have that resolve layout
125: [01:42:43] <unsignedint> 13:42 Stomach: and have that resolve layout <-- how do I make it do that?
126: [01:42:56] <Stomach> then you can do $ssViewer->renderWith(array('CustomLayout', 'CustomView'))
127: [01:43:17] <unsignedint> thats what I did! but its only showing the HTML from the CustomLayout
128: [01:43:40] * Tanger has joined #silverstripe
129: [01:43:54] <Stomach> passing in the second part of the array? used to work in 2.4 :P
130: [01:43:55] <unsignedint> would it have an effect that "CustomView" in my case is in Layout/Custom instead of Layout/ ?
131: [01:44:02] <Stomach> yeah
132: [01:44:10] <Stomach> Layout doesnt work like Includes
133: [01:44:12] <Stomach> tis annoying
134: [01:46:13] <unsignedint> ah yep youre right
135: [01:46:15] <unsignedint> thanks!
136: [01:46:37] <Stomach> np :)
137: [01:47:20] * Ryan-Toast has joined #silverstripe
138: [02:00:04] * sminnee quit (Quit: sminnee)
139: [02:01:22] * simon_w|air has joined #silverstripe
140: [02:05:32] * Kingy is now known as Kingy[a]
141: [02:11:10] * sminnee has joined #silverstripe
142: [02:12:48] * Kingy[a] is now known as Kingy
143: [02:15:23] <Stomach> you have the shortest breaks Kingy
144: [02:15:37] <Kingy> my disconnecting?
145: [02:15:45] <Stomach> nah you're away status
146: [02:15:48] <Stomach> your*
147: [02:15:49] <Stomach> :S
148: [02:15:51] <Stomach> friday.
149: [02:15:54] <Kingy> yeah that's me disconnecting lol
150: [02:16:06] <Kingy> when i'm in the office I have to use kiwiirc webchat
151: [02:16:12] <Kingy> and it's somewhat hopeless
152: [02:18:16] <Stomach> ah okay
153: [02:18:29] <Kingy> :(
154: [02:18:40] <Kingy> but having a BNC helps
155: [02:18:44] <Kingy> means I don't miss anything
156: [02:19:58] <Kingy> This logic is baffling
157: [02:20:15] <Stomach> return true ?: false;
158: [02:20:37] <Kingy> UpdateProfile calls UpdateNewsletter, but Member also has an extensions which has an onafterwrite hook which also calls UpdateNewsletter
159: [02:20:47] <Kingy> so UpdateNewsletter is getting hit over and over
160: [02:23:20] <Kingy> and the way UpdateNewsletter is written it doesn't do any checks, just straight adds a new subscription
161: [02:23:40] <Kingy> so if you tick the box on the profile page it adds about 3 subscriptions for the same email
162: [02:27:34] <Stomach> are you exporting them to an external provider or sending the mail from that host?
163: [02:27:46] <Stomach> campaignmonitor etc automagically strip doubles
164: [02:28:50] <Kingy> sending internally
165: [02:29:19] <Stomach> oh, fun
166: [02:29:33] <Stomach> one time i accidentally sent 2000 people a sweet test picture of my face
167: [02:29:36] <Kingy> i got 7 duplicate emails this morning
168: [02:29:36] <Kingy> lol
169: [02:29:37] <Stomach> I dont handle email anymore
170: [02:32:26] <Kingy> hahaha nice
171: [02:32:57] <Stomach> but that sounds like a fun system to plug up
172: [02:33:10] <Kingy> it's strange
173: [02:34:02] <Kingy> I seem to have fixed it now so that's something
174: [02:36:50] <Stomach> haha I love that sentence "I've seemed to fix it, now"
175: [02:37:41] <Kingy> yeah I think this whole subscription thing needs to be re-done
176: [02:38:08] <Kingy> I would like to sit down with the 'customer' and actually find out what they want to do
177: [02:38:48] * markcl quit (Ping timeout: 240 seconds)
178: [02:38:55] * LimRes has joined #silverstripe
179: [02:39:05] <LimRes> Happy Friday (NZ peeps)
180: [02:39:54] <Kingy> likewise
181: [02:39:57] <Kingy> just over 2 hours to go
182: [02:40:11] <simon_w|air> 20 minutes until I should stop for the day!
183: [02:40:11] <LimRes> Ticking down!
184: [02:40:17] * simon_w|air wins :D
185: [02:41:25] <LimRes> I am stumped again today. Anyone have a way to create a GroupedList when there is an intermediary relationship between the Parent and the objects to be grouped?
186: [02:41:49] <LimRes> In this case, I have an Option, which has_many QuotedProducts
187: [02:42:10] <LimRes> the Quoted_Products is just a reference to a Product and an amount of Product
188: [02:42:12] * novaweb has joined #silverstripe
189: [02:42:48] <LimRes> so when I show a summary, I can easily get a list of Products for the Option, but can't see how to group them by a property of Product
190: [02:43:19] <LimRes> I have tried creating a helper function on the QuotedProduct so that it can pass along it's "Type"
191: [02:43:26] <LimRes> but that is not available when doing GroupedList
192: [02:43:49] <LimRes> do I have to do this manually or am I missing some way of doing GroupedList (tried dot notation as well no luck - Product.Type)
193: [02:46:51] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
194: [02:55:29] <Stomach> No idea sorry LimRes :(
195: [02:55:45] <LimRes> Thanks Stevie
196: [02:55:52] <LimRes> My head hurts from this one
197: [02:56:01] <LimRes> How are things for you?
198: [02:56:09] <Kingy> Oh Stomach before I forget. Your website from some great reviews
199: [02:56:24] <Stomach> Kingy, whatcha mean
200: [02:57:05] <Kingy> woops i accidentally added a word
201: [02:57:16] <Kingy> someone on my fb feed said bring back websites from the 90s
202: [02:57:27] <Kingy> so i displayed www.stevie.co.nz in all it's fine glory
203: [02:57:34] <Stomach> hahaha
204: [02:57:44] <Kingy> and it was met with much enthusiasm
205: [02:57:53] <simon_w> Kingy, just point them to the way back machine?
206: [02:58:15] <Stomach> LimRes, doing good, just trying to get my head around some translation nightmares :D
207: [02:58:52] <LimRes> Translating as in porting or English->Japanglispanishese?
208: [02:59:24] <Stomach> english->jap
209: [02:59:33] <LimRes> Muzakashiii!
210: [02:59:38] <Ryan-Toast> Anyone here play DotA?
211: [02:59:45] <Stomach> Ryan-Toast, I do
212: [02:59:56] <Ryan-Toast> Stomach: Are you watching the BTS stream?
213: [03:02:02] <spronk> well
214: [03:05:28] <Stomach> yeah, not right now though
215: [03:05:39] <Stomach> LimRes, I've done a grouped list on a property thats been found
216: [03:05:54] <LimRes> oh yeah?
217: [03:05:55] <Stomach> $Courses.GroupedBy(MonthYearStart)
218: [03:06:08] <LimRes> I feel like I almost got close
219: [03:06:17] <Stomach> public function getMonthYearStart() {
220: [03:06:18] <Stomach> return date('F', strtotime($this->DateStart));
221: [03:06:18] <Stomach> }
222: [03:06:42] <Ryan-Toast> Stomach: I just put like 40 rares on Fnatic vs NaVi
223: [03:06:47] <LimRes> that's where I just got to a minute ago
224: [03:07:29] <Stomach> Ryan-Toast, go fnatic!
225: [03:07:38] <Ryan-Toast> Stomach: They just fucking ruined DK
226: [03:07:46] <LimRes> diff is that MonthYearStart is on Course
227: [03:07:56] <LimRes> whereas in this case, it's one removed
228: [03:08:16] <Stomach> yeah, can you do a proxy on the middle element though?
229: [03:08:20] <LimRes> the getType is not on $Option, but on $Option->Products() relationship
230: [03:08:28] <LimRes> if it was a has one
231: [03:08:30] <LimRes> then yes
232: [03:08:34] <LimRes> but this is a has_many
233: [03:08:36] <Stomach> oh it has many
234: [03:08:41] <LimRes> :(
235: [03:08:42] <Stomach> :S
236: [03:08:46] <Stomach> that doesnt work logically :\
237: [03:08:48] <LimRes> yeah it's a good puzzle
238: [03:09:11] <LimRes> I just wish you could sort by callback
239: [03:09:17] <LimRes> seems to only want statics
240: [03:10:02] <Stomach> what from the has many are you trying to sort by?
241: [03:10:11] <Stomach> Ryan-Toast: yeah hanni is my favourite player
242: [03:10:25] <Ryan-Toast> H4nni? Really? Wouldn’t have picked that
243: [03:11:00] <LimRes> Option has_many QuotedProducts which each has_one Product
244: [03:11:12] <LimRes> I put a method in QuotedProducts to check the Type
245: [03:11:19] <simon_w|air> Woo, figured out how to get the time remaining in a vimeo video
246: [03:11:55] <LimRes> which is not a single field on Product, but checks several properties
247: [03:12:28] <Stomach> so can you use the majority of the type to generate a property on product?
248: [03:12:56] <LimRes> hmm, hadn't tried that
249: [03:13:12] <LimRes> but I would still be iterating
250: [03:13:20] <Ryan-Toast> Stomach: VG just beat EG
251: [03:13:33] <LimRes> to set the property, so I would be "doing it manually" rather than getting benefit of GroupedList
252: [03:14:44] <Stomach> yeah, but grouped list depends on having only one thing return from its sort :P lol
253: [03:14:57] <Stomach> Ryan-Toast, who would you have thought?
254: [03:15:11] <Ryan-Toast> Stomach: VG is pretty stronk.
255: [03:15:34] <Ryan-Toast> Stomach: I was surprised with Fnatic though, Excaliber’s first LAN
256: [03:16:37] <Stomach> Ryan-Toast: yeah but hanni ftw
257: [03:16:46] <Ryan-Toast> Stomach: Navi vs Fnatic in like 10 minutes.
258: [03:16:51] <Ryan-Toast> ALL MY RARES
259: [03:17:00] <Stomach> on Na`Vi` ?
260: [03:17:20] <Ryan-Toast> On Fnatic
261: [03:17:25] <Stomach> :o thats a big call
262: [03:17:29] <Stomach> such a big call
263: [03:17:43] <Ryan-Toast> I’m conflicted though, never bet on Navi before a big LAN, but always bet on them at LANs ><
264: [03:17:43] * Kingy has no idea
265: [03:18:33] <Stomach> yeah, navi is too hard to call
266: [03:18:43] <Stomach> they are so random sometimes
267: [03:18:47] <Ryan-Toast> They’ve been playing shithouse latelly.
268: [03:18:50] <Ryan-Toast> lately
269: [03:18:52] <Stomach> like it always seems like they are doing well, then they fuck up real good
270: [03:19:03] <Stomach> need to come from losers bracket to win :D
271: [03:19:06] <Ryan-Toast> But they pocket strat the shrit out of my rares every now and again.
272: [03:19:24] <Stomach> hahaha pudge-chen international 2013?
273: [03:19:26] <Ryan-Toast> Who haveyou got for TI4?
274: [03:19:46] <Stomach> mous
275: [03:19:48] <LimRes> Stomach: I think that this is really the result of banging too many methods into the Product, and I need to clean it out and replace it with a single type, which I can then sort on without any hassle
276: [03:19:54] <LimRes> Thanks for the help tho
277: [03:20:02] <Stomach> LimRes: no help is good help :P
278: [03:20:52] <Ryan-Toast> Stomach: their game against….ummmmm was it…DK? This week? Was amazing.
279: [03:21:15] <Stomach> the BO5?
280: [03:21:33] * novaweb quit (Quit: novaweb)
281: [03:21:54] <Ryan-Toast> Stomach: Nah was a Bo3
282: [03:21:57] <Ryan-Toast> give me a sec
283: [03:22:02] <Stomach> oh I have been working too hard
284: [03:22:05] <Stomach> lol
285: [03:22:38] <Ryan-Toast> Ah, was NAR before they became NaVi.NA
286: [03:22:49] <Ryan-Toast> Game one was awesome.
287: [03:26:09] * iamss has joined #silverstripe
288: [03:28:00] <simon_w|air> Man, the code school editor is horribly laggy
289: [03:29:01] <iamss> is it possible a dataobject has a form? so if I loop through the dataobject, and then I can call the form
290: [03:29:16] <simon_w|air> iamss, a form needs a controller
291: [03:31:37] <iamss> hhhmmm simon_w|air because what I want to happen is I will loop a list of product dataobject to my template and each product will have an add to cart (a form action) that will add the cart when clicked
292: [03:32:09] <simon_w|air> iamss, does it have to be a form? Why can't it just be a <button>?
293: [03:32:45] <LimRes> Stomach: so if I want to just make a list manually, in 2.4 I would just create a new DataObjectSet and then add DataObjects
294: [03:32:56] <iamss> a button that will call a function to the controller and pass in the product id?
295: [03:32:56] <LimRes> What did DataObjectSet become?
296: [03:33:01] <iamss> is that safe?
297: [03:33:08] <Stomach> ArrayList or DataList
298: [03:33:15] <Stomach> i usually just use an arraylist
299: [03:33:44] <LimRes> yeah I don't need the query power of DataList because I already have the object set returned by $Option->Products()
300: [03:33:49] <LimRes> so ArrayList
301: [03:34:45] <simon_w|air> iamss, you can add in the CSRF token and check that too
302: [03:34:51] * cloph quit (Ping timeout: 276 seconds)
303: [03:37:46] <LimRes> Stomach: such an easy shortcut. In seeking elegance, I wasted time.
304: [03:38:51] * cloph_away has joined #silverstripe
305: [03:39:03] <iamss> simon_w|air: so it’s like product/add/1/5439gf87sdf5493548d
306: [03:39:06] <Stomach> LimRes, often I waste time seeking disgusting horrible messes of code so I think you did okay
307: [03:39:25] <simon_w|air> iamss, something like that
308: [03:39:42] * sminnee quit (Quit: sminnee)
309: [03:40:37] <iamss> ah I see, I’ll give it a try .. many thanks simon_w|air
310: [03:49:25] <Kingy> earthquake...
311: [03:50:34] <LimRes> Yeah just felt that one here in Taranaki
312: [03:50:48] <LimRes> really short but like being swung around on a rope
313: [03:50:52] <LimRes> perfect circle
314: [03:51:06] <Kingy> Ohakune apparently
315: [03:51:09] <Kingy> 5.1
316: [03:51:18] <Kingy> Ruapehu going to erupt now?
317: [03:53:00] <simon_w|air> Always
318: [04:03:00] * UncleCheese has joined #silverstripe
319: [04:09:39] <Ryan-Toast> Stomach: H4nni is fucking killing me right now.
320: [04:09:53] <Stomach> lol :D
321: [04:10:31] <Ryan-Toast> MY RARES
322: [04:12:33] * simon_w|air quit (Quit: This computer has gone to sleep)
323: [04:15:26] <Ryan-Toast> STOMACH: BIG TEAMFIGHT AWWW YISS
324: [04:16:19] * srikanth quit (Ping timeout: 240 seconds)
325: [04:16:22] <Stomach> haha I wish I werent with a big deadline
326: [04:17:14] <Ryan-Toast> My girlfriend just text me: “Fnatic suck”
327: [04:17:17] <Ryan-Toast> that bitch.
328: [04:17:34] * robert__ has joined #silverstripe
329: [04:17:35] * robert__ quit (Changing host)
330: [04:17:35] * robert__ has joined #silverstripe
331: [04:18:17] <LimRes> Have a great weekend all, and SHHHHH! Don't wake Ruapehu.
332: [04:18:23] <Stomach> cya Matt, you too!
333: [04:19:03] * robert_ quit (Ping timeout: 276 seconds)
334: [04:22:18] * LimRes quit (Ping timeout: 240 seconds)
335: [04:28:11] <Ryan-Toast> Stomach: H4nni just wiffing dunks, left and right.
336: [04:30:14] <Stomach> hahaha
337: [04:30:17] <Stomach> stop picking on hanni!
338: [04:31:33] <Ryan-Toast> #hontrash
339: [04:33:44] <Stomach> lol
340: [04:33:54] <Stomach> is Zyori or Sunsfan commentating?
341: [04:33:58] <Stomach> #hontrash
342: [04:34:18] <Kingy> Is TemplateGlobalProvider something to do with SS or is it some custom code I just can't find?
343: [04:34:35] <Kingy> class SectionPage_Controller extends ArticlePresenterPage_Controller implements TemplateGlobalProvider {
344: [04:34:51] <Stomach> its something to do with ss
345: [04:35:07] <Kingy> oh yeah I see now
346: [04:35:10] <Stomach> framework/view/TemplateGlobalProvider.php
347: [04:35:15] <Kingy> stupid google defaulting to using spaces
348: [04:35:46] * irogue__ quit (Quit: Textual IRC Client: www.textualapp.com)
349: [04:52:40] <Kingy> have a good weekend people
350: [04:53:20] * Kingy is now known as Kingy[a]
351: [04:54:41] * Ryan-Toast quit (Quit: Ryan-Toast)
352: [05:01:05] * nickmolhoek quit (Quit: nickmolhoek)
353: [05:03:27] * Ryan-Toast has joined #silverstripe
354: [05:03:45] * Ryan-Toast quit (Client Quit)
355: [05:15:17] * ^pH quit (*.net *.split)
356: [05:15:19] * spronk quit (*.net *.split)
357: [05:15:19] * r_hector quit (*.net *.split)
358: [05:15:19] * FrozenFire quit (*.net *.split)
359: [05:15:19] * eagles0513875 quit (*.net *.split)
360: [05:15:19] * ajmitch quit (*.net *.split)
361: [05:15:22] * Zauberfisch quit (*.net *.split)
362: [05:15:24] * TRB143 quit (*.net *.split)
363: [05:15:25] * guzzlefry quit (*.net *.split)
364: [05:15:25] * Tanger quit (*.net *.split)
365: [05:15:26] * superspring quit (*.net *.split)
366: [05:15:27] * robert__ quit (*.net *.split)
367: [05:15:28] * oetiker_ quit (*.net *.split)
368: [05:15:28] * jordanmk quit (*.net *.split)
369: [05:15:28] * irogue quit (*.net *.split)
370: [05:25:48] * notazure is now known as Azure
371: [05:27:05] * robert__ has joined #silverstripe
372: [05:27:05] * Tanger has joined #silverstripe
373: [05:27:05] * oetiker_ has joined #silverstripe
374: [05:27:05] * jordanmk has joined #silverstripe
375: [05:27:05] * irogue has joined #silverstripe
376: [05:27:05] * guzzlefry has joined #silverstripe
377: [05:27:05] * TRB143 has joined #silverstripe
378: [05:27:05] * Zauberfisch has joined #silverstripe
379: [05:27:05] * ajmitch has joined #silverstripe
380: [05:27:05] * eagles0513875 has joined #silverstripe
381: [05:27:05] * FrozenFire has joined #silverstripe
382: [05:27:05] * r_hector has joined #silverstripe
383: [05:27:05] * spronk has joined #silverstripe
384: [05:27:05] * superspring has joined #silverstripe
385: [05:27:05] * ^pH has joined #silverstripe
386: [05:28:49] * ^pH quit (*.net *.split)
387: [05:28:50] * spronk quit (*.net *.split)
388: [05:28:51] * r_hector quit (*.net *.split)
389: [05:28:51] * FrozenFire quit (*.net *.split)
390: [05:28:51] * eagles0513875 quit (*.net *.split)
391: [05:28:51] * ajmitch quit (*.net *.split)
392: [05:28:54] * Zauberfisch quit (*.net *.split)
393: [05:28:56] * TRB143 quit (*.net *.split)
394: [05:28:56] * guzzlefry quit (*.net *.split)
395: [05:28:56] * Tanger quit (*.net *.split)
396: [05:28:57] * superspring quit (*.net *.split)
397: [05:28:58] * robert__ quit (*.net *.split)
398: [05:28:59] * oetiker_ quit (*.net *.split)
399: [05:28:59] * jordanmk quit (*.net *.split)
400: [05:28:59] * irogue quit (*.net *.split)
401: [05:33:36] * robert__ has joined #silverstripe
402: [05:33:36] * Tanger has joined #silverstripe
403: [05:33:36] * oetiker_ has joined #silverstripe
404: [05:33:36] * jordanmk has joined #silverstripe
405: [05:33:36] * irogue has joined #silverstripe
406: [05:33:36] * ^pH has joined #silverstripe
407: [05:33:36] * superspring has joined #silverstripe
408: [05:33:36] * spronk has joined #silverstripe
409: [05:33:36] * r_hector has joined #silverstripe
410: [05:33:36] * FrozenFire has joined #silverstripe
411: [05:33:36] * eagles0513875 has joined #silverstripe
412: [05:33:36] * ajmitch has joined #silverstripe
413: [05:33:36] * Zauberfisch has joined #silverstripe
414: [05:33:36] * guzzlefry has joined #silverstripe
415: [05:33:36] * TRB143 has joined #silverstripe
416: [05:44:44] <Colin[pi]> RIP IRC
417: [05:48:32] <spronk> MY BAD
418: [05:53:23] * UncleCheese quit (Ping timeout: 252 seconds)
419: [05:59:18] * oetiker quit (Ping timeout: 240 seconds)
420: [05:59:24] * oetiker_ quit (Ping timeout: 240 seconds)
421: [06:06:14] * oetiker has joined #silverstripe
422: [06:11:03] <Colin[pi]> spronk: U DID THIS, I HOPE UR HAPPY
423: [06:24:49] * Shrike_Finland has joined #silverstripe
424: [06:37:18] * an_Eskimo quit (Ping timeout: 240 seconds)
425: [06:45:16] * Selay has joined #silverstripe
426: [06:46:42] <Selay> Hi guys, just a question. if I get field data from siteconfig extension, I can use SiteConfig::current_site_config()->MyField to get value of MyField. how can I update the value of MyField?
427: [06:48:33] <simon_w> Selay, SiteConfig::current_site_config()->MyField = 'MyValue'; SiteConfig::current_site_config()->write();
428: [06:50:03] <Selay> cool, thanks
429: [06:53:58] * ian has joined #silverstripe
430: [06:54:03] <ian> hello everybody, I had a page which can either serve as a template or as json, currently it triggers when I go to PAGE/json, I would like it to be PAGE/?json is this possible?
431: [06:54:22] * ian is now known as Guest93111
432: [06:55:45] <simon_w> Guest93111, public function index(SS_HTTPRequest $req) { if ($req->offsetExists('json')) return $this->json(); else return array(); }
433: [06:56:17] <Guest93111> brilliant, thanks!
434: [06:59:07] * markcl has joined #silverstripe
435: [06:59:12] <markcl> Hello
436: [06:59:31] <markcl> I have a silvestripe controller inside mysite/controllers/EasyReorderController.php
437: [06:59:43] <markcl> I set the routes and everything
438: [06:59:43] <markcl> but
439: [06:59:46] <markcl> I get an error
440: [06:59:53] <markcl> [User Error] Uncaught ReflectionException: Class EasyReorderController does not exist
441: [06:59:56] <markcl> I dont know why that is
442: [07:00:06] <markcl> since everything seems to be set up correctly
443: [07:00:17] <markcl> class EasyReorderController extends Controller {
444: [07:00:18] * Guest93111 quit (Ping timeout: 240 seconds)
445: [07:02:34] * JeeP has joined #silverstripe
446: [07:09:19] <JeeP> Hello :D on http://pastebin.com/Ei7LynnH you can see my mail formfunction. Its working fine so far, but i still need one more thing. Thats an e-mail confirmation mail to the sender of the email, with a different content. Does anyone know how to do this?
447: [07:17:09] <simon_w> markcl, have you flushed?
448: [07:17:47] <simon_w> JeeP, just created another Email object
449: [07:18:12] <markcl> @simon_w: yes.
450: [07:18:18] <markcl> i solved the problem though.
451: [07:18:23] <markcl> i was on the wrong ftp server
452: [07:18:23] <markcl> lol
453: [07:20:01] <JeeP> @simon_w: Do i need to put it into the same submit funtion?
454: [07:20:13] <simon_w> JeeP, yes
455: [07:25:17] <JeeP> Simon_w: Thanks for your help. You mean like this? http://pastebin.com/SsrdnTcf
456: [07:25:18] <JeeP> ?
457: [07:25:52] <simon_w> JeeP, that'll work
458: [07:28:34] * iamss quit (Quit: iamss)
459: [07:30:11] <JeeP> cool! Thanks Simon!
460: [07:31:02] <JeeP> but it only works if the return array( 'Content' => '<p style="font-size:20px; color:#000;">Uw bericht is verzonden. Wij nemen zo spoedig mogelijk contact met u op.</p>', 'Form' => '' ); is putunder both email objects
461: [07:31:08] <JeeP> but its working now!
462: [07:45:07] * stnvh has joined #silverstripe
463: [07:48:03] <jordanmk> hey guys
464: [07:48:06] <jordanmk> anyone here?
465: [07:51:56] <markcl> Whats the easiest way to make Holder elements in Silverstripe reorderable?
466: [07:52:18] <markcl> So when I reorder them in the CMS, they will be reordered when they are shown in the front end
467: [07:53:39] * unsignedint quit (Ping timeout: 252 seconds)
468: [07:56:24] <jordanmk> any idea how i can force a site to show errors
469: [07:56:32] <jordanmk> instead of redirecting to ErrorPage pages?
470: [07:57:27] * Selay quit (Quit: Page closed)
471: [08:01:04] * kinglozzer has joined #silverstripe
472: [08:17:50] * nonconformatevi has joined #silverstripe
473: [08:26:59] * simon_w|air has joined #silverstripe
474: [08:30:13] * wmk has joined #silverstripe
475: [08:30:25] <wmk> gmorning (ugt)
476: [08:38:17] * feejin has joined #silverstripe
477: [08:45:01] * Shrike_Finland quit (Quit: Leaving.)
478: [08:46:29] * simon_w|air quit (Quit: This computer has gone to sleep)
479: [08:52:20] * Pyckik has joined #silverstripe
480: [08:58:46] * markcl quit (Quit: Page closed)
481: [09:00:38] * richwestcoast has joined #silverstripe
482: [09:01:14] * Shrike_Finland has joined #silverstripe
483: [09:09:41] * micmania1 has joined #silverstripe
484: [09:09:50] <micmania1> mornin'
485: [09:12:07] * ARNHOE has joined #silverstripe
486: [09:12:30] <Pyckik> areet micmania1
487: [09:12:44] <micmania1> areet
488: [09:12:55] * guci0 has joined #silverstripe
489: [09:13:03] <guci0> Morning!
490: [09:13:08] <Pyckik> Gidday!
491: [09:18:52] <micmania1> Is there a way to hook in to flush=1?
492: [09:19:39] <Pyckik> Not that I'm aware of
493: [09:20:03] <Pyckik> I'm not even entirely sure what flushing does as opposed to building and manifests anymore.
494: [09:23:16] <micmania1> It 'reloads' the config and templates
495: [09:32:27] <simon_w> micmania1, for what purpose?
496: [09:32:42] * Tanger quit (Quit: Tanger)
497: [09:32:59] <micmania1> to flush my own cached items.
498: [09:33:14] <simon_w> if (isset($GET['flush']))
499: [09:33:50] <micmania1> What about the security token? Would that still need checked?
500: [09:33:56] <simon_w> No
501: [09:34:00] <micmania1> ok thanks
502: [09:39:50] * Shrike_Finland quit (Quit: Leaving.)
503: [09:53:23] * wmk quit (Quit: nice to meet you ;))
504: [10:28:59] <Pyckik> fuck'n "hand crafted"
505: [10:29:03] <Pyckik> as opposed to fucking what?
506: [10:29:15] <Pyckik> Machines can program themselves now?
507: [10:29:19] <kinglozzer> Skynet
508: [10:29:25] <Pyckik> derpy cunts more like.
509: [10:29:32] <kinglozzer> :P
510: [10:30:27] <Pyckik> and KiwiIRC MADE BY AN ENGLISHMAN
511: [10:30:46] <Pyckik> And actually referring to Kiwifruit, no Kiwis.
512: [10:30:52] <Pyckik> not*
513: [10:31:42] * simon_w quit (Quit: This computer has gone to sleep)
514: [10:34:12] <Pyckik> lulz xD https://github.com/silverstripe/silverstripe-framework/blob/3.1/control/Session.php#L151
515: [10:36:27] <micmania1> Pyckik: how's your ss/ci frankenstein coming along?
516: [10:37:16] * Shrike_Finland has joined #silverstripe
517: [10:38:05] * simon_w|air has joined #silverstripe
518: [10:43:05] <Pyckik> micmania1: delayed due to shitpickers
519: [10:43:17] <micmania1> bastards
520: [10:43:28] <Pyckik> (bugfixing current system as it's 'blocking' current jobs)
521: [10:43:41] <Pyckik> 'blocking' not actually blocking just making the users confused and nervous.
522: [11:21:17] <Pyckik> ROFL, just made a reference to gas chambers not realising that it is D day anniversary.
523: [11:21:56] <Pyckik> "there were all these old folk out on the platforms today, is there some kind of special event on? Is there a euthanasia gas chamber I'm not aware of somewhere north of here?"
524: [11:22:19] <Pyckik> some kind of D day event sounds right, they were all WW2 veteran aged.
525: [11:22:47] <Pyckik> Feel a bit shit now :<
526: [11:22:49] <Pyckik> lol
527: [11:22:51] <Pyckik> that'll learn me
528: [11:46:38] <kinglozzer> http://idea15.wordpress.com/2013/10/28/icos-autumn-2013-cookielaw-update/ lol
529: [11:53:32] * Shrike_Finland quit (Quit: Leaving.)
530: [11:56:12] * Shrike_Finland has joined #silverstripe
531: [11:56:15] <ss23> SUP BITCHES
532: [11:56:24] <micmania1> areet
533: [11:56:36] <ss23> jaapanese ss23
534: [11:56:41] <ss23> just like normal ss23, but fulll of sushi
535: [11:57:19] <simon_w|air> So, just like normal ss23
536: [11:57:37] <ss23> lol
537: [11:57:43] <ss23> I don't often eat sushi in NZ
538: [11:57:57] <ss23> I used to work at a place with sushi near it and I ate only sushi for lunch for like a year
539: [11:58:00] <ss23> now I avoid it
540: [11:58:15] <simon_w|air> And now you also work at a place with sushi near by!
541: [11:59:33] <simon_w|air> Ooh, I also have a sushi place nearby, but nowhere near as close as yours
542: [11:59:34] <simon_w|air> http://www.westfield.com.au/woden/stores/sushi-world/25773
543: [12:03:03] <ss23> lol
544: [12:03:15] <ss23> even better, the time IO was talking about, it was when I was working in a Westfield!
545: [12:03:19] <ss23> :D
546: [12:05:03] * Sj0hn has joined #silverstripe
547: [12:07:00] <simon_w|air> That Westfield is where I've met Colin[pi]!
548: [12:07:58] <ss23> gaaaaaay
549: [12:07:59] <ss23> "D
550: [12:08:00] <ss23> :D
551: [12:08:30] <simon_w|air> Jelly
552: [12:08:58] <ss23> a little
553: [12:09:05] <ss23> hard to be jelly when i'm in japan thuogh
554: [12:09:11] <ss23> SO MUCH HENTAI
555: [12:09:21] <ss23> it's like an all you can eat buffet for your sexual desires of drawn things!
556: [12:09:27] <simon_w|air> Whereas, I'm in bed snuggling up with my fiancee
557: [12:09:54] <ss23> if you're able to use your hands to IRC, it's not somethingI'm too jealous of
558: [12:09:57] <ss23> :P
559: [12:10:05] <ss23> If you know what I mean ;)
560: [12:12:31] * UndefinedOffset has joined #silverstripe
561: [12:14:26] <simon_w|air> Well, laptops are going away now ;)
562: [12:14:28] * simon_w|air quit (Quit: This computer has gone to sleep)
563: [12:15:16] * richwestcoast quit (Quit: My iMac has gone to sleep. ZZZzzz…)
564: [12:15:20] <micmania1> That is possibly the best IRC exit I have ever seen.
565: [12:15:39] <ss23> hahaha
566: [12:15:50] <ss23> it's okay, he'\s not allowed sex till he's married
567: [12:15:51] <ss23> :P
568: [12:15:55] <micmania1> hahaha
569: [12:17:05] * iamss has joined #silverstripe
570: [12:19:46] * iamss has left #silverstripe
571: [12:24:15] <micmania1> urgh. I'm guessing adding many_many_extraFields in YAML isn't possible...
572: [12:28:30] * Sj0hn quit ()
573: [12:29:41] <nonconformatevi> Hi, I'm developing a module that extends silverstripe/blog.
574: [12:29:41] <nonconformatevi> I want to manage the insert/edit post's permission on every single user and not only on the groups: each user can only modify their own posts.
575: [12:29:41] <nonconformatevi> In the back-end it was possible extend BlogEntry adding a control into canEdit() function of SiteTree.
576: [12:29:41] <nonconformatevi> In front-end this isn't possible, because the edit form is invoke from BlogHolder through the BlogEntryForm() function that doesn't invoke canEdit().
577: [12:32:01] <nonconformatevi> is this a blog bug?
578: [12:34:29] <micmania1> nonconformatevi: it checks for a specific permission.
579: [12:34:41] <micmania1> You need to extend it
580: [12:34:57] <micmania1> Then implement the canEdit that way
581: [12:36:44] <nonconformatevi> micmanial: do you have an example?
582: [12:43:13] <nonconformatevi> micmania1: sorry, do you have an example? thanks
583: [12:44:55] <micmania1> nonconformatevi: http://www.sspaste.com/paste/show/5391b431f0648
584: [12:47:58] <nonconformatevi> micmania1: ok, thanks. But can i do it with DataExtension?
585: [12:48:12] <micmania1> no
586: [12:48:57] <nonconformatevi> ok
587: [12:49:09] <nonconformatevi> micmania1: thanks
588: [12:52:13] <Pyckik> ss23: wait, you don't work for SS anymore?
589: [12:53:47] <Pyckik> micmania1: should be. Some things don't work too well via extensions when set like that though :/
590: [12:54:04] <Pyckik> (manymanyexrrafieldsyamlthing)
591: [12:55:42] <Pyckik> nonconformatevi: Extensions are an underlay, not an overlay. You can only extend an existing function on a class that extends Object with a decorator if it calls $this->extend
592: [12:56:03] <Pyckik> $this->extend(__FUNCTION__, $params) that is
593: [12:57:52] * richwestcoast has joined #silverstripe
594: [12:57:59] <nonconformatevi> Pyckik: yes I know
595: [12:58:02] <nonconformatevi> thanks
596: [13:06:22] <Pyckik> micmania1: wtf I thought config merged all the things :<
597: [13:06:33] <micmania1> ?
598: [13:07:20] <Pyckik> hmm sec
599: [13:07:23] <Pyckik> Class: listedthing: identifier: kvpairs
600: [13:11:48] * Pyckik quit (Ping timeout: 240 seconds)
601: [13:12:57] * Pyhokayk has joined #silverstripe
602: [13:13:00] <Pyhokayk> micmania1: http://sspaste.com/paste/show/5391ba7fd36e5
603: [13:13:49] <micmania1> ask kinglozzer
604: [13:13:56] * thibault has joined #silverstripe
605: [13:13:57] <Pyhokayk> kinglozzer: ^^
606: [13:14:01] <micmania1> he told me how to do it not long ago, but I've never actually done it
607: [13:14:31] <kinglozzer> Do what what what?
608: [13:14:41] <Pyhokayk> see above
609: [13:14:46] <Pyhokayk> merge config options, not overwrite.
610: [13:14:54] <Pyhokayk> http://sspaste.com/paste/show/5391ba7fd36e5
611: [13:16:02] <kinglozzer> Hmm, the one I did was with routes, but idk if it was actually merging them - I just needed control over where they were inserted
612: [13:16:11] <kinglozzer> Did that by giving the second one an identical name
613: [13:16:22] <kinglozzer> Like the 'name' in the title block or w/e it's called
614: [13:16:30] <Pyhokayk> yeah routes merge. Hmm...
615: [13:16:34] <Pyhokayk> I'll investigate
616: [13:16:41] <kinglozzer> i.e. that name >> https://github.com/silverstripe/silverstripe-framework/blob/3.1/_config/routes.yml#L2
617: [13:16:59] <Pyhokayk> kinglozzer: and it didn't have a whinge?
618: [13:17:05] <kinglozzer> Nope
619: [13:17:11] <Pyhokayk> hmm
620: [13:18:18] * thibault quit (Ping timeout: 240 seconds)
621: [13:18:23] <Pyhokayk> I think what the thing is is that it merges 1 level deep only.
622: [13:18:34] <Pyhokayk> ie. array_merge, not array_merge_recursive
623: [13:18:57] <Pyhokayk> I wonder if there's a header setting I can switch on to recursively merge
624: [13:19:05] <kinglozzer> Ah yeah, cos it's class.prop, never class.prop.subprop
625: [13:19:52] <kinglozzer> Pyhokayk: Looking at Config.php, I think it should merge recursively
626: [13:21:18] * Colin[pi] quit (Ping timeout: 240 seconds)
627: [13:21:33] <Pyhokayk> kinglozzer: hahahaha rofl the docs
628: [13:21:43] <Pyhokayk> * Each named property can contain either * * - An array * - A non-array value * * If the value is an array, each value in the array may also be one of those * three types.
629: [13:21:58] <micmania1> haha
630: [13:22:12] <Pyhokayk> contain either <two types listed> [...] those THREE types
631: [13:22:17] <kinglozzer> LO
632: [13:22:18] <kinglozzer> :P*
633: [13:23:54] <Pyhokayk> kinglozzer: but yeh... https://github.com/silverstripe/silverstripe-framework/blob/3.1/core/Config.php#L21-L27
634: [13:24:41] <micmania1> so its broke?
635: [13:25:08] <Pyhokayk> THEN AGAIN IT WOULD HELP IF I COULD SPELL MY OWN CODE
636: [13:25:19] <kinglozzer> Asked something similar: https://groups.google.com/forum/#!topic/silverstripe-dev/-FbaJDd0Ej4
637: [13:25:22] <Pyhokayk> database !== databaseS
638: [13:25:23] <kinglozzer> No one replied :'(
639: [13:25:53] <Pyhokayk> what a fook moopet
640: [13:26:04] <kinglozzer> Pyhokayk: Does it werk?
641: [13:26:07] <Pyhokayk> fookin' moppet
642: [13:26:08] <kinglozzer> werk it
643: [13:26:16] <Pyhokayk> moppe'
644: [13:26:26] <Pyhokayk> t is almost non existent in English English
645: [13:27:09] <micmania1> Pyhokayk: kinglozzer pint?
646: [13:27:30] <Pyhokayk> micmania1: mmkay. Not be long tonight though like.
647: [13:27:34] <Pyhokayk> well
648: [13:27:45] <Pyhokayk> we'll see. but not particularly after a big one.
649: [13:27:52] <Pyhokayk> Tuesday was big enough.
650: [13:28:01] <micmania1> I'm only out for 1 or 2
651: [13:28:01] <kinglozzer> micmania1: By the time I got there last week it was 5am Saturday and everyone had gone home
652: [13:28:05] <kinglozzer> :(
653: [13:28:08] <Pyhokayk> micmania1: sounds like a good time then :>
654: [13:28:15] <micmania1> kinglozzer: leave 10mins earlier
655: [13:28:23] <Pyhokayk> kinglozzer: I live at the pub. You're such a shit cake maker.
656: [13:28:27] <Pyhokayk> :P
657: [13:28:31] <Pyhokayk> also, what micmania1 said.
658: [13:28:33] <Pyhokayk> :P
659: [13:28:37] <kinglozzer> Pyhokayk: You got me ;)
660: [13:28:53] <Pyhokayk> kinglozzer: I lied, I actually live in a hospital.
661: [13:35:41] * r3v3rb has joined #silverstripe
662: [13:37:06] <r3v3rb> ->disableSecurityToken() = no session data, is that correct - when I submit a form with the disableSecurityToken i get no session, if I leave the security on I get an error as the site is statically published too
663: [13:37:51] <Pyhokayk> no r3v3rb, security token should have f-all to do with session.
664: [13:37:54] <kinglozzer> r3v3rb: No, that should just disable a field by added
665: [13:37:57] <kinglozzer> being*
666: [13:38:01] <Pyhokayk> well, the creating and shit.
667: [13:38:17] <r3v3rb> Pyhokayk: wierd shit going on then
668: [13:38:19] <Pyhokayk> might/probably stores the token in session in order to check it
669: [13:38:23] * scpi has joined #silverstripe
670: [13:38:35] <Pyhokayk> r3v3rb: sounsd like it, but I've never staticed or cached or anything
671: [13:38:39] <Pyhokayk> I dont' do performance man!¬
672: [13:38:42] * Shrike_Finland quit (Quit: Leaving.)
673: [13:38:43] <Pyhokayk> I just make shit work :>
674: [13:38:46] <kinglozzer> It does ^^ but disabling it shouldn't fuck up /all/ the sessions
675: [13:38:54] <r3v3rb> my site is statically published except for the forms - they are not statically published and removed from the publishing queue
676: [13:41:03] <r3v3rb> if I don’t have the ->disable in my form I get returned to the page with the /contactForm in the url and an error on the page
677: [13:41:38] <r3v3rb> when I add the ->disable I get routed correctly, but the session data isn’t stored so I cant check for successful submission
678: [13:41:45] <r3v3rb> waaaaa
679: [13:42:06] <Pyhokayk> because static publish means there's no PHP to touch?
680: [13:42:21] <Pyhokayk> it's all stored plain HTML?
681: [13:42:22] * Shrike_Finland has joined #silverstripe
682: [13:42:22] * Shrike_Finland quit (Client Quit)
683: [13:44:43] <r3v3rb> Pyhokayk: yup, but the forms are not being statically published
684: [13:44:55] <r3v3rb> so are being sent to the PHP pages
685: [13:44:55] <Pyhokayk> idk :<
686: [13:45:00] <r3v3rb> Pyhokayk: me either
687: [13:46:01] <kinglozzer> r3v3rb: The way I did it before was to static publish the pages with the form on
688: [13:46:08] <kinglozzer> Then add a query string to the form action
689: [13:46:15] <r3v3rb> the old ?u=1
690: [13:46:16] <kinglozzer> Query string prevents caching
691: [13:46:18] <kinglozzer> Yeah
692: [13:46:49] <r3v3rb> hmm
693: [13:47:01] <kinglozzer> Though idfk why that worked actually
694: [13:47:02] <kinglozzer> sec
695: [13:47:32] <kinglozzer> Oh, I disabled token too
696: [13:47:56] <kinglozzer> $form->disableSecurityToken(); $form->setRedirectToFormOnValidationError(true); $form->setFormAction($form->FormAction() . '?u=1’);
697: [13:48:37] <r3v3rb> did you set sessions in the doForm to test for successful submission?
698: [13:48:45] <r3v3rb> in the templates
699: [13:48:49] <kinglozzer> Yeah
700: [13:48:58] <r3v3rb> ok
701: [13:48:59] <kinglozzer> Session::set('CompletedForm', 'SignupForm'); return $this->redirect($this->Link('?u=1'));
702: [13:49:14] <kinglozzer> Needs the query string again ^^
703: [13:54:31] <Pyhokayk> brilliant, the support team are having a laugh because k is next to L on the keyboard.
704: [13:55:01] <Pyhokayk> call came in, got entered into the ticket system "your call has been cakked"
705: [13:55:09] <r3v3rb> kinglozzer: wierdly f i refresh the page the session is read correclty
706: [13:55:20] <r3v3rb> f i = if in my world
707: [13:56:35] <Pyhokayk> Hmm, is there an SS way for listing all public functions in a class micmania1 kinglozzer ?
708: [13:56:54] <Pyhokayk> I assume not, I'll just make a php native reflection instance I ugess.
709: [13:56:56] <Pyhokayk> guess*
710: [13:57:40] <kinglozzer> Pyhokayk: $obj->allMethodNames()
711: [13:57:48] * JeeP quit (Ping timeout: 240 seconds)
712: [13:57:55] <Pyhokayk> kinglozzer: true story! because extensions, yeh
713: [13:57:58] <Pyhokayk> :>
714: [13:58:03] <kinglozzer> $obj->allMethodNames(true) for extensions included
715: [13:58:08] <Pyhokayk> hmm, I wonder when that gets set though...
716: [13:58:17] <Pyhokayk> I'm calling this in controller constructor
717: [13:58:26] <kinglozzer> Should be fine, config will be done by them
718: [13:58:27] <kinglozzer> then*
719: [13:58:35] <kinglozzer> Maybe
720: [13:58:39] <micmania1> yeah, its stored in config ^^
721: [13:58:39] <kinglozzer> :P
722: [13:58:45] <Pyhokayk> oh yeh, sweet.
723: [13:59:02] <Pyhokayk> wait, in config? Oh right the underlying system yeh?
724: [13:59:10] <Pyhokayk> not the actual files like
725: [13:59:22] <micmania1> nah, like cached.
726: [13:59:45] <kinglozzer> r3v3rb: Even with the query string you have to refresh? strange
727: [13:59:59] <r3v3rb> nope with the query string its fine...
728: [14:00:04] <r3v3rb> how bloody wierd
729: [14:00:24] <Pyhokayk> micmania1: hmm, so is in manifest. interesting!
730: [14:00:39] <kinglozzer> r3v3rb: Well that makes sense - query string prevents hitting the cache
731: [14:00:48] <kinglozzer> Can't read session if it hits cache
732: [14:00:56] <Pyhokayk> oh shit, hmmm I wonder if I can limit it to uninherited.
733: [14:01:13] <r3v3rb> arh maybe thats why I used to do ?success=1
734: [14:01:15] <r3v3rb> lol!
735: [14:01:36] * r3v3rb getting confused with sp and shit
736: [14:02:35] <micmania1> Pyhokayk: $class = new ReflectionClass("MyClass"); $public = $class->getMethods(ReflectionMethod::IS_PUBLIC); // winning
737: [14:02:51] <micmania1> That's without extenions
738: [14:02:57] <micmania1> or u mean without paret classes?
739: [14:03:00] <Pyhokayk> micmania1: winning indeed.
740: [14:03:14] <Pyhokayk> yeh, also want non interited (ie non parent, yeh)
741: [14:04:41] <kinglozzer> Pyhokayk: Also use reflection to get parent and do some array magic to remove duplicates?
742: [14:04:48] <micmania1> Pyhokayk: http://www.php.net/manual/en/reflectionmethod.getdeclaringclass.php // BOOM
743: [14:05:17] <Pyhokayk> yeh was just trolling down the list of reflection class :>
744: [14:05:31] <Pyhokayk> I was just wondering if SS already did some magic to save me having to re-do it
745: [14:05:34] <Pyhokayk> :>
746: [14:06:39] <r3v3rb> kinglozzer: thanks thats another beer
747: [14:09:19] <kinglozzer> r3v3rb: I'll end up vomiting in the gutter at this rate ;)
748: [14:10:46] <Pyhokayk> haha
749: [14:11:02] <r3v3rb> kinglozzer: that sounds like my kind of night out - as long as its not me vomitting@
750: [14:11:04] <r3v3rb> !
751: [14:11:25] <Pyhokayk> If I had the alcohol that'd been promised to me in this channel... I think it'd last at least a year of a drunken haze.
752: [14:11:35] <r3v3rb> Pyhokayk: :P
753: [14:11:38] <kinglozzer> Ha, yeah I'm usually the one to chunder on a night out :P
754: [14:11:39] <r3v3rb> hic
755: [14:11:51] <Pyhokayk> :/ kinglozzer
756: [14:11:57] <r3v3rb> setup mysql replication on that azure setup today
757: [14:12:11] <r3v3rb> :\ not sure how that’ll pan out but client wants it
758: [14:12:13] <kinglozzer> Pyhokayk: Can't help it, I'm skinny so less lard to absorb like all you sifs
759: [14:12:55] <Pyhokayk> sif kinglozzer
760: [14:13:12] <Pyhokayk> I'm not a large fellow, you poms just can't hold much drink xD
761: [14:13:32] <Pyhokayk> nah, unfair assessment. Beer is different here like.
762: [14:13:44] <Pyhokayk> Proper pints, higher percentages, etc.
763: [14:13:55] <Pyhokayk> (av. alc. vol.)
764: [14:14:35] * richwestcoast quit (Quit: Textual IRC Client: www.textualapp.com)
765: [14:19:00] <Pyhokayk> so turns out: ReflectionClass::getMethods(ReflectionMethod::IS_PUBLIC) returns shit suchlike:
766: [14:19:02] <Pyhokayk> [25]=> &object(ReflectionMethod)#1061 (2) { ["name"]=> string(12) "handleAction" ["class"]=> string(13) "CI_Controller" }
767: [14:19:22] <Pyhokayk> it tells you what class a method is defined in.
768: [14:19:24] <Pyhokayk> :>
769: [14:19:32] <Pyhokayk> need to foreach to filter out, but whatevs
770: [14:20:34] <Pyhokayk> Plus reflection method has bonus of not fucking it all up by strtolower first :>
771: [14:20:53] * Pyhokayk is automating allowed_actions for all on a class
772: [14:22:33] * richwestcoast has joined #silverstripe
773: [14:23:13] * muskie9 has joined #silverstripe
774: [14:24:37] <muskie9> anyone in here ever use Shea Dawson's quickaddnew module
775: [14:27:25] <kinglozzer> Yeah
776: [14:31:51] * joelpittet has joined #silverstripe
777: [14:32:16] <muskie9> have you had issues where the add new form doesn't show in the overlay
778: [14:32:53] <muskie9> works most of the time, but found a situation where it may not quite work and not sure if it's my implementation
779: [14:33:48] * Pyhokayk has such success.
780: [14:33:52] <Pyhokayk> many goods!
781: [14:34:02] <Pyhokayk> such win!
782: [14:34:19] <kinglozzer> muskie9: I set mine up ages ago for an internal project, so not really sure. I do remember having similar issues though
783: [14:34:19] <Pyhokayk> very silverstripe!
784: [14:34:33] <kinglozzer> Doesn't seem to happen any more, not sure if I did anything to fix it
785: [14:36:02] <muskie9> seems to bug out when using the add new on an object that's managed in a page's gridfield, works fine on the object when I use it in model admin... might be a bug
786: [14:36:48] <kinglozzer> muskie9: https://gist.github.com/kinglozzer/3844f78dbdb99fe41972
787: [14:36:55] <kinglozzer> That was the rough code I used
788: [14:37:54] <muskie9> yep, that's how mine's setup... so if I have that setup managed in a gridfield I don't get the quickaddnew's form fields in the overlay
789: [14:38:15] * philbenoit has joined #silverstripe
790: [14:38:19] <muskie9> https://github.com/dynamic/FoxyStripe/blob/master/code/pages/ProductPage.php#L72
791: [14:38:33] <kinglozzer> muskie9: Sorry, not sure then, any errors in console?
792: [14:38:34] <muskie9> ProductOptions is the DataObject with the quickaddnew
793: [14:38:43] * qlex has joined #silverstripe
794: [14:38:52] <muskie9> not seeing any... gonna double check the resources loaded... maybe something's missing
795: [14:38:53] * qlex says hi
796: [14:39:13] <qlex> a production site on silverstripe for my client shows up an unexpected error
797: [14:39:14] <qlex> www.kombus.pl
798: [14:39:23] <qlex> looks like a problem with connecting to mysql database, but im not sure
799: [14:39:31] <qlex> does any1 have an idea what could be causing this ?
800: [14:39:49] <qlex> i can connect to databbase using phpmyadmin tool provided by my client
801: [14:40:19] <philbenoit> Hi all, im looking for some info on how to add a item to the payments system for payment, outside of an e-commerce setup
802: [14:40:27] * richwestcoast quit (Quit: Textual IRC Client: www.textualapp.com)
803: [14:41:05] <philbenoit> qlex: have you tried restarting the server to see if it was a socket issue, if your running on a small memory server
804: [14:41:10] <muskie9> qlex, yes, it's your db connection: http://www.kombus.pl/?isDev=1
805: [14:41:35] <muskie9> double check your db settings in your _config.php or _ss_environment.php file
806: [14:42:55] * r3v3rb quit (Quit: r3v3rb)
807: [14:43:01] * richwestcoast has joined #silverstripe
808: [14:43:35] * Liquide quit ()
809: [14:44:18] <qlex> philbenoit: called their hosting admin, and told him to restart
810: [14:44:23] <qlex> waiting for result in 15 mins
811: [14:44:55] <qlex> muskie9: no changes (at least from our, website developers' side), site has been running for a couple of years with those settings
812: [14:45:03] * feejin quit ()
813: [14:45:30] <philbenoit> I have had issues on 512mb servers, Amazon and DigitalOcean, where there was not enough memory and the sockets got screwed. I ended up adding a swap file as they are only dev servers.
814: [14:46:12] <philbenoit> Can you look into the logs of the server? Do you have the SS log file running from _config?
815: [14:47:13] * DesignerX has joined #silverstripe
816: [14:48:50] <qlex> have no access to log
817: [14:53:00] <qlex> they're restarging the servers now
818: [14:53:05] <qlex> hopefully this will fix it
819: [14:53:17] * r3v3rb has joined #silverstripe
820: [14:57:44] * muskie9 quit (Ping timeout: 240 seconds)
821: [15:05:33] * qlex quit (Quit: Leaving.)
822: [15:08:42] * muskie9 has joined #silverstripe
823: [15:13:24] * stnvh quit ()
824: [15:15:19] * r3v3rb quit (Quit: r3v3rb)
825: [15:16:53] * ARNHOE quit ()
826: [15:17:01] <philbenoit> does anyone know how to setup a product for payment / how to use the payments module
827: [15:20:58] * muskie9 quit (Read error: Connection reset by peer)
828: [15:23:15] <Pyhokayk> philbenoit: yep, read the docs :>
829: [15:23:26] <philbenoit> THe docs are useless
830: [15:23:38] <philbenoit> have you read them?
831: [15:24:02] <Pyhokayk> probably once
832: [15:24:04] * nonconformatevi quit (Quit: Sto andando via)
833: [15:24:12] <Pyhokayk> I don't remember it being so complicated.
834: [15:24:17] <Pyhokayk> try the swipestripe docs.
835: [15:24:25] <philbenoit> ok, I have been reading everythint
836: [15:24:35] <Pyhokayk> since it uses payments, it should have some clue on how to set up payments.
837: [15:24:51] <philbenoit> basically I am trying to get people to pay for a calendar appointment
838: [15:25:20] <philbenoit> I think I just need to understnad how to pass a price to a payment gateway and have the payments system take over from there
839: [15:25:30] <philbenoit> perhaps I am looking in the wrong places
840: [15:26:17] <micmania1> philbenoit: you need to install the payment module, then a module that uses its api (eg paypal)
841: [15:26:39] <micmania1> I used PayPal express and the hardest part was finding where all the stuff was that I needed in Paypal
842: [15:27:09] <philbenoit> I have this payments module installed. I am trying to hook up my own page to the paymnents module / pass along the info when a user clicks a form
843: [15:27:35] <philbenoit> can you point me in the direction of this though you built? is it open?
844: [15:27:39] <Pyhokayk> yeah you need an actual gateway installed.
845: [15:27:46] <Pyhokayk> payments is just general base stuff.
846: [15:28:00] <Pyhokayk> like I said, read swipestripe docs.
847: [15:28:06] <Pyhokayk> it covers all this
848: [15:28:17] <philbenoit> ok I will go and read that.
849: [15:28:34] <micmania1> philbenoit: nah, not open
850: [15:28:56] <micmania1> philbenoit: https://github.com/burnbright/silverstripe-omnipay
851: [15:29:05] <micmania1> there's this module too which I haven't tried but looks good
852: [15:30:16] * r3v3rb has joined #silverstripe
853: [15:30:25] <micmania1> This si the one I used with the payment module: https://github.com/silverstripe-labs/silverstripe-payment
854: [15:30:47] <philbenoit> that does look good, thanks. Basically I want to pass along a price and an ID to a payment provider to have it return on completion and the user to get an email
855: [15:31:03] <r3v3rb> micmania1: how did you get on with the payment module
856: [15:31:18] <micmania1> I hate paypal. That's how.
857: [15:31:19] <r3v3rb> I ended up writing my own PDT/IPN stuff for payments
858: [15:31:27] <r3v3rb> works well
859: [15:31:37] <r3v3rb> and I then had to write a CardSave version too
860: [15:31:38] <micmania1> The module was fine. Finding what I needed in paypal was a pain in the arse
861: [15:31:43] <r3v3rb> micmania1: true
862: [15:32:47] <Pyhokayk> philbenoit: that's pretty much EXACTLY what payments module does.
863: [15:33:11] <Pyhokayk> but payments itself is just a base, you need to have a payment provider module installed too (which payments module uses to do its stuff)
864: [15:34:21] <Pyhokayk> Payments is just an interface to providers, if that helps make any sense.
865: [15:34:56] <philbenoit> yeah I get that but for someone coming in new to this documentation is everything
866: [15:35:46] <philbenoit> so your saying I actually need to read about using a particular gateway to work out how to process a payment, not the payment module
867: [15:35:53] <micmania1> philbenoit: here's the paypal one: https://github.com/frankmullenger/silverstripe-payment-paypal
868: [15:36:05] * muskie9 has joined #silverstripe
869: [15:36:21] <micmania1> If you look at the roadmap here you can see the other modules available. https://github.com/silverstripe-labs/silverstripe-payment
870: [15:37:30] * jenniferaslan has joined #silverstripe
871: [15:38:32] <philbenoit> I can see all that, but again there is no simple, clear explination on how to have an single product with a price and have the user pay for it. Once I setup my details in the paypal module, and connect it to the payments module then what code do I put in my page to link the two
872: [15:40:05] <philbenoit> If you think this is something you can teach me I am more than happy to pay you to chat through for an hour or two on Skype. I am just at a loss on how to get this all working.
873: [15:40:38] <micmania1> ah, I used SwipeStripe which pretty much handles it all for me.
874: [15:41:47] <philbenoit> Ok I understannd that. Let me explain. The calendar module pulls in data from a google calendar, someone selects the date and time they want, clicks 'book time', is taken to the payment gateway to pay and on return an email is sent
875: [15:42:29] <philbenoit> Thats what I am trying to achieve, the calendar and google hook up works, I am just stuck on getting the 'book time' thing connected to a payment gateway.
876: [15:49:42] <micmania1> philbenoit: https://github.com/swipestripe/silverstripe-swipestripe/blob/2.1/code/form/OrderForm.php#L317
877: [15:49:44] <micmania1> that might help
878: [15:49:59] <micmania1> I've never done a completely custom hookup before so i'm not really much help here
879: [15:52:25] <philbenoit> Thanks, This is a big learning thing for me also, I have built large corproate CMS's on SS but this little simple thing has me stumped. That code looks like the business though.
880: [15:55:11] <philbenoit> ITs amazing how you read something 5 times and then it makes sense. Thanks again for this link. I want to use the payments gateway as I already have swipestripe running. Perhaps I just need to build a custom product???
881: [15:56:03] <philbenoit> Although it would be nice to have it stand alone to give back to everyone.
882: [15:58:09] <Pyhokayk> philbenoit: Once I setup my details in the paypal module, and connect it to the payments module then what code do I put in my page to link the two
883: [15:58:15] <Pyhokayk> You don't put any code to connect anything
884: [15:58:18] <Pyhokayk> between those two.
885: [15:58:38] <Pyhokayk> you give payments module your price details and such.
886: [15:58:55] <Pyhokayk> you connect your 'cart' and payments.
887: [15:59:10] <Pyhokayk> You use the config system to tell payments which provider to use.
888: [15:59:13] <philbenoit> Ok, the order blog from micmanial has set me on the right track, I think!
889: [16:02:26] <philbenoit> Pyhokayk, that the part I am stuck on connect your cart and payments, but I think the orderform link has me on the right track
890: [16:07:25] * kinglozzer quit ()
891: [16:10:12] * DesignerX quit (Ping timeout: 245 seconds)
892: [16:10:40] <philbenoit> Pyhokayk, micmanial: Thanks for your help! I think I am on the right track and have a good idea of how to complete this. Hopefully we can get it released for others to create a simple time based booking system for fitness instructors, hair salons etc.
893: [16:13:06] <Pyhokayk> :)
894: [16:27:52] * Pyhokayk quit ()
895: [16:30:58] * muskie9 quit (Read error: Connection reset by peer)
896: [16:33:15] * richwestcoast quit (Quit: Textual IRC Client: www.textualapp.com)
897: [16:34:48] * philbenoit quit (Ping timeout: 240 seconds)
898: [16:38:44] * muskie9 has joined #silverstripe
899: [16:48:05] * muskie9 quit (Ping timeout: 255 seconds)
900: [17:01:22] * muskie9 has joined #silverstripe
901: [17:02:14] * r3v3rb quit (Quit: r3v3rb)
902: [17:05:05] * muskie9 quit (Client Quit)
903: [17:49:31] * gelignite has joined #silverstripe
904: [18:23:40] * Colin[pi] has joined #silverstripe
905: [19:02:32] * r3v3rb has joined #silverstripe
906: [19:26:48] * r3v3rb quit (Quit: r3v3rb)
907: [19:31:14] * UndefinedOffset quit (Quit: Leaving.)
908: [19:47:12] * qlex has joined #silverstripe
909: [19:47:17] * qlex says hi
910: [19:47:29] <qlex> back to my client's problematic kombus.pl
911: [19:47:43] <qlex> they brought back connection to database which was causing errors before
912: [19:47:46] <qlex> now, got ":server error"
913: [19:47:50] <qlex> when switched to dev mode
914: [19:47:52] <qlex> im getting:
915: [19:47:57] <qlex> [User Error] Couldn't run query: SHOW FULL FIELDS IN "SiteTree" Unknown storage engine 'InnoDB'
916: [19:48:00] <qlex> what could that mean ?
917: [20:08:41] * SightUnseen has joined #silverstripe
918: [20:11:40] <qlex> anyone ??
919: [20:11:55] <qlex> im always unlucky to have problems with NZ is already asleep or there's weekend :(
920: [20:12:59] * SightUnseen has left #silverstripe
921: [20:19:17] <qlex> will be back tomorrow if i dont solve it
922: [20:19:18] <qlex> bye
923: [20:19:20] * qlex has left #silverstripe
924: [20:20:33] * Colin[pi]-2 has joined #silverstripe
925: [20:26:38] * Colin[pi] quit (Write error: Broken pipe)
926: [21:00:00] * jenniferaslan quit (Quit: jenniferaslan has left the room)
927: [21:02:24] * jenniferaslan has joined #silverstripe
928: [21:34:02] * sumerdai has joined #silverstripe
929: [21:34:30] <sumerdai> hello all. Anyone got time for a question?
930: [21:37:24] <Zauberfisch> sumerdai: perhaps
931: [21:37:27] <sumerdai> Having a strange issue with the CMS where it is showing html characters
932: [21:37:43] <sumerdai> goes away when I flush the page, but comes back every time
933: [21:37:59] <Zauberfisch> that really depends on the question, and how much you flatter us
934: [21:38:07] <sumerdai> lots of \n and \t
935: [21:38:25] <sumerdai> Oh mighty Zauberfisch....
936: [21:38:50] <Zauberfisch> very good :D
937: [21:38:58] <Zauberfisch> hmmm
938: [21:39:07] <Zauberfisch> where are those \n and \t?
939: [21:39:13] <Zauberfisch> in the text editor?
940: [21:39:21] <Zauberfisch> or just random anywhere?
941: [21:39:25] <sumerdai> Actually, I don't even have to flush - a simple refresh fixes it too
942: [21:39:38] <Zauberfisch> I think I do remember that bug in an older version of a couple of weeks ago
943: [21:39:49] <Zauberfisch> something with the json ajax message stuff
944: [21:39:55] <sumerdai> I can see the left menu, but all the content on the right is not rendered
945: [21:39:57] <Zauberfisch> could you update your silverstripe?
946: [21:40:05] <Zauberfisch> perhaps a simple update to the latest version might fix it
947: [21:40:22] <Zauberfisch> ah, yes, I remember that bug. but I think it has been fixed already
948: [21:40:26] <sumerdai> I am on 3.1.5
949: [21:40:56] <Zauberfisch> oh, wait, that is the latest release, isn't it?
950: [21:40:57] <Zauberfisch> hmmm
951: [21:41:07] <sumerdai> Yep, just finished upgrading
952: [21:41:46] <Zauberfisch> mind trying latest dev?
953: [21:42:24] <Zauberfisch> are you using composer?
954: [21:42:30] <Zauberfisch> then just use dev-master
955: [21:42:44] <Zauberfisch> or simply download it from github if you don't use composer
956: [21:43:18] <sumerdai> It seems to be patform specific - doesn't happen in the development site, only when I go live....
957: [21:44:12] <Zauberfisch> oh
958: [21:44:13] <Zauberfisch> hmm
959: [21:44:35] <Zauberfisch> I haven't really debuged the issue, for me it just went away
960: [21:44:41] <Zauberfisch> probably due to an upgrade
961: [21:44:48] * guci0 quit (Ping timeout: 240 seconds)
962: [21:44:52] <Zauberfisch> I mean update
963: [21:44:54] <Zauberfisch> of silverstripe
964: [21:45:03] <Zauberfisch> sumerdai: whats your live environment?
965: [21:45:24] <Zauberfisch> what happens if you put the live site into dev mode?
966: [21:45:27] <Zauberfisch> does that fix the problem?
967: [21:45:39] <sumerdai> wamp - let me check versions
968: [21:46:45] <sumerdai> putting into dev now...
969: [21:48:14] <sumerdai> no effect
970: [21:49:52] * joelpittet quit (Remote host closed the connection)
971: [21:50:19] <Zauberfisch> wait what?
972: [21:50:27] <Zauberfisch> wamp as live env?
973: [21:50:41] <sumerdai> no, dev, soory.
974: [21:51:30] <sumerdai> live is running php 5.4.28
975: [21:53:17] <sumerdai> sorry, 5.3.28
976: [21:53:30] <Zauberfisch> so and on dev its working, but not on live, right?
977: [21:53:52] <sumerdai> yes
978: [21:54:25] <Zauberfisch> have you tried to put the live site into dev mode yet?
979: [21:54:38] <sumerdai> yes, it had no effect
980: [21:54:43] * scpi quit (Quit: scpi)
981: [21:57:39] <Zauberfisch> what browser are you using?
982: [21:58:19] <sumerdai> chrome
983: [22:00:26] <Zauberfisch> hmm, tried it in firefox?
984: [22:00:54] <sumerdai> trying now
985: [22:02:24] * joelpittet has joined #silverstripe
986: [22:03:16] <sumerdai> same in firefox and ie.
987: [22:03:45] <sumerdai> The pages tab loads correctly the first time, but after that any tab (including Pages) just gives html until refreshed
988: [22:04:54] <sumerdai> same bahavior in Safari too
989: [22:18:12] <Zauberfisch> sumerdai: hmmm
990: [22:18:22] <Zauberfisch> anything special about your server?
991: [22:18:26] <Zauberfisch> that could cause it?
992: [22:18:28] <sumerdai> yeah, I know.
993: [22:18:48] <Zauberfisch> also, inspect the ajax response, are there leading whitespaces in the response?
994: [22:18:51] <Zauberfisch> that could be the reason
995: [22:18:51] <sumerdai> I don't think so, but I 'm not sure
996: [22:19:08] <sumerdai> ajax response?
997: [22:19:14] <Zauberfisch> if there are leading whitespace, before the json starts, then json.parse in javascript might fail
998: [22:19:29] <sumerdai> where do i look?
999: [22:19:56] <Zauberfisch> you know how to inspect network requests in your browser?
1000: [22:20:29] <Zauberfisch> using what ever developement tool you like best (firebug for firefox, chrome developer tools, what ever weird thing they have in safari, ...)
1001: [22:22:01] <sumerdai> okay, I can see lib.js under Network in chrome dev tools
1002: [22:23:46] <sumerdai> looks like it is referencing framework/thirdparty/jquery/jquery.js, does that sound right?
1003: [22:24:53] <Zauberfisch> uhm
1004: [22:24:56] <Zauberfisch> idk
1005: [22:25:03] <Zauberfisch> but its not really what we are looking for
1006: [22:25:20] <Zauberfisch> what you should inspect are the ajax request the cms does when it reloads a part of the page
1007: [22:25:29] <Zauberfisch> so that request that contains the content that is renderd wrongly
1008: [22:25:44] <Zauberfisch> open the developer console and keep it open
1009: [22:25:58] <sumerdai> open
1010: [22:25:59] <Zauberfisch> then go to the cms, and navigate around until you hit that error
1011: [22:26:26] <Zauberfisch> when the error ouccured, go to the console, and find the http request that has the content in it
1012: [22:29:41] <sumerdai> http://www.phillysflashbacks.com/%22admin//security//memberimport/%22
1013: [22:39:02] * joelpittet quit (Remote host closed the connection)
1014: [22:55:12] * Stomach quit (Quit: Leaving)
1015: [23:03:28] <Zauberfisch> sumerdai: sorry, was afk
1016: [23:03:33] <Zauberfisch> the link is 404
1017: [23:04:09] <sumerdai> that page doesn't exist, as far as I knoe
1018: [23:04:13] <sumerdai> *know
1019: [23:04:45] <Zauberfisch> ah, so it was not intended for me to visit
1020: [23:04:49] <Zauberfisch> I see
1021: [23:04:57] <Zauberfisch> so, have you found the request?
1022: [23:05:02] <sumerdai> no, that was just the only error I can see....
1023: [23:05:21] <Zauberfisch> Oo
1024: [23:06:27] <sumerdai> yeah. no errors anywhere
1025: [23:06:46] <Zauberfisch> not looking for an error though
1026: [23:06:50] <Zauberfisch> just for the http request
1027: [23:06:53] <Zauberfisch> that returns the content
1028: [23:08:56] <sumerdai> I really am trying to find it -
1029: [23:09:15] <Zauberfisch> I'll make you a screenshot
1030: [23:09:25] <sumerdai> thanks!
1031: [23:09:26] <Zauberfisch> just takes a minute for the vm to boot
1032: [23:09:33] * Kingy[a] is now known as Kingy
1033: [23:13:14] <sumerdai> i think I found it - there is a lot of information here
1034: [23:14:13] <sumerdai> but it lloks like 6 lines of white space before {"Content":"<div....
1035: [23:14:51] <sumerdai> Zauberfisch:does tht sound right?
1036: [23:15:59] <Zauberfisch> sumerdai:
1037: [23:15:59] <Zauberfisch> yes
1038: [23:16:01] * UncleCheese has joined #silverstripe
1039: [23:16:01] <Zauberfisch> thats it
1040: [23:16:06] <sumerdai> yay!
1041: [23:16:08] <Zauberfisch> http://mars.zauberfisch.at/share/tmp/2.png
1042: [23:16:16] <Zauberfisch> see thats a screenshot of my system
1043: [23:16:21] <Zauberfisch> no whitespaces in front
1044: [23:16:26] <Zauberfisch> if you have some there, that probably is the problem
1045: [23:16:43] <Zauberfisch> the most likely cause of this problem are leading or training white spaces in your php files
1046: [23:16:46] <sumerdai> mine starts on line 7...
1047: [23:16:49] <Zauberfisch> eg if you have a file like this:
1048: [23:16:53] <Zauberfisch> <?php
1049: [23:16:59] <Zauberfisch> whitespaces before <?php
1050: [23:17:04] <Zauberfisch> or whitespaces after a ?>
1051: [23:17:12] <sumerdai> I have checked all of my php file for leading, but not for trailing...
1052: [23:17:38] <Zauberfisch> in general, it is good advise not to use ?> at all in php only files
1053: [23:17:47] <Zauberfisch> the ?> at the end of a php file is optional
1054: [23:17:52] * joelpittet has joined #silverstripe
1055: [23:18:23] <Zauberfisch> so it is best practise to just obmit them
1056: [23:18:27] <sumerdai> ok - removing ?>
1057: [23:21:29] <sumerdai> Zauberfisch: You are SOOO Amazing!!! Thank you!!!
1058: [23:21:37] * simon_w|air has joined #silverstripe
1059: [23:21:41] <sumerdai> It was a trailing white apace
1060: [23:24:46] <Zauberfisch> (:
1061: [23:24:49] <Zauberfisch> you are welcome
1062: [23:26:38] * Stomach has joined #silverstripe
1063: [23:29:10] * joelpittet quit (Remote host closed the connection)
1064: [23:40:39] * sumerdai quit (Quit: Page closed)
1065: [23:46:55] * jenniferaslan quit (Quit: jenniferaslan has left the room)
1066: [23:50:42] <simon_w|air> https://pbs.twimg.com/media/BpZzXtICMAA9iVX.png
1067: [23:53:23] * gelignite quit (Quit: http://bit.ly/nkczDT)
1068: [23:53:48] <Zauberfisch> haha
1069: [23:53:48] * muskie9 has joined #silverstripe
1070: [23:54:03] * Stomach quit (Read error: Connection reset by peer)
1071: [23:58:19] * simon_w|air quit (Read error: Connection reset by peer)

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