#silverstripe IRC Log

IRC log for 11 May 2016

All timestamps are in UTC.

1: [00:00:02] * ss-helper quit (Remote host closed the connection)
2: [00:00:15] * ss-helper has joined #silverstripe
3: [00:20:49] * zlinux quit (Ping timeout: 260 seconds)
4: [00:22:27] * zlinux has joined #silverstripe
5: [00:23:28] * DarjusIT quit (Read error: Connection reset by peer)
6: [00:35:48] * jghazally has joined #silverstripe
7: [00:39:37] * robbiea has joined #silverstripe
8: [00:40:28] <robbiea> afternoon - how can I set up a custom validator when saving a page, one that can validate that certain widgets exist in a WidgetArea attached to the page?
9: [00:40:41] * micmania1 quit (Quit: micmania1)
10: [00:48:38] * jghazally quit (Quit: jghazally)
11: [00:54:38] * jghazally has joined #silverstripe
12: [00:55:44] * jghazally quit (Client Quit)
13: [01:00:04] <ss-helper> How to group a query and get n th items per group randomly - http://stackoverflow.com/questions/36786500/how-to-group-a-query-and-get-n-th-items-per-group-randomly
14: [01:08:24] * zlinux quit (Ping timeout: 246 seconds)
15: [01:14:56] * spronk quit (Quit: I may need a longer sleep timer...)
16: [01:21:01] * micmania1 has joined #silverstripe
17: [01:23:38] * elgabbu quit (Ping timeout: 250 seconds)
18: [01:25:31] * robbiea quit (Remote host closed the connection)
19: [01:33:51] * zippy has joined #silverstripe
20: [01:34:02] <zippy> New release eh!
21: [01:34:09] <zippy> ss23: topic!
22: [01:36:15] <zippy> boo, the links is broken.. https://docs.silverstripe.org/en/3.3/changelogs/3.3.2
23: [01:37:47] <zippy> Woo, 4.0 alpha any day now..
24: [01:39:12] * micmania1 quit (Quit: micmania1)
25: [01:39:19] * Stomach quit (Quit: zzz)
26: [01:45:35] * Stomach has joined #silverstripe
27: [01:59:04] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
28: [02:01:14] * Stomach quit (Quit: zzz)
29: [02:07:06] * SilentDesigns has joined #silverstripe
30: [02:07:06] <ss-helper> SilentDesigns: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
31: [02:12:36] <SilentDesigns> Any ideas why login page keeps redirecting to itself after submission (SS 2.4?)
32: [02:13:17] <zippy> Your trying to get somewhere you don't belong perhaps
33: [02:14:30] <zippy> cookies, try different browser
34: [02:14:41] <SilentDesigns> No, have verified it is authenticating user:password, tried multiple browsers
35: [02:15:01] <SilentDesigns> Login is not completing and reloading page for some reason
36: [02:15:26] * Stomach has joined #silverstripe
37: [02:16:17] <SilentDesigns> Gives error message 'Please choose authentication method...'
38: [02:16:23] <SilentDesigns> Weird
39: [02:17:11] * spronk has joined #silverstripe
40: [02:19:04] <zippy> sounds like it's time to upgrade to 3.3.2
41: [02:19:09] <zippy> sites already broken soo... :D
42: [02:19:18] <zippy> spronk: o/
43: [02:19:40] <zippy> SilentDesigns: because it's so old, I would dig through the code to see what has triggered that error and and work through it
44: [02:19:52] <zippy> assume tried a different user?
45: [02:20:41] <SilentDesigns> Yes tried all of that, we are debugging/pulling hair out :)
46: [02:20:57] <SilentDesigns> Upgrade is not a possibly as 3rd party site :/
47: [02:21:29] <zippy> even better, get them to upgrade :)
48: [02:21:36] <SilentDesigns> Appreciate the ideas tho
49: [02:21:55] <SilentDesigns> ha if only twas so easy
50: [02:22:20] <zippy> man , the last 2.4 came out 25 Sep 2013
51: [02:22:32] <SilentDesigns> <sigh> yep
52: [02:22:37] <zippy> I thought there was some security releases of 2.4
53: [02:22:49] <zippy> (I have dozens of sites running 2.4 as well, so I understand the pain)
54: [02:24:47] <SilentDesigns> Poor bastard lol
55: [02:26:02] <zippy> own there own little server
56: [02:26:08] * zippy puts fingers in ears, lalalala
57: [02:37:51] * micmania1 has joined #silverstripe
58: [02:39:00] * jghazally has joined #silverstripe
59: [02:48:07] * spronk quit (Quit: I may need a longer sleep timer...)
60: [02:57:32] * micmania1 quit (Quit: micmania1)
61: [02:59:39] * robbiea has joined #silverstripe
62: [03:02:19] * spronk has joined #silverstripe
63: [03:03:38] <robbiea> hey again. I disconnected before I noticed whether anyone had replied to my Q earlier. How can I validate a Page contains a certain widget within its WidgetArea when it gets published?
64: [03:04:55] <Firesphere> You should be able to do that with a custom validate method in your page class.
65: [03:08:04] * SilentDesigns quit (Ping timeout: 250 seconds)
66: [03:10:23] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
67: [03:12:08] <robbiea> Firesphere: I.C. - similar to SiteTree::validate() ?
68: [03:12:26] <Firesphere> Jep, you could use that method to check if it's there.
69: [03:13:18] <robbiea> lovely. I see also that DataObject::validate() provides an extension hook - nice. Thanks for your help
70: [03:17:53] * Phlunk3 quit (Remote host closed the connection)
71: [03:21:04] * Tanger_ quit (Ping timeout: 260 seconds)
72: [03:25:31] * jghazally quit (Quit: jghazally)
73: [03:32:43] * jghazally has joined #silverstripe
74: [03:36:14] * Tanger has joined #silverstripe
75: [03:46:35] <robbiea> I've I'm using DataExtension::validate() can I determine whether it's a publish or a save draft action that's being triggered?
76: [03:50:16] * adrexia has joined #silverstripe
77: [03:58:37] * glenn-bautista1 has joined #silverstripe
78: [03:58:56] * micmania1 has joined #silverstripe
79: [04:01:08] * glenn-bautista quit (Ping timeout: 250 seconds)
80: [04:05:05] * glenn-bautista has joined #silverstripe
81: [04:05:08] * glenn-bautista1 quit (Read error: Connection reset by peer)
82: [04:07:40] * muskie9 has joined #silverstripe
83: [04:11:20] * muskie9 quit (Client Quit)
84: [04:27:52] * robbiea quit (Remote host closed the connection)
85: [04:30:10] <ss-helper> SilverStripe 3.3.2, 3.2.4 and 3.1.19 Security Release Announcement - https://groups.google.com/d/msg/silverstripe-announce/GgoMpqui6yg/ojkUMvcsJQAJ
86: [04:31:19] * Tanger quit (Remote host closed the connection)
87: [04:31:24] * irogue has joined #silverstripe
88: [04:33:07] * irogue looks around
89: [04:39:59] * robbiea has joined #silverstripe
90: [04:54:12] * Guest82395 quit (Changing host)
91: [04:54:13] * Guest82395 has joined #silverstripe
92: [04:54:24] * Guest82395 is now known as madmatt
93: [04:54:47] * ccburns has joined #silverstripe
94: [04:56:37] * madmatt changed the topic to 'Welcome to #silverstripe | Latest Stable available at http://www.silverstripe.org/software/download/ | Security releases 3.1.19, 3.2.4 and 3.3.2 now available | Dev Mailing List: http://silverstripe.org/dev-list | IRC Logs: http://silverstripe.org/irc-logs | Feature requests: http://silverstripe.uservoice.com'
95: [04:57:19] <ccburns> Hey guys - wondering if someone might be able to help. We just upgraded from 3.1 to 3.3 and we had a couple of CLI tasks that extend CliController - now when we run the tasks we get html returned for “page not found” page??? Any ideas of what might be causing this…
96: [04:59:15] <irogue> ccburns: prior to 3.2, no routes had to be created in order to call a controller using /ControllerName
97: [04:59:18] <ccburns> I assume it has something to do with Routing but not sure how to fix it
98: [04:59:38] <irogue> so just add a route for ControllerName to your own yaml routes list :)
99: [04:59:54] <ccburns> okay thanks I’ll give that a shot
100: [05:05:14] <ccburns> Perfect thanks irogue
101: [05:09:53] * irogue quit (Changing host)
102: [05:09:54] * irogue has joined #silverstripe
103: [05:10:15] <madmatt> irogue: Congratulations :)
104: [05:10:26] * irogue blushes
105: [05:10:46] <irogue> guess this means i should actually start coming here again
106: [05:12:09] * mirrors has joined #silverstripe
107: [05:13:51] <mirrors> hi all...I have created a task to publish all my pages...this works fine when I execute it via the browser i.e mysite.com/dev/tasks/PublishAllPages However the task takes alot of time and I want to execute it via the command line. i.e php framework/cli-script.php /dev/tasks/PublishAllPages
108: [05:14:09] <mirrors> My problem is that the pages are not published when executed via the command line
109: [05:14:49] <mirrors> any ideas about what I am doing wrong?
110: [05:15:01] <madmatt> mirrors: We'd have to look at your code for the PublishAllPages task sorry
111: [05:15:25] <madmatt> Can you pastebin.com it or similar?
112: [05:15:36] <madmatt> I'm just heading off, hopefully someone else can help
113: [05:17:48] <mirrors> sure http://pastie.org/10832219
114: [05:18:29] <mirrors> The strangest thing is that is works when executed via the browser, but not when executed via the command line
115: [05:22:22] <irogue> strange. so it runs on the CLI but they don't get published?
116: [05:24:36] * robbiea quit (Ping timeout: 244 seconds)
117: [05:24:37] <mirrors> irogue: Yup the ->write() is working...just not the ->doPublish();
118: [05:26:11] <irogue> mirrors: could you try using $this->publish('Stage', 'Live') instead?
119: [05:26:40] * jghazally quit (Quit: jghazally)
120: [05:27:19] <mirrors> irogue: That worked!!!
121: [05:27:34] <mirrors> I wonder what is wrong with doPublish();
122: [05:27:38] <mirrors> anyway..thanks
123: [05:28:45] <irogue> mirrors: doPublish checks whether you have permission - and the CLI won't be logged in :)
124: [05:29:40] <irogue> because doPublish() is a publicly accessible method (i.e. accessible through the browser), whereas publish() is only usable in your code
125: [05:41:30] * spronk quit (Quit: I may need a longer sleep timer...)
126: [05:44:18] <mirrors> ah right! That makes sense
127: [05:44:27] <mirrors> thanks again irogue
128: [05:59:14] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
129: [05:59:54] * micmania1 quit (Quit: micmania1)
130: [06:03:30] * Agilix_ has joined #silverstripe
131: [06:04:50] <Agilix_> mornin o/
132: [06:06:22] * irogue quit (Ping timeout: 260 seconds)
133: [06:19:37] * mirrors quit (Quit: Page closed)
134: [06:21:18] * ccburns has left #silverstripe
135: [06:23:13] * spronk has joined #silverstripe
136: [06:26:59] * Eliseth has joined #silverstripe
137: [06:32:30] * marvanni has joined #silverstripe
138: [06:36:36] * Stomach quit (Ping timeout: 276 seconds)
139: [06:59:58] * arnhoe has joined #silverstripe
140: [07:05:04] * spronk quit (Quit: I may need a longer sleep timer...)
141: [07:11:08] * Stomach has joined #silverstripe
142: [07:14:22] * UncleCheese has joined #silverstripe
143: [07:17:25] <Firesphere> \o ppl
144: [07:22:51] * spronk has joined #silverstripe
145: [07:24:11] * Azure|dc has joined #silverstripe
146: [07:25:00] * Azure quit (Ping timeout: 246 seconds)
147: [07:36:53] * Azure|dc quit (Remote host closed the connection)
148: [07:57:17] * kinglozzer has joined #silverstripe
149: [08:02:54] * Sentro has joined #silverstripe
150: [08:04:21] <Sentro> Hi Silverstripe! how to remove the ‘replace data’ checkbox from the CSV Import ?
151: [08:06:38] <marvanni> i a modeladmin you could hook into the ImportForm method?
152: [08:12:00] * Sentro quit (Quit: Sentro)
153: [08:12:03] * wmk has joined #silverstripe
154: [08:26:34] * wmk quit (Ping timeout: 240 seconds)
155: [08:30:20] <marvanni> Fireshpere is there any reason why I should not use parent::kill_temp_db(); in tearDown(); ?
156: [08:34:23] <marvanni> Firesphere typo
157: [08:38:54] * irogue has joined #silverstripe
158: [08:38:54] * irogue quit (Changing host)
159: [08:38:54] * irogue has joined #silverstripe
160: [08:43:13] * agent44 has joined #silverstripe
161: [08:59:15] * XorPush has joined #silverstripe
162: [09:02:41] <Agilix_> Quick question, how does ss handle the user_error call? Does it write it away in the logs?
163: [09:03:03] <Agilix_> I need to create a few try catch blocks and want to write the exception into the logs
164: [09:05:49] * irogue quit (Quit: My Mac has gone to sleep. ZZZzzz…)
165: [09:05:59] <Agilix_> ss_log seems a better alternative apparantly
166: [09:06:22] * Stomach quit (Quit: zzz)
167: [09:15:25] * irogue has joined #silverstripe
168: [09:15:25] * irogue quit (Changing host)
169: [09:15:25] * irogue has joined #silverstripe
170: [09:16:41] * wmk has joined #silverstripe
171: [09:20:25] * agent44 quit (Quit: agent44)
172: [09:22:11] * agent44 has joined #silverstripe
173: [09:23:45] <marvanni> so effectifly ‘create’ is a reserved keyword for controllers, by having Object::create() …hm
174: [09:25:20] * irogue quit (Quit: My Mac has gone to sleep. ZZZzzz…)
175: [09:28:03] <kinglozzer> marvanni: Can you use url_handlers to map it to another method?
176: [09:28:44] <marvanni> it wont pass the allowed actions check
177: [09:29:45] * DimiStripe has joined #silverstripe
178: [09:30:49] <marvanni> I hackec it for now, since it is only for backards compat, but you really need to know that create is in its parent static function create in Object…
179: [09:36:24] <wmk> marvanni, as create is a method in Object and everything is a subclass of Object it sounds logical to me.
180: [09:37:22] <wmk> with $url_handlers you could map the action to another method
181: [09:37:29] <marvanni> yes I know that too. but. when creating (haha) a crud controller with ‘logical’ methods like view, update, delete, I would pick create as well
182: [09:37:34] <marvanni> it wont
183: [09:39:43] * spronk quit (Quit: I may need a longer sleep timer...)
184: [09:40:59] * irogue has joined #silverstripe
185: [09:59:41] <marvanni> it seems that Object::create will be removed ?:) https://github.com/silverstripe/silverstripe-framework/blob/master/core/Object.php
186: [10:02:07] * DimiStripe quit (Read error: Connection reset by peer)
187: [10:02:18] * DimiStripe has joined #silverstripe
188: [10:04:53] * Audlex quit (Read error: Connection reset by peer)
189: [10:06:30] <Agilix_> Quick question: I have spaces in my image url, giving errors when using the image manipulation functions. Any ideas?
190: [10:08:36] * Audlex has joined #silverstripe
191: [10:09:51] <kinglozzer> marvanni: Nope, extracted into a trait I believe
192: [10:10:37] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/blob/master/core/Injectable.php#L30 ^^
193: [10:12:33] <marvanni> bah
194: [10:14:14] <marvanni> so when having a index(list), create, read, update, delete controller, how would you call the create method ?
195: [10:18:43] <kinglozzer> add? new?
196: [10:19:03] <kinglozzer> or just /edit/new instead of /edit/$ID
197: [10:19:11] <kinglozzer> One of those is how I usually do it anyway
198: [10:21:28] * NETim has joined #silverstripe
199: [10:22:11] <NETim> Morning, trying to run a query on a datalist but not 100% on how to handle the filter
200: [10:22:32] <Agilix_> Anyone know a solution for my issue, pretty urgent :$
201: [10:23:01] <NETim> Want to manipulate the user input to reduce false negatives (user adds a space where we don't have one) but also want to run the same transformation on the searched field.
202: [10:23:04] <NETim> any ideas?
203: [10:23:07] <kinglozzer> Agilix_: What are you trying to do? Use image manipulation functions on a remote URL or something?
204: [10:23:52] <kinglozzer> NETim: ->filter('Title:PartialMatch', $query) ?
205: [10:24:02] <kinglozzer> I'm not sure what you mean by "run the same transformation on the searched field"
206: [10:24:30] <NETim> Working on searches by postcode, people enter their postcodes with/without spaces and with them in the wrong place.
207: [10:25:04] <NETim> What I've done in the past (outside SS) is to remove all spaces and uppercase the users terms.
208: [10:25:21] <Agilix_> kinglozzer: I have a style="background-image: url($BackgroundImage.ScaleMaxWidth(1280).getUrl())" But the url contains a ' '. The folders were uploaded manually with the help of the sync button. But the sync does not convert spaces. Can I do something to convert spaces to %20 in the template?
209: [10:25:38] <NETim> I've then done the same thing on the data in the db query.
210: [10:25:50] <Agilix_> the error is Failed parsing 'srcset' attribute value since it has an unknown descriptor. Dropped srcset candidate /assets/Uploads/Images/SPECIES/Specie/7
211: [10:26:35] <kinglozzer> NETim: If you want to preserve the spaces when displayed, why don't you do 2 fields? Postcode and NormalisedPostcode - where NormalisedPostcode contains no spaces, uppercased
212: [10:26:41] <kinglozzer> Then run your query against the normalised one?
213: [10:27:11] <NETim> not a bad thought, but this is an addition to a site with a large dataset.
214: [10:27:55] <kinglozzer> NETim: Well you can always use ->where() and write your own SQL if that helps, copy what you did for the previous project?
215: [10:28:07] <kinglozzer> Just max sure it's escaped :)
216: [10:28:16] <NETim> Could do, wasn't sure if there was another way.
217: [10:28:29] <NETim> escaped, nah, what's the worst that could happen...
218: [10:28:40] <Agilix_> ah the error I gave is something else, but the image with the space is not working either
219: [10:29:04] <marvanni> images and files have normally a Filename filter that removes the spaces ?
220: [10:30:11] * Azure has joined #silverstripe
221: [10:30:35] <kinglozzer> Agilix_: Hmm, strange one... can you do background-image: url($BackgroundImage.ScaleMaxWidth(1280).URL.URLATT) ?
222: [10:30:39] <kinglozzer> Not sure if that'll work
223: [10:33:01] <kinglozzer> Oh, no I don't think it will as it'll encode the slashes
224: [10:33:34] <Agilix_> kinglozzer: it's says 404 now :) with url http://localhost:8888/%2Fassets%2FUploads%2F3+test%2Fabout-wwf.jpg
225: [10:33:44] <Agilix_> so you converts the / as well
226: [10:35:38] <kinglozzer> Agilix_: Do you just need quotes around the URL or something?
227: [10:35:48] <kinglozzer> I'd have thought that browsers were capable of handling that :(
228: [10:35:50] <Agilix_> I need the spaces converted as it now breaks
229: [10:37:20] <Agilix_> Nvm kinglozzer, I fixed it with some well places quotes :)
230: [10:52:00] <Firesphere> Hello folks! Who here is awake?
231: [10:52:18] <irogue> Firesphere: no i'm not bringing you pizza
232: [10:52:46] <Firesphere> Awww, goddammit. Are you sure?
233: [10:52:51] <Firesphere> You can have a slice!
234: [10:53:19] <irogue> there is already way too much food in our house :P
235: [10:55:46] <Firesphere> Yeah, but that's _your_ house. Not mine!
236: [10:56:09] <Firesphere> I don't really see a problem.... you can have your slice and eat it too at my place
237: [10:59:35] * r3v3rb has joined #silverstripe
238: [10:59:48] <r3v3rb> morning stripers
239: [10:59:51] <r3v3rb> :)
240: [10:59:59] <irogue> morning stripper
241: [10:59:59] <irogue> :P
242: [11:00:04] <wmk> !
243: [11:00:12] <r3v3rb> irogue: not quite but I like it!
244: [11:00:24] <r3v3rb> \O/
245: [11:00:28] <r3v3rb> oo
246: [11:00:32] <r3v3rb> |
247: [11:00:41] <r3v3rb> / \
248: [11:00:48] <r3v3rb> strippers!
249: [11:01:05] <r3v3rb> well almost :P
250: [11:03:10] <r3v3rb> anyone use IMagick for converting PDF files? if so why does: http://sspaste.com/paste/show/5733115137833
251: [11:03:32] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
252: [11:03:36] <r3v3rb> the first code bail on the while($imagick->hasNextImage)
253: [11:04:22] <r3v3rb> whereas the second code works perfectly generates all pages and assigns them to the Image objects but doesn’t honor the cropbox of the incoming PDF
254: [11:04:22] <marvanni> so I have a unit test for xml reponses that can sort. how can I test that the xml string is in the correct order?
255: [11:05:08] <marvanni> hm.. i think I know something dirty..
256: [11:06:41] <r3v3rb> marvanni: silverstrippers ;)
257: [11:06:52] <r3v3rb> over 65yrs old!
258: [11:07:16] <marvanni> I said dirty, not nasty
259: [11:07:33] <r3v3rb> nowt wrong with silversurfers stripping
260: [11:10:19] <Agilix_> ohoh, I can't flush or dev/build my test server anymore. I always get "Problem with server" so I can't login to flush the cache etc :(
261: [11:12:58] <r3v3rb> wmk: hallo, alles gut?
262: [11:16:42] * agent44 quit (Ping timeout: 260 seconds)
263: [11:17:35] * agent44 has joined #silverstripe
264: [11:27:00] <wmk> r3v3rb, thanks
265: [11:27:27] <wmk> Agilix_, check your error log... and of course: goto dev mode.
266: [11:27:40] <wmk> but it sounds like 500 to me
267: [11:31:41] * Henrik has joined #silverstripe
268: [11:31:41] <ss-helper> Henrik: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
269: [11:33:04] <Henrik> Hi! Newbie question: How would I add an action to a button on the front end that triggers a csv export of what's visible on the page. Or easier; how do I just call a function when the button is clicked?
270: [11:34:03] <Henrik> Is it just $myFunction in between the <button> tags?
271: [11:35:24] <r3v3rb> Henrik: no you would need to create a link to the function to call <a href=“/myFunction” class=“btn btn-small”>CSV Export</a>
272: [11:35:41] <Henrik> ok, thanks!
273: [11:35:53] <r3v3rb> and then have the function return the export - it would also need to be in allowed_actions on your controller
274: [11:36:43] <r3v3rb> the function would probably need a redirect to the page after exporting? or you could call it with an ajax call maybe?
275: [11:41:25] <Henrik> ah, I was thinking I could just do _blank in the return but maybe that's not a good idea?
276: [11:42:36] <Henrik> But redirect is probably easier, I honestly don't know how I would implement an ajax call in SS at this point, but maybe it's something that a little googling will sort out.
277: [11:42:38] <marvanni> use $Link(‘myfunction’) otherwise it will redirect to site.com/myfunction if you use /myfunction
278: [11:43:08] <Henrik> ok, great!
279: [11:44:11] <Agilix_> wmk: CLI ftw :)
280: [11:44:17] <Agilix_> There was a gulp error
281: [11:44:28] <Agilix_> And I couldn't flush as all pages broke
282: [11:45:24] <r3v3rb> damnit! just hit skip on my file sync that took ages to determine changed files… now I have to sit through the checking again
283: [11:50:31] <wmk> gulp error??? wtf...
284: [11:50:53] <wmk> did it crash a template? when gulp cannot compile css or js it won't be a 500
285: [11:54:33] <Agilix_> wmk: Gulp generated new css and js files, updated the rev-manifest (which we load) but the site kept using the old link and thus it got an html 500 page -> all pages crash
286: [11:55:01] <wmk> rev manifest?
287: [11:55:42] <Agilix_> it's a file that keeps the names of the newly generated files
288: [11:55:52] <Agilix_> do not ask me why, I didn't set it up :p
289: [11:59:51] <wmk> why?
290: [12:01:02] <Agilix_> I think the original idea was to keep a history track, but seems to fail :p
291: [12:01:14] <Agilix_> How do I flush the _resampled images?
292: [12:01:26] <Agilix_> flush=all does not seem to clear them
293: [12:03:45] <r3v3rb> Agilix_: is it not in dev/tasks regenerate image cache?
294: [12:05:09] <Agilix_> this one? http://localhost/dev/tasks/FlushGeneratedImagesTask ?
295: [12:05:13] <Agilix_> r3v3rb:
296: [12:05:37] <Henrik> marvanni: It still links to site.com/myFunction when I do <a href=$Link('myFunction') class=“btn btn-small”>CSV Export</a>
297: [12:07:20] <Agilix_> it's RegenerateCachedImagesTask apparantly. The other one is 3.1
298: [12:10:14] <wmk> Agilix_, be aware: images generated in templates will be re-generated, images generated in htmleditor are not regenerated automatically if you delete the _resampled folder manually
299: [12:10:31] <wmk> does that task now work?
300: [12:10:39] * NETim_ has joined #silverstripe
301: [12:10:55] <wmk> ☺/ NETim
302: [12:10:59] <Agilix_> the dev/tasks/RegenerateCachedImagesTask/ works as far as i can tell :)
303: [12:11:12] <Agilix_> there are no html editor images yet (luckily)
304: [12:13:45] * NETim quit (Ping timeout: 246 seconds)
305: [12:14:03] * slievr quit (Ping timeout: 240 seconds)
306: [12:17:15] <marvanni> Hendrik. are you placing the button with a <% with Something %> or <% loop Something %>
307: [12:18:06] * slievr has joined #silverstripe
308: [12:18:14] * UndefinedOffset has joined #silverstripe
309: [12:20:41] <Henrik> marvanni: Sorry, solved it now. Just forgot to flush the cache.... :-|
310: [12:29:06] <Agilix_> still running, damn son how many resampled images did the client use
311: [12:29:14] * Henrik quit (Ping timeout: 250 seconds)
312: [12:29:51] <Agilix_> I hope it's done before the client has there demo
313: [12:44:40] <wmk> well, the images are resampled when they actually open a page with them.
314: [12:44:52] <wmk> so the first time pages will load quite slow
315: [12:45:06] <wmk> or are all images NOW resampled?
316: [12:45:34] * irogue quit (Quit: My Mac has gone to sleep. ZZZzzz…)
317: [12:53:14] <Agilix_> wmk: I think now seeing as it's still going
318: [12:53:32] <Agilix_> And the test server was a lot less and it actually said: x images resampled
319: [12:53:33] * wmk quit (Ping timeout: 240 seconds)
320: [13:16:35] <r3v3rb> ughh, phpstorm build 2016.1.1 === initial joomla support << WHYWHYWHY
321: [13:17:16] <Agilix_> I use Atom lately :p
322: [13:26:47] <r3v3rb> Agilix_: I can’t live without the debugger
323: [13:26:58] <r3v3rb> because I’m crap! muhahahaaa
324: [13:28:39] <Agilix_> r3v3rb: i miss a lot of functionality too though, I think i'll switch back soon
325: [13:28:45] <Agilix_> next assignment probbly
326: [13:29:15] <r3v3rb> latest 2016 iterations are very nice and not laggy - found storm7/8 to be a bit slow sometimes
327: [13:29:53] <Agilix_> can't really remember. Though I do seem to remember some lag and crash issues :)
328: [13:31:01] <r3v3rb> not crashed once on Mac or PC since upgrading to 2016 subscription
329: [13:31:13] <Agilix_> Alright, I'm off. See you all tomorrow :)
330: [13:35:32] * Agilix_ quit (Ping timeout: 250 seconds)
331: [13:40:37] * zlinux has joined #silverstripe
332: [13:59:14] * lerni has joined #silverstripe
333: [14:00:10] * muskie9 has joined #silverstripe
334: [14:32:49] * lerni quit ()
335: [15:29:06] * zlinux quit (Read error: Connection reset by peer)
336: [15:29:21] * arnhoe quit ()
337: [15:29:42] * zlinux has joined #silverstripe
338: [15:32:10] * zlinux_ has joined #silverstripe
339: [15:36:06] * zlinux quit (Ping timeout: 276 seconds)
340: [15:40:04] * wmk has joined #silverstripe
341: [15:57:41] * wmk quit (Read error: Connection reset by peer)
342: [16:11:41] <cloph_away> sill there be repackage of 3.1.19 tarballs? both cms and framework contain both, only composer.json/lock and Page.php is difference...
343: [16:14:25] <r3v3rb> why is line 10 not duplicating and storing the PDF into the new Item here: http://www.sspaste.com/paste/show/57335a3710bab am I missing something obvious?
344: [16:17:10] <muskie9> should it be $item->OrderedFileID = $product->PDFID; ?
345: [16:17:18] <muskie9> if you're just setting a relation
346: [16:18:05] <r3v3rb> muskie9: damn thanks! I’m going code blind after dealing with PDF parsers and TrimBox settings in IMagick!
347: [16:18:24] <muskie9> that sounds like fun lol
348: [16:18:40] <r3v3rb> muskie9: that’ll only be a copy of the file object though not a copy of the physicla file correct?
349: [16:20:30] <muskie9> it'll reference and relate the file record that exists, not create a new one
350: [16:23:11] <r3v3rb> yeh, I need a physical copy too
351: [16:23:17] * r3v3rb has a rethink
352: [16:24:07] <muskie9> you'll need to do something additional to duplicate() than as that just duplicates the object record (writing the duplicate to the db), but doesn't duplicate the actual file
353: [16:25:11] <muskie9> glancing through the File class it doesn't look like there's anything native to create a duplicate of the actual file
354: [16:43:03] * slievr quit (Ping timeout: 240 seconds)
355: [16:43:57] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
356: [16:45:53] * agent44 quit (Quit: zzz)
357: [16:48:40] * kinglozzer quit (Ping timeout: 252 seconds)
358: [16:50:03] * zlinux_ quit (Ping timeout: 240 seconds)
359: [17:11:01] * XorPush quit (Quit: Page closed)
360: [17:20:49] <r3v3rb> muskie9: yep, I’ll have to use PHP :|
361: [17:20:53] <r3v3rb> arghhhh
362: [17:28:31] * UndefinedOffset quit (Quit: Leaving.)
363: [17:33:27] * kinglozzer has joined #silverstripe
364: [17:37:04] * UndefinedOffset has joined #silverstripe
365: [17:59:54] <r3v3rb> kinglozzer: you’re here late?
366: [18:00:28] <ss-helper> Silverstripe Customising the behaviour of GridFieldExportButton - http://stackoverflow.com/questions/37169926/silverstripe-customising-the-behaviour-of-gridfieldexportbutton
367: [18:03:54] * Stomach has joined #silverstripe
368: [18:06:48] <r3v3rb> why the hell is my File regenerating the wrong relative path on writing the object to the DB!
369: [18:06:50] <r3v3rb> grrr
370: [18:08:31] * gelignite has joined #silverstripe
371: [18:09:14] <r3v3rb> ffs!
372: [18:11:00] <r3v3rb> the file is in the correct folder - the variable containing the path is correct when using setFileName, but writing the file to the db rewrites the filename path because getRelativePath overwrites it!
373: [18:12:02] <r3v3rb> i have ‘assets/Uploads/OrderPDF/original-chef.pdf’ in setFileName but writing produces ‘assets/original-chef.pdf’ in the File DB object
374: [18:13:57] * Stomach quit (Quit: zzz)
375: [18:14:22] * arnhoe has joined #silverstripe
376: [18:21:00] <r3v3rb> wierd working now
377: [18:37:54] * BrewNaked has joined #silverstripe
378: [18:46:20] <BrewNaked> Howdy everyone.
379: [18:49:29] <BrewNaked> I don't suppose that there is a way, via the Requirements, to include additional attributes to a javascript tag...?
380: [18:50:51] <BrewNaked> So instead of adding Requirements::javascript("something.js"); to get <script language="text/javascript" src="something.js"></script>, I need it to spit out <script language="text/javascript" src="something.js" attr1 attr2></script>.
381: [18:51:05] * Stomach has joined #silverstripe
382: [19:03:32] <marvanni> only with insertHeadTags
383: [19:12:49] * r3v3rb quit (Quit: r3v3rb)
384: [19:47:05] * Neomang has joined #silverstripe
385: [19:47:35] * UncleCheese has joined #silverstripe
386: [19:48:32] <Neomang> So I'm using a literalfield to get some javascript into the CMS (because it wasn't working with the require methods)
387: [19:48:43] <Neomang> but it won't run unless I refresh the page
388: [19:48:52] <Neomang> Works fine after that but
389: [19:54:17] <muskie9> Neomang are you utilizing entwine? I think you need to pair the js with entwine to get it to work properly in the cms
390: [20:12:48] <marvanni> or just jquery can work as well. depends on what you need.
391: [20:13:03] * Phlunk3 has joined #silverstripe
392: [20:14:15] <marvanni> $(document).on(‘click’, ‘someelement’, function() {//code}); should work on ajax loaded html
393: [20:23:39] * glenn-bautista quit (Quit: Leaving.)
394: [20:29:24] * Stomach_ has joined #silverstripe
395: [20:31:49] * Stomach quit (Ping timeout: 260 seconds)
396: [20:34:09] * jghazally has joined #silverstripe
397: [20:38:46] <marvanni> Is there a best practice to skip all augmentSQLs for a query ?
398: [20:50:22] * UndefinedOffset quit (Quit: Leaving.)
399: [20:58:15] * adrexia has joined #silverstripe
400: [20:59:42] * jghazally quit (Quit: jghazally)
401: [20:59:48] * glenn-bautista has joined #silverstripe
402: [21:04:21] <marvanni> Can I temporary give a Member a permission without writing the permission to db?
403: [21:13:25] * glenn-bautista quit (Quit: Leaving.)
404: [21:19:05] * arnhoe quit ()
405: [21:25:33] <Neomang> Sorry,
406: [21:25:57] <Neomang> I was out. I'm not sure what entwine is (I'm not an expert on JS by any means)
407: [21:27:04] <Neomang> http://www.sspaste.com/paste/show/5733a3947467b That's the code I'm using in my getCMSFields function
408: [21:28:26] <Neomang> I'll look into entwine and see if that helps
409: [21:29:47] * micmania1 has joined #silverstripe
410: [21:30:03] <marvanni> you can to that in php
411: [21:30:05] <marvanni> $filter = URLSegmentFilter::create();
412: [21:30:06] <marvanni> $t = $filter->filter($title);
413: [21:37:57] * jghazally has joined #silverstripe
414: [21:43:53] * arnhoe has joined #silverstripe
415: [21:45:41] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
416: [21:48:04] * arnhoe quit (Client Quit)
417: [21:57:20] * guci0 quit (Ping timeout: 250 seconds)
418: [21:59:54] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
419: [22:03:10] * r3v3rb has joined #silverstripe
420: [22:09:25] * spronk has joined #silverstripe
421: [22:11:00] * micmania1 quit (Quit: micmania1)
422: [22:13:05] <r3v3rb> I've added |ttf|otf to my assets .htaccess and also to the config.yml Files: allowed_extensions: - ttf - otf - makes no difference I still cant upload ttf or otf files - any ideas?
423: [22:14:34] * Azure quit (Quit: Oops.)
424: [22:15:28] * micmania1 has joined #silverstripe
425: [22:18:39] <r3v3rb> howdy micmania1
426: [22:22:59] * jghazally quit (Quit: jghazally)
427: [22:25:04] <r3v3rb> ->getValidator()->allowedExtensions = array () appears to fix my issue :D <- is it in the documents? setAllowedExtensions didn't do anything
428: [22:27:34] * micmania1 quit (Quit: micmania1)
429: [22:27:49] * marvanni quit (Quit: marvanni)
430: [22:28:39] * jghazally has joined #silverstripe
431: [22:29:21] * r3v3rb quit (Quit: Leaving)
432: [22:37:18] * Azure has joined #silverstripe
433: [22:41:01] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
434: [22:45:34] <ss-helper> Re: [silverstripe-dev] Looking for a replacement FIG rep - https://groups.google.com/d/msg/silverstripe-dev/mj5GlYJ2Pco/LqWlYkLUCQAJ
435: [23:09:06] * BrewNaked quit (Remote host closed the connection)
436: [23:12:45] * jghazally quit (Quit: jghazally)
437: [23:13:36] * BrewNaked has joined #silverstripe
438: [23:17:06] * Azure quit (Quit: My Mac has gone to sleep. ZZZzzz…)
439: [23:17:10] * jghazally has joined #silverstripe
440: [23:19:00] * micmania1 has joined #silverstripe
441: [23:21:25] * Azure has joined #silverstripe
442: [23:22:09] * irogue has joined #silverstripe
443: [23:22:09] * irogue quit (Changing host)
444: [23:22:09] * irogue has joined #silverstripe
445: [23:37:03] * ec8or has joined #silverstripe
446: [23:37:07] * ec8or_ quit (Read error: Connection reset by peer)
447: [23:41:34] * micmania1 quit (Quit: micmania1)
448: [23:42:00] <irogue> morning

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