#silverstripe IRC Log

IRC log for 10 February 2017

All timestamps are in UTC.

1: [00:15:12] <pippy_> http://www.sspaste.com/paste/show/589d060479c3f
2: [00:20:26] * Nightjar has joined #silverstripe
3: [00:23:33] * Azure|dc quit (Quit: Oops.)
4: [00:23:57] * Azure has joined #silverstripe
5: [00:25:49] <xyphoid> Tron: did you do +x on the sake file
6: [00:29:56] <Tron> +x? and no, no i did not
7: [00:32:57] * DanaeNZ quit (Remote host closed the connection)
8: [00:36:42] <xyphoid> chmod +x /usr/bin/sake
9: [00:36:53] <xyphoid> basically for a file to be runnable directly it needs the execute bit
10: [00:38:19] * DanaeNZ has joined #silverstripe
11: [00:38:47] <Tron> ahh thank-you that helps =)
12: [00:50:58] <pippy_> all this drama here: https://groups.google.com/forum/#!msg/silverstripe-dev/q5khashNiuY/zi8_jdHvBQAJ
13: [00:51:10] <pippy_> with the config revision
14: [00:51:40] <pippy_> the config system is the biggest source of bloat with SilverStripe, correct?
15: [00:52:01] <pippy_> or, one of the biggest in terms of overhead for page generation
16: [00:54:25] <Nightjar> pippy_, can you summarise for a chap?
17: [00:54:46] <Nightjar> What are the dramas?
18: [01:00:22] <Nightjar> http://static.wixstatic.com/media/4c49aa_e13cd320b4c84b25b956386083bd4a57.jpg
19: [01:17:05] * UncleCheese has joined #silverstripe
20: [01:30:04] <ss-helper> Silverstripe Unit Tests modify live database (postgres module) - http://stackoverflow.com/questions/42150024/silverstripe-unit-tests-modify-live-database-postgres-module
21: [01:41:24] * alwex has joined #silverstripe
22: [01:41:24] <ss-helper> alwex: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
23: [01:42:10] * Isaac has joined #silverstripe
24: [01:55:06] <Isaac> is it possible to do a normal for loop in a template?
25: [01:55:28] <Isaac> like <% loop $i from 1 to 10 %>
26: [02:33:40] * alwex quit (Ping timeout: 260 seconds)
27: [02:49:39] <Tron> Hey guys any reason why this cron job wont execute? 5 * * * * /var/www/site/public_html/sake dev/tasks/AddEvents >/dev/null 2>&1
28: [02:50:38] <ss23> My first suggestion would be to remove the output silencing so you could see it in your logs
29: [02:50:49] <Tron> This is my system log CRON[21513]: (root) CMD (/var/www/dunedin.whatshapp.nz/public_html/sake dev/tasks/AddEventFindaEvents >/dev/null 2>&1)
30: [02:51:19] <ss23> That's a slightly different path, not sure if that's intentional or not
31: [02:51:48] <ss23> You could try running that command exactly as root and see if it works
32: [02:52:02] <Tron> yea I know, I replaced dunedin.whatshapp.nz with site
33: [02:52:33] <xyphoid> are you trying to run that hourly or 5-minutely
34: [02:54:38] <Tron> It will eventually be daily. The code here is every hour at 5 past
35: [02:54:57] <Tron> thanks +ss23 simply trying to run it I can see my error
36: [03:18:56] <Tron> 0 2 * * * This will run every day at 2am right? for a cron job
37: [03:25:55] <xyphoid> yep.
38: [03:35:03] * DanaeNZ quit (Remote host closed the connection)
39: [03:41:33] <Nightjar> Isaac, no.
40: [03:41:39] <Nightjar> It's not the place for logic!
41: [03:42:03] <Nightjar> what you can do however is <% loop $ThatList.limit(10) %>
42: [03:42:23] <Nightjar> dunno what you're after, maybe ot
43: [03:42:30] * Tron quit (Ping timeout: 260 seconds)
44: [03:42:30] <Nightjar> it's an x=>y question.
45: [03:42:44] <Nightjar> so you might be after $Pos (from within the loop) to get a counter
46: [04:39:48] * DanaeNZ has joined #silverstripe
47: [05:15:50] * Isaac quit (Ping timeout: 260 seconds)
48: [05:43:14] * Nightjar quit (Ping timeout: 245 seconds)
49: [05:47:09] * vanny has joined #silverstripe
50: [05:47:22] <vanny> hi all, quick question
51: [06:03:21] * vanny quit (Quit: Page closed)
52: [07:04:40] * wmk_ has joined #silverstripe
53: [07:06:02] * wmk__ has joined #silverstripe
54: [07:09:44] * wmk_ quit (Ping timeout: 276 seconds)
55: [07:26:32] * DanaeNZ quit (Quit: TIME TO FEED)
56: [07:31:17] * guci0 has joined #silverstripe
57: [07:31:23] <guci0> Hello World!
58: [07:31:38] <guci0> Like always I have a little problem :)
59: [07:31:51] <guci0> The same as here: http://stackoverflow.com/questions/40855009/silverstripe-issue-with-email-function
60: [07:32:05] <guci0> View of my template email as f***
61: [07:32:12] <guci0> *is
62: [07:32:24] <guci0> over 3.0.3 was great :))))
63: [07:33:10] <guci0> / update to 3.4
64: [07:34:21] * wmk__ is now known as wmk
65: [07:34:31] <wmk> guci0, oh, 3.0 => 3.4 is kinda huge update
66: [07:35:05] <wmk> guci0, so what's your problem?
67: [07:40:38] <guci0> wmk: I konow :)
68: [07:40:53] <guci0> look at link – i have this problem
69: [07:41:05] <wmk> tl/dr
70: [07:41:55] <guci0> = = = = WI= ADOMOŚĆ / INFORMACJA Wita= m.
71: [07:44:26] <wmk> hmm, can you reproduce that error on a local dev machine?
72: [07:44:41] <guci0> on local i have dev – prints well
73: [07:45:04] <wmk> so locally it works, on prod it produces ugly output?
74: [07:45:20] <wmk> seems the mail settings on prod are kinda bogus? Did you dev/build/flush everything?
75: [07:45:58] <wmk> Is it that "=0A" in the rendered mail that causes problems?
76: [07:46:22] <guci0> my local won't send emails
77: [07:46:39] * Shrike_Finland has joined #silverstripe
78: [07:46:49] <guci0> only on dev i have IF for echo $email->debug();
79: [07:46:54] <wmk> guci0, why not? you can use mailcatcher to test mail sending
80: [07:46:56] <guci0> and prints well
81: [07:47:15] <wmk> e.g. zauberfisch vagrant box has this as default. Good stuff.
82: [07:47:20] <wmk> https://en.wikipedia.org/wiki/0A
83: [07:47:29] <wmk> seems it's a bogus carriage return.
84: [07:47:47] <wmk> which reminds me: does the prod server the locale installed you try to use? (just guessing)
85: [07:48:16] <guci0> hmmm..
86: [07:49:00] <wmk> guci0, http://stackoverflow.com/questions/5458439/php-sent-emails-have-0a-0a-instead-of-new-lines
87: [07:51:07] <guci0> base64_decode(base64_decode($body)) ?
88: [07:51:29] <wmk> doesn't silverstripe handle encoding for you automatically?
89: [07:51:39] <wmk> when you setBody in Email?
90: [07:54:02] <guci0> I don't know i compare old emails with new one – and seams its problem with new lines
91: [07:54:41] <guci0> headers looks good
92: [07:54:47] <wmk> yup. Check the changelogs if anything changed with email handling
93: [07:54:50] <guci0> but content is f***
94: [07:55:01] <guci0> ok, I will try to decode
95: [07:55:28] <guci0> and once test prints mabye a skip smt
96: [07:56:53] <guci0> Hmm... $email = new Email($email, $email, $subject, "Body"); // szablon $email->setTemplate('ContactPageAdmin'); // dane $email->populateTemplate($data);
97: [08:00:13] <guci0> $data is array for sure... hmm...
98: [08:02:19] <wmk> !debug guci0
99: [08:02:19] <ss-helper> guci0: Maybe it's time to start xdebug and see whats going on... check out http://docs.silverstripe.org/en/developer_guides/debugging/ and http://xdebug.org/docs/
100: [08:03:34] <guci0> Maybe
101: [08:35:35] * Shrike_Finland quit (Quit: Leaving.)
102: [08:37:15] * filisko has joined #silverstripe
103: [09:01:29] * kinglozzer has joined #silverstripe
104: [09:15:55] * Shrike_Finland has joined #silverstripe
105: [09:55:52] * agent44 has joined #silverstripe
106: [10:02:54] * Shrike_Finland quit (Quit: Leaving.)
107: [10:07:24] * Shrike_Finland has joined #silverstripe
108: [10:40:49] * deschebbs has joined #silverstripe
109: [10:51:54] * wmk quit (Read error: Connection reset by peer)
110: [11:19:24] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
111: [11:47:44] * r3v3rb has joined #silverstripe
112: [12:07:25] * Shrike_Finland quit (Quit: Leaving.)
113: [12:14:45] * Shrike_Finland has joined #silverstripe
114: [12:22:15] * lck has joined #silverstripe
115: [12:26:06] <lck> hi guys. I am attempting to get all 'Categories', that have a relation to an 'Attraction'. basically like this: But why does that not work? https://gist.github.com/hoodweb/98ab532fd0241bae5a9d411c828285af
116: [12:55:17] <r3v3rb> why is my site crashing on dev/build with class does not exist << no info about what class and as it's working on the live site I'm completely lost!
117: [12:57:15] <r3v3rb> bah, fixed it broken config.yml - i was about to create an extension which I then decided against and left the Member: extensions line in!
118: [12:57:17] <r3v3rb> haha
119: [12:59:07] * cloph quit (Remote host closed the connection)
120: [12:59:34] <r3v3rb> kinglozzer, 'i cant handle sub-urls' from a site that worked in 3.1 to 3.5 any clues?
121: [13:01:49] * Shrike_Finland quit (Quit: Leaving.)
122: [13:05:12] * Shrike_Finland has joined #silverstripe
123: [13:09:35] * cloph has joined #silverstripe
124: [13:11:03] <r3v3rb> $this->redirect is producing the i cant handle suburls issue anyone?
125: [13:13:00] * lck quit (Ping timeout: 260 seconds)
126: [13:29:22] * r3v3rb quit (Ping timeout: 258 seconds)
127: [13:30:23] * Shrike_Finland quit (Quit: Leaving.)
128: [13:32:13] * r3v3rb has joined #silverstripe
129: [13:41:33] * UndefinedOffset has joined #silverstripe
130: [13:44:43] <r3v3rb> Firesphere, are you actually awake?
131: [13:45:18] * Shrike_Finland has joined #silverstripe
132: [13:54:55] <r3v3rb> aha! so controllers with extra params must now use url_handlers not just define them in routes.yml as Director rules
133: [13:59:55] <r3v3rb> https://docs.silverstripe.org/en/3/developer_guides/controllers/routing/#url-handlers << Ta da, helps if you rtfm first
134: [14:00:18] * r3v3rb quit (Quit: Leaving)
135: [14:04:02] * Shrike_Finland quit (Remote host closed the connection)
136: [14:04:58] * Shrike_Finland has joined #silverstripe
137: [14:14:26] * Mike123 has joined #silverstripe
138: [14:16:46] <Mike123> Hey guys, can someone help me on this...i need to encrypt data user enters in form with RSA, and send encrypted data to other web...
139: [14:17:07] * Shrike_Finland quit (Quit: Leaving.)
140: [14:34:58] * agent44 quit (Quit: zzz)
141: [14:36:05] * agent44 has joined #silverstripe
142: [14:59:37] * _Nasir has joined #silverstripe
143: [15:23:55] <_Nasir> is there a way to format data pulled from an external DB?
144: [15:33:35] * Mike123 quit (Ping timeout: 260 seconds)
145: [15:45:19] <ss-helper> Silverstripe 3 GridFieldEditableColumns DateField Calendar - http://stackoverflow.com/questions/42163258/silverstripe-3-gridfieldeditablecolumns-datefield-calendar
146: [16:28:37] * James24 has joined #silverstripe
147: [16:28:38] <ss-helper> James24: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
148: [16:28:54] <James24> Hi all
149: [16:29:50] <James24> I'm looking for a bit of advice. I have to set up a script for a cron job to pull in a XML file and add it to the database. That side of things are done. However, what I need is an end point to call (either from a browser for a manual refresh or via the cron job to automate it). What's the best way to create this ?
150: [16:34:08] <James24> My initial thought was to create a dedicated page type, but then it's accessible from the CMS (even with 'canEdit()' set to false, it appears in the site tree). But I'm not familiar with any other way of handling this, so any advice would be appreciated
151: [16:38:19] <kinglozzer> James24: Why not do it as a build task? Then it can be triggered by visiting mysite.com/dev/tasks/MyTaskName
152: [16:42:38] <James24> Ok, I haven't worked with these before, so that's definitely worth a look
153: [16:42:40] <James24> Thank you
154: [16:43:17] * agent44 quit (Quit: agent44)
155: [17:00:25] * kinglozzer quit ()
156: [17:03:55] * agent44 has joined #silverstripe
157: [17:45:25] * James24 quit (Ping timeout: 260 seconds)
158: [17:49:59] * BackEndCoder quit (Excess Flood)
159: [17:51:44] * BackEndCoder has joined #silverstripe
160: [18:04:16] * agent44 quit (Quit: zzz)
161: [18:33:32] * gelignite has joined #silverstripe
162: [19:09:58] * filisko quit (Ping timeout: 264 seconds)
163: [19:24:18] * filisko has joined #silverstripe
164: [20:01:54] * lerni has joined #silverstripe
165: [20:20:32] * UndefinedOffset quit (Quit: Leaving.)
166: [20:52:55] * DanaeNZ has joined #silverstripe
167: [21:12:02] * deschebbs quit (Quit: Konversation terminated!)
168: [21:22:27] * lerni quit (Remote host closed the connection)
169: [21:22:54] * lerni has joined #silverstripe
170: [21:26:59] * lerni quit (Ping timeout: 240 seconds)
171: [21:42:00] * DanaeNZ quit (Quit: TIME TO FEED)
172: [22:39:53] * lerni has joined #silverstripe
173: [22:59:55] * lerni quit (Remote host closed the connection)
174: [23:00:02] * ss-helper quit (Remote host closed the connection)
175: [23:00:14] * ss-helper has joined #silverstripe
176: [23:28:38] * filisko quit (Ping timeout: 276 seconds)

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