#silverstripe IRC Log

IRC log for 3 May 2017

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:15] * ss-helper has joined #silverstripe
3: [00:40:52] * pippy has joined #silverstripe
4: [06:29:09] * wmk has joined #silverstripe
5: [06:31:00] * wmk_ has joined #silverstripe
6: [06:34:21] * wmk quit (Ping timeout: 255 seconds)
7: [06:35:27] * wmk_ quit (Read error: Connection reset by peer)
8: [06:50:03] * Shrike_Finland has joined #silverstripe
9: [07:02:47] * wmk has joined #silverstripe
10: [07:25:38] * Shrike_Finland quit (Quit: Leaving.)
11: [07:46:00] * Shrike_Finland has joined #silverstripe
12: [07:48:20] * kinglozzer has joined #silverstripe
13: [08:09:32] * UncleCheese has joined #silverstripe
14: [08:22:31] * deschebbs has joined #silverstripe
15: [09:36:31] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
16: [09:42:33] * spierala has joined #silverstripe
17: [09:42:34] <ss-helper> spierala: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
18: [09:47:33] <spierala> Hi, I am using silverstripe 3.1.x... I discovered that a silverstripe form can be sent empty by just calling the url which is visible in the HTML. e.g.: <form action="/Page_Controller/ContactForm/submit">
19: [09:48:38] * Shrike_Finland quit (Quit: Leaving.)
20: [09:49:18] <spierala> so opening this url in the browser http://www.domain.com/Page_Controller/ContactForm/submit will send in my case an empty notification mail to the client.
21: [09:50:46] * DimiStripe quit (Quit: DimiStripe)
22: [09:51:15] * DimiStripe has joined #silverstripe
23: [09:52:03] <spierala> Normally silverstripe would check the required fields when submitting the form regularly, but that way the validation is bypassed...
24: [09:58:49] * spierala quit (Ping timeout: 260 seconds)
25: [10:26:59] * Shrike_Finland has joined #silverstripe
26: [10:48:35] * spierala has joined #silverstripe
27: [10:50:28] * spierala_ has joined #silverstripe
28: [10:50:28] <ss-helper> spierala_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
29: [10:54:15] <wmk> spierala, interesting... Did you try to examine the problem with a debugger?
30: [11:08:29] <spierala_> not yet. I can only see that the submit function can be called directly via the URL
31: [11:08:57] <spierala_> my form basically looks like the example on top of the page here: https://docs.silverstripe.org/en/3/developer_guides/forms/validation/
32: [11:12:26] <spierala_> looking at that example I assume that I could fix it by checking the required fields in the doSubmitForm function
33: [11:13:27] * NETim has joined #silverstripe
34: [11:13:34] <spierala_> but it would be nicer if silverstripe could do that automagically :)
35: [11:14:18] * spierala quit (Quit: Page closed)
36: [11:15:19] <kinglozzer> spierala_: In later versions of SilverStripe, there are no automatic routes to controller's
37: [11:15:36] <kinglozzer> So hitting "Page_Controller" won't actually do anything, unless you manually add that as a route
38: [11:21:19] <spierala_> Oh, maybe I found some bad code in my form setup: $this->setAttribute("action", Director::baseURL() ."Page_Controller/ContactForm/submit".'?lang='.$langId);
39: [11:22:12] <spierala_> if I let silverstripe do the job then the form action looks like this: "/home/ContactForm"
40: [11:23:25] <spierala_> which will not have the issue...
41: [11:27:30] * NETim quit (Ping timeout: 260 seconds)
42: [11:34:12] * gelignite has joined #silverstripe
43: [11:53:22] * NETim has joined #silverstripe
44: [11:53:59] <NETim> Morning. Anyone come across TinyMCE links to pages that change from a link to [sitetree_link,id=]?
45: [11:56:34] * Mike123 has joined #silverstripe
46: [11:56:39] <Mike123> Hey guys
47: [12:00:59] * DimiStripe quit (Ping timeout: 276 seconds)
48: [12:01:36] <cloph> NETim: that typically is the link to internal page style of link, so silverstripe can keep track of page renames/moves
49: [12:01:49] <cloph> so if you think it isunexpected, then you need to provide more details
50: [12:01:59] <NETim> cloph, thanks.
51: [12:02:31] <NETim> The issue is that the links are rewritten with the shortcodes (minus any ID) and the shortcodes are used instead of the actual URL
52: [12:03:02] <NETim> so site.com/who-we-are/about us becomre site.com/[sitetree_link,id=][sitetree_link,id=][sitetree_link,id=]/who-we-are/about-us
53: [12:03:42] <cloph> oh, so it is removing the id, effectively breaking the link, so that can be considered a bug for sure.
54: [12:03:58] <NETim> The odd thing is that it isn't consistent.
55: [12:24:15] <wmk> cloph, should not happen
56: [12:24:46] <wmk> which version of SilverStripe? Any tiny plugins / configuration ?
57: [12:25:16] <wmk> shortcode with id of the page is the desired behaviour
58: [12:28:48] * UncleCheese has joined #silverstripe
59: [12:29:37] * UndefinedOffset has joined #silverstripe
60: [12:37:06] * neografik has joined #silverstripe
61: [12:38:26] * DimiStripe has joined #silverstripe
62: [12:54:34] <NETim> wmk, 3.2 I think. No TinyMCE plugins.
63: [12:55:00] <wmk> weird.
64: [12:55:09] <NETim> very.
65: [12:55:20] <wmk> soemthing changed back then that sometimes shortcodes are not parsed automatically
66: [12:55:33] <NETim> Looks like it.
67: [12:55:37] <wmk> Did the linked page disappear?
68: [12:55:38] <NETim> We've only seen it on the one site.
69: [12:55:42] <NETim> No.
70: [12:56:02] <NETim> The pages are still all there.
71: [12:58:05] <wmk> NETim, updating to 3.3 or 3.5?
72: [12:58:10] <wmk> or at least 3.2 latest?
73: [12:58:30] * pippy quit (Ping timeout: 260 seconds)
74: [12:58:49] <NETim> Looking at moving it to 3.5(LTS)
75: [12:59:40] <wmk> NETim, why not 3.6 with php7 support?
76: [13:00:10] <NETim> I mmight have meant 3.6
77: [13:00:19] <NETim> Too many numbers today...
78: [13:00:51] <NETim> For some reason I thought 3.5 was the LTS version for PHP7
79: [13:14:00] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
80: [13:17:47] <wmk> yeah, 3.6 with php7 support is great news...
81: [13:18:06] <wmk> NETim, did you play with SS4 already?
82: [13:19:53] <NETim> Had a look a while back but not recently.
83: [13:20:37] <NETim> How close to production is it?
84: [13:20:39] * wmk just tries to convert a ss2.3 site to 4
85: [13:20:48] <NETim> That can't end well...
86: [13:21:02] <wmk> well, it was a very simple site.
87: [13:21:14] <wmk> basically with image-gallery module (i guess I'll have to update this one then)
88: [13:21:19] <NETim> Did it go ok?
89: [13:21:29] <wmk> just work in progress.
90: [13:21:46] <wmk> cms stuff was just "import old db" and run dev/build
91: [13:22:09] <NETim> Ah, so migrate data to a new site rather than update the codebase?
92: [13:22:33] <wmk> both
93: [13:23:08] * filisko has joined #silverstripe
94: [13:23:09] <wmk> but codebase is nothing really special. A few simple custom pagetypes
95: [13:23:27] <wmk> and image-gallery module (uncle's), which was already converted to 3.x
96: [13:23:28] <NETim> Ah, ok.
97: [13:23:38] <NETim> You used Semaphore with Ansible?
98: [13:23:49] <wmk> guess not.
99: [13:24:02] <NETim> Ah, just wondered. Was trying it out.
100: [13:24:05] <wmk> didn't do much ansible in the last time.
101: [13:24:19] <wmk> more dotdeb recipes
102: [13:24:29] <NETim> Remebered you did a talk at Stripecon in 2015.
103: [13:24:33] <NETim> dotdeb?
104: [13:24:35] <wmk> set up a personal gitlab server with this.
105: [13:24:49] <wmk> sorry, debops
106: [13:24:56] <NETim> ah.
107: [13:25:09] <wmk> https://debops.org/
108: [13:25:40] <wmk> chances are high you can't login on your server after first installation (when you don't whitelist your machine). Very secure
109: [13:25:45] <wmk> well, hopefully
110: [13:26:02] <NETim> So secure even the admin can't use it?
111: [13:28:14] <wmk> happened to me once or twice.
112: [13:28:31] <wmk> Had to reset the vm, but it was just freshly installed.
113: [13:29:27] <NETim> Just inconvenient them.
114: [13:29:29] <NETim> then*
115: [13:29:48] <wmk> well, some prefer to learn the hard way
116: [13:30:04] <NETim> Life would be boring if everything was easy.
117: [13:30:23] <wmk> @Mike123, @neografik ^^^^
118: [13:33:22] <NETim> ?
119: [13:36:52] * Shrike_Finland quit (Quit: Leaving.)
120: [13:54:16] <neografik> :)
121: [14:08:34] * DimiStripe_alt has joined #silverstripe
122: [14:10:20] * DimiStripe quit (Ping timeout: 276 seconds)
123: [14:10:20] * DimiStripe_alt is now known as DimiStripe
124: [14:22:56] * DarjusIT has joined #silverstripe
125: [14:24:07] <DarjusIT> Hi, all is any posobility that form function writen right and it not generating in page?
126: [14:28:19] * Mike123 quit (Ping timeout: 260 seconds)
127: [14:29:18] <wmk> DarjusIT, ???
128: [14:29:41] <DarjusIT> wmk just solved
129: [14:29:50] <wmk> ok
130: [14:49:46] * UndefinedOffset quit (Quit: Leaving.)
131: [14:53:41] <wmk> is sspaste down?
132: [14:53:47] <wmk> !paste
133: [14:53:47] <ss-helper> 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.
134: [14:58:23] * UndefinedOffset has joined #silverstripe
135: [15:01:59] <wmk> oh, whois sspaste.com shows a chinese registrant
136: [15:02:03] <wmk> seems it's dead
137: [15:28:22] * DarjusIT quit (Remote host closed the connection)
138: [15:28:41] * DarjusIT has joined #silverstripe
139: [15:28:43] * Shrike_Finland has joined #silverstripe
140: [15:36:11] * wmk quit (Read error: Connection reset by peer)
141: [15:36:46] * wmk has joined #silverstripe
142: [15:48:42] <wmk> New SilverStripe song... https://www.youtube.com/watch?v=hUwW7RI3U0w
143: [15:55:39] * Shrike_Finland quit (Quit: Leaving.)
144: [16:01:11] * deschebbs quit (Quit: Konversation terminated!)
145: [16:10:24] * spierala_ quit (Ping timeout: 260 seconds)
146: [16:12:50] * neografik quit (Quit: Page closed)
147: [16:13:33] * wmk quit (Ping timeout: 260 seconds)
148: [16:16:57] * DarjusIT quit (Ping timeout: 240 seconds)
149: [16:37:11] * kinglozzer quit ()
150: [17:05:01] * UndefinedOffset quit (Quit: Leaving.)
151: [17:49:39] * wmk has joined #silverstripe
152: [18:45:13] * UndefinedOffset has joined #silverstripe
153: [20:09:36] * UndefinedOffset quit (Quit: Leaving.)
154: [21:38:58] * filisko quit (Remote host closed the connection)
155: [21:44:18] * UncleCheese has joined #silverstripe
156: [21:49:31] * DarjusIT has joined #silverstripe
157: [21:50:09] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
158: [21:52:32] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
159: [22:05:07] * UncleCheese has joined #silverstripe
160: [22:05:25] * UncleCheese quit (Client Quit)
161: [22:10:38] * UncleCheese has joined #silverstripe
162: [22:15:05] * UncleCheese quit (Ping timeout: 240 seconds)
163: [22:22:00] * Azure|dc has joined #silverstripe
164: [22:28:53] * Azure quit (Ping timeout: 240 seconds)
165: [23:58:07] * DarjusIT quit (Read error: Connection reset by peer)

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