#silverstripe IRC Log

IRC log for 1 November 2016

All timestamps are in UTC.

1: [00:01:27] <Nightjar> wut do DanaeNZ ?
2: [00:03:21] * DanaeNZ quit (Ping timeout: 260 seconds)
3: [00:05:11] <Nightjar> NO U
4: [00:05:22] <Nightjar> sup spronk :>
5: [00:05:27] <spronk> ayeee
6: [00:05:29] <spronk> numuch
7: [00:05:30] <spronk> you?
8: [00:07:32] * janneklouman-- has joined #silverstripe
9: [00:09:13] * Stomach quit (Quit: zzz)
10: [00:12:00] * janneklouman-- quit (Ping timeout: 250 seconds)
11: [00:24:31] * sminnee_ has joined #silverstripe
12: [00:29:03] * leomeloxp quit (Quit: Connection closed for inactivity)
13: [00:32:35] * micmania1 quit (Quit: micmania1)
14: [00:34:41] <Nightjar> nm either eh spronk
15: [00:39:06] * bubaphex quit (Quit: bubaphex)
16: [00:43:58] * micmania1 has joined #silverstripe
17: [00:50:58] * bubaphex has joined #silverstripe
18: [01:03:53] * janneklouman-- has joined #silverstripe
19: [01:08:52] * janneklouman-- quit (Ping timeout: 265 seconds)
20: [01:15:40] * flowsn has joined #silverstripe
21: [01:16:06] <flowsn> Hey Guys, cant find a roadmap for the ss4 development. Am i missing it or is there simply none?
22: [01:17:57] <flowsn> desperately want to make use of the php7 performance >.>
23: [01:20:07] <flowsn> Ah just stumbled upon this spreadsheet: https://docs.google.com/spreadsheets/d/1qRL0ILpWHhBoVxQ_vZf5Wn0PlrNBtJtsRRVgS_x2reg/edit#gid=0
24: [01:20:28] <flowsn> someone should really put that timeonline onto the website or somewhere where it is really findable
25: [01:20:32] <flowsn> ^^
26: [01:27:42] * micmania1 quit (Quit: micmania1)
27: [01:30:31] * bubaphex quit (Quit: bubaphex)
28: [01:39:33] * micmania1 has joined #silverstripe
29: [01:40:41] * chillu_23 quit (Quit: chillu_23)
30: [01:50:19] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
31: [02:21:16] * slievr quit (Read error: Connection reset by peer)
32: [02:22:47] * slievr has joined #silverstripe
33: [02:26:21] * janneklouman-- has joined #silverstripe
34: [02:28:44] * bubaphex has joined #silverstripe
35: [02:29:44] <Nightjar> flowsn, alpha 3 (or is it 4 now)? ... a new alpha is due out in the next few days.
36: [02:30:04] <Nightjar> But for php7 performance, there is a patch to make 3.x work with it just fine :)
37: [02:30:30] <Nightjar> https://twitter.com/wernermkrauss/status/791627339234963456
38: [02:30:53] * janneklouman-- quit (Ping timeout: 245 seconds)
39: [02:39:14] * DanaeNZ has joined #silverstripe
40: [02:39:28] <DanaeNZ> Nightjar: Ah you are still here
41: [02:39:46] <DanaeNZ> Turns out another developer made a new account for the site without updating any documentation
42: [02:39:54] <Nightjar> mostly always never not here
43: [02:40:02] <DanaeNZ> It's been meetings all day
44: [02:40:07] <DanaeNZ> The fun kind that involve wine
45: [02:40:15] <Nightjar> d:b
46: [02:40:23] <Nightjar> ooh
47: [03:00:54] * bubaphex quit (Quit: bubaphex)
48: [03:07:38] * sminnee_ quit (Quit: sminnee_)
49: [03:09:35] * sminnee_ has joined #silverstripe
50: [03:15:26] <Firesphere> Nightjar, a bouncer doesn't count
51: [03:38:46] * bubaphex has joined #silverstripe
52: [03:51:57] * sminnee_ quit (Quit: sminnee_)
53: [04:08:28] * bubaphex quit (Quit: bubaphex)
54: [04:09:47] * bubaphex has joined #silverstripe
55: [04:10:51] * bubaphex quit (Client Quit)
56: [04:18:19] * Ali_Alamshahi has joined #silverstripe
57: [04:19:03] <Ali_Alamshahi> Hello guys
58: [04:19:30] * DanaeNZ quit (Quit: TIME TO FEED)
59: [04:21:43] <Ali_Alamshahi> anyone knows how to separate variables? I need to achive this: data-size="1120x768" and I need to manage a way for this data-size="$widthx$height", but it considers the 'x' a part of $width variable
60: [04:21:56] * sminnee_ has joined #silverstripe
61: [04:23:18] <ss23> Ali_Alamshahi: lots of ways
62: [04:23:37] <ss23> echo 'data-size="' . $width . 'x' . $height'"';
63: [04:23:42] <ss23> Oh
64: [04:23:46] <ss23> this is in $silverstripe
65: [04:23:56] <ss23> Um, there's a way to do it... I just can't remmeber
66: [04:24:02] <ss23> You can maybe just use <% $foo %>
67: [04:24:21] <Ali_Alamshahi> thanks ss23
68: [04:24:25] <Ali_Alamshahi> let me try
69: [04:25:22] <Ali_Alamshahi> do you mean this: data-size="<%$width%>x<%$height%>"
70: [04:27:51] * cupcake quit (Ping timeout: 260 seconds)
71: [04:28:08] <Ali_Alamshahi> this one doesnt work! data-size="<%$width%>x<%$height%>"
72: [04:29:13] <Firesphere> You can also use curlybraces
73: [04:29:24] <Firesphere> data-size="{$width}x{$height}"
74: [04:30:00] <Ali_Alamshahi> thanks Firesphere
75: [04:30:39] <Firesphere> as per the documentation here: https://docs.silverstripe.org/en/3.4/developer_guides/templates/syntax/#escaping
76: [04:31:51] <Ali_Alamshahi> yes! thanks a million! it works perfectly
77: [04:32:51] <Firesphere> Hey, ss23, you un-opped yourself?
78: [04:41:36] * wmk quit (Read error: Connection reset by peer)
79: [04:41:41] * wmk_ has joined #silverstripe
80: [04:47:09] * wmk_ quit (Read error: Connection reset by peer)
81: [04:47:14] * wmk__ has joined #silverstripe
82: [04:53:30] * wmk__ quit (Ping timeout: 250 seconds)
83: [04:54:29] * wmk has joined #silverstripe
84: [05:03:21] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
85: [05:09:13] * fb3rasp has joined #silverstripe
86: [05:21:33] * fb3rasp quit (Quit: Lingo: www.lingoirc.com)
87: [05:28:46] * sminnee_ quit (Ping timeout: 250 seconds)
88: [05:45:35] * micmania1 quit (Quit: micmania1)
89: [06:16:09] <ss23> Firesphere: No raeson to be opped, and it's somewhat imposing
90: [06:38:58] * spronk quit (Quit: I may need a longer sleep timer...)
91: [06:40:21] * Shrike_Finland has joined #silverstripe
92: [06:46:33] * janneklouman-- has joined #silverstripe
93: [06:51:20] * janneklouman-- quit (Ping timeout: 260 seconds)
94: [07:09:01] * Shrike_Finland quit (Quit: Leaving.)
95: [07:20:08] * Shrike_Finland has joined #silverstripe
96: [07:57:47] * Ali_Alamshahi quit (Quit: Leaving)
97: [08:45:12] <ss-helper> how to detect the current language direction LTR/RTL when using Silverstripe Translatable module? - http://stackoverflow.com/questions/40356610/how-to-detect-the-current-language-direction-ltr-rtl-when-using-silverstripe-tra
98: [08:57:21] * elgabbu quit (Ping timeout: 260 seconds)
99: [08:59:54] * kinglozzer has joined #silverstripe
100: [09:06:15] * NETim_ has joined #silverstripe
101: [09:13:40] * ec8or quit (Ping timeout: 250 seconds)
102: [09:20:06] * janneklouman-- has joined #silverstripe
103: [09:31:33] * NETim_ quit (Ping timeout: 268 seconds)
104: [09:32:02] * NETim has joined #silverstripe
105: [10:37:12] * lerni has joined #silverstripe
106: [10:57:29] * lerni quit ()
107: [11:00:14] <ss-helper> Silverstripe i18n collecting translations in the templates only creates en.yaml? - http://stackoverflow.com/questions/40358655/silverstripe-i18n-collecting-translations-in-the-templates-only-creates-en-yaml
108: [11:13:23] * agent44 has joined #silverstripe
109: [11:32:19] * Shrike_Finland quit (Quit: Leaving.)
110: [11:49:42] * Shrike_Finland has joined #silverstripe
111: [12:02:45] * slievr1 has joined #silverstripe
112: [12:03:06] * slievr quit (Ping timeout: 250 seconds)
113: [12:04:37] * ss23 has joined #silverstripe
114: [12:04:43] <ss23> ARGH
115: [12:04:43] <ss23> :O
116: [12:06:02] <madmatt> >:D
117: [12:19:09] * Shrike_Finland quit (Quit: Leaving.)
118: [12:29:51] * UndefinedOffset has joined #silverstripe
119: [12:45:17] <gamma> Hello. Quick question regarding silverstripe userforms module. Wondering if it's possible to have a text area in a HTML block which will appear in the results? The standard text area isn't quite versatile enough for what I'm trying to do.#
120: [13:06:46] * NETim quit (Ping timeout: 268 seconds)
121: [13:07:57] * NETim has joined #silverstripe
122: [14:01:24] * Shrike_Finland has joined #silverstripe
123: [14:10:06] * flowsn quit (Quit: (null))
124: [14:10:08] * alias has joined #silverstripe
125: [14:10:08] <ss-helper> alias: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
126: [14:10:12] <alias> *alias
127: [14:12:30] <slievr1> *slievr
128: [14:12:40] * slievr1 is now known as slievr
129: [14:12:47] <slievr> I'm confused what are we doing
130: [14:12:50] <alias> HI to all, i created a data object to that some details to a page. This page is builded looping thru its data objects. Works fine. I need to create the English version of those pages, so i used Duplicate page and its children option from the CMS. Problem: its not duplicating the databobjects related to it, only the parent page. How can i copy the data objects as if they were CHILDREN of the parent pages?
131: [14:19:08] * Shrike_Finland quit (Quit: Leaving.)
132: [14:20:22] <slievr> You can overload the duplicate function. here's a forum post on it. https://www.silverstripe.org/community/forums/data-model-questions/show/17342?start=0
133: [14:20:53] <slievr> I was under the impression ss 3.4 did this by default
134: [14:30:36] * agent44 quit (Quit: zzz)
135: [14:32:29] * agent44 has joined #silverstripe
136: [14:47:01] * gelignite has joined #silverstripe
137: [15:21:00] <alias> Hi to all, can someone points me towards a way to duplicate a page and its data object (D/O) added to it via looping them? CMS duplicates the page but not its D/O. Thanks!
138: [15:28:37] * agent44 quit (Quit: zzz)
139: [15:29:49] * agent44 has joined #silverstripe
140: [16:00:40] <alias> Okay guys, forget it. Thanks for your help.
141: [16:03:36] <kinglozzer> alias: slievr gave you a link
142: [16:03:48] <kinglozzer> https://www.silverstripe.org/community/forums/data-model-questions/show/17342?start=0
143: [16:04:59] <alias> <slievr>Sorry, as you didn't include <alias> in your post, i was not aware of it.
144: [16:05:13] <kinglozzer> What IRC client are you using O.o
145: [16:05:44] <alias> <kinglozzer>?? I am using IRC on Safari.
146: [16:07:04] <alias> <kinglozzer>Yeah, i saw this solution when i searched for it. I always search BEFORE posting on IRC. But i didn't not work. Where is that duplicate function goes? Into the parent page class?
147: [16:07:42] <kinglozzer> Yes
148: [16:08:58] <alias> <kinglozzer>Ok trying as we speak.
149: [16:10:56] <alias> <kinglozzer>Not working either.
150: [16:11:06] <kinglozzer> alias: Can you paste your page class?
151: [16:11:39] * guest1142141 has joined #silverstripe
152: [16:11:39] <ss-helper> guest1142141: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
153: [16:12:11] * guest1142141 quit (Client Quit)
154: [16:13:34] <alias> <kinglozzer>Sure. http://www.sspaste.com/paste/show/5818bf266cfba
155: [16:13:52] <kinglozzer> alias: You've put the duplicate() function in the wrong class
156: [16:13:59] <kinglozzer> It needs to be in the page class, not the controller
157: [16:14:41] <alias> <kinglozzer>And i should modify Public to Private?
158: [16:15:04] <kinglozzer> No
159: [16:15:18] <kinglozzer> You've commented out your $many_many relationship?
160: [16:16:38] <alias> <kinglozzer>TRYING.
161: [16:18:05] <alias> <kinglozzer>Still not working
162: [16:18:59] <alias> <kinglozzer>http://www.sspaste.com/paste/show/5818c06501b09
163: [16:19:23] <kinglozzer> alias: Uncomment the many_many things
164: [16:19:44] <kinglozzer> My comment was because you had already commented out your "private static $many_many" and I don't know why you've done that
165: [16:20:09] <kinglozzer> It can't copy those many_many relations if you've commented that out
166: [16:20:30] <alias> <kinglozzer>So i leave both has_many and man_many into the function? My data object is a has_many
167: [16:20:43] <kinglozzer> alias: That class doesn't have any has_many relations
168: [16:21:10] <alias> <kinglozzer>So i leave both has_many and man_many into the function?
169: [16:21:18] <kinglozzer> alias: Where is the has_many?
170: [16:21:22] <kinglozzer> I think you're editing the wrong class
171: [16:21:53] <alias> <kinglozzer>You helped my with this earlier. Let me a second, i will paste everything. Thanks for your time.
172: [16:27:09] <alias> <kinglozzer>First lets recap. Projet page (Projet class) is a page for displaying a projet, each project has its own page. Those individual projets pages has DataObjects in them, for adding as many images i want into each projet (via a has_many) . This is what i want to copy when i use CMS Duplicate Page and Children to create the second language. I have over 100 images in French, i dont want to do all this again.
173: [16:27:42] <kinglozzer> alias: Ah, so you'll need to paste the duplicate() function in your "Projet" class
174: [16:27:55] <kinglozzer> (uncomment everything too)
175: [16:28:41] <alias> Like this? http://www.sspaste.com/paste/show/5818c2ae84fec
176: [16:28:56] <kinglozzer> Yes, I think so
177: [16:29:50] <alias> <kinglozzer>Trying. Hold on :-)
178: [16:31:24] <alias> <kinglozzer>It worked. Thanks!
179: [16:31:30] <kinglozzer> Great :)
180: [16:37:15] * wmk quit (Ping timeout: 250 seconds)
181: [16:37:31] * alias quit (Quit: Page closed)
182: [17:30:26] * kinglozzer quit ()
183: [17:34:15] * agent44 quit (Quit: zzz)
184: [17:55:59] * NETim quit (Ping timeout: 268 seconds)
185: [18:20:22] * Stomach has joined #silverstripe
186: [18:24:35] * janneklouman-- quit (Ping timeout: 244 seconds)
187: [18:38:12] <Nightjar> hi
188: [18:40:44] * muskie9 has joined #silverstripe
189: [18:42:50] * Shrike_Finland has joined #silverstripe
190: [18:45:22] <ss-helper> Display dataobjects from different classes in one list - SilverStripe 3.4 - http://stackoverflow.com/questions/40366362/display-dataobjects-from-different-classes-in-one-list-silverstripe-3-4
191: [18:55:19] <Nightjar> ajshort/gridfieldextensions
192: [18:56:00] <Nightjar> err shit
193: [18:56:10] <muskie9> Nightjar wrong window?
194: [18:56:19] <Nightjar> nah
195: [18:56:20] <Nightjar> http://addons.silverstripe.org/add-ons/ajshort/silverstripe-gridfieldextensions
196: [18:56:24] <muskie9> looks like a composer paste
197: [18:56:26] <Nightjar> was right but wrong but right
198: [18:56:32] <muskie9> lol
199: [18:56:33] <Nightjar> in answer to ss-helper
200: [18:56:42] <Nightjar> and you, since you've already answered ;)
201: [18:57:01] <Nightjar> You could edit, include the module 'that may be of interest'
202: [18:57:03] <muskie9> hope they didn't mean in the cms lol
203: [18:57:04] <Nightjar> :)
204: [18:57:43] <Nightjar> I said 'err shit' because https://packagist.org/packages/silverstripe-australia/gridfieldextensions
205: [18:57:50] <Nightjar> shit dun got confuse
206: [18:57:58] * Nightjar shrugs
207: [18:58:22] <Nightjar> and also, it is the wrong module
208: [18:58:30] <Nightjar> Maybe
209: [18:58:45] <Nightjar> It's early here xD -.-
210: [18:58:57] <muskie9> more caffeine required
211: [18:58:57] * janneklouman-- has joined #silverstripe
212: [18:59:06] <Nightjar> And breakfast
213: [18:59:22] <Nightjar> ah no, correct module *phew*
214: [18:59:27] <Nightjar> GridFieldAddNewMultiClass
215: [18:59:27] <muskie9> I think that's the right module for gridfield management: https://github.com/silverstripe-australia/silverstripe-gridfieldextensions/blob/master/code/GridFieldAddNewMultiClass.php
216: [18:59:31] <muskie9> yup
217: [19:00:17] <Nightjar> Hmm, but again it needs a common parent though :/
218: [19:00:22] <muskie9> threw the link in there đź‘Ť
219: [19:00:25] <muskie9> ah, right
220: [19:01:50] * micmania1 has joined #silverstripe
221: [19:12:21] * Shrike_Finland quit (Quit: Leaving.)
222: [19:17:55] * DanaeNZ has joined #silverstripe
223: [19:35:23] * bubaphex has joined #silverstripe
224: [19:37:29] <Nightjar> So hey, who else is excited about micmania1's sweet config simplifications!?
225: [19:38:00] <muskie9> Nightjar is that the performance boost one?
226: [19:38:28] <muskie9> been trying to keep up w/all the things but so much going on
227: [19:39:24] <Nightjar> I'm not 100% on the goals micmania1 had at the beginning for it. But the current is heavy and slow, for sure.
228: [19:39:55] <micmania1> https://github.com/micmania1/silverstripe-config/blob/master/docs/manifesto.md
229: [19:40:04] <micmania1> It has its own manifesto :D
230: [19:40:54] <muskie9> ah, that one... that one looks really good, read through some of it when he first started on it
231: [19:42:02] <micmania1> I *think* its in a working state on https://github.com/micmania1/silverstripe-framework/tree/config-test
232: [19:42:19] <micmania1> but its pretty hacked in at the moment and quite slow. Still need to work to clean that up
233: [19:42:54] <micmania1> also, untested with the CMS but should Just Work™
234: [19:43:39] <muskie9> I need to have a look again
235: [19:48:29] * Stomach quit (Quit: zzz)
236: [19:57:36] * sminnee_ has joined #silverstripe
237: [19:58:14] <Hailwood> After years of doing PHP... I never knew that mysql_fetch_array returns the rows keyed by column name AND numerically... Too many abstraction layers ha
238: [20:02:49] * Stomach has joined #silverstripe
239: [20:02:52] <xyphoid> haha that's a flashback
240: [20:02:58] * muskie9 quit (Ping timeout: 245 seconds)
241: [20:03:06] <xyphoid> ever since mysql_fetch_assoc arrived i never used fetch_array again
242: [20:03:46] * adrexia has joined #silverstripe
243: [20:04:25] <Hailwood> ^ that's all we EVER used which is why I didn't know this ha.
244: [20:05:18] <xyphoid> there was so much crazy in the early standard library
245: [20:05:21] <xyphoid> hello, empty()
246: [20:06:56] * DanaeNZ quit (Remote host closed the connection)
247: [20:07:31] * DanaeNZ has joined #silverstripe
248: [20:08:43] * DanaeNZ quit (Remote host closed the connection)
249: [20:08:57] * DanaeNZ has joined #silverstripe
250: [20:10:15] * Copperis has joined #silverstripe
251: [20:10:48] * bubaphex quit (Quit: bubaphex)
252: [20:11:25] <Copperis> Hi! What's the best way to make restful APIs in SS? This module - https://github.com/colymba/silverstripe-restfulapi ?
253: [20:16:52] <Nightjar> Yep
254: [20:17:03] <Nightjar> or roll your own :)
255: [20:17:52] <Nightjar> Hailwood, after years of doing PHP... I never knew that people still use mysql_* in new developments... ;D
256: [20:18:48] <Hailwood> Nightjar: We don't we've been given an old project and asked to remove the SQL injection vulnerabilities, (mysql_query("... $_REQUEST['something']")) ha.
257: [20:19:20] <Nightjar> LOL
258: [20:19:23] <Nightjar> gl wid dat
259: [20:19:28] <Copperis> alright, thanks Nightjar
260: [20:20:09] <Hailwood> So I'm switching all the queries out to use the Laravel database package and it was throwing me out as to why (array)$resultFromQuery wasn't working... it's because of that dual indexing and the original dev just randomly jumps between index based and sting based access.
261: [20:20:11] <Nightjar> That said Hailwood, I've seen a (popular :S) module or two that used to do DB::query($_REQUEST)
262: [20:20:51] <Hailwood> I'm talking like a block of assignments, the first and third will use string access, but the second will use indexes and I'm just like wtf.
263: [20:22:21] * muskie9 has joined #silverstripe
264: [20:22:25] <muskie9> all the peoples are going to slack lol
265: [20:22:41] * bubaphex has joined #silverstripe
266: [20:23:15] <Hailwood> Nightjar: a "code" occurances count of mysql_query = over 4k queries in this project that all need to be updated ha.
267: [20:23:46] <Nightjar> muskie9, eh?
268: [20:24:10] <Nightjar> Hailwood, hmm, ouch
269: [20:24:13] <xyphoid> i love how that kind of project just sticks around forever
270: [20:24:23] <muskie9> silverstripe-users
271: [20:24:43] <xyphoid> i worked on an internal tool that's 13 years old and still active
272: [20:25:42] <Nightjar> Last job was like that. Ran on a 'server' (read: compaq desktop workstation) that was 10 years old, bsd of the same age, and had failing hard drives.
273: [20:31:06] <Firesphere> O_o
274: [20:34:10] * UndefinedOffset quit (Quit: Leaving.)
275: [20:44:13] * samsam has joined #silverstripe
276: [20:45:24] <ss-helper> How to handle photos being uploaded at full resolution? - http://stackoverflow.com/questions/40368227/how-to-handle-photos-being-uploaded-at-full-resolution
277: [20:45:54] <samsam> Anyone familiar with Entwine here? Something in my script is triggering a pop-up in the CMS "the page type is updated after the page is saved"
278: [20:46:05] <samsam> but the script isn't altering anything, especially not the page type
279: [20:46:06] <samsam> http://paste.ofcode.org/PDhatCJGE2wv4WvTWbbVDd
280: [20:49:13] <Hailwood> $(this).trigger('change')
281: [20:56:17] <samsam> Is it easily replaceable by something else that works similar but doesn't trigger the popup?
282: [20:56:29] <samsam> I don't have the slightest clue how js / entwine works :/
283: [20:58:36] * bubaphex quit (Quit: bubaphex)
284: [21:01:59] <Hailwood> in the onmatch just use update.apply(this) or update.call(this) I can never remember which one it is!
285: [21:06:03] <samsam> without the $ sign?
286: [21:08:03] * bubaphex has joined #silverstripe
287: [21:09:24] <Nightjar> huh
288: [21:10:05] <Nightjar> oh entwine
289: [21:10:18] <samsam> killing me..
290: [21:10:20] <Nightjar> iirc (top of my head) 'this' in an entwine context is a jQuery object,
291: [21:10:26] <Nightjar> so $(this) is redundant
292: [21:11:14] <samsam> Hailwood I think update.apply(this) did the trick
293: [21:11:21] * micmania1 quit (Quit: micmania1)
294: [21:11:52] <samsam> I tried finding information about entwine, it seems to be pretty low-key
295: [21:14:43] <muskie9> samsam did you find this by chance: https://www.bigfork.co.uk/takeaway/a-beginners-introduction-to-using-entwine-in-silverstripe
296: [21:15:03] <samsam> lol you're the third person linking me there
297: [21:15:22] <muskie9> lol, that's the only article I've ever read for entwine ;P
298: [21:15:37] <samsam> ;D
299: [21:15:48] <Hailwood> samsam: It used to be called concrete I think
300: [21:16:10] <samsam> http://www.concretejs.com/
301: [21:16:11] * alias has joined #silverstripe
302: [21:16:13] <alias> *alias
303: [21:16:22] <samsam> that one?
304: [21:16:47] <Hailwood> nope
305: [21:16:51] <alias> Hi to all, just develop a new site, and i have a weird problem. Console says: Cant find /assets folder!!!
306: [21:17:15] <Hailwood> samsam: https://github.com/hafriedlander/jquery.concrete
307: [21:17:22] <Firesphere> Is the assets folder there? alias?
308: [21:17:50] <Nightjar> hahaha, nah it was renamed due to name conflict - although I don't think concretejs existed then, seem to remember some commercial product being named concrete and that was the reason... but this was some time ago
309: [21:17:57] <Nightjar> like, 5 years. An eon in JS land.
310: [21:18:11] <samsam> lol
311: [21:18:15] <Hailwood> Nightjar: concrete5 maybe?
312: [21:18:35] <Nightjar> nah
313: [21:18:40] <Nightjar> although maybe.
314: [21:18:54] * micmania1 has joined #silverstripe
315: [21:19:21] <samsam> alias: assets folder is usually in root (along with cms, framework etc)
316: [21:19:42] <samsam> btw Hailwood thanks for the killer fix
317: [21:19:56] <alias> <samsam>Cant you help me with this? Console says: Cant find /assets folder!!!
318: [21:20:36] <alias> <Firesphere>Yes it is. I can see it in the FTP folder. And another image (but hard coded) can get to it.
319: [21:20:57] <alias> <samsam>ıt is in root
320: [21:21:06] <Nightjar> alias, so... check permissions?
321: [21:23:35] <alias> Oh my, its worse than that. I develop a site on a temporary folder. The site has 186 images loaded in. When i moved the site to its final server, all of the images went out!!!! There is no trace of them into the page CMS!!!!!
322: [21:24:52] <alias> In fact, the problem is not accessing the /assets!!! Its more that the conversion got rid of all DataObjects images loaded in! If i place the images back, it works...
323: [21:29:02] <Nightjar> run the image task
324: [21:29:51] <alias> <Nightjar>Which means?
325: [21:30:38] <Nightjar> click the button that says "Find files in my server and sync them back into the database and maybe get rid of old database entries where the files no longer exist... automatically"
326: [21:30:45] <Nightjar> in the CMS.
327: [21:30:56] <samsam> aka "sync files" lol
328: [21:31:20] <Nightjar> admin/assets/
329: [21:31:34] <Nightjar> Yeah, I just forgot
330: [21:31:36] <Nightjar> :P
331: [21:31:51] <Nightjar> It used to have more words, I'm sure xD
332: [21:32:43] <alias> <samsam><Nightjar>Did that way before. It is just that when i go back to my object in the CMS, under the image tab, there is no trace of the images i imported - 186 of them....!
333: [21:33:23] <Nightjar> :/
334: [21:33:30] <Nightjar> yeah
335: [21:33:34] <Nightjar> check the permissions
336: [21:33:48] <Nightjar> web user needs to be aable to write - otherwise can't make thumbnails.
337: [21:33:58] <alias> <samsam><Nightjar>The object is there, all of the infos, but no signs of the images in the Load/Add Image. I am checking the Database
338: [21:34:40] <Nightjar> in the where?
339: [21:34:44] <samsam> are they in the Images section though?
340: [21:34:52] <alias> <samsam><Nightjar>Permissions of assets and Uploads are set to 755. And as i said, if i re-insert the image manually, it works.
341: [21:35:07] <Nightjar> yes but who owns that folder?
342: [21:35:22] <Nightjar> rm -rf _resampled
343: [21:37:45] <Hailwood> Moving servers... do you have GD and ImageMagick installed on the new server?
344: [21:38:33] <alias> <samsam><Nightjar>In the DB, i can see the PhotoID
345: [21:38:40] <Nightjar> Yeh, because otherwise new files wouldn't get resampled, you'd get fatal error instead
346: [21:38:54] <Nightjar> alias, what about in the filesystem?
347: [21:38:57] <Hailwood> Nightjar: You don't get a fatal error. You just get not image
348: [21:39:00] <Hailwood> it's retarded
349: [21:39:07] <Hailwood> *get no image
350: [21:39:17] <Nightjar> nah because ... wut
351: [21:39:34] <Nightjar> whole extension missing fatal error image_do_some_things() doesn't exist
352: [21:39:56] * Nightjar shrugs
353: [21:40:01] <Hailwood> I think it might read something like if(has_gd) elseif(has_imagemagick){} ... so if they're not there do nothing.
354: [21:40:19] <Nightjar> only for backend
355: [21:41:02] <alias> I might add that the actual server is a low-options, withy old SQL5.1 while the site was developed using a more modern SQL. Might be that?
356: [21:41:13] <Nightjar> Image uses ImageBackend, which won't exist because class won't exist because it's in an if()
357: [21:41:17] <Nightjar> iirc
358: [21:41:21] <Nightjar> but, worth checking I guess.
359: [21:41:36] <Nightjar> alias, No. Check the filesystem.
360: [21:42:13] <alias> <Nightjar> alias, No. Check the filesystem. Which means?
361: [21:42:28] <Nightjar> look for a file on your ftp or however you're connecting
362: [21:42:42] <Nightjar> webroot assets/Uploads/wherever/youputit.jpg
363: [21:42:45] <Nightjar> or whatever :)
364: [21:43:06] <alias> <Nightjar>Ok, what a sec.
365: [21:46:14] <alias> <Nightjar>Yes it works => http://www.gilbertpoissant.com/assets/Uploads/images-projets/rangee1/atlas/atlas-1-4531.jpg http://www.gilbertpoissant.com/assets/Uploads/images-projets/rangee1/icare/icare-1.jpg
366: [21:46:51] <Nightjar> alias, so what is your actual problem? Can you please elaborate?
367: [21:47:01] <Nightjar> I think something has been lost in the questions
368: [21:48:51] <alias> <Nightjar>Lets redcap. I developed the site on another server (for some reasons). All was good. Then, i moved it to a new (but retarded) server.... I cleared the old DB, created a new one, imported the DB from one server to another, installed SS3.4.1. All is fine, but.... all of the 186 images i inserted into my data-objects are missing. While some other dat from DtatOnbject are showing.
369: [21:49:45] <Nightjar> So you copied all the files including the assets?
370: [21:50:41] <Nightjar> as in, all the images on the old server in /assets are also on the new server in /assets?
371: [21:51:02] <Nightjar> the files aren't physically missing?
372: [21:51:06] <alias> <NightJar>Yes. Look at this <img src="/assets/Uploads/images-projets/rangee1/falling-object/obj-spec-2013-1.jpg" /> <img src="/assets/" /> Those are two images : one and re-inserted (showing) and one from old site (missing)
373: [21:51:38] <Nightjar> wait, so where are they missing? Old site or new site?
374: [21:52:55] <Nightjar> and what happens when you visit /admin/assets/
375: [21:52:57] <Nightjar> on both?
376: [21:53:50] <alias> <NightJar>New site. GO see : http://www.gilbertpoissant.com/projets
377: [21:55:17] <Nightjar> and in the database?
378: [21:55:26] * micmania1 quit (Quit: micmania1)
379: [21:55:27] <Nightjar> that file exists
380: [21:55:27] * Stomach quit (Quit: zzz)
381: [21:55:35] <Nightjar> and on the filesystem, that file exists?
382: [21:55:53] <DanaeNZ> So I've never really made a satisfactory requireDefaultRecords style function. Do you guys just bung it in whatever class you want? I don't feel like making a group extension just to make a few groups...
383: [21:55:53] <Nightjar> which points at permissions.
384: [21:56:14] <Nightjar> DanaeNZ, what is your usecase?
385: [21:56:53] <DanaeNZ> Nightjar: Create 3 arbitrary member groups (ie, Trade, Downloaders, Consumers)
386: [21:56:56] <Nightjar> alias, check in the CMS.
387: [21:57:14] <DanaeNZ> But I want to ensure the codes are right, hence I want to create them dynamically.
388: [21:57:21] <DanaeNZ> yml?
389: [21:57:25] <alias> <Nightjar> check WHAT in the CMS?
390: [21:57:29] <Nightjar> alias;that eg. icare has an image set to it
391: [21:57:29] * janneklouman-- quit (Ping timeout: 260 seconds)
392: [21:57:34] * micmania1 has joined #silverstripe
393: [21:58:10] <alias> <Nightjar>As i said, all traces of the images in my objet are gone!!!!
394: [21:58:24] <Nightjar> alias, so there is no file set?
395: [21:59:34] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
396: [21:59:35] * Stomach has joined #silverstripe
397: [22:00:11] <Nightjar> alias, there is no image in the field for the object, and the name of the image cannot be found in /admin/assets/
398: [22:00:12] <Nightjar> ?
399: [22:00:16] * janneklouman-- has joined #silverstripe
400: [22:00:32] <alias> <Nightjar>Nope, Go see this image www.gilbertpoissant.com/object-image.png Its from my data object tab. I inserted those 186 images and now there is an empty thumbnail....
401: [22:00:54] <Hailwood> alias: Have a db backup you can load in?
402: [22:01:19] <Hailwood> There was probably a filesystem sync done when the images weren't accessible so it's wiped them from the assets table
403: [22:01:22] <alias> <Hailwood>Sure i have. You'd suggest reimport the DB? Clear it and reimport it?
404: [22:01:55] <Hailwood> Worth a shot
405: [22:02:01] <Nightjar> alias, the site is just an exact copy of your 'old' one, yes?
406: [22:02:13] <alias> <Nightjar> Yes it is.
407: [22:02:29] <Nightjar> ensure all the assets are loaded across first, then re-import the database.
408: [22:02:30] <Nightjar> yes.
409: [22:02:44] <alias> <Nightjar> Same SS version, just not the same PHP and Sql versions. Ok trying to reimport.
410: [22:02:57] <Nightjar> it seems like the 'sync files' button may have been pressed before all images were either transferred, or the assets directory permissions were fixed.
411: [22:07:30] * micmania1 quit (Quit: micmania1)
412: [22:07:59] * bubaphex quit (Quit: bubaphex)
413: [22:10:51] <alias> <Nightjar>Had to reinstall SS. Still waiting.
414: [22:11:59] <alias> <Nightjar>Still nothing.... This is pure s...
415: [22:12:15] * bubaphex has joined #silverstripe
416: [22:12:45] <DanaeNZ> alias: do you have a public URL? Haven't been following the convo but there's something I wanna check if you're missing images
417: [22:14:36] <Nightjar> yep, scroll up :P
418: [22:15:11] <alias> <DanaeNZ>Yes www.gilbertpoissant.com and the culprit pages are http://www.gilbertpoissant.com/projets and http://www.gilbertpoissant.com/en/projects
419: [22:16:37] <DanaeNZ> alias: All your images are pointing to /assets which tells me that either a: The file records (database) have been unlinked from the actual file paths (which happens when you run the file syncing task). or b) your assets/ directory as the incorrect permissions
420: [22:17:46] <Nightjar> So basically; agree with the above. Try re-importing the database.
421: [22:18:12] <alias> <DanaeNZ><Nightjar>Go see that page and open the Actualités tab http://www.gilbertpoissant.com/a-propos You will see that 4 images are missing but one is showing. Oddly,. they are all 4 in the same folder!!!!!
422: [22:18:26] <DanaeNZ> alias: read my message again
423: [22:18:41] <DanaeNZ> Re-import database
424: [22:19:05] <DanaeNZ> Or check permissions
425: [22:19:16] <alias> <DanaeNZ>Tried that twice. Have you looked at this page? open the Actualités tab http://www.gilbertpoissant.com/a-propos You will see that 4 images are missing but one is showing. Oddly,. they are all 4 in the same folder!!!!!
426: [22:20:07] <Nightjar> alias, and you have confirmed that they are existing in FTP?
427: [22:20:18] <alias> <DanaeNZ>The 4 missing are in resampled and the one showing is not using _resampled. I did nothing.
428: [22:20:43] <alias> <Nightjar>Yes, i can access them using their direct URLs. http://www.gilbertpoissant.com/assets/Uploads/images-projets/rangee1/icare/icare-1.jpg
429: [22:20:53] <DanaeNZ> alias: the resampled ones?
430: [22:21:13] <Nightjar> alias, permissions are the issue
431: [22:21:14] <DanaeNZ> alias: /assets/Uploads/images-activites-en-cours/_resampled/ResizedImageWzEzMSw4NV0/chau-3.jpg
432: [22:21:21] <DanaeNZ> Does that file exist in FTP?
433: [22:22:28] <alias> <DanaeNZ>Nope they are not. But this are not the images i need to work. I can easily load them manually (only 4). But all of the other s186 images from those pages have disappeared, and the page source shows no URL at all, on;y /assets.
434: [22:23:04] <DanaeNZ> alias: Try regenerating the resampled images: /dev/tasks/RegenerateCachedImagesTask
435: [22:23:09] <Nightjar> alias, you are mistaken. These _are_ the images you need to work.
436: [22:23:44] <Nightjar> in many cases.
437: [22:24:21] <Nightjar> The CMS takes your original image (http://www.gilbertpoissant.com/assets/Uploads/images-projets/rangee1/icare/icare-1.jpg) and resizes it, storing it in the _resampled folder so the <img> tag can use it.
438: [22:24:33] <Nightjar> the resized image is missing, so it does not load.
439: [22:25:03] <alias> <Nightjar>I alltready corrected the URL of this 4 images. Easy, just removed _resampled in to the TinyCME panel. But all of the projects images are loaded via a DataObject, from which i have ALL infos BUT the images.
440: [22:25:26] <Nightjar> yes, don't edit images in tinymce.
441: [22:26:03] <Nightjar> again, magic happens behind the scenes to make it work with different sizes.
442: [22:26:09] <Nightjar> The issue is your file system permissions.
443: [22:26:30] <Nightjar> I suspect SilverStripe cannot write to the correct folders
444: [22:26:46] <alias> <Nightjar>Look at source code. What is this shit? <img class="\&quot;left\&quot;" title="\&quot;\&quot;" src="\&quot;assets/Uploads/images-activites-en-cours/chau-1.jpg\&quot;" alt="\&quot;chau-1.jpg\&quot;" width="\&quot;131\&quot;" height="\&quot;85\&quot;">
445: [22:26:49] <DanaeNZ> Nightjar: Would the regenerate cached images task error out if there are file permissions errors? I suspect it would let alias know right away if it is having trouble
446: [22:26:51] <Nightjar> try to delete any _resampled folder you come across
447: [22:27:02] <Nightjar> true DanaeNZ - it's worth a try
448: [22:27:05] * bubaphex quit (Quit: bubaphex)
449: [22:27:15] <DanaeNZ> alias: Try regenerating the resampled images: /dev/tasks/RegenerateCachedImagesTask
450: [22:27:33] <DanaeNZ> I believe that task deletes the _resampled folders
451: [22:27:41] <alias> <DanaeNZ>Did that, it regerates 74 out of 145 images. Still nothing,
452: [22:27:41] <Nightjar> alias, that shit is the result of you trying to manually set the image.
453: [22:28:26] <alias> <Nightjar>The project page shows this in the console : Failed to load resource: the server responded with a status of 404 (Not Found)
454: [22:28:46] <Nightjar> "Not Found"
455: [22:29:10] <alias> <Nightjar>Yes, can't found /assets
456: [22:29:51] <Nightjar> yes, it is not supposed to.
457: [22:30:16] <DanaeNZ> The only time I'd get that issue is if the database is out of sync with the physical files
458: [22:30:25] <ss-helper> Certain folders and files missing when using composer to install silverstripe? - http://stackoverflow.com/questions/35007639/certain-folders-and-files-missing-when-using-composer-to-install-silverstripe
459: [22:30:26] <Nightjar> it will only find files of certain types (.png, .jpg) that exist, not folders.
460: [22:30:41] * novaweb has joined #silverstripe
461: [22:30:52] <Nightjar> assets/ is the result of a missing file.
462: [22:31:01] * Phlunk3 has joined #silverstripe
463: [22:31:03] <Nightjar> err, <img src="assets/"
464: [22:31:11] <Hailwood> DanaeNZ: You can also get that issue if you try to output a file that hasn't been set (Page has_one Image as Image and you use $Image.Link)
465: [22:31:36] <alias> <Nightjar>I delete the images ann reinsert id manually. What is this shit???? <img class="\&quot;\\&quot;left\\&quot;\&quot;" title="\&quot;\\&quot;\\&quot;\&quot;" src="\&quot;\\&quot;assets/Uploads/images-activites-en-cours/bourse-grande.jpg\\&quot;\&quot;" alt="\&quot;\\&quot;bourse\&quot;" width="\&quot;\\&quot;200\\&quot;\&quot;" height="\&quot;\\&quot;202\\&quot;\&quot;">
466: [22:31:55] <DanaeNZ> alias: Why are you deleting images and reinserting manually?
467: [22:32:24] <DanaeNZ> alias: I mean, how are you reinserting manually?
468: [22:32:29] <Nightjar> tinymce
469: [22:32:33] <DanaeNZ> alias: Like, editing the html in tinymce?
470: [22:33:09] <alias> <DanaeNZ>Because i need them to work!!!! I have two types of images: a couple of them for a page (i can insert them using TinyCME). Those are the ones i am trying to re-oinsert manually. And i get this shit into the <img> tag.
471: [22:33:30] <novaweb> Hey frands, trying to integrate a bootstrapy datetime field to a booking form, all is done... but $data['Date'] isn't coming through to the email/dataobject as it is a literal field... how can I get this to work? Lines 25,46 and 61: http://pastie.org/private/4c5lvpljoncjy7g1gjqnsa
472: [22:33:38] <alias> <DanaeNZ>And of the 186 other ones, loaded via a DataObject.
473: [22:34:45] <alias> What is that!!! <p><a href="\&quot;\\&quot;\\\\&quot;assets/Uploads/images-activites-en-cours/chau-1.jpg\\\\&quot;\\&quot;\&quot;"><img class="\&quot;\\&quot;\\\\&quot;left\\\\&quot;\\&quot;\&quot;" title="\&quot;\\&quot;\\\\&quot;\\\\&quot;\\&quot;\&quot;" src="\&quot;\\&quot;\\\\&quot;assets/Uploads/images-activites-en-cours/chau-1.jpg\\\\&quot;\\&quot;\&quot;" alt="\&quot;\\&quot;\\\\&quot;chau-1.jpg\\\\&quot;\\&quot;\&quot;"
474: [22:34:53] <Nightjar> novaweb, literalfield - this carries no data.
475: [22:35:13] <Nightjar> you need to perhaps look at something like the bootstrapforms module
476: [22:35:26] * micmania1 has joined #silverstripe
477: [22:35:29] <novaweb> thanks Nightjar, in understand that... what would you suggest for a workaround?
478: [22:35:29] <Nightjar> putting HTML in PHP is almost always the wrong way to go about things :(
479: [22:35:36] <Nightjar> novaweb, DateField! :)
480: [22:35:38] <DanaeNZ> alias: Please elaborate on "Insert manually"
481: [22:35:54] <DanaeNZ> Because there are a few ways you can "insert manually"
482: [22:36:08] <alias> <DanaeNZ>Using TinyCM'S insert image
483: [22:37:12] <novaweb> Nightjar, if you saw the front end, this is waaayy nicer than Datefield + I've invested $$$ in this approach so wouldn't want to rewind... is there a way to retrieve the form input before submission... AJAX? Any lame-o hack will do
484: [22:37:14] <novaweb> :p
485: [22:37:23] <DanaeNZ> alias: Right - correct me if I'm wrong, Nightjar, but TinyMCE Browse Server or whatever option will be taking the database as the point of truth. If the database has a record, but the files to not exist, then of course it's not going to show an image on the front end.
486: [22:37:44] <Nightjar> Depends again DanaeNZ.
487: [22:38:10] <alias> <DanaeNZ>Why do i sudden;ly get all those quotes into my HTML!!!!
488: [22:38:12] <Nightjar> using the "Insert Media" button will give a modal with "choose some database media things"
489: [22:38:31] <DanaeNZ> alias: oh, I thought it was the chat program encoding stuff
490: [22:38:39] <Nightjar> right clicking an image and going "edit image" will bring up the default TinyMCE image insert box - allowing to edit src, etc.
491: [22:38:46] <DanaeNZ> alias: what is your template code?
492: [22:38:48] <DanaeNZ> alias: !paste
493: [22:38:50] <Nightjar> edit HTML button will let HTML be edited.
494: [22:38:57] <DanaeNZ> oo the paste bot
495: [22:38:58] <DanaeNZ> nooo
496: [22:39:02] <Nightjar> all kinds of things
497: [22:39:24] <DanaeNZ> Nightjar: I haven't delved much into TinyMCE cos it is a beast
498: [22:39:34] <DanaeNZ> Haven't had any trouble from clients about it before
499: [22:39:46] <Nightjar> yeah, just avoid it if can.
500: [22:39:58] <alias> <DanaeNZ><Nightjar>Guys, this is terrible. I mean, this is my 30th site or more, and never add that kinda shit. Does magic_quotes in php.ini must be set?
501: [22:40:10] <Nightjar> No, must be unset.
502: [22:40:15] <Nightjar> an isn't even an option any more.
503: [22:40:34] <Nightjar> if your php.ini has it set, then you've got problems in using a very old version of PHP.
504: [22:41:23] <alias> <Nightjar>I know, but as i am getting all; of those quotes and \ into my HTML, i thought it ws. PHP is 5.3.28
505: [22:41:24] <Nightjar> novaweb, use DateField, or if you must, you could use a TextField or HiddenField.
506: [22:41:31] <DanaeNZ> alias: Hey, I'm trying to help you. You didn't even paste your template code to me like I asked.
507: [22:41:49] <DanaeNZ> alias: you're not running PHP 5.3 are you?!
508: [22:42:15] <alias> <DanaeNZ>Please accept my apologies if i harm you. English is not m,y first langage.
509: [22:42:26] <alias> <DanaeNZ>Yes, PHP5.3.8 along SS3.4.1
510: [22:42:31] <samsam> :O
511: [22:42:32] <DanaeNZ> omfg
512: [22:42:34] <DanaeNZ> dude
513: [22:42:35] <samsam> :D
514: [22:42:36] <Nightjar> alias, we understand your frustrations. We are trying to help!
515: [22:42:38] <DanaeNZ> PHP 5.3 is so old
516: [22:42:41] <DanaeNZ> like
517: [22:42:53] <samsam> dinosaurs.
518: [22:42:54] <DanaeNZ> holy shit man I complain because some of our servers are running 5.4
519: [22:43:00] <Nightjar> :o
520: [22:43:01] <alias> <DanaeNZ>Yean, but i am stuck on that old server.
521: [22:43:16] <DanaeNZ> PHP 5.3 plus SilverStripe 3.4...omg I can't even
522: [22:43:34] <samsam> DanaeNZ left the channel #ragequit
523: [22:43:42] <Nightjar> novaweb, you can change the template a field renders with - this is a far far better way of achieving what you're after.
524: [22:43:51] <DanaeNZ> samsam: pretty much
525: [22:44:08] <DanaeNZ> sorry alias I haven't worked with PHP 5.3 in years
526: [22:44:14] <DanaeNZ> It could be anything
527: [22:44:19] <DanaeNZ> Server could have fucked permissions
528: [22:44:23] <novaweb> Nightjar, and i'll still be able to push ahead with this custom datefield?
529: [22:44:43] <alias> <DanaeNZ>Wheee is that shit coming from ? http://www.gilbertpoissant.com/quotes.png
530: [22:44:53] <Nightjar> novaweb, well a datefield accepts a date. If you use a textfield or hiddenfield to carry the data, you'll need to ensure it is formatted correctly.
531: [22:45:22] <Nightjar> alias, is that where you try to edit the image?
532: [22:45:35] <Nightjar> alias, show us the box you use to try and correct the image manually?
533: [22:45:58] <Hailwood> alias: it looks like you may have accidentially pasted the code into the visual editor, at which point tinymce has sanitized it for you.
534: [22:46:04] <Hailwood> You're just not having a good day man.
535: [22:46:36] * Stomach quit (Ping timeout: 260 seconds)
536: [22:46:51] <Hailwood> But hey, you haven't had to write a function named "mimic_mysql_result()" yet, so you're still ok.
537: [22:47:09] <alias> <Nightjar>Yeah, this is it. Here is the image of the box. http://www.gilbertpoissant.com/quotes2.png
538: [22:48:11] <alias> <Nightjar>The server i developed the site on used PHP 5.6.27. Can PHP 5.3.28 cause all this?
539: [22:53:22] <alias> <Nightjar>Why do i get double quotes into my images URL?
540: [22:54:22] * Copperis quit (Quit: Leaving)
541: [22:56:28] <DanaeNZ> alias: Manually editing image urls in the HTML popup box?
542: [22:56:45] <DanaeNZ> TinyMCE would hella sanitise that I'm sure
543: [22:57:19] <alias> <DanaeNZ>Its not. Even the <p> class has double quote and \
544: [23:00:02] * ss-helper quit (Remote host closed the connection)
545: [23:00:18] * ss-helper has joined #silverstripe
546: [23:00:30] <alias> <DanaeNZ>Weird. I can see this file into the FTP record but browser cannot access it. http://www.gilbertpoissant.com/assets/Uploads/images-projets/atlas/atlas-1-4531.jpg
547: [23:00:46] <alias> <Nightjar>Weird. I can see this file into the FTP record but browser cannot access it. http://www.gilbertpoissant.com/assets/Uploads/images-projets/atlas/atlas-1-4531.jpg
548: [23:00:53] * Stomach has joined #silverstripe
549: [23:01:11] <DanaeNZ> wtf, that's a .jpg but I'm seeing an entire website
550: [23:01:13] <Nightjar> What are the permissions on it?
551: [23:01:18] * bubaphex has joined #silverstripe
552: [23:01:24] <Nightjar> DanaeNZ, it's french, you just can't read FOUR OH FOUR
553: [23:01:36] <Nightjar> is ErrorPage, fo sho.
554: [23:01:42] <DanaeNZ> Haha oh right
555: [23:02:05] <DanaeNZ> Agree, alias what are the exact permissions on that file on the server?
556: [23:03:04] <alias> <DanaeNZ>644
557: [23:03:17] <novaweb> Ok Nightjar, have flicked out Literal and implemeneted DateField as per docs... just passing showcalendar, true.. Calendar doesn't pop up and I have no JS errors... know what the most common oversight is?
558: [23:03:28] * bubaphex quit (Client Quit)
559: [23:03:31] <samsam> loving the activity tonight
560: [23:03:33] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
561: [23:04:00] <novaweb> or if it conflicts with bootstrap.js or jquery2?
562: [23:04:17] <Nightjar> novaweb, umm, yeah, probably just don't do that. You want to use bootstrap anyway right?
563: [23:04:26] <DanaeNZ> alias: Shouldn't it be 755? Nightjar pls confirm I always forget.
564: [23:04:34] <novaweb> implemenetedarrrrrrr
565: [23:04:43] <alias> <DanaeNZ>Changed it to 777, no change
566: [23:04:46] <Nightjar> DanaeNZ, 644, is file, not folder.
567: [23:04:55] <Nightjar> alias, and all parent folders, back to /assets
568: [23:05:03] <novaweb> nightjar yes this whole base is bootstrap
569: [23:05:09] <novaweb> so what you saying?
570: [23:05:24] <Nightjar> novaweb, well the showCalendar setting is for a thing that isn't boostrap.
571: [23:05:31] <Nightjar> you want a bootstrap calendar to show?
572: [23:05:38] <novaweb> es possible?
573: [23:05:38] <Nightjar> change the template the DateField uses :)
574: [23:05:55] <Nightjar> To be... bootstrapy
575: [23:05:59] <novaweb> more clues please bruv
576: [23:06:03] <Nightjar> uhh
577: [23:06:04] <Nightjar> like
578: [23:06:09] <Nightjar> api.silverstripe.org
579: [23:06:10] <Nightjar> :P
580: [23:06:20] <novaweb> i know what you're saying but I'm at the end of a 3 month no days off 15 hour days stint here
581: [23:06:22] <alias> <Nightjar>All of my images are at 644. All parent folders are set to 755
582: [23:06:23] <novaweb> melting
583: [23:06:28] <Nightjar> gotcha
584: [23:06:50] <alias> <DanaeNZ>All of my images are at 644. All parent folders are set to 755
585: [23:07:35] <DanaeNZ> alias: Ok, what's the user / group? They all need to be accessible by your apache user for a start
586: [23:08:05] <alias> <DanaeNZ> user / group???
587: [23:08:18] <DanaeNZ> ah, server stuff
588: [23:08:22] <DanaeNZ> hmm
589: [23:08:39] <novaweb> Nightjar, you're saying -setTemplate and then make a template as per my html in literalfield?
590: [23:08:55] <DanaeNZ> alias: are you just browsing with an FTP client?
591: [23:08:56] <Nightjar> novaweb, try uhh... mysite/templates/forms/DateField.ss
592: [23:09:01] <Nightjar> then flush
593: [23:09:02] <DanaeNZ> alias: as opposed to like, ssh
594: [23:09:15] <Nightjar> beware: will change all datefields
595: [23:09:19] <Nightjar> everywhere, probably
596: [23:09:20] <Nightjar> maybe
597: [23:09:32] <Nightjar> do it in theme if that's applicable. YMMV
598: [23:09:40] <Nightjar> DanaeNZ, yes.
599: [23:09:48] <alias> <DanaeNZ>No, i use Safari, Firefox and Google. And Cpanel to check FTP stuff.
600: [23:10:11] <novaweb> i only have 1 datefield
601: [23:10:11] <novaweb> and the content is as per what's in my literalfield...
602: [23:10:11] <novaweb> ?
603: [23:10:15] <Nightjar> Yep, feel like cpanel user is 'main' user, and site is set to 'www-data'
604: [23:10:23] <Nightjar> thus no write perms.
605: [23:10:48] * Stomach quit (Quit: zzz)
606: [23:10:49] <Nightjar> but novaweb yep, basically as you said before.
607: [23:10:54] <DanaeNZ> I dunno how to check ownership with CPanel, haha
608: [23:11:04] <novaweb> Nightjar, if this works I'm buying you beer
609: [23:11:05] <Nightjar> novaweb, you could name the template "frontendboostrapdatefieldmagic.ss"
610: [23:11:19] <alias> <Nightjar>I have access to all FTP functions. Like i did it numerous times.
611: [23:11:25] <Nightjar> and then use setTemplate('thatthingIjustwrotebutwithoutthe.ss"
612: [23:11:48] <Nightjar> novaweb, depends.
613: [23:11:51] <Nightjar> where at?
614: [23:12:34] <DanaeNZ> alias: So you need to check what user and group you need to change it to. This is hard with just the CPanel client. I'm guessing you shifted all your files from one server to another? This is where ownership issues can fuck up.
615: [23:12:48] <Nightjar> novaweb, you might want setFieldHolderTemplate, I never remember which is what.,
616: [23:12:50] <alias> <Nightjar>When i insert the images from my computer instead of Files, it works. So i suspects PERMISSIONS too.
617: [23:13:25] <Nightjar> copy the permissions from the uploaded file
618: [23:13:28] <Nightjar> make all the other files that.
619: [23:13:37] <DanaeNZ> Yes that's the one. Can you do that through CPAnel?
620: [23:13:49] <alias> <Nightjar>I dont want to do all of the 186 files again!!!!
621: [23:13:57] <DanaeNZ> alias: learn to ssh into the server?
622: [23:14:00] <Nightjar> alias, select all, do all at once.
623: [23:14:14] <Nightjar> then you only need to do as many folders as you have.
624: [23:14:19] <Nightjar> not 186 times
625: [23:14:27] <alias> <Nightjar>I dont get it.
626: [23:14:59] <DanaeNZ> alias: We can't teach you cpanel and shell, tbh.....
627: [23:15:30] <DanaeNZ> But we've narrowed down the problem to file permissions
628: [23:15:31] <alias> <Nightjar>You mean that my images are still into my DataObject but the permission issues keep them from showing up?
629: [23:15:52] <DanaeNZ> You may need to do some research (ie, Google) on file permissions and ownerships on the type of server you have
630: [23:16:13] <DanaeNZ> There's only so much we can help you with if you lack some of the fundamentals unfortunately
631: [23:16:59] <alias> <DanaeNZ><Nightjar>And what about those multiple \ and quotes into TinyCME? The server isn't allowing Tidy module
632: [23:17:18] * Azure|dc is now known as Azure
633: [23:17:46] <DanaeNZ> alias: One at a time. Fix the file permissions and there's no reason for you to be editing the HTML directly. I don't know what is causing that, probably something with PHP 5.3 as that's the only spanner in the works here
634: [23:17:55] <Nightjar> alias, you never did show us how it was that you were "manually correcting" the images :)
635: [23:18:05] <Nightjar> I suspect you're using the wrong box, and it's causing the issue.
636: [23:18:44] <DanaeNZ> It is unusual to have to manually try and fix images. The problem is with the files on the server
637: [23:18:57] <alias> <Nightjar>I am using the HTML panel to correct the paths to images. But how can that affect the classe from <p>????
638: [23:18:59] <DanaeNZ> So go and fix that, restore your database, and you should be good to go alias
639: [23:19:18] <DanaeNZ> and I will reiterate one more time
640: [23:19:22] <Nightjar> alias, because HTML button not good.
641: [23:19:39] <DanaeNZ> alias: Learn about file ownership. Set the correct user and group on your images. Restore the database.
642: [23:19:56] <alias> <DanaeNZ>Fix what? Permissions? I only have access to cpanel or Dreamweaver FTP client.
643: [23:19:59] <Nightjar> yeah, probably just deal with one problem at a time there alias
644: [23:20:08] <DanaeNZ> alias: Learn about file ownership. Set the correct user and group on your images. Restore the database.
645: [23:20:13] <Nightjar> FTP client lets you set permissions.
646: [23:20:19] <DanaeNZ> alias: Learn about file ownership, and you will know what to fix
647: [23:20:38] <DanaeNZ> alias: You need to set the user and group to the right one (the same as the images that are working)
648: [23:20:49] <Nightjar> Sometimes not ownership, but find out what that means first, otherwise we're just confusing you more :/
649: [23:20:56] <DanaeNZ> alias: I can say "user" and "group" over and over again but if you don't know what that is there is literally no point
650: [23:21:05] <DanaeNZ> so alias
651: [23:21:06] <DanaeNZ> please
652: [23:21:14] <DanaeNZ> learn about file permissions and ownership
653: [23:21:50] <alias> <DanaeNZ>Willing to. Two questions LDo you have a good source?
654: [23:22:14] <alias> <DanaeNZ>And can i do it (set permissions) only using Cpanel or FTP client.
655: [23:22:25] <DanaeNZ> alias: Is your server Windows or Linux? What kind of Linux version?
656: [23:22:39] <DanaeNZ> alias: Yes I'm sure you can set file permissions using either the FTP client or Cpanel
657: [23:22:56] <alias> <DanaeNZ>Linux
658: [23:23:24] <DanaeNZ> Here we go: https://www.linux.com/learn/understanding-linux-file-permissions
659: [23:23:28] <alias> <DanaeNZ>Ive set all folder permission leading to one image to 777 and still nothing.
660: [23:23:40] <DanaeNZ> alias: Permissions and Ownership are two different things
661: [23:23:48] <DanaeNZ> The article I linked also goes over Ownership
662: [23:23:51] <DanaeNZ> and Groups
663: [23:23:52] <DanaeNZ> and Users
664: [23:23:58] <DanaeNZ> Which might be the issue with your images
665: [23:24:04] <DanaeNZ> Have a read, have a cup of tea
666: [23:25:35] <Nightjar> User (owner), Group, Other (everyone else)
667: [23:25:51] <Nightjar> 3 sets of permissions, and two named entities.
668: [23:26:18] <alias> <DanaeNZ>Ive just read it diagonally. And i see nothing i can do using a FTP client. I can only set permissions, not ownership.
669: [23:26:56] <Nightjar> might be able to set ownership in cpanel
670: [23:27:05] <Nightjar> give it a google :>
671: [23:27:18] <DanaeNZ> alias: The article will give you a basic understanding of permissions and ownership. Now, use Google, and search for a way to change ownership using your ftp client
672: [23:28:18] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
673: [23:30:57] <alias> <Nightjar>My searches showed no way to change ownership with ftp
674: [23:31:27] <Nightjar> yes, but _in_ cpanel it might be possible.
675: [23:33:41] <DanaeNZ> alias: https://forums.cpanel.net/threads/ownership-problem-i-dont-have-shell-access.169846/
676: [23:34:04] <DanaeNZ> Most of it points to "contact server admin if you don't have shell access"
677: [23:34:33] <DanaeNZ> I suspect you probably have shell access but you might not know how to use it
678: [23:34:34] <novaweb> Shout outs to all the people that help, just saved my ass for the zillionth time o/
679: [23:35:08] <Nightjar> there is a module for cpanel that basically loads a java applet ssh connection.
680: [23:35:14] <Nightjar> pretty sure
681: [23:35:16] <DanaeNZ> Nightjar: Yep
682: [23:36:17] <DanaeNZ> might have restrictions tho
683: [23:36:51] <Nightjar> mmhmm
684: [23:39:01] <alias> <DanaeNZ><Nightjar>I dont have time to learn new stuff as i need to get this running. So i will re-insert manually all of those 186 images. NOW why about those silly doubles quotes and \ ??
685: [23:39:20] <DanaeNZ> alias: That's not going to work
686: [23:39:29] <DanaeNZ> Don't manually reinsert at least
687: [23:39:44] <DanaeNZ> Use the "Browse for image" dialog box and upload the image again
688: [23:40:13] <DanaeNZ> Don't use the HTML dialog
689: [23:40:23] <DanaeNZ> Just pretend you are content entry
690: [23:40:32] <alias> <DanaeNZ>I works, mean into my DataObject. Go see http://www.gilbertpoissant.com/projets ++ I have TWO problems: one is minors (double quotes images) and the other one is major (186 images to reinsert into the DataObject).
691: [23:41:15] <DanaeNZ> alias: If you have the time to manually insert the images into the HTML dialog, you have time to re-enter the content from scratch
692: [23:41:36] <DanaeNZ> alias: You also have time to send a support ticket to your web host requesting they fix the permissions
693: [23:41:54] <DanaeNZ> alias: You even have time to learn about file permissions and ownership
694: [23:43:00] <alias> <DanaeNZ>The server owner is an idiot. I dropped him for several sites but not that one. He is not even updating his server. He let things sits and cashes in. I DONT insert images manually onto in DataObkject, i am using Drop Images
695: [23:43:38] <DanaeNZ> alias: You are dropping images into....the TinyMCE area? Again, confused.
696: [23:44:15] <DanaeNZ> alias: you should drop him altogether, or convince your client not to use this server at all. It is causing so many problems.
697: [23:45:18] <alias> <DanaeNZ>No. I am dropping images into each of the 186 DataObject UploadField i created. Those are the images I've lost. The other ones (about 10) inserted into the TinyCME aren't that important.
698: [23:46:20] <DanaeNZ> alias: TBH there are too many variables here. I'm not going to be able to help.
699: [23:47:13] <alias> <DanaeNZ>I know and i apologize for that. Not easy to help when you are 10000 miles away!! I am in Montreal.
700: [23:47:42] <alias> <DanaeNZ>And as for the double quotes and \ into the TinyCMe panel? How to get rid of them????
701: [23:48:00] <DanaeNZ> The issues here are not with SilverStripe, they all appear to be knock-on effects of PHP 5.3 and file permission issues.
702: [23:48:09] <DanaeNZ> TinyMCE is a 3rd party module anyway
703: [23:51:09] <samsam> im out guys, good luck on this one o/
704: [23:51:11] * janneklouman-- quit (Ping timeout: 268 seconds)
705: [23:51:17] * samsam quit (Quit: Page closed)
706: [23:51:33] * adrexia has joined #silverstripe
707: [23:51:46] * Stomach has joined #silverstripe
708: [23:58:48] <alias> <DanaeNZ>L'outil became L\'outil everywhere!!!!

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