#silverstripe IRC Log

IRC log for 23 November 2016

All timestamps are in UTC.

1: [00:00:43] <zippy> In your form, turn off the security token and see how you dgo
2: [00:04:53] * darjusit quit (Quit: Leaving)
3: [00:05:28] <Navid> I turned it off and sent the only required parameters and it didn't work then... But when I switched off the custumized template and draw form with the default template then it is working fine....
4: [00:06:08] <Navid> Can anyone help in this regard....?
5: [00:20:43] * agent44 quit (Quit: zzz)
6: [00:23:43] * Stomach quit (Quit: zzz)
7: [00:24:33] * Stomach has joined #silverstripe
8: [00:40:48] <zippy> !paste Navid
9: [00:40:49] <ss-helper> Navid: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
10: [00:44:47] <Navid> zippy: kindly have a look on the code at http://www.sspaste.com/paste/show/5834e65f9c226
11: [00:48:30] <Navid> zippy: I have added the jQuery code as well http://www.sspaste.com/paste/show/5834e7396fd60 kindly check this updated one...
12: [00:50:54] <zippy> sorry, on a skype call now
13: [00:57:43] <Navid> zippy: that's fine... I am just struggling to see why it is doing this since couple of hours and didn't find any solution :(
14: [01:02:38] * helenclarko has joined #silverstripe
15: [01:05:39] <DanaeNZ> Navid: use console.log() to see what kind of data is being sent through
16: [01:06:02] <DanaeNZ> Navid: Use the Network tab of your developer tools to see what data is being passed where and what is being returned
17: [01:06:23] <DanaeNZ> Navid: Check that the formAction, formMethod, etc is all what you expect it to be
18: [01:07:12] <DanaeNZ> Navid: also, it will need to pass the Action through as well I think. Gather all that up and compare it to what your non-ajax form was submitting
19: [01:14:12] <Nightjar> FormAction is probably missing Navid. You didn't click the button, thus it doesn't have a value. See the note at http://api.jquery.com/serialize/
20: [01:17:36] * Stomach quit (Quit: zzz)
21: [01:18:22] * Stomach has joined #silverstripe
22: [01:21:32] <Navid> Nightjar/DanaeNZ: Both requests are ajax... the only difference that how I am rendering the form....
23: [01:22:12] <Navid> FormAction is assigning to var formAction = form.prop('action'); in both cases....
24: [01:22:16] <Nightjar> Then compare your requests.
25: [01:28:34] * Stomach quit (Quit: zzz)
26: [01:29:21] * Stomach has joined #silverstripe
27: [01:30:12] <zippy> There is no Form_ContactForm_error element on your page to populate the message into
28: [01:30:44] <zippy> In you sendRegisterForUpdatesForm method, do a check for ajax and return something if ok otherwise redirect
29: [01:31:15] <zippy> You might want to add a class, or have a wrapper around the form - that way you wont get into issues with the form ID changing
30: [01:31:24] <zippy> (use that for your jquery binding)
31: [01:31:58] * DanaeNZ quit (Remote host closed the connection)
32: [01:32:31] * DanaeNZ has joined #silverstripe
33: [01:32:55] <zippy> use that serialize method for your data Navid - don't try and cobble it goether yourself unless you really only need specific items
34: [01:33:19] <zippy> Navid: ^
35: [01:34:24] <Navid> zippy: I used the serialize method before sending data manually to check if I am missing something but didn't find anything different apart from the following i.e.
36: [01:34:42] <zippy> then use it instead of all that other code
37: [01:35:02] <Navid> Use the following to see the image of page with default Form.ss template i.e. http://pasteboard.co/1cTtHViUO.png and this is working fine...
38: [01:36:01] <Navid> This is the page image where I am using the custom form rendering template i.e. http://pasteboard.co/1cXd4bdzg.png
39: [01:37:00] <Navid> I have highlighted the image with red rectangle at the bottom to show the difference.... I don't understand why the Form Data is changed to Request Payload string
40: [01:37:00] * DanaeNZ quit (Ping timeout: 260 seconds)
41: [01:38:44] <Navid> zippy: thanks for the suggestion about form wrapping... Right now I am just trying to make the form working and then I will do the frontend css and html stuff.. :p
42: [01:41:00] * DanaeNZ has joined #silverstripe
43: [01:41:35] * micmania1 quit (Quit: micmania1)
44: [01:41:57] <zippy> Navid: wrapping it might help make the form work because if the id changes then you are still good
45: [01:44:24] <Navid> Thank you very much all, I think I found the issue with the <form> tag where two enctype attributes were creating in the customized template.... which was causing issue....
46: [01:45:20] <Navid> zippy: wrapping means I wrap the form in the <div id="someID"> tag and then use that div to find the formID... Kindly correct me if I wrongly understand it...
47: [01:45:46] <zippy> <div id="something"> do your form stuff here </div>
48: [01:45:49] <zippy> in your javascirpt file
49: [01:45:56] <zippy> $('#something form')....
50: [01:46:16] <zippy> that would bind you to all forms inside #something
51: [01:46:27] <zippy> and you are just going to put the 1 in there.
52: [01:46:51] <Navid> yup, sure.... I got it :) thanks for everyone.... I learnt a lot by this error :P
53: [01:50:56] * Azure|dc is now known as Azure
54: [01:55:37] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
55: [02:05:27] * muskie9 has joined #silverstripe
56: [02:05:32] * muskie9 quit (Client Quit)
57: [02:05:44] * muskie9 has joined #silverstripe
58: [02:14:54] * UncleCheese has joined #silverstripe
59: [02:15:14] * micmania1 has joined #silverstripe
60: [02:17:55] <muskie9> UncleCheese, haven't been able to dig in yet, but is your new dropdown fiield (https://github.com/unclecheese/silverstripe-bootstrap-forms/blob/master/code/BootstrapDropdownField.php) implementing this(https://github.com/silviomoreto/bootstrap-select)
61: [02:18:15] <UncleCheese> i have a new dropdownfield?
62: [02:18:27] <muskie9> ish?
63: [02:18:40] <muskie9> https://github.com/unclecheese/silverstripe-bootstrap-forms/tree/1.1.11/code/BootstrapDropdownField.php
64: [02:19:16] <UncleCheese> pj
65: [02:19:17] <UncleCheese> oh
66: [02:19:19] <UncleCheese> definitely not
67: [02:19:25] <UncleCheese> i think it's just like.. chosen or something
68: [02:20:13] <UncleCheese> oh maybe not
69: [02:20:22] <muskie9> gotcha, we ran into a classname conflict from .11 to .12, worked through it but was wondering if we needed our stuff anymore
70: [02:20:26] <UncleCheese> i actually have no idea what that is
71: [02:20:31] <muskie9> lol
72: [02:20:39] <UncleCheese> yeah, lol, not mine :https://github.com/unclecheese/silverstripe-bootstrap-forms/blame/master/code/BootstrapDropdownField.php
73: [02:21:00] <UncleCheese> dont' look at me.. i just push "merge" :)
74: [02:21:07] <muskie9> lolz
75: [02:21:16] <muskie9> we rolled this a while back: https://github.com/dynamic/silverstripe-bootstrap-select
76: [02:21:34] <UncleCheese> and we've come full circle.. to answer your original question, apparently YES.
77: [02:21:36] <muskie9> ran into a the classname conflict suddenly, updated our classname
78: [02:21:41] <UncleCheese> https://github.com/unclecheese/silverstripe-bootstrap-forms/blame/master/code/BootstrapDropdownField.php#L21
79: [02:21:42] <muskie9> lol
80: [02:22:44] <muskie9> maybe I'll compare and contrast and see if there's anything we implemented that's not there, otherwise it's one less requirement lol
81: [02:34:19] <Firesphere> Just use namespaces :D
82: [02:34:54] <muskie9> Firesphere do you have a namespace example for 3.x? banging my head against the wall...
83: [02:35:02] * muskie9 still new to namespaces...
84: [02:35:15] * muskie9 loathing in self pitty
85: [02:37:01] <Firesphere> Ehm, yeah, you can just namespace your things.
86: [02:37:14] <Firesphere> I have entirely namespaced my YubiAuth module.
87: [02:37:19] <Snowman23> next you'll be telling us not to use globals or singletons!
88: [02:37:34] <Firesphere> https://github.com/Firesphere/silverstripe-yubiauth
89: [02:37:44] <muskie9> did that on a project... ran into an issue with the hosting... ... ...
90: [02:37:59] <Firesphere> muskie9: Learn namespacing
91: [02:38:06] <Firesphere> Yeah, th ePHP version needs to support it.
92: [02:38:33] <muskie9> I've used namespacing before... and did essentially what I'm seeing in your repo, but the host...
93: [02:40:21] <muskie9> I'll give it another go... need to anyways with 4
94: [02:40:39] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
95: [02:42:02] * micmania1 quit (Quit: micmania1)
96: [02:44:34] * Stomach quit (Quit: zzz)
97: [02:45:20] * Stomach has joined #silverstripe
98: [02:51:48] * willr has joined #silverstripe
99: [02:55:54] * Stomach quit (Quit: zzz)
100: [02:56:38] * Stomach has joined #silverstripe
101: [02:59:58] * micmania1 has joined #silverstripe
102: [03:00:13] <Nightjar> o/ willr :)
103: [03:00:40] * willr waves
104: [03:01:37] <Firesphere> \o willr
105: [03:02:31] <willr> Howdey team, hows things
106: [03:03:10] <Nightjar> Keeping on keeping on. Y'know how it is :>
107: [03:03:31] <Firesphere> Primarily revolves around "not dying"
108: [03:06:51] * Stomach quit (Quit: zzz)
109: [03:07:22] * bubaphex has joined #silverstripe
110: [03:07:35] * Stomach has joined #silverstripe
111: [03:07:41] * bubaphex quit (Client Quit)
112: [03:07:51] * bubaphex has joined #silverstripe
113: [03:18:30] <willr> morbid.
114: [03:19:02] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
115: [03:22:41] * Stomach quit (Quit: bye)
116: [03:27:51] <Navid> Quick Question: When I have changed the content of Template/Page.ss file as per our required layout then I am unable to login to the /admin url and it is displaying the same frontend site.... Any quick suggestion...
117: [03:32:36] * micmania1 quit (Quit: micmania1)
118: [03:38:01] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
119: [03:38:39] * micmania1 has joined #silverstripe
120: [03:45:54] <DanaeNZ> what do mean "not dying"
121: [03:45:58] <DanaeNZ> it's fucking hot today
122: [03:49:17] * Admonish quit (Ping timeout: 244 seconds)
123: [03:50:07] <spronk> v
124: [04:00:21] <Nightjar> DanaeNZ, in an urfkwake
125: [04:00:42] <DanaeNZ> good idea
126: [04:03:44] * DanaeNZ quit (Quit: TIME TO FEED)
127: [04:03:44] * Navid quit (Ping timeout: 260 seconds)
128: [04:04:20] <Nightjar> nav... haha bl2u
129: [04:04:20] <Nightjar> Never forget to $Form
130: [04:04:20] <Nightjar> I guess I'll tell you tomorrow
131: [04:05:07] * shlinx has joined #silverstripe
132: [04:05:07] <ss-helper> shlinx: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
133: [04:05:20] * ccburns has joined #silverstripe
134: [04:06:17] <ccburns> Hey willr wondering if you have any tricks for adding a userform into an element in the elemental module. When I use the UserForm element nothing displays
135: [04:06:38] * shlinx_ has joined #silverstripe
136: [04:06:38] <ss-helper> shlinx_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
137: [04:06:56] <willr> ccburns, the form element in Elemental links to another page’s form
138: [04:07:28] <willr> So you’ve got a userdefinedform page setup and point the form element to that page?
139: [04:07:59] <ccburns> Yep - i have it working on one of the sites but on another site I create the form, and then include it via the element (it’s in a dropdown) but it doesn’t show up
140: [04:08:05] <ccburns> yep
141: [04:08:51] <ccburns> I have hidden the UserDefinedFormPage so it doesn’t show up in the menu, could that be it?
142: [04:09:12] <willr> possible, easy to check :) might also need to be published
143: [04:09:34] <ccburns> yep doing that now
144: [04:10:08] <ccburns> nope unfortunately still not displaying
145: [04:10:09] <willr> Next step would be to put some debugging into https://github.com/dnadesign/silverstripe-elemental/blob/master/code/models/ElementUserDefinedForm.php#L17 and see why $this->Form() doesn’t exist
146: [04:10:30] <ccburns> ok - thanks for the suggestion I’ll go have a play with that
147: [04:11:00] <willr> And check what version you’re running. Just saw https://github.com/dnadesign/silverstripe-elemental/commit/65328ab1c5c44dd9853c7df684966d427d3f15f5
148: [04:11:11] * shlinx_ quit (Ping timeout: 260 seconds)
149: [04:15:10] * shlinx has left #silverstripe
150: [04:29:17] * janneklouman-- has joined #silverstripe
151: [04:29:21] <Nightjar> g'nite
152: [04:29:25] * Nightjar quit (Quit: Leaving)
153: [04:29:26] <spronk> BAHI
154: [04:32:13] <ccburns> willr: and I worked out that issue before you sent the link, I’ll make sure I update
155: [04:34:02] * janneklouman-- quit (Ping timeout: 252 seconds)
156: [04:34:50] * Admonish has joined #silverstripe
157: [04:35:21] <helenclarko> Hey all
158: [04:35:54] <helenclarko> Can anyone help me with cloud assets for S3
159: [04:38:35] * bubaphex quit (Quit: bubaphex)
160: [04:52:17] * Admonish quit (Ping timeout: 240 seconds)
161: [05:01:59] * micmania1 quit (Quit: micmania1)
162: [05:14:00] * ccburns has left #silverstripe
163: [05:45:09] <ss-helper> Dynamic sort options for silvershop - http://stackoverflow.com/questions/40756802/dynamic-sort-options-for-silvershop
164: [05:57:01] * spronk quit (Quit: I may need a longer sleep timer...)
165: [06:22:30] * willr quit (Quit: willr)
166: [06:30:33] * UncleCheese has joined #silverstripe
167: [06:34:44] * Phlunk3 quit (Ping timeout: 260 seconds)
168: [06:35:13] * Phlunk3 has joined #silverstripe
169: [06:45:10] <ss-helper> Silverstripe 3.4 load content via ajax / Schortcode issue - http://stackoverflow.com/questions/40757522/silverstripe-3-4-load-content-via-ajax-schortcode-issue
170: [06:51:14] * helenclarko quit (Ping timeout: 268 seconds)
171: [06:56:28] * janneklouman-- has joined #silverstripe
172: [07:00:50] * wmk has joined #silverstripe
173: [07:01:26] * janneklouman-- quit (Ping timeout: 256 seconds)
174: [07:07:08] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
175: [07:09:01] * zippy has joined #silverstripe
176: [07:14:00] * Shrike_Finland has joined #silverstripe
177: [07:15:11] <ss-helper> Dynamic sort options for SilverShop Module - http://stackoverflow.com/questions/40756802/dynamic-sort-options-for-silvershop-module
178: [07:20:15] <Firesphere> Hey folks, if you're here, a little help? https://twitter.com/Firesphere/status/801321331119812608
179: [07:22:13] * Phlunk3 quit (Ping timeout: 248 seconds)
180: [07:27:05] * bubaphex has joined #silverstripe
181: [07:33:31] <wmk> Firesphere, wassup?
182: [07:34:02] <wmk> oh, no idea... MFA = multi factor authentication?
183: [07:38:23] * Phlunk3 has joined #silverstripe
184: [07:43:05] <Firesphere> Yep
185: [07:46:31] * pweh has joined #silverstripe
186: [07:50:56] <Firesphere> As for my YubiAuth module, how to approach it, to make it best user-friendly as possible
187: [07:52:11] <wmk> yup. No idea on that as i never used it yet.
188: [08:00:01] <Firesphere> You should. You absolutely should use MFA
189: [08:01:04] <Firesphere> https://www.silverstripe.org/blog/two-factor-authentication-too-far/
190: [08:16:36] * Azure quit (Ping timeout: 250 seconds)
191: [08:19:39] * Azure has joined #silverstripe
192: [08:21:41] * UncleCheese has joined #silverstripe
193: [08:24:31] <Firesphere> \o UncleCheese
194: [08:24:37] <UncleCheese> hi
195: [08:25:44] * pweh quit (Ping timeout: 260 seconds)
196: [08:26:31] * janneklouman-- has joined #silverstripe
197: [08:31:45] <wmk> Firesphere, ok, but what services offer 2fa?
198: [08:31:58] <Firesphere> A lot of security improvement?
199: [08:32:09] <wmk> yes, i got this.
200: [08:32:23] <wmk> i meant what services like yubikey
201: [08:35:13] <wmk> or what "plugins" are there / will be there / will be possible for 2fa?
202: [08:39:12] <Firesphere> There are other methods besides YubiKey
203: [08:39:17] <Firesphere> But I would suggest Yubi
204: [08:39:29] <Firesphere> As it works on Google, Facebook, GitHub, LastPass, etc.
205: [08:39:59] <Firesphere> (Plus, yubico gives discount for github members currently ;) )
206: [08:40:10] * janneklouman-- quit (Ping timeout: 244 seconds)
207: [09:01:14] * bubaphex quit (Quit: bubaphex)
208: [09:06:02] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
209: [09:06:02] * NETim has joined #silverstripe
210: [09:06:08] * kinglozzer has joined #silverstripe
211: [09:11:57] * Shrike_Finland1 has joined #silverstripe
212: [09:13:12] * Shrike_Finland quit (Ping timeout: 250 seconds)
213: [09:21:27] * janneklouman-- has joined #silverstripe
214: [09:25:51] * janneklouman-- quit (Ping timeout: 246 seconds)
215: [09:26:23] * pweh has joined #silverstripe
216: [09:27:31] * janneklouman-- has joined #silverstripe
217: [09:44:05] * NETim quit (Ping timeout: 248 seconds)
218: [09:44:38] * NETim has joined #silverstripe
219: [09:48:00] * Shrike_Finland1 quit (Quit: Leaving.)
220: [09:48:19] * Shrike_Finland has joined #silverstripe
221: [09:57:20] * agent44 has joined #silverstripe
222: [10:03:37] * henkpoley has joined #silverstripe
223: [10:45:49] * DimiStripe quit (Quit: DimiStripe)
224: [10:46:32] * Shrike_Finland quit (Quit: Leaving.)
225: [10:53:45] * Shrike_Finland has joined #silverstripe
226: [11:01:36] <slievr> is there a way to give a formfield actions that I can hook into with an ajax request?
227: [11:02:06] <wmk> slievr, theoretically, yes
228: [11:02:28] <wmk> e.g. QuickAddNew adds a button to a dropdown which does something
229: [11:02:44] <wmk> or tagfield fires an ajax request
230: [11:04:21] <slievr> Thanks, I should be able to get what I need from seeing how tagfield does it
231: [11:14:48] <wmk> WHAT...? after running dev/build/flush i get "SilverStripe Framework requires a $databaseConfig defined." locally
232: [11:20:12] <wmk> hmm... nfs issue it seems
233: [11:34:09] * BackEndCoder has joined #silverstripe
234: [11:45:23] <ss-helper> Error Deleting Data from Database - https://groups.google.com/d/msg/silverstripe-dev/szQhsfLcVwI/nlbiXQWwBwAJ
235: [12:03:09] * r3v3rb has joined #silverstripe
236: [12:03:15] <r3v3rb> hullo
237: [12:16:38] <NETim> Morning. Is there a way to check for/get an existing tabset in updateCMSFields?
238: [12:16:45] <r3v3rb> any ideas, loading a dataobject in the CMS will fall over with and an error "Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/" but hitting refresh on the then 'current' url from the request loads but doesn't pass the data through from the original request?
239: [12:21:17] <kinglozzer> r3v3rb: That "synchronous" thing isn't an error, just a notice
240: [12:21:26] <kinglozzer> I get it all the time in the CMS, you can just ignore it
241: [12:21:38] <r3v3rb> okay, but the dataobject fails to load
242: [12:22:09] <kinglozzer> Is this ModelAdmin or GridField or something else?
243: [12:22:14] <kinglozzer> Anything custom?
244: [12:22:20] <r3v3rb> very odd, could it be down to something firing to soon in entwine?
245: [12:22:28] <r3v3rb> custom field,
246: [12:23:57] <kinglozzer> r3v3rb: What are you trying to load, the DataObject edit view?
247: [12:24:04] <kinglozzer> Or load info from the DataObject into your field?
248: [12:24:27] <r3v3rb> dataobject junk into a very large field ;)
249: [12:24:50] <r3v3rb> with a 1500 line custom entwine script ;)
250: [12:25:11] <r3v3rb> heh
251: [12:25:13] <kinglozzer> That sounds like something out of my nightmares
252: [12:25:15] <kinglozzer> :P
253: [12:25:31] <r3v3rb> it's a big app now :)
254: [12:26:04] <r3v3rb> setting up a visual drag and drop layering panel - 99% works
255: [12:26:27] * helenclarko has joined #silverstripe
256: [12:27:06] <r3v3rb> kinglozzer, it's that project again... World Vision needed some changes to the layout manager and this is the last part
257: [12:27:06] <kinglozzer> So you've got an empty field, user clicks a button or something and data from a DataObject is loaded into it via Ajax?
258: [12:28:14] <r3v3rb> not quite, I have a template page (dataobject) that contains a field which is actually a complete rewrite of the ModelAdmin leftandmain UI
259: [12:30:24] <ss-helper> Re: [silverstripe-dev] Error Deleting Data from Database - https://groups.google.com/d/msg/silverstripe-dev/szQhsfLcVwI/M40WwWayBwAJ
260: [12:32:32] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
261: [12:32:58] <kinglozzer> r3v3rb: "hitting refresh on the then 'current' url from the request loads but doesn't pass the data through from the original request" - the user is redirected to a different page when they click/do whatever?
262: [12:33:36] <r3v3rb> they are sent to the dataobject's edit link yes
263: [12:34:13] <r3v3rb> which builds the UI using canvas and lots of entwine JS to handle the functionality between UI elements and the canvas object
264: [12:34:34] <kinglozzer> r3v3rb: Okay, "but doesn't pass the data through from the original request" - what's missing?
265: [12:35:19] <r3v3rb> the items from the data-pos data-base etc etc that are sent as attributes on a hidden form field
266: [12:35:21] <r3v3rb> very odd
267: [12:35:47] <kinglozzer> So you're sending a POST request?
268: [12:39:42] <r3v3rb> I'm sending a click on a Gridfield element to edit that item...
269: [12:40:19] <r3v3rb> so a POST via ajax I guess
270: [12:40:26] <r3v3rb> then just a get using the URL
271: [12:40:30] <kinglozzer> So how will data-pos data-base be sent?
272: [12:40:34] <r3v3rb> when refreshing
273: [12:41:03] <r3v3rb> in the original request they are added to a hiddenfield, then the get loses that field I guess?
274: [12:41:18] <kinglozzer> If it's just core GridField, clicking an item to edit it won't send any data along with it as it's a GET request
275: [12:41:27] <kinglozzer> ^^
276: [12:42:35] <kinglozzer> Can you pass the data through to the edit form using the old ->setItemEditFormCallback() trick?
277: [12:43:17] <r3v3rb> hmm, maybe I'm missing the point of error then...
278: [12:43:57] <kinglozzer> r3v3rb: Wait if it's failing to load the DataObject edit view completely, there must be something custom going on?
279: [12:44:03] * pweh quit (Read error: Connection reset by peer)
280: [12:44:12] <kinglozzer> Because GridField works :D
281: [12:44:17] <r3v3rb> exactly
282: [12:44:29] <kinglozzer> No errors in logs?
283: [12:44:33] <r3v3rb> none
284: [12:44:40] <kinglozzer> Apache logs, not console?
285: [12:44:41] <kinglozzer> :/
286: [12:45:12] * cupcake has joined #silverstripe
287: [12:45:19] <r3v3rb> i lie!
288: [12:46:19] <r3v3rb> actually I double lie, the first lie not being a lie or is it
289: [12:46:57] <kinglozzer> r3v3rb: If it's just a regular GridField / DataObject, and you need to pass data through from the "parent" to the child - I'd use the ->setItemEditFormCallback() thing to do that
290: [12:47:19] <kinglozzer> That might hopefully get it working when you do the hard refresh, then you just need to work out what's breaking the ajax loading :P
291: [12:48:43] <kinglozzer> Right gotta head out for lunch, bbiab
292: [13:10:06] <cupcake> the best way to change a string to HTMLText
293: [13:10:25] <cupcake> is by creating an HTMLText object and using the setValue function to set the string?
294: [13:12:19] <cupcake> kinglozzer wmk
295: [13:25:14] * UndefinedOffset has joined #silverstripe
296: [13:27:00] <wmk> cupcake, ?
297: [13:27:14] <wmk> seems so...
298: [13:27:22] <wmk> Did you get the shortcode stuff running yesterday?
299: [13:30:06] <cupcake> not really just added value as param to make it short
300: [13:30:18] <ss-helper> Silverstripe 3.4 load content via ajax / Shortcode issue - http://stackoverflow.com/questions/40757522/silverstripe-3-4-load-content-via-ajax-shortcode-issue
301: [13:30:54] * MattyBalaam has joined #silverstripe
302: [13:31:07] <MattyBalaam> Every time I try to look at SS4, I seem to get an error
303: [13:31:15] <MattyBalaam> 23-Nov-2016 13:28:59 Europe/London] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class ErrorHandler does not exist' in C:\MAMP\htdocs\future-ss4\newera-corp-site\framework\src\Core\Injector\InjectionCreator.php:13
304: [13:31:43] <MattyBalaam> I'm using MAMP for windows. PHP version 5.6.13
305: [13:31:50] * r3v3rb quit (Ping timeout: 265 seconds)
306: [13:32:18] <MattyBalaam> Any ideas?
307: [13:34:13] <wmk> namespacing?
308: [13:34:43] <cupcake> close ure eyes it will work :)
309: [13:34:47] <MattyBalaam> haha
310: [13:36:12] <MattyBalaam> I have to admit I've heard about the new namespacing, but I'm not up to speed - where could I look?
311: [13:39:10] * ss32noob has joined #silverstripe
312: [13:40:33] <wmk> MattyBalaam, look for the class ErrorHandler and check if it's namespaced
313: [13:40:47] <wmk> and of course...
314: [13:40:53] <wmk> !flush MattyBalaam (scnr)
315: [13:40:54] <ss-helper> MattyBalaam: Have you flushed? Try doing a ?flush=all and /dev/build then see if it's sorted. Do it twice for good measure ;-)
316: [13:43:30] <ss32noob> i love the new module of uncle cheese.. https://github.com/unclecheese/silverstripe-green and especially the notes in it
317: [13:44:13] <wmk> a micro-framework... stopped reading
318: [13:45:26] <ss-helper> AW: [silverstripe-dev] Error Deleting Data from Database - https://groups.google.com/d/msg/silverstripe-dev/szQhsfLcVwI/CL3q1g62BwAJ
319: [13:45:33] <MattyBalaam> So it looks for something called MonoLogErrorHandler
320: [13:45:40] <wmk> ss32noob, depends on the usecase, yes
321: [13:45:53] <MattyBalaam> Is that something which needs to be installed?
322: [13:46:46] <wmk> MattyBalaam, dunno, it could be a composer dependency
323: [13:47:34] <MattyBalaam> Yeah on composer update it get's installed
324: [13:50:45] <MattyBalaam> Think I'll give up on this an wait for better docs
325: [13:50:49] * MattyBalaam quit (Quit: Page closed)
326: [14:06:54] * Shrike_Finland quit (Quit: Leaving.)
327: [14:30:23] * DimiStripe has joined #silverstripe
328: [14:31:42] * r3v3rb has joined #silverstripe
329: [14:46:28] <r3v3rb> ooo. i'm back
330: [14:49:21] <slievr> welcome back
331: [14:49:57] <r3v3rb> slievr, howdo
332: [14:50:08] * r3v3rb loving .sortable and canvas
333: [14:50:24] <helenclarko> Hey all
334: [14:50:28] <helenclarko> o/
335: [14:51:25] <helenclarko> Does anyone have an easy solution for compressing pages in the silverstripe cms menu.
336: [14:51:36] <helenclarko> Maybe I should have gone with a gridfield
337: [14:51:52] <helenclarko> I MADE A MISTAKE haha
338: [14:52:03] <kinglozzer> helenclarko: https://github.com/silverstripe/silverstripe-lumberjack/
339: [14:52:20] <kinglozzer> That hides page types from the CMS tree, and moves them into a GridField instead if that helps?
340: [14:52:38] <helenclarko> LEGEND!
341: [14:52:54] <helenclarko> kinglozzer, Thanks again!
342: [14:53:05] <kinglozzer> helenclarko: No problem :P
343: [14:53:36] <helenclarko> haha, the blog module has already installed it for me.
344: [14:53:46] <helenclarko> Okay, time to learn how to use it.
345: [14:54:11] * DarjusIT has joined #silverstripe
346: [14:54:32] <helenclarko> Looks super easy
347: [15:09:35] * trash has joined #silverstripe
348: [15:09:35] <ss-helper> trash: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
349: [15:10:01] <trash> hello all
350: [15:11:03] <trash> I'm developing a system using SS but I have problem to setup error message when form action is executed and there is an error
351: [15:11:54] <trash> after all validations are passes the doSave action of the form will be called
352: [15:12:38] <trash> there is try catch block and if there is an error I want to show the same page and form with and error message
353: [15:13:41] * agent44 quit (Quit: agent44)
354: [15:15:20] <ss-helper> Is it possible to have versioned many_many relations? - http://stackoverflow.com/questions/17896869/is-it-possible-to-have-versioned-many-many-relations
355: [15:15:34] <trash> function doSave($data) { try { $this->doSomething() $this->redirect('/'); } catch(Exception $ex) { $form->addErrorMessage('NoField', 'There was an error checking out your order', 'bad'); $form->loadDataFrom($data); return $this->renderWith(array('Checkout','Page'), $form); } }
356: [15:15:44] * UndefinedOffset quit (Quit: Leaving.)
357: [15:16:24] <kinglozzer> trash: Just return $this->redirectBack() ?
358: [15:17:00] <trash> OK but will this fill all the field with the posted values
359: [15:17:16] <trash> or I will need to do something like
360: [15:17:17] <trash> return Form::create($this, __FUNCTION__, $fields, $actions)->loadDataFrom($_POST);
361: [15:17:23] <trash> in the Form() method
362: [15:19:17] <kinglozzer> trash: Change doSave($data) to doSave($data, $form), then Session::set("FormInfo.{$form->FormName()}.data", $form->getData()); Session::set("FormInfo.{$form->FormName()}.errors", array()); $form->addErrorMessage('NoField', 'There was an error checking out your order', 'bad'); return $this->redirectBack();
363: [15:19:36] <kinglozzer> Those two Session::set() calls should make sure the data re-appears
364: [15:20:06] <helenclarko> OH MY GOD! kinglozzer why have I not used lumberjack before
365: [15:20:10] <helenclarko> This is great!
366: [15:23:26] <trash> kinglozzer: thank you
367: [15:23:30] <trash> it's working this way
368: [15:23:58] <trash> I can see that Form->httpSubmission() is executing Session::set("FormInfo.{$this->FormName()}.data", $data);
369: [15:24:11] <trash> but it should be cleared after this for some reason
370: [15:25:47] * UndefinedOffset has joined #silverstripe
371: [15:26:44] <trash> this is cleared in Form::clearMessage() and Form::resetValidation()
372: [15:26:51] <slievr> helenclarko: something else to have a look at if you like lumberjack: https://github.com/littlegiant/silverstripe-catalogmanager
373: [15:27:32] <trash> the first one is called in Form::forTemplate() and Form::forAjaxTemplate() but they should be executed when I want to render this form
374: [15:27:46] <helenclarko> slievr, Oh thats cool
375: [15:27:58] <trash> I can not find where the second one is called
376: [15:28:12] <trash> so interesting why this session key is cleared
377: [15:28:23] <trash> but I will dig a little bit more later
378: [15:28:25] <trash> thank you
379: [15:28:46] <helenclarko> Is there anyone in here using cloud assets for S3?
380: [15:33:31] * wmk quit (Quit: Leaving)
381: [15:40:23] * muskie9 has joined #silverstripe
382: [15:41:33] <DarjusIT> Hi all
383: [15:41:59] <slievr> o/
384: [15:43:58] <DarjusIT> what difference if I MyPage extends Page save in models/MyPage.php and MyPage_Controller extends Page_Controller in separate files? and if I save in same file?
385: [15:50:07] <slievr> Pretty sure zero, but I could be wrong. I haven't noticed any difference.
386: [15:53:48] * r3v3rb quit (Ping timeout: 260 seconds)
387: [15:57:53] <trash> what was this about that the object will be loaded only if the file name is the same as the class inside?
388: [15:58:22] <trash> if MyPage_Controller is loaded than there should be no difference
389: [16:04:39] <DarjusIT> no difference tested :)
390: [16:06:48] * r3v3rb has joined #silverstripe
391: [16:07:05] <r3v3rb> ugh, sortable is doing my head in! or I am!
392: [16:08:37] <r3v3rb> https://gist.github.com/anonymous/a239e0ce73c617aa8f1c608e72597a32 kinglozzer ;)
393: [16:09:00] <r3v3rb> or anyone else who fancies a challenge
394: [16:10:49] <r3v3rb> the list sorts via drag and drop, but on dropping the item that moves in the canvas is the item that has the id of the item after the sort not the one moved
395: [16:10:50] * agent44 has joined #silverstripe
396: [16:14:41] <kinglozzer> r3v3rb: Hmm, hard to debug from just that :P I assume ui.item is correct?
397: [16:15:16] <kinglozzer> Idk, I'd just console.log all the things and find out which one is wrong :P
398: [16:15:20] <r3v3rb> heh, just making a fiddle
399: [16:16:05] <kinglozzer> r3v3rb: It's not something super simple, like var indexCount = canvas.getObjects().length; instead of .length - 1; ?
400: [16:16:19] <kinglozzer> I dunno if the canvas.moveTo is zero-based or not :P
401: [16:16:34] <r3v3rb> tried but yes its zero based hence the - 1
402: [16:21:19] <DarjusIT> Can some one look why theme not loads on that page, I am changing it in constructor but is seems not working code: http://www.sspaste.com/paste/show/5835c15b5bc41 result: http://pasteboard.co/1s11N1vAR.png
403: [16:22:12] <kinglozzer> DarjusIT: Have you got your theme selected in the "Settings" area of the CMS?
404: [16:22:26] <DarjusIT> no
405: [16:22:42] <DarjusIT> I am making 2 theme projects
406: [16:23:15] <DarjusIT> so on that controller I need to load other theme
407: [16:23:21] <DarjusIT> its like user interface
408: [16:24:27] <kinglozzer> DarjusIT: Okay, well that looks correct. Do you have a DITCrmPage.ss ?
409: [16:24:54] <r3v3rb> kinglozzer, http://jsfiddle.net/u91atnkq/ << crazy batshit layering
410: [16:25:18] <r3v3rb> somehow the canvas grows! after a couple of movements
411: [16:25:53] <DarjusIT> yes in themes/dit_crm/templates/Layout/DITCrmPage.ss
412: [16:25:59] <DarjusIT> kinglozzer,
413: [16:26:27] <kinglozzer> DarjusIT: And you have a themes/dit_cmr/templates/Page.ss too?
414: [16:26:49] <DarjusIT> yes I made Simple theme copy
415: [16:27:03] <DarjusIT> some css difference to see if it works
416: [16:27:23] <r3v3rb> ugh, forgot to update!
417: [16:27:30] <r3v3rb> lol
418: [16:28:12] <kinglozzer> DarjusIT: Try debugging SSViewer::__construct() (around like 890 of SSViewer.php if you're on 3.4), and see which theme it thinks is active
419: [16:28:42] <kinglozzer> r3v3rb: I'm confused, all I get is alert "undefined" :(
420: [16:28:48] <DarjusIT> yes I am on newest SS kinglozzer
421: [16:29:07] <r3v3rb> hold on
422: [16:29:11] <r3v3rb> kinglozzer,
423: [16:38:26] * ss32noob quit (Ping timeout: 260 seconds)
424: [16:39:27] <DarjusIT> kinglozzer, 1 theme shows http://pasteboard.co/1skw93xq1.png and my second http://pasteboard.co/1slQ1YkFa.png :/
425: [16:45:10] * cjsissingh quit (Ping timeout: 252 seconds)
426: [16:45:31] <ss-helper> Re: Error Deleting Data from Database - https://groups.google.com/d/msg/silverstripe-dev/szQhsfLcVwI/kSPUlG_ABwAJ
427: [17:03:02] * DimiStripe quit (Quit: DimiStripe)
428: [17:15:07] * henkpoley quit (Read error: Connection reset by peer)
429: [17:15:32] <ss-helper> Re: [silverstripe-dev] Error Deleting Data from Database - https://groups.google.com/d/msg/silverstripe-dev/szQhsfLcVwI/4Z5Rs-7BBwAJ
430: [17:16:05] * henkpoley has joined #silverstripe
431: [17:22:25] * agent44 quit (Quit: agent44)
432: [17:32:00] * kinglozzer quit ()
433: [17:35:33] * NETim quit (Ping timeout: 248 seconds)
434: [17:36:34] * agent44 has joined #silverstripe
435: [17:53:19] * r3v3rb quit (Ping timeout: 265 seconds)
436: [18:00:29] * UncleCheese has joined #silverstripe
437: [18:03:17] * agent44 quit (Quit: zzz)
438: [18:03:53] <DarjusIT> mission solved in my theme folder name as "_"
439: [18:17:02] * DimiStripe has joined #silverstripe
440: [18:29:40] * willr has joined #silverstripe
441: [18:29:54] * willr quit (Client Quit)
442: [18:48:31] * trash quit (Ping timeout: 260 seconds)
443: [19:09:48] * janneklouman-- quit (Ping timeout: 260 seconds)
444: [19:22:08] * bubaphex has joined #silverstripe
445: [19:51:13] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
446: [19:56:58] * UncleCheese has joined #silverstripe
447: [20:04:59] * trash has joined #silverstripe
448: [20:12:17] * helenclarko quit (Ping timeout: 268 seconds)
449: [20:16:58] * Navid has joined #silverstripe
450: [20:20:14] * zippy has joined #silverstripe
451: [20:23:02] * zippy quit (Client Quit)
452: [20:24:28] * DanaeNZ has joined #silverstripe
453: [20:27:26] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
454: [20:34:43] * micmania1 has joined #silverstripe
455: [20:39:39] * gelignite has joined #silverstripe
456: [20:48:30] * samsam has joined #silverstripe
457: [20:51:17] <samsam> did anyone notice that api.silverstripe.org changed and is showing namespaces?
458: [20:51:34] <samsam> is this a sign of SS 4 almost launching? :)
459: [20:51:57] * micmania1 quit (Quit: micmania1)
460: [20:56:32] * bubaphex quit (Quit: bubaphex)
461: [20:59:13] * micmania1 has joined #silverstripe
462: [21:08:38] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
463: [21:14:41] * bubaphex has joined #silverstripe
464: [21:45:36] * Azure quit (Ping timeout: 260 seconds)
465: [21:56:15] * guar has joined #silverstripe
466: [21:56:15] <ss-helper> guar: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
467: [21:56:59] <guar> search
468: [21:57:07] * bubaphex quit (Quit: bubaphex)
469: [21:57:48] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
470: [21:58:39] * guar quit (Client Quit)
471: [22:04:31] * henkpoley quit (Quit: henkpoley)
472: [22:04:58] * henkpoley has joined #silverstripe
473: [22:05:16] * henkpoley quit (Client Quit)
474: [22:07:02] * bubaphex has joined #silverstripe
475: [22:10:10] * Phlunk3 quit (Remote host closed the connection)
476: [22:11:52] * UncleCheese has joined #silverstripe
477: [22:49:06] * UndefinedOffset quit (Quit: Leaving.)
478: [23:00:01] * ss-helper quit (Remote host closed the connection)
479: [23:00:16] * ss-helper has joined #silverstripe
480: [23:09:55] <Navid> Hi Experts! I am stuck as Email from Silverstripe object is not generating... I checked the emails are generating fromt he command line.... I checked the mailq and it seems it is not generating the Silverstripe page.Any idea to debug it?
481: [23:29:43] * micmania1 quit (Quit: micmania1)
482: [23:32:24] <samsam> EmailField? It's not generating? Is it showing an error or just not appearing?
483: [23:34:53] * Azure has joined #silverstripe
484: [23:45:03] <ss-helper> Re: [silverstripe-dev] Re: Giving a greater Role to Silverstripe Sake - https://groups.google.com/d/msg/silverstripe-dev/p312W8Qh2fM/jawCLqDWBwAJ
485: [23:48:26] <DarjusIT> on fluent then builds it makes Title_locale fields in DB table, and I cannot get it with orm $Page->Title_locale because in Page class i dont have $db with Locale fields?
486: [23:50:17] <samsam> Try $Page->Title without the locale?
487: [23:50:42] <samsam> Fluent should look build AND fetch the right locale automatically
488: [23:50:49] <samsam> -look
489: [23:54:16] * bubaphex quit (Quit: bubaphex)
490: [23:55:56] * bubaphex has joined #silverstripe
491: [23:57:04] <DarjusIT> samsam, I need to show all Titles in every locales
492: [23:57:35] <DarjusIT> I am making edit option that on same form you can edit all Title_locales
493: [23:57:56] <samsam> I see
494: [23:59:27] <samsam> DarjusIT: The page titles are saved to SiteTree objects
495: [23:59:54] <samsam> so the translation columns are also there, eg: Title_de_DE

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