#silverstripe IRC Log

IRC log for 24 October 2016

All timestamps are in UTC.

1: [00:13:01] * Stomach has joined #silverstripe
2: [00:42:19] * Kolin_ has joined #silverstripe
3: [00:42:20] * Zauberfi1ch1 has joined #silverstripe
4: [00:42:21] * Kapdap_ has joined #silverstripe
5: [00:42:52] * Uitto_ has joined #silverstripe
6: [00:43:34] * Kapdap quit (Write error: Broken pipe)
7: [00:43:38] * Uitto quit (Write error: Broken pipe)
8: [00:43:39] * Kolin quit (Write error: Broken pipe)
9: [00:43:39] * Uitto_ is now known as Uitto
10: [00:43:40] * Zauberfisch1 quit (Remote host closed the connection)
11: [00:50:44] * Azure quit (Ping timeout: 265 seconds)
12: [00:51:13] * ss-log___ quit (Ping timeout: 265 seconds)
13: [00:51:21] * ss-log____ has joined #silverstripe
14: [00:51:22] <ss-helper> ss-log____: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
15: [00:52:02] * Azure|dc has joined #silverstripe
16: [00:53:12] * Azure quit (Ping timeout: 265 seconds)
17: [00:53:12] * ss-log___ quit (Ping timeout: 265 seconds)
18: [00:58:55] * Stomach quit (Quit: zzz)
19: [01:02:59] * Stomach has joined #silverstripe
20: [01:31:51] * ss23 quit (Ping timeout: 268 seconds)
21: [01:31:52] * gamma quit (Ping timeout: 268 seconds)
22: [01:32:29] * xyphoid quit (Ping timeout: 268 seconds)
23: [01:32:29] * jbrungar quit (Ping timeout: 268 seconds)
24: [01:32:41] * jbrungar has joined #silverstripe
25: [01:33:11] * ss23 has joined #silverstripe
26: [01:33:36] * xyphoid has joined #silverstripe
27: [01:36:23] * pweh has joined #silverstripe
28: [01:37:12] * Audlex has joined #silverstripe
29: [01:40:03] * Audlex- quit (Ping timeout: 245 seconds)
30: [01:47:49] * gamma has joined #silverstripe
31: [03:33:19] * Stomach quit (Quit: zzz)
32: [03:47:20] * Stomach has joined #silverstripe
33: [03:53:55] * Stomach quit (Quit: zzz)
34: [04:33:30] * Stomach has joined #silverstripe
35: [05:03:33] * cheddam has joined #silverstripe
36: [05:05:31] * micmania1 has joined #silverstripe
37: [05:10:52] * pweh quit (Ping timeout: 260 seconds)
38: [05:49:03] * wmk has joined #silverstripe
39: [06:04:49] * Shrike_Finland has joined #silverstripe
40: [06:11:49] * Stomach quit (Quit: zzz)
41: [06:20:47] * Stomach has joined #silverstripe
42: [06:23:34] * micmania1 quit (Quit: micmania1)
43: [06:29:40] * pweh has joined #silverstripe
44: [06:48:53] * Shrike_Finland quit (Quit: Leaving.)
45: [07:00:21] * darianno has joined #silverstripe
46: [07:02:36] * micmania1 has joined #silverstripe
47: [07:12:39] * micmania1 quit (Quit: micmania1)
48: [07:17:13] * Shrike_Finland has joined #silverstripe
49: [07:52:08] * samsam has joined #silverstripe
50: [07:59:59] * kinglozzer has joined #silverstripe
51: [08:17:54] * samsam quit (Quit: Page closed)
52: [08:20:10] * lerni has joined #silverstripe
53: [08:20:21] * cupcake has joined #silverstripe
54: [08:28:37] * Stomach quit (Quit: zzz)
55: [08:45:00] * micmania1 has joined #silverstripe
56: [09:02:50] * agent44 has joined #silverstripe
57: [09:03:58] * kinglozzer quit (Read error: Connection reset by peer)
58: [09:07:24] * kinglozzer has joined #silverstripe
59: [09:54:54] * samsam has joined #silverstripe
60: [10:13:18] * Shrike_Finland quit (Quit: Leaving.)
61: [10:18:58] * Shrike_Finland has joined #silverstripe
62: [10:51:35] <samsam> I just found out that TextareaFields don't have a max characters parameter
63: [10:51:41] <samsam> Anyone know a simple workaround?
64: [10:55:58] * Shrike_Finland quit (Quit: Leaving.)
65: [10:59:29] * Shrike_Finland has joined #silverstripe
66: [11:03:14] * agent44 quit (Quit: zzz)
67: [11:03:37] * agent44 has joined #silverstripe
68: [11:07:17] * micmania1 quit (Quit: micmania1)
69: [11:08:20] * agent44 quit (Ping timeout: 260 seconds)
70: [11:16:03] * agent44 has joined #silverstripe
71: [11:20:34] * agent44 quit (Ping timeout: 256 seconds)
72: [11:42:45] * pweh quit (Read error: Connection reset by peer)
73: [12:05:19] * agent44 has joined #silverstripe
74: [12:07:49] * tmro quit (Ping timeout: 244 seconds)
75: [12:08:15] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
76: [12:08:31] * DimiStripe quit (Quit: DimiStripe)
77: [12:11:05] * Teddy_ has joined #silverstripe
78: [12:13:25] <Teddy_> hey guys, i want a function to just loop nth times to duplicate some markup in the template and trying function thisManyTimes(){ return 10; } <% loop thisManyTimes %> markup here <% end_loop %> does not seem to work. How can i just simpley create what is a for loop in the template (i don't ave any actuall obj to loop through)
79: [12:14:29] * tmro has joined #silverstripe
80: [12:26:04] <cloph> loop does loop over the elements in $thisManyTimes, it doesn't take an integer. So you could stick n dummy elements into that
81: [12:28:13] <Teddy_> cloph, tried making an array with 20 elements containing true values and still didn't loop
82: [12:29:20] * UndefinedOffset has joined #silverstripe
83: [12:30:02] <cloph> you need to use Silverstripe's dataobjects something that implements ss_List, http://api.silverstripe.org/3.4/class-SS_List.html like DataList or ArrayList
84: [12:36:09] * vitaly has joined #silverstripe
85: [12:39:07] * TRB143_ has joined #silverstripe
86: [12:39:44] * Uitto_ has joined #silverstripe
87: [12:43:48] * FrozenFire[alt] has joined #silverstripe
88: [12:44:02] * ss-helper_ has joined #silverstripe
89: [12:44:03] * ss-helper quit (Disconnected by services)
90: [12:44:03] * ss-helper_ is now known as ss-helper
91: [12:45:20] * Teddy_ quit (*.net *.split)
92: [12:45:22] * Uitto quit (*.net *.split)
93: [12:45:22] * vitaly__ quit (*.net *.split)
94: [12:45:22] * TRB143 quit (*.net *.split)
95: [12:45:22] * FrozenFire quit (*.net *.split)
96: [12:45:24] * Uitto_ is now known as Uitto
97: [12:55:30] * Regina_ has joined #silverstripe
98: [13:03:25] * Shrike_Finland quit (Quit: Leaving.)
99: [13:09:06] * Regina_ quit (Ping timeout: 260 seconds)
100: [14:37:46] * samsam quit (Ping timeout: 260 seconds)
101: [14:44:16] * wmk quit (Quit: Leaving)
102: [14:44:49] * muskie9 has joined #silverstripe
103: [15:11:06] * FrozenFire[alt] is now known as FrozenFire
104: [15:11:12] * Azure|dc quit (Ping timeout: 256 seconds)
105: [15:11:44] * Shrike_Finland has joined #silverstripe
106: [15:17:05] * lerni quit ()
107: [15:24:45] * Shrike_Finland quit (Quit: Leaving.)
108: [15:33:11] * muskie9_ has joined #silverstripe
109: [15:35:34] * muskie9 quit (Ping timeout: 276 seconds)
110: [15:35:45] * muskie9_ is now known as muskie9
111: [16:05:48] * TRB143_ is now known as TRB143
112: [16:05:55] * TRB143 quit (Changing host)
113: [16:05:56] * TRB143 has joined #silverstripe
114: [16:18:46] * samsam has joined #silverstripe
115: [16:28:17] * kinglozzer quit ()
116: [16:30:18] * samsam quit (Quit: Page closed)
117: [16:45:21] <ss-helper> SilverStripe character limit for TextareaField - http://stackoverflow.com/questions/40223324/silverstripe-character-limit-for-textareafield
118: [16:51:27] * agent44 quit (Quit: zzz)
119: [17:36:41] * Shrike_Finland has joined #silverstripe
120: [17:59:22] * Stomach has joined #silverstripe
121: [18:05:59] * Stomach quit (Quit: zzz)
122: [18:16:05] * terryapodaca has joined #silverstripe
123: [18:17:20] <terryapodaca> Hey guys, I get this: [Notice] Undefined index: Files when I send a form that doesn't have an attachment (front end). How do I validate or bypass my processing code if a file is not attached?
124: [18:20:59] <terryapodaca> http://www.sspaste.com/paste/show/580e50ee4b00c
125: [18:22:04] <muskie9> terryapodaca if(isset($data['StoryFile'])) maybe
126: [18:22:09] <terryapodaca> My issue starts on line lines 10-20, They don't have to attach a file but if they do I don't get the error, but if they don't it still wants to process the file object and I can't figure out what I need my if statement to be
127: [18:22:56] <muskie9> or if(isset($data['StoryFile']) && $file = $data['StoryFile'])
128: [18:23:00] <muskie9> not sure if it'll balk at that
129: [18:24:43] <guzzlefry> is there a guide floating around on how to install SilverStripe in a subdirectory of the document root?
130: [18:26:44] <terryapodaca> muskie9: still passes the if() statement
131: [18:27:30] <muskie9> if there is no file, I'm guessing $file['Files'][0] isn't set
132: [18:28:01] <terryapodaca> yes, that's where it errors
133: [18:28:26] <terryapodaca> i've been looking at this since 6am this morning so i know I am overlooking something super simple
134: [18:28:34] <terryapodaca> and my head hurts
135: [18:28:35] <terryapodaca> lol
136: [18:28:38] <muskie9> could add && isset($data['StoryFile']['Files']) or something
137: [18:28:48] <muskie9> and if needed adding the [0]
138: [18:29:11] <muskie9> seems like a lot
139: [18:33:53] <muskie9> bitnami y u make db table names lowercase
140: [18:46:52] <terryapodaca> muskie9: that worked...thanks. I guess I had to verify the proper idicies were there first
141: [18:47:02] <muskie9> :thumbsup:
142: [18:47:05] <terryapodaca> umm...spelling, sorry...you know what I mean
143: [18:47:07] * UndefinedOffset quit (Quit: Leaving.)
144: [18:47:09] <muskie9> 👍
145: [18:49:30] * Stomach has joined #silverstripe
146: [19:06:41] <terryapodaca> ok, another weird issue
147: [19:07:11] <terryapodaca> I am using slick slider http://kenwheeler.github.io/slick/
148: [19:07:39] <terryapodaca> and on pages I have the uploadfield (front end) it looks like SS puts all kinds of it's own Javascript in the page
149: [19:07:44] <terryapodaca> and I get an error
150: [19:07:55] <terryapodaca> Uncaught TypeError: $(...).slick is not a function
151: [19:08:18] <terryapodaca> it seems to be because there are two versions of jQuery being loaded, the one I want and the one that that Uploadfield is using
152: [19:08:56] <terryapodaca> I can't use Requirements::block(THIRDPARTY_DIR . '/jquery/jquery.js'); because then the uploadfield stops working
153: [19:09:03] <terryapodaca> any workaround for this kind of issue?
154: [19:16:27] * UndefinedOffset has joined #silverstripe
155: [19:22:33] * Shrike_Finland quit (Quit: Leaving.)
156: [19:28:06] * gelignite has joined #silverstripe
157: [19:34:09] * Shrike_Finland has joined #silverstripe
158: [19:35:46] * muskie9 quit (Ping timeout: 250 seconds)
159: [19:51:19] * darianno quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
160: [19:59:43] * adrexia has joined #silverstripe
161: [20:08:55] * Shrike_Finland quit (Quit: Leaving.)
162: [20:22:21] * UndefinedOffset quit (Quit: Leaving.)
163: [20:25:58] * sminnee_ has joined #silverstripe
164: [20:29:40] * sminnee_ quit (Client Quit)
165: [20:40:47] * muskie9 has joined #silverstripe
166: [20:52:37] * micmania1 has joined #silverstripe
167: [20:56:30] * Hailwood has joined #silverstripe
168: [20:56:38] <Hailwood> Morning folks
169: [21:00:18] <muskie9> Hailwood o/
170: [21:03:14] * Tron_ has joined #silverstripe
171: [21:05:19] <Tron_> Hi guys. I am trying to get into the backend for a site and I cant get in because it is trying to use https. How can make it so the /admin only needs http?
172: [21:06:23] * sminnee_ has joined #silverstripe
173: [21:10:01] <Hailwood> Tron_: sounds like you need to add a new rule to your .htaccess which will be forcing https
174: [21:10:27] <Hailwood> But why don't you want the admin using https anyway?
175: [21:12:06] <Hailwood> Anyone that uses phpstorm - have you ever managed to use the "hippie completion" successfully? https://www.jetbrains.com/help/idea/2016.2/hippie-completion-cyclic-expanding-words.html
176: [21:12:14] * micmania1 quit (Quit: micmania1)
177: [21:14:54] * phorloop has joined #silverstripe
178: [21:19:34] * phorloop_ has joined #silverstripe
179: [21:23:09] * phorloop quit (Ping timeout: 268 seconds)
180: [21:24:52] * micmania1 has joined #silverstripe
181: [21:36:28] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
182: [21:46:44] <Tron_> this is what I was lloking for
183: [21:46:46] <Tron_> --- CwpControllerExtension: ssl_redirection_force_domain: true
184: [21:55:48] * sminnee_ quit (Quit: sminnee_)
185: [22:04:49] * sminnee_ has joined #silverstripe
186: [22:06:41] * darianno has joined #silverstripe
187: [22:09:25] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
188: [22:19:43] * cheddam has joined #silverstripe
189: [22:20:11] <micmania1> Tron_: why wouldn’t you want SSL on admin?
190: [22:27:31] * spronk has joined #silverstripe
191: [22:30:26] <ss-helper> How to set all possible relationships of has_many as default in Silverstripe? - http://stackoverflow.com/questions/40228496/how-to-set-all-possible-relationships-of-has-many-as-default-in-silverstripe
192: [22:34:52] * darianno quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
193: [22:35:40] * Azure has joined #silverstripe
194: [22:42:21] * muskie9 has joined #silverstripe
195: [22:57:51] <Tron_> micmania1 I do want to use ssl, for some reason on my local MAMP setup its causing connection errors when trying to login or logout of the backend
196: [22:59:57] <micmania1> Tron_: you can put your local site into dev mode to prevent that. Removing SSL on admin has security implications
197: [23:00:01] * ss-helper quit (Remote host closed the connection)
198: [23:00:17] * ss-helper has joined #silverstripe
199: [23:26:09] * spronk quit (Quit: bleep bleep bloop bloop)
200: [23:44:16] * sminnee_ quit (Quit: sminnee_)
201: [23:44:19] * terryapodaca quit (*.net *.split)
202: [23:44:20] * Zauberfisch quit (*.net *.split)
203: [23:44:20] * cloph quit (*.net *.split)
204: [23:44:33] * terryapodaca has joined #silverstripe
205: [23:44:33] * Zauberfisch has joined #silverstripe
206: [23:44:33] * cloph has joined #silverstripe
207: [23:46:19] * Zauberfisch quit (Ping timeout: 253 seconds)
208: [23:51:50] * Zauberfisch has joined #silverstripe
209: [23:54:20] * spronk has joined #silverstripe
210: [23:54:29] <spronk> hmm
211: [23:55:25] * pweh has joined #silverstripe
212: [23:55:51] <spronk> my irc client is completely broken. I can't see anything...
213: [23:56:00] <muskie9> 😳
214: [23:56:28] <ss23> /redraw
215: [23:56:34] <ss23> also, install irssi
216: [23:58:21] * Tron_ quit (Ping timeout: 260 seconds)
217: [23:58:29] * spronk quit (Quit: bleep bleep bloop bloop)

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