#silverstripe IRC Log

IRC log for 13 January 2017

All timestamps are in UTC.

1: [00:08:00] * micmania1 quit (Quit: micmania1)
2: [00:10:17] * wilson has joined #silverstripe
3: [00:10:22] <wilson> *wilson
4: [00:10:52] * wilson is now known as Guest58357
5: [00:11:09] <Guest58357> HI to all, off SS question. My tech guy at college has doomed the FTP connections in favour of a VPN Client (FortiClient). Is FTP dead????
6: [00:14:45] <samsamek> Nah
7: [00:14:50] <samsamek> it’s alive ’n kicking
8: [00:17:41] <Guest58357> So what id the advantages of this VPN? Security?
9: [00:22:39] * Guest58357 quit (Quit: Page closed)
10: [00:24:46] * Audlex has joined #silverstripe
11: [01:12:10] * micmania1 has joined #silverstripe
12: [01:14:01] <samsamek> anyone knows how to perform two actions for entwine?
13: [01:14:05] <samsamek> onmatch: setColumns
14: [01:14:21] <samsamek> onmatch: func1, func2 causes error
15: [01:17:15] * trash_ quit (Ping timeout: 260 seconds)
16: [01:18:25] * filisko quit (Ping timeout: 260 seconds)
17: [01:28:38] * keksters has joined #silverstripe
18: [01:46:13] * samsamek quit (Quit: samsamek)
19: [01:47:21] <keksters> Wondering if anyone can help me. I'm trying to migrate a SS 3.0.x site between servers and am running into some difficulties. Have updated config and environment files but am getting a white screen of death on / and 404 on /dev and /build
20: [01:49:43] <keksters> Error log is only telling me that 404.shtml doesn't exist in my root web folder
21: [01:53:19] <keksters> Using an apache/mysql server. Ran into some issues with ownership earlier on as in a WHM/cPanel setup but have moved past these (and the following 403 issues)
22: [01:53:52] <Firesphere> Sounds like an issue with the .htaccess
23: [01:55:04] <keksters> Okay, I have a look around for common .htaccess as it didn't transfer across. Actually probably good idea to go look to see if there is one on current server.
24: [01:57:21] <keksters> Heyhey, there's some fruit. I feel like this was an obvious answer right in front of me.
25: [02:06:05] <keksters> I'm getting an error saying class SiteTree not found - could this be a permissions error on the folder/files? Given I've had to fiddle to get past a 403
26: [02:20:49] * spronk has joined #silverstripe
27: [02:43:01] <keksters> Nope just straight up missing the cms folder
28: [02:56:40] * isaac has joined #silverstripe
29: [03:01:05] * isaac quit (Ping timeout: 260 seconds)
30: [03:25:00] * keksters quit (Ping timeout: 260 seconds)
31: [03:37:40] * micmania1 quit (Quit: micmania1)
32: [03:44:10] * micmania1 has joined #silverstripe
33: [04:42:48] * DanaeNZ quit (Quit: TIME TO FEED)
34: [04:49:49] * micmania1 quit (Quit: micmania1)
35: [05:47:22] * helenclarko has joined #silverstripe
36: [05:47:30] <helenclarko> hey all!!!
37: [05:47:32] <helenclarko> o/
38: [05:47:48] <helenclarko> Who's online at the moment?
39: [06:02:54] * helenclarko quit (Read error: Connection reset by peer)
40: [06:31:29] * pweh has joined #silverstripe
41: [06:56:40] * wmk has joined #silverstripe
42: [06:57:58] * wmk_ has joined #silverstripe
43: [06:58:09] * wmk_ quit (Read error: Connection reset by peer)
44: [07:01:34] * wmk quit (Ping timeout: 256 seconds)
45: [07:28:40] * saiyan quit (Ping timeout: 255 seconds)
46: [07:29:07] * Zauberfisch quit (Ping timeout: 255 seconds)
47: [07:32:38] * Zauberfisch has joined #silverstripe
48: [07:32:46] * adrexia has joined #silverstripe
49: [07:32:58] * Eliseth has joined #silverstripe
50: [07:35:42] * saiyan has joined #silverstripe
51: [07:44:08] * wmk has joined #silverstripe
52: [07:51:43] * pweh quit (Ping timeout: 248 seconds)
53: [07:57:12] * pweh has joined #silverstripe
54: [08:12:07] * pweh quit (Read error: Connection reset by peer)
55: [08:58:58] * kinglozzer has joined #silverstripe
56: [09:04:45] * janneklouman-- has joined #silverstripe
57: [09:20:09] * filisko has joined #silverstripe
58: [09:38:47] * deschebbs has joined #silverstripe
59: [09:44:10] * samsamek has joined #silverstripe
60: [10:44:26] * gelignite has joined #silverstripe
61: [10:59:25] * wmk quit (Ping timeout: 260 seconds)
62: [11:00:42] * filisko quit (Ping timeout: 258 seconds)
63: [11:01:25] * filisko has joined #silverstripe
64: [11:05:45] * spronk quit (Quit: I may need a longer sleep timer...)
65: [11:25:11] * slievr quit (Read error: Connection reset by peer)
66: [11:42:17] * adrexia quit (Quit: Textual IRC Client: www.textualapp.com)
67: [12:12:20] * filisko quit (Ping timeout: 260 seconds)
68: [12:12:46] * filisko has joined #silverstripe
69: [12:36:02] * filisko quit (Ping timeout: 240 seconds)
70: [12:48:54] * filisko has joined #silverstripe
71: [13:21:36] * UndefinedOffset has joined #silverstripe
72: [13:28:46] * samsamek quit (Quit: samsamek)
73: [13:45:01] * samsamek has joined #silverstripe
74: [14:19:37] * samsamek quit (Quit: samsamek)
75: [14:27:51] * muskie9 has joined #silverstripe
76: [14:55:55] * samsamek has joined #silverstripe
77: [15:21:21] * muskie9 quit (Read error: No route to host)
78: [15:31:45] * muskie9 has joined #silverstripe
79: [15:31:48] * samsamek quit (Quit: samsamek)
80: [15:35:24] * samsamek has joined #silverstripe
81: [15:45:28] * samsamek quit (Quit: samsamek)
82: [15:53:22] * helenclarko has joined #silverstripe
83: [15:53:30] <helenclarko> Hey all
84: [15:53:32] <helenclarko> o/
85: [15:57:20] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
86: [16:00:03] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
87: [16:03:01] * justanidiot has joined #silverstripe
88: [16:03:13] <justanidiot> Hey guys, how's it going?
89: [16:03:28] <helenclarko> Hiya
90: [16:10:47] <justanidiot> Hey, I've got a question that maybe someone can help me with. Is there a way to import HTML (from an html file) into a dataobject?
91: [16:11:18] <justanidiot> Preferably with an UploadField, but other options could work lol
92: [16:17:56] <helenclarko> So you want to upload an html file? UploadField should work. It'll put the file into the uploads folder however, but you should be able to serve it out from there.
93: [16:18:59] <justanidiot> Uploading and serving the file is no issue, What I'd REALLY like to do, is take the content from the file and display it on my page.
94: [16:19:46] <kinglozzer> justanidiot: Well you'll need an onBeforeWrite(), and in there you'll have to open the file and parse it with DOMDocument or something
95: [16:20:03] <justanidiot> I am trying to create some userguides, and the technical writer uses a software for creating these, and outputs to HTML, so I want to upload them to a dataobject, and display that content.
96: [16:20:17] <kinglozzer> http://php.net/manual/en/class.domdocument.php
97: [16:22:57] <justanidiot> hmmm, very interesting. Maybe I can just link to an external source where she can store her files.
98: [16:23:17] <kinglozzer> Probably easier :P
99: [16:24:49] <justanidiot> So in my dataobject class, I am doing an onBeforeWrite, then calling the DOMDoc to a specific location, which I can make from a field on my DataObject.
100: [16:25:25] <justanidiot> I maybe back for some guidance King. I have no experience with these 2 things, but I am going to try.
101: [16:26:04] <helenclarko> kinglozzer, do you mind helping me with a requirements issue. I usually just put all my requirements into the template, but I think its time I switched over to php init. I just cant seem to make it work!
102: [16:26:13] <helenclarko> Here's my php file http://www.sspaste.com/paste/show/5878ff93ead34
103: [16:26:24] <kinglozzer> justanidiot: You'd can either pass a path to DOMDocument, or open the file yourself (file_get_contents()) and pass the contents. There are plenty of tutorials about that online, as it's all core PHP stuff
104: [16:26:25] <helenclarko> dev built and flushed
105: [16:26:51] <kinglozzer> helenclarko: What's happening/not happening?
106: [16:27:05] <helenclarko> Its not creating the .js file.
107: [16:27:26] <kinglozzer> helenclarko: It's just outputting them all individually?
108: [16:27:33] <helenclarko> In fact even when I just use requrements without combining. It just doesnt add anything.
109: [16:27:51] <helenclarko> Nope, I get no requirements at all
110: [16:28:38] <kinglozzer> Hmm, that looks correct. If you're in dev mode, it won't combine them but it still should output <script> tags for them all
111: [16:28:57] <helenclarko> thats what I thought.
112: [16:29:14] <helenclarko> It should still output something.
113: [16:29:21] <kinglozzer> helenclarko: Try with just one file
114: [16:29:31] <kinglozzer> I wonder if one of the paths is wrong, and it's making them all fail or something
115: [16:29:57] <kinglozzer> helenclarko: Are you checking <head> too?
116: [16:30:17] <kinglozzer> I think it can sometimes end up writing them there... unless you call Requirements::set_force_js_to_bottom(true);
117: [16:30:28] <helenclarko> yup, just going over everything again now
118: [16:30:38] <kinglozzer> https://github.com/bigfork/SilverStripe-Shoelace/blob/master/mysite/code/pagetypes/Page.php#L44-L47
119: [16:30:40] <kinglozzer> That's what we use
120: [16:30:59] <kinglozzer> Obviously with more than one file, but that's the starting point
121: [16:31:30] <helenclarko> nice, thanks'
122: [16:40:51] * samsamek has joined #silverstripe
123: [16:45:33] <helenclarko> kinglozzer, still no go.
124: [16:51:00] * deschebbs quit (Quit: Konversation terminated!)
125: [16:54:58] * UndefinedOffset quit (Quit: Leaving.)
126: [16:56:48] * filisko quit (Ping timeout: 258 seconds)
127: [17:05:25] <helenclarko> Yeah its just not loading anything in that init.
128: [17:08:04] <kinglozzer> helenclarko: it silently fails when the path is incorrect, so I'd pick one file, double check the path and everything with just regular Requirements::javascript()
129: [17:08:34] * UndefinedOffset has joined #silverstripe
130: [17:09:21] <kinglozzer> Gotta run, good luck!
131: [17:09:23] * kinglozzer quit ()
132: [17:12:01] * filisko has joined #silverstripe
133: [17:19:15] <helenclarko> Okay, so init is not working on my page.php
134: [17:19:25] <helenclarko> oh, kinglozzer is gone.
135: [17:43:04] * janneklouman-- quit (Ping timeout: 260 seconds)
136: [18:18:12] * gelignite has joined #silverstripe
137: [18:23:39] * UndefinedOffset quit (Quit: Leaving.)
138: [19:23:50] * filisko quit (Ping timeout: 252 seconds)
139: [19:30:27] * filisko has joined #silverstripe
140: [20:36:39] * janneklouman-- has joined #silverstripe
141: [20:41:19] * janneklouman-- quit (Ping timeout: 248 seconds)
142: [20:44:27] * samsamek quit (Quit: samsamek)
143: [21:29:46] * UndefinedOffset has joined #silverstripe
144: [21:50:42] * UndefinedOffset quit (Quit: Leaving.)
145: [22:05:16] * kerozene quit (Ping timeout: 272 seconds)
146: [22:11:32] * kerozene has joined #silverstripe
147: [22:28:07] * pweh has joined #silverstripe
148: [22:35:45] * kerozene quit (Read error: Connection reset by peer)
149: [22:47:38] * kerozene has joined #silverstripe
150: [22:52:14] * muskie9 quit (Ping timeout: 260 seconds)
151: [22:57:52] <helenclarko> Hi all
152: [22:57:55] <helenclarko> o/
153: [23:00:01] * ss-helper quit (Remote host closed the connection)
154: [23:00:18] * ss-helper has joined #silverstripe
155: [23:14:37] * Kolin has left #silverstripe
156: [23:20:38] * helenclark0 has joined #silverstripe
157: [23:20:41] <helenclark0> o/
158: [23:23:03] * helenclarko quit (Ping timeout: 256 seconds)

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