#silverstripe IRC Log

IRC log for 2 November 2016

All timestamps are in UTC.

1: [00:01:12] <Hailwood> alias: Why don't you just restore the DB dump again...
2: [00:01:31] <Hailwood> You've obviously screwed the data somehow so it's probably best to rollback
3: [00:02:06] <alias> <Hailwood>I did that about ten times. The quotes and \ aren't coming from the DB, that are NOT into the original DB...
4: [00:03:18] * gamma quit (Ping timeout: 250 seconds)
5: [00:03:19] <alias> <Hailwood>The 186 images, i wil load them again. I prefer taking time to redo it then waisting time trying to fix. The double quotes and \ are showing EVERYWHERE i uses a \
6: [00:04:26] <xyphoid> your server probably has magic_quotes enabled
7: [00:04:42] <xyphoid> (not reading any backlog)
8: [00:05:36] <Hailwood> alias: Exactly, if they're not in the DB dump then you can restore to that dump and go from there. The fact your data is getting escaped like that and you're running php 5.3 makes me think magic_quotes is turned on. Maybe do a phpinfo() in framework/main.php and post the output of that so we can check out your configuration and make sure nothing is weird there. Just make sure you check it for any passwords that may be showing.
9: [00:06:52] * Dig has joined #silverstripe
10: [00:07:23] <alias> <xyphoid>Prolly. And with this into php.ini Just did a phpinfo and magic_quotes is set to ON. This is php.ini should do it but its not. get_magic_quotes_gpc = Off magic_quotes_gpc = Off
11: [00:08:00] <Hailwood> does the ini file you're editing show up in your phpinfo() output as loaded?
12: [00:08:09] <alias> <xyphoid>Ok, now they are to OFF.
13: [00:08:11] <Hailwood> You said you're using plesk, you can normally control those options from there
14: [00:08:34] <Hailwood> alias: right, so now they're off reload your db dump to get your un-escaped data back
15: [00:09:17] <alias> <Hailwood>How do i reimport a DB into an existing DB? myPHPAdmin keeps saying table exists.
16: [00:11:04] <Hailwood> alias: so drop the tables... You don't try and load a washing machine when it's already loaded without removing what's there already right?
17: [00:13:48] <alias> <Hailwood>Ok got that. Got rid of double quotes. But also lost the 50 out of 186 I've inserted again. Have to do it again.... Tabarnak!
18: [00:14:46] <Hailwood> alias: I'm still wondering why you went through an re-inserted 50 of them when you already knew it was corrupting the data
19: [00:14:55] <alias> <Hailwood><DanaeNZ>Still dont know why SOME images show up, and some dont. And they are in the same damn folder...
20: [00:17:01] <alias> <Hailwood>I dont have time to go thru this. Something is screwed up - prolly the conjunction of SS3.4.1 and PHP 5.3.28 (opposed to the PHP 5.6.X i used building the site). Again, i had two problems: double=quote and \ AND missing images from my DataObjects.
21: [00:17:39] * bubaphex has joined #silverstripe
22: [00:18:41] <alias> <Hailwood>Double quotes and \ are gone. Now if only i could find a way to restore modify those permissions. DB shows the correct ID for the images into the correct DaraObject. The browser just dont have access to them
23: [00:18:53] <DanaeNZ> alias: Here's how I imagine the problems went. 1. Upload files to server. Images have bad permissions. 2. You uploaded some of the images through the CMS which worked. 3. Magic quotes was enabled, messing up the data.
24: [00:19:21] <DanaeNZ> alias: So far all problems point to simple server issues
25: [00:19:35] <DanaeNZ> alias: It is so worth learning this sort of thing
26: [00:19:55] <DanaeNZ> If you aren't willing to learn it, you'll need to pay someone else to fix it for you
27: [00:20:09] <DanaeNZ> ie, server admin (who I know is useless on your server).
28: [00:20:35] <DanaeNZ> So now you have a choice. Now that the quotes are fixed, you can either: Upload your images again, or, learn how to fix the permissions by yourself
29: [00:22:16] <alias> <DanaeNZ>They are not,... i get this into my html. This is generated by the template, not the TinyCME <span class="\&quot;plus\&quot;" style="">+</span>
30: [00:23:02] <alias> <DanaeNZ>Sick of it....
31: [00:23:09] * Hailwood is done here.
32: [00:24:13] <DanaeNZ> alias: earlier you literally said "Got rid of double quotes"
33: [00:24:21] <alias> <DanaeNZ> Here is the site i developed on the pervious server. Everything is fine. http://www.farleydw.com/poissant/projets
34: [00:24:45] <DanaeNZ> alias: Yeah of course it's fine. The file permissions are probably right and it's not running an ancient version of PHP
35: [00:24:56] <alias> <DanaeNZ>Yeah, there are not showing into the text anymore, but they show into the templates.
36: [00:25:32] <alias> <DanaeNZ>Do you know a way i could redirect www.sitea.com to www.mysite.com/stitea without changing the URL?
37: [00:25:53] <Hailwood> alias: then it's not a redirect lol
38: [00:26:36] <Hailwood> You can setup your server to listen to both hostnames and point them at the same document root.
39: [00:26:49] <DanaeNZ> alias: That's something you will have to learn things to do
40: [00:26:51] <alias> <DanaeNZ>Tomorrow, i will ask owner to move the site to a server that has the exact same config as the previous one. i.e mysql and php settings.
41: [00:27:19] <DanaeNZ> alias: Ok, but if the file permissions are still not working, the images won't work
42: [00:27:23] <DanaeNZ> alias: Keep that in mind
43: [00:27:30] <alias> <DanaeNZ>An d then do it all again: new DB new USER, new everything.
44: [00:28:04] <DanaeNZ> alias: Sure, whatever works. You made it sound like you had no choice but to use that server.
45: [00:28:05] <alias> <DanaeNZ>I will ask him to take care of that. Those permissions issues are pure shit.
46: [00:28:18] <DanaeNZ> alias: They are only shit because you don't understand them
47: [00:28:24] <DanaeNZ> alias: Going to be honest here
48: [00:30:53] <alias> <DanaeNZ>No fuss, i can take it.... But this is something i did before (moving a site) without all of those permissions. BUT IF I upload them again from my computer there shouldn't be a problem right? I mean all of the images took place first ON MY COMPUTER. I didn't not copy from server to server. They went from my commuter to server A, then i copied them again to server B.
49: [00:30:56] <Hailwood> And you're going to hit the permissions issues on any server you go to unless your new server has the same user and group setup as your dev server and you transfer the files in a way that preserves permissions.
50: [00:31:44] <alias> <Hailwood>But your are talking about the DB that has permission set to images nailed to it, right? ANbd can i alter the DB to get rid of this?
51: [00:31:59] <Hailwood> ... DB has NOTHING to do with the image permissions.
52: [00:33:18] * micmania1 quit (Quit: micmania1)
53: [00:33:22] <alias> <Hailwood>So where the hell are they coming from???? The images comes from my computer. They NEVER transmitted from server A to server B!!!!
54: [00:33:47] * Stomach_ has joined #silverstripe
55: [00:34:01] <Firesphere> That means they're not on server B, therefor not displayed. The DB is just a list of the files, not the actual files.
56: [00:34:13] <Hailwood> And that is why we've told you to read up on them. They are coming from the linux operating system making sure that badguy A can't write to goodguy B's files.
57: [00:34:22] <DanaeNZ> Hailwood: +!
58: [00:34:24] <DanaeNZ> +1 *
59: [00:34:41] <DanaeNZ> alias: if you took time to read about it you wouldn't get so frustrated
60: [00:34:49] <alias> <Hailwood>The only thing that transited from server A to server B is the DB. Even the SS is brand new installed!
61: [00:34:59] <alias> <DanaeNZ>Do i :-)
62: [00:35:04] <DanaeNZ> alias: so the images just materialised?
63: [00:35:11] <DanaeNZ> The images came from somewhere
64: [00:35:19] <Hailwood> If they're not transferred then how do you expect them to be on the server?
65: [00:35:48] * Stomach quit (Ping timeout: 250 seconds)
66: [00:38:54] <alias> <DanaeNZ>From my computer. Lets recap, for me to get it. All of the images are into my computer, local. I builded the site on server A (temporary) (because server B (actual) has only one DB and i need it) and it works. So when approved, i got rid of everything on server B (actual). Exported the DB from server A. Installed SS on server B. Copy the assets from my computer to server B. So how can the files on my computer got som
67: [00:39:06] * novaweb quit ()
68: [00:39:15] <DanaeNZ> alias: "Copy the assets from my computer to server B"
69: [00:39:18] <DanaeNZ> There
70: [00:39:28] <Nightjar> alias, is your local computer windows?
71: [00:39:54] <alias> <DanaeNZ>My computer is running local I DONT develop on my computer. SS is not running on my computer.
72: [00:40:20] <alias> <Nightjar>No, Apple. Again no MAMP or WAMP.
73: [00:40:22] <DanaeNZ> alias: So you copied files via FTP to your Server B from your local computer?
74: [00:40:31] <ss23> inb4 the images are referenced locally as C:/foo/bar
75: [00:40:33] <alias> <DanaeNZ>Yes.
76: [00:41:10] <DanaeNZ> And previously you say "I didn't not copy from server to server. They went from my commuter to server A, then i copied them again to server B. "
77: [00:41:25] <DanaeNZ> oh man I don't even know any more
78: [00:41:33] <Nightjar> alias, so you developed on server A, with no images?
79: [00:41:52] <DanaeNZ> Nightjar: Server A had a less retarded setup I thinkg
80: [00:42:02] <DanaeNZ> FTP from local to Server A = fine
81: [00:42:04] <Nightjar> I'm confused about where the files have all come from.
82: [00:42:10] <DanaeNZ> FTP from local to Server B = not fine
83: [00:42:22] <Nightjar> I'm thinking just bulk upload to /admin/assets
84: [00:42:25] <Nightjar> if it's a fresh site
85: [00:42:27] <Nightjar> ...
86: [00:42:32] <Nightjar> idk
87: [00:42:43] <DanaeNZ> Like is it literally a dump of files in one spot?
88: [00:42:43] <Nightjar> no, no. Very confusing.
89: [00:43:16] <DanaeNZ> alias: When we ask, "does the file exist on the server" we mean, "does the file exist in the right spot in the right folder on the server"
90: [00:43:17] <alias> <DanaeNZ><Nightjar><Nightjar>Images NEVER went from Server A to nowhere!!! I develop on Server A. Then when all was fine, i just exported the DB from serve A and imported it on Server B. Images never got out of server A.
91: [00:43:35] <Nightjar> ...
92: [00:43:36] <Nightjar> well
93: [00:43:42] <alias> Site on server A is working fine BTW.
94: [00:43:51] <Nightjar> how does server B load any images?
95: [00:44:05] <DanaeNZ> alias: Please answer my question - does the image exist in the right directory?
96: [00:44:08] <Nightjar> server B is supposed to be production
97: [00:44:23] <Nightjar> server B has not had any images uploaded to it
98: [00:44:25] <alias> <DanaeNZ>Yes. See images. in a second.
99: [00:44:36] <Nightjar> server B had database from server A put on it.
100: [00:44:39] <DanaeNZ> alias: For example
101: [00:44:42] <DanaeNZ> alias: assets/Uploads/images-projets/atlas/atlas-1-4531.jpg
102: [00:44:47] <DanaeNZ> is in a folder called assets
103: [00:44:54] <DanaeNZ> then a folder called Uploads
104: [00:45:00] <DanaeNZ> then a folder called images-projets
105: [00:45:04] <DanaeNZ> etc etc
106: [00:45:12] <DanaeNZ> Please confirm this
107: [00:45:33] <alias> http://www.gilbertpoissant.com/ftp-images.png
108: [00:45:45] <alias> <DanaeNZ>http://www.gilbertpoissant.com/ftp-images.png
109: [00:45:55] <Nightjar> alias, and this is server b?
110: [00:46:01] <DanaeNZ> alias: Uploads/images-projets/atlas/atlas-1-4531.jpg
111: [00:46:06] <DanaeNZ> Does that exist
112: [00:46:16] <DanaeNZ> All I see is images-projets/rangee1
113: [00:46:24] <DanaeNZ> not images-projets/atlas
114: [00:46:32] <Nightjar> that would about do it.
115: [00:47:09] <Nightjar> alias, the best idea to move a site is to move the site, not half move the site :<
116: [00:47:18] <DanaeNZ> Server A to Server B
117: [00:47:22] <Nightjar> it's usually better to download the files from A and then upload them to B
118: [00:47:28] * janneklouman-- has joined #silverstripe
119: [00:48:21] <DanaeNZ> ...
120: [00:48:52] <Nightjar> Then the folder structure and the resampled images match what are needed.
121: [00:48:53] * Stomach has joined #silverstripe
122: [00:51:36] <DanaeNZ> alias: are you there? I'm hanging on the edge of my seat
123: [00:52:00] <alias> <Nightjar><DanaeNZ>Holy shit.... The problem was not permissions....
124: [00:52:17] <DanaeNZ> alias: The file did not exist in the right directory
125: [00:52:22] * janneklouman-- quit (Ping timeout: 256 seconds)
126: [00:52:36] * Stomach_ quit (Ping timeout: 260 seconds)
127: [00:53:11] <DanaeNZ> Now you're going to have a hard time if you're still copying from your local machine alias
128: [00:53:23] <alias> <Nightjar><DanaeNZ>I modify the /Uploads structure. See the pic I've included: this is an additional folder name rangee1 (and rangee2) to help organize files... I did that AFTER moving the site.... Site is not working all 186 images are showing. See http://www.gilbertpoissant.com/en/projects
129: [00:53:33] <DanaeNZ> alias: Of course
130: [00:53:41] <DanaeNZ> alias: Please copy DIRECTLY from server a
131: [00:53:52] <DanaeNZ> alias: Of course the paths are not going to work
132: [00:54:20] <Nightjar> 404 File Not Found
133: [00:55:24] <Nightjar> We made some bad assumptions, sorry.
134: [00:55:29] <alias> <DanaeNZ> <Nightjar>Leaves me with the only problem; double quotes and \ as in <span class="\&quot;plus\&quot;" style="display: none;">+</span>
135: [00:55:42] <Nightjar> I thought you fixed that by turning magic_quotes_gpc off
136: [00:55:43] <Nightjar> ?
137: [00:55:59] * micmania1 has joined #silverstripe
138: [00:56:12] <DanaeNZ> Nightjar: I disagree. We made the assumption that alias checked that the file existed in the right place - I wouldn't say that's a bad assumption
139: [00:56:24] <alias> <Nightjar>No worry. Its me who should be ashamed.
140: [00:56:27] <Nightjar> yeah, but it's something to add to the checklist
141: [00:56:36] <Nightjar> NLP DanaeNZ !
142: [00:56:48] <Nightjar> take responsiblity for your actions -.- GOSH
143: [00:56:53] <Nightjar> :P
144: [00:57:01] <Nightjar> well alias I'm glad you got it sorted in the end :)
145: [00:57:14] <alias> <Nightjar>Yes quote are off according to phpinfo. But still have those '\'xxxx'
146: [00:57:30] <Hailwood> alias: did you turn them off before you had edited the content?
147: [00:57:40] <Nightjar> alias, check that they're off.
148: [00:57:57] <Nightjar> upload a file with <? phpinfo();
149: [00:58:01] <Nightjar> load it
150: [00:58:03] <Nightjar> then delete it
151: [00:58:12] <DanaeNZ> gg no re
152: [00:58:14] <Nightjar> make sure they're off.
153: [00:58:38] <alias> <Nightjar>They are. See http://www.gilbertpoissant.com/phpinfo.php
154: [00:59:10] <Nightjar> neat, well then what Hailwood said ;)
155: [00:59:30] <Nightjar> re-do the database again again :)
156: [00:59:55] <Nightjar> https://www.youtube.com/watch?v=FGBhQbmPwH8
157: [01:01:04] * janneklouman-- has joined #silverstripe
158: [01:01:45] <alias> <Nightjar>You mean dev/build? OR reimport the database?
159: [01:01:57] <Nightjar> re-import
160: [01:03:16] <alias> <Nightjar>Why is is that TinyCME converts all ' to '' and converts all " to '\'...
161: [01:03:35] <DanaeNZ> alias: Normally it does not
162: [01:05:28] * janneklouman-- quit (Ping timeout: 245 seconds)
163: [01:07:18] <alias> <Nightjar><DanaeNZ>Ok they were gone. Now they are back again....
164: [01:07:54] <Nightjar> "were"?
165: [01:07:58] <Nightjar> when?
166: [01:08:57] <DanaeNZ> probably after the database was restored
167: [01:10:17] <alias> <Nightjar>As soon as i insert an image in the TinyC'ME using the Import Image button.
168: [01:10:17] <Nightjar> alias, is this content area on a DataObject or a page?
169: [01:11:15] <Nightjar> alias, is this content area on a DataObject or a Page type?
170: [01:13:10] * bubaphex quit (Quit: bubaphex)
171: [01:13:19] <alias> <Nightjar>No, complete different thing. This: if i insert the image manually into the HTML window, then press UPDATE, i can see the images. If i press back the HTML, i still see the correct path. As soon as i save the page, it converts all " or ' to '\'
172: [01:13:55] <Nightjar> yes, but is it a Page, or DataObject? What are you saving?
173: [01:14:25] <Nightjar> "Save and publish"?
174: [01:14:36] * bubaphex has joined #silverstripe
175: [01:14:38] <Nightjar> or is there just a save button, with no publish button anywhere?
176: [01:16:05] <alias> <Nightjar>It is ba page. Here is a sample.... <h3>Installation de la murale Cirrocumulus<span class="\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;\\\\\\\\\\\\\\\\&quot;plus\\\\\\\\\\\\\\\\&quot;\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;">+</span><span class="\&quot;\\&quot;\\\\&quot;\\\\\\\\&quot;\\\\\\\\\\\\\\\\&quot;minus\\\\\\\\\\\\\\\\&quot;\\\\\\\\&quot;\\\\&quot;\\&quot;\&quot;">&mdash;</span></h3> <div>
177: [01:16:27] <Nightjar> Yes, I know, you've shown many examples.
178: [01:16:45] <Nightjar> So it's a page type, and this is the standard "Content" area?
179: [01:16:50] <Nightjar> You've made no modifications?
180: [01:17:53] <alias> <Nightjar>Sorry, but they keep showing and disappearing... Yes a Page (its own class though) and the content is within a HTMLEditorField
181: [01:18:51] <Nightjar> But it's not for an extra field you've added?
182: [01:19:04] <Nightjar> is it on the Main tab, the Content field?
183: [01:19:28] <Nightjar> if it's another field that youv'e added (an extra content area), then it's possible you've used the wrong field type.
184: [01:19:33] <alias> <Nightjar>Yes via this (in the Page class) => $fields->addFieldToTab('Root.Main', new HTMLEditorField("texte1", "Texte relatif à Actualite/News"));
185: [01:19:40] <Nightjar> ah
186: [01:19:44] <Nightjar> what is texte1?
187: [01:19:57] <Nightjar> 'texte1' => 'Text' ?
188: [01:20:02] <Nightjar> it should be
189: [01:20:06] <Nightjar> 'texte1' => 'HTMLText'
190: [01:20:31] <alias> <Nightjar>It was not like this on server A ;- It is 'texte1' => 'HTMLText',
191: [01:21:04] <Nightjar> ok, seems fine.
192: [01:22:49] <alias> <Nightjar>Weird!!! As you know, the site is bilingual So the problem i have on a page French should show up on page English,as its the same Page Class.. IT'S NOT!!!! No double quote on English page - but i havent edited it yet since on new server.
193: [01:23:10] <Nightjar> try saving it
194: [01:23:13] <Nightjar> with a small edit
195: [01:26:08] <alias> <Nightjar>Problem is now into English version too. Its really related to images. Oddly, the place where the quotes and \ shows are NOT into the HTMLEditorField,. They are in the templates. But the multiple quotes added by the images must cause this.
196: [01:28:34] <Nightjar> link?
197: [01:33:16] <alias> <Nightjar> To what?
198: [01:33:45] <Nightjar> the page with the trouble
199: [01:34:19] <alias> <Nightjar>I am wondering if all of this is not caused by some issues between SS3.4.1 and magic_quotes. Its not supposed to be used alongside right?
200: [01:34:31] <Nightjar> Nope.
201: [01:34:39] <Nightjar> magic_quotes isn't even a thing in PHP anymore.
202: [01:34:56] <Nightjar> but you said they were off.
203: [01:34:59] <alias> <Nightjar>http://www.gilbertpoissant.com/en/about Look at source code. You ll see some double quotes into the <h3><span>
204: [01:35:02] <Nightjar> so that's ok.
205: [01:35:58] <alias> <Nightjar>Have i mention that TidyHTML is not installed?
206: [01:36:14] <alias> <Nightjar>Server is not supporting it.
207: [01:37:12] <Nightjar> It seems like the source is class=""some names"" before being converted.
208: [01:38:10] <Nightjar> well, I guess the only thing for it is to inspect the input on a page save
209: [01:38:25] <Nightjar> with the dev tools, ensure the submission isn't already double quoted
210: [01:38:45] <Nightjar> That will eliminate tinymce as a suspect
211: [01:39:58] <alias> <Nightjar>HTML on server A <h3>Expositions solos<span class="plus">+</span><span class="minus">&mdash;</span></h3> is converted to this on server B (actual) <h3>Expositions solos<span class="\&quot;plus\&quot;">+</span><span class="\&quot;minus\&quot;">&mdash;</span></h3>
212: [01:42:47] <alias> <Nightjar>I made this: 1) i edited the code into the HTML window and strip it from its double quote. 2) Press Update (not Save) 3) Press HTML again. Code is still Ok. 4) Press Save and Publish (code is now scrambled).
213: [01:43:15] <Nightjar> yes, but tinymce does it's scrubbing on save, not on update
214: [01:43:28] <Nightjar> I don't think it will be tinymce anyway, because it's the same on serverA
215: [01:44:27] <alias> <Nightjar> I do think the same. It leaves us with?
216: [01:45:01] <alias> <Nightjar> Its prolly screwing up the omg src as the same time.
217: [01:45:10] <alias> <Nightjar> *img source
218: [01:45:19] <Nightjar> HTML4Value
219: [01:46:46] <alias> <Nightjar>?
220: [01:47:02] <Nightjar> your server does not have DOMDocument installed/enabled
221: [01:47:28] <alias> <Nightjar> And you saw that were just to know?
222: [01:48:17] <Nightjar> http://www.gilbertpoissant.com/phpinfo.php
223: [01:48:49] <alias> <Nightjar>And why does it do that ONLY on that page type? Its not doing this on other pages i used... Oh my, let me check....
224: [01:49:25] <Nightjar> it only does it on save.
225: [01:50:19] <alias> <Nightjar>Yes it is... Something to do OR ask the host to move AND/OR activate this thing?
226: [01:50:27] <Nightjar> iirc domdocument is compiled into PHP, you hopefully just have to enable it
227: [01:50:55] <alias> <Nightjar>Its a shared server with no PHP options, only generic ones.
228: [01:50:59] * bubaphex quit (Quit: bubaphex)
229: [01:51:10] <Nightjar> alias, then you'll need to ask the host I think.
230: [01:51:23] <Nightjar> if you refresh the DB and save no pages, it should be fine though :P
231: [01:51:26] <alias> <Nightjar>So io ask to move to a different server? Hope it won't screw up things.....
232: [01:51:43] <Nightjar> no, just that you need that PHP extension enabled.
233: [01:51:56] <Nightjar> I'm not _sure_ it will fix, but I think so.
234: [01:52:10] <Nightjar> upload a small script that tries to use it, and see what happens?
235: [01:52:14] <Nightjar> or check the error logs?
236: [01:52:46] <alias> <Nightjar>This is beyond my knowledge i.e. run a small script that use it.
237: [01:53:29] <Nightjar> <? $thing = new DOMDocument()
238: [01:53:31] <Nightjar> ;
239: [01:53:55] <alias> <Nightjar>And where? Into a simple php page?
240: [01:54:40] <Nightjar> yes
241: [01:55:03] <Nightjar> then just var_dump($thing);
242: [01:55:06] <Nightjar> see if it works
243: [01:56:04] <alias> <Nightjar>go see it http://www.gilbertpoissant.com/testphp.php
244: [01:56:26] <Nightjar> oh yeah it works, sorry
245: [01:56:39] <Nightjar> just doesn't show in phpinfo
246: [01:57:03] <alias> <Nightjar>So?
247: [01:57:17] <Nightjar> so that's not the problem
248: [01:57:58] <alias> <Nightjar>Yeah, i mean: so what now? :-)
249: [01:58:07] <Nightjar> I don't know! sorry :(
250: [01:58:15] * janneklouman-- has joined #silverstripe
251: [01:58:22] <Nightjar> google?
252: [01:59:20] <alias> <Nightjar>The site is working at 98% only those images that aren't showing and funky +- behaviour. Ill leave it that way for tonight. Its 22:00 and i am on this since 8:00 no break. I deeply thank you for your time.
253: [01:59:37] <alias> <Nightjar>I dare asking: What to Google for?
254: [02:00:01] <Nightjar> silverstripe double quote html entity quotes
255: [02:00:06] <Nightjar> soemthing liek that
256: [02:00:37] <alias> <Nightjar>Ok thanks again. Have a nice evening - i presume yo are in NZ?
257: [02:01:33] <Nightjar> Yup :)
258: [02:01:41] <Nightjar> Sorry I can't help more!
259: [02:04:00] <alias> <Nightjar>You helped a lot.
260: [02:04:03] * alias quit (Quit: Page closed)
261: [02:04:21] * janneklouman-- quit (Ping timeout: 260 seconds)
262: [02:11:04] * Hailwood quit (Quit: Konversation terminated!)
263: [02:12:55] <DanaeNZ> oh gods
264: [02:12:58] <DanaeNZ> gg
265: [02:22:51] <Nightjar> rektit
266: [02:23:02] <Nightjar> rektme
267: [02:23:03] <Nightjar> :<
268: [02:23:34] <DanaeNZ> #rektm8
269: [02:27:38] * bubaphex has joined #silverstripe
270: [02:36:33] <ss23> what did we rekt?
271: [02:37:15] <DanaeNZ> Nightjar's brain
272: [02:38:57] * bubaphex quit (Quit: bubaphex)
273: [02:41:26] * isaac has joined #silverstripe
274: [02:47:25] <isaac> Hey guys, anyone familiar with PHPUnit, fixtures, and service mocking?
275: [02:47:28] <isaac> http://pastebin.com/YZViSbRp
276: [03:00:07] <ss-helper> Fixture breaking after service override - http://stackoverflow.com/questions/40371750/fixture-breaking-after-service-override
277: [03:05:54] * Stomach quit (Ping timeout: 244 seconds)
278: [03:06:14] <DanaeNZ> isaac: PHPUnit, fixtures, yeah mostly. Service mocking, nah?
279: [03:08:45] <isaac> Could you check out the test I wrote on stackoverflow just now? I am at a loss
280: [03:12:51] * Stomach has joined #silverstripe
281: [03:14:16] <DanaeNZ> isaac: What's going wrong?
282: [03:14:39] <isaac> $this->assertNull($extMemberNull->Email);
283: [03:14:53] <isaac> $extMemberNull->Email is null when it should be ext@email.com
284: [03:15:07] <ss-helper> Multiple ListBoxField for predefined list - http://stackoverflow.com/questions/40371855/multiple-listboxfield-for-predefined-list
285: [03:17:46] * Stomach quit (Ping timeout: 268 seconds)
286: [03:22:12] * janneklouman-- has joined #silverstripe
287: [03:22:40] * Stomach has joined #silverstripe
288: [03:24:36] <DanaeNZ> isaac: Try writing the member
289: [03:24:41] <DanaeNZ> $extMember->write()
290: [03:24:50] <DanaeNZ> maybe
291: [03:24:56] <DanaeNZ> oh wait there's some mock stuff
292: [03:25:05] <DanaeNZ> Ok that's beyond my knowledge stm
293: [03:25:06] <DanaeNZ> atm*
294: [03:25:15] <isaac> aite
295: [03:25:17] <isaac> :/
296: [03:25:49] <isaac> the core roadblock at the moment is, take for example Member::default_admin, this function creates an admin user
297: [03:25:49] <DanaeNZ> I had trouble with that sort of thing and writing the object from the fixture usually kicked it in the pants
298: [03:26:43] * janneklouman-- quit (Ping timeout: 245 seconds)
299: [03:27:16] <isaac> what if i wanted to mock that method? if i attempt to mock it using registerService thing, all $this->objFromFixture calls will return really faulty mock objects
300: [03:28:26] <isaac> If I don't mock it, it could start creating new users and emailing users their reset password requests ect, something that mock services is designed to avoid
301: [03:37:30] * janneklouman-- has joined #silverstripe
302: [03:39:55] * bubaphex has joined #silverstripe
303: [03:41:52] * janneklouman-- quit (Ping timeout: 252 seconds)
304: [04:00:40] * bubaphex quit (Quit: bubaphex)
305: [04:04:05] * Dig quit (Remote host closed the connection)
306: [04:07:36] * DanaeNZ quit (Quit: TIME TO FEED)
307: [04:39:26] * bubaphex has joined #silverstripe
308: [04:48:32] * bubaphex quit (Quit: bubaphex)
309: [05:07:15] * phorloop has joined #silverstripe
310: [05:08:00] * janneklouman-- has joined #silverstripe
311: [05:11:24] * sminnee_ has left #silverstripe
312: [05:12:32] * janneklouman-- quit (Ping timeout: 250 seconds)
313: [05:18:30] * janneklouman-- has joined #silverstripe
314: [05:20:36] * isaac quit (Ping timeout: 260 seconds)
315: [05:23:09] * janneklouman-- quit (Ping timeout: 260 seconds)
316: [05:31:42] * bubaphex has joined #silverstripe
317: [05:40:45] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
318: [05:43:09] * bubaphex quit (Quit: bubaphex)
319: [05:46:54] * micmania1 quit (Quit: micmania1)
320: [06:53:33] <Firesphere> Hello world :)
321: [07:02:07] * Shrike_Finland has joined #silverstripe
322: [07:07:22] * janneklouman-- has joined #silverstripe
323: [07:12:02] * janneklouman-- quit (Ping timeout: 256 seconds)
324: [07:21:05] * phorloop quit (Quit: My laptop go to sleep. ZZZzzz…)
325: [07:43:46] * janneklouman-- has joined #silverstripe
326: [07:47:11] * pweh has joined #silverstripe
327: [07:48:28] * janneklouman-- quit (Ping timeout: 260 seconds)
328: [08:01:29] * janneklouman-- has joined #silverstripe
329: [08:06:29] * janneklouman-- quit (Ping timeout: 260 seconds)
330: [08:08:07] * lerni has joined #silverstripe
331: [08:10:18] * darianno has joined #silverstripe
332: [08:22:49] * janneklouman-- has joined #silverstripe
333: [08:27:16] * janneklouman-- quit (Ping timeout: 244 seconds)
334: [08:36:27] * samsam has joined #silverstripe
335: [08:38:50] * Shrike_Finland quit (Quit: Leaving.)
336: [08:44:42] * neilf__ has joined #silverstripe
337: [08:45:12] <ss-helper> SilverStripe limit DataObject records - http://stackoverflow.com/questions/40375514/silverstripe-limit-dataobject-records
338: [08:59:21] * cupcake has joined #silverstripe
339: [09:06:35] * NETim has joined #silverstripe
340: [09:07:41] * kinglozzer has joined #silverstripe
341: [09:12:00] <samsam> Anyone has an idea how to add styling to the TinyMCE editor?
342: [09:12:25] <samsam> Not to add 'styles' to the dropdown, but to style the actual content inside the editor (eg font type, font size etc)
343: [09:15:11] * janneklouman-- has joined #silverstripe
344: [09:16:29] * Mike123 has joined #silverstripe
345: [09:17:09] * micmania1 has joined #silverstripe
346: [09:20:56] * Mike123 quit (Ping timeout: 260 seconds)
347: [09:28:26] <lerni> samsam: add editor.css in CMS?
348: [09:28:41] <lerni> $cms = HtmlEditorConfig::get('cms');
349: [09:28:41] <lerni> $cms->setOptions(array(
350: [09:28:41] <lerni> 'content_css' => '/mysite/style/editor.css'
351: [09:28:43] <lerni> ));
352: [09:29:29] <lerni> in _config.php
353: [09:32:30] * gamma has joined #silverstripe
354: [09:38:48] * agent44 has joined #silverstripe
355: [09:41:59] <samsam> yes indeed, I was confused about typography.css and editor.css
356: [10:01:23] * Stomach quit (Quit: zzz)
357: [10:05:54] * Stomach has joined #silverstripe
358: [10:21:43] * wmk has joined #silverstripe
359: [10:26:41] <samsam> lerni any idea how to apply the editor.css for some HTMLEditorFields, not necessarily all?
360: [10:27:35] * agent44 quit (Ping timeout: 250 seconds)
361: [10:28:00] <kinglozzer> samsam: Something like this? https://github.com/kinglozzer/htmleditorstylinghook
362: [10:28:43] <samsam> Not exactly, but this could be an alternative solution
363: [10:28:47] <samsam> cool stuff ;p
364: [10:29:36] <wmk> samsam, editor.css is included globally by LeftAndMain
365: [10:29:37] * agent44 has joined #silverstripe
366: [10:30:41] <samsam> so here's the issue, maybe someone knows a better solution that I'm aiming for
367: [10:31:06] <lerni> kinglozzer: ohh ahh one editor-config and different styles
368: [10:31:22] <samsam> I want to put all the content of the editor inside a <aside> html element
369: [10:31:41] <wmk> lerni, .editorconfig is for your IDE afaik
370: [10:31:44] <samsam> this way, it has the same visual style as the front-end
371: [10:31:58] <samsam> but I don't want it to actually print the <aside> element to the front-end
372: [10:32:00] <samsam> tricky.
373: [10:32:02] <lerni> wmk jaja
374: [10:32:20] <lerni> not mixed-up that much
375: [10:32:44] <wmk> hmm, nested css... i smell problems
376: [10:32:57] <lerni> say HtmlEditorConfig
377: [10:33:16] <samsam> :')
378: [10:33:26] <wmk> but afaik that "wrap in a tag" stuff is a tinymce feature
379: [10:37:53] <samsam> I have a better solution
380: [10:38:24] <samsam> strip feature to make life easier at cost of client UX
381: [10:38:27] <samsam> Muwhaha
382: [10:43:00] <samsam> kinglozzer, how does [data-mce-body-class="HomePage"] link to [.HomePage in the editor.css]
383: [10:52:01] <kinglozzer> samsam: I'm not sure what you mean?
384: [10:52:19] <kinglozzer> Whatever you set "data-mce-body-class" to, will be added as a class to the <body> tag inside TinyMCE
385: [10:52:34] <kinglozzer> You can then use that in editor.css to change styles
386: [10:56:57] * janneklo1man-- has joined #silverstripe
387: [10:59:39] * janneklouman-- quit (Ping timeout: 250 seconds)
388: [11:03:49] <samsam> then your module is what I need
389: [11:18:04] * Stomach quit (Quit: zzz)
390: [11:20:26] * wmk quit (Quit: Leaving)
391: [11:20:46] * neilf__ quit (Quit: Connection closed for inactivity)
392: [11:33:02] * cheddam has joined #silverstripe
393: [11:33:45] * cheddam quit (Client Quit)
394: [11:36:11] * phorloop has joined #silverstripe
395: [11:38:25] * micmania1 quit (Quit: micmania1)
396: [12:05:33] * phorloop quit (Quit: My laptop go to sleep. ZZZzzz…)
397: [12:07:22] * janneklo1man-- quit (Ping timeout: 244 seconds)
398: [12:07:33] * janneklouman-- has joined #silverstripe
399: [12:12:33] * janneklo1man-- has joined #silverstripe
400: [12:15:41] * janneklouman-- quit (Ping timeout: 260 seconds)
401: [12:17:06] * phorloop has joined #silverstripe
402: [12:31:41] * UndefinedOffset has joined #silverstripe
403: [12:33:24] * pweh quit (Read error: Connection reset by peer)
404: [12:36:20] * agent44 quit (Ping timeout: 260 seconds)
405: [12:40:00] * phorloop quit (Quit: My laptop go to sleep. ZZZzzz…)
406: [12:55:36] * samsam quit (Ping timeout: 260 seconds)
407: [13:22:26] * wmk has joined #silverstripe
408: [14:14:54] * muskie9 has joined #silverstripe
409: [14:25:15] * agent44 has joined #silverstripe
410: [14:54:38] * lerni quit ()
411: [16:07:07] * flowsn has joined #silverstripe
412: [16:22:10] * samsam has joined #silverstripe
413: [16:25:56] <samsam> so, I'm looking for alternative methods to set a Field value
414: [16:26:25] <samsam> one way: $this->setField('fieldName', 'fieldValue');
415: [16:26:30] <samsam> any alternatives?
416: [16:27:18] <UndefinedOffset> samsam in most cases you can just use $this->FieldName='fieldValue'
417: [16:27:19] <samsam> (written inside onBeforeWrite())
418: [16:28:08] <samsam> that's even easier, going to test it
419: [16:38:39] <samsam> Cool, works
420: [16:41:17] * wmk quit (Ping timeout: 268 seconds)
421: [16:44:57] * darianno quit (Quit: .)
422: [16:45:27] * wmk has joined #silverstripe
423: [16:49:31] * cupcake quit (Ping timeout: 260 seconds)
424: [17:03:25] * agent44 quit (Ping timeout: 244 seconds)
425: [17:17:42] * helenclarko has joined #silverstripe
426: [17:23:03] <helenclarko> Hey all
427: [17:23:06] <helenclarko> o/
428: [17:29:46] * samsam quit (Ping timeout: 260 seconds)
429: [17:30:56] * kinglozzer quit ()
430: [17:40:03] * NETim quit (Ping timeout: 250 seconds)
431: [17:53:10] * DimiStripe quit (Quit: DimiStripe)
432: [18:38:38] * Stomach has joined #silverstripe
433: [18:40:33] * janneklo1man-- quit (Ping timeout: 244 seconds)
434: [18:42:43] * flowsn quit (Quit: (null))
435: [18:53:01] * DimiStripe has joined #silverstripe
436: [19:18:31] <Nightjar> Hi helenclarko o\
437: [19:18:33] <Nightjar> err
438: [19:18:34] <Nightjar> fuck
439: [19:18:36] <Nightjar> o/
440: [19:18:39] <Nightjar> \o
441: [19:18:54] <Nightjar> How is winter?
442: [19:20:12] <helenclarko> its coming!
443: [19:21:13] <helenclarko> Quick question. How do I remove Headings 4, 5 and 6 from the tinyMCE dropdown menu
444: [19:21:28] <helenclarko> Im trying to do it with editor.css at the moment
445: [19:21:50] <helenclarko> It wont take the ID or Class of anything in those fields
446: [19:23:37] * muskie9 quit (Ping timeout: 260 seconds)
447: [19:27:46] <Nightjar> helenclarko, HTMLEditorConfig
448: [19:27:48] <Nightjar> orwhatever
449: [19:28:33] <Nightjar> http://api.silverstripe.org/3.4/class-HtmlEditorConfig.html
450: [19:28:43] * bubaphex has joined #silverstripe
451: [19:29:05] <Nightjar> and https://www.tinymce.com/docs/configure/
452: [19:29:26] <Nightjar> php class is basically an interface for the JS options.
453: [19:34:23] * janneklouman-- has joined #silverstripe
454: [19:43:20] * DanaeNZ has joined #silverstripe
455: [19:47:21] * bubaphex quit (Quit: bubaphex)
456: [19:49:06] * bubaphex has joined #silverstripe
457: [20:00:44] * adrexia has joined #silverstripe
458: [20:05:48] * Stomach quit (Ping timeout: 260 seconds)
459: [20:07:24] * Stomach has joined #silverstripe
460: [20:33:52] * micmania1 has joined #silverstripe
461: [20:38:58] * muskie9 has joined #silverstripe
462: [20:41:11] * zippy has joined #silverstripe
463: [20:49:56] <zippy> hi
464: [20:50:08] * micmania1 quit (Quit: micmania1)
465: [20:50:40] * phorloop has joined #silverstripe
466: [20:55:32] * UndefinedOffset quit (Quit: Leaving.)
467: [20:56:21] * micmania1 has joined #silverstripe
468: [20:56:48] * bubaphex quit (Quit: bubaphex)
469: [21:01:54] * Stomach quit (Read error: Connection reset by peer)
470: [21:05:03] * Stomach has joined #silverstripe
471: [21:05:47] * gelignite has joined #silverstripe
472: [21:10:42] * janneklouman-- quit (Ping timeout: 256 seconds)
473: [21:11:15] * bubaphex has joined #silverstripe
474: [21:12:46] <DanaeNZ> HI
475: [21:15:42] <ss-helper> Re: [silverstripe-dev] Member Profile extendable area - https://groups.google.com/d/msg/silverstripe-dev/mD1GzF5aZH0/GsZmAU5cAQAJ
476: [21:15:52] <muskie9> DanaeNZ o/
477: [21:22:37] * janneklouman-- has joined #silverstripe
478: [21:27:12] * janneklouman-- quit (Ping timeout: 265 seconds)
479: [21:27:59] * micmania1 quit (Quit: micmania1)
480: [21:29:21] * janneklouman-- has joined #silverstripe
481: [21:30:18] * bubaphex quit (Quit: bubaphex)
482: [21:30:26] <ss-helper> Detect current language direction with SilverStripe translatable module - http://stackoverflow.com/questions/40356610/detect-current-language-direction-with-silverstripe-translatable-module
483: [21:38:45] * Stomach quit (Quit: zzz)
484: [21:42:16] * Stomach has joined #silverstripe
485: [21:42:29] <Stomach> hiiii
486: [21:46:47] <Nightjar> hiii
487: [21:48:35] <Stomach> DanaeNZ can you remove me from the ponds error logging? :D
488: [21:53:15] <DanaeNZ> Stomach: Hahahahaah
489: [21:53:18] <DanaeNZ> Sure thing
490: [21:53:24] <DanaeNZ> I haven't touched the site yet
491: [21:53:30] <Stomach> ps you had a fatal error this morning :P
492: [21:53:35] <DanaeNZ> Oo thanks
493: [21:53:49] <DanaeNZ> Mind forwarding to me? I'm not on that project but god knows it needs me
494: [21:54:18] <Stomach> whats your email
495: [21:54:26] <Stomach> dm me :)
496: [22:04:05] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
497: [22:13:43] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
498: [22:17:51] * micmania1 has joined #silverstripe
499: [22:34:05] * micmania1 quit (Quit: micmania1)
500: [22:45:43] * micmania1 has joined #silverstripe
501: [22:55:42] * micmania1 quit (Quit: micmania1)
502: [22:56:27] * micmania1 has joined #silverstripe
503: [23:00:01] * ss-helper quit (Remote host closed the connection)
504: [23:00:13] * ss-helper has joined #silverstripe
505: [23:05:43] * bubaphex has joined #silverstripe
506: [23:06:42] * phorloop quit (Quit: Byeee...)
507: [23:20:50] * bubaphex quit (Quit: bubaphex)
508: [23:27:41] * muskie9 has joined #silverstripe
509: [23:29:00] * janneklouman-- quit (Ping timeout: 265 seconds)
510: [23:39:47] * bubaphex has joined #silverstripe
511: [23:43:18] <DanaeNZ> wow, Thursday already
512: [23:43:43] <DanaeNZ> what even happened to this year
513: [23:43:58] <DanaeNZ> blink and it's November
514: [23:50:32] * bubaphex quit (Quit: bubaphex)
515: [23:59:28] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)

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