#silverstripe IRC Log

IRC log for 28 October 2015

All timestamps are in UTC.

1: [00:03:30] * kerozene quit (Ping timeout: 250 seconds)
2: [00:09:32] <DanaeNZ> uggghhhh fuck this whole week
3: [00:10:05] <ss23> Trudat
4: [00:10:14] <ss23> someone "upgraded" a server without doing a bakcup first
5: [00:10:21] <ss23> have to rewrite soi much config
6: [00:11:12] <DanaeNZ> oh man fuck that
7: [00:11:26] <DanaeNZ> i have this one _config.php file that only existed on the live server
8: [00:11:38] <DanaeNZ> it got overwritten cos old shitty site and whyyyyy sftp
9: [00:11:45] <DanaeNZ> someone else wrote it too
10: [00:11:50] <DanaeNZ> so I'm like,........what do
11: [00:12:11] <ss23> crie
12: [00:12:38] <DanaeNZ> p much
13: [00:18:56] * darjus01 quit (Quit: Leaving)
14: [00:31:13] * spronk quit (Quit: I may need a longer sleep timer...)
15: [00:32:05] * kerozene has joined #silverstripe
16: [00:32:09] <DanaeNZ> ugh i feel about to fall asleep
17: [00:32:23] * spronk has joined #silverstripe
18: [00:32:28] <Colin[pi]> DanaeNZ: dat caffeine
19: [00:41:17] <spronk> hmm
20: [00:41:22] <spronk> what do people use to write css animations?
21: [00:41:37] <Colin[pi]> spronk: an editor
22: [00:41:39] <Colin[pi]> ;P
23: [00:41:45] <spronk> la la la
24: [00:41:48] <spronk> BANG
25: [00:54:29] * david______ has joined #silverstripe
26: [00:55:10] <david______> I am using DB::query("START TRANSACTION; INSERT ..."); and there is an error saying "ERROR near START TRANSACTION INSERT"
27: [00:55:25] <david______> it is truncating the semi colon between TRANSACTION and INSERT
28: [00:55:51] <david______> but at the end of my query I have "; COMMIT;" and those semi colons are being preserved
29: [01:07:09] * Honey has joined #silverstripe
30: [01:07:33] * Honey is now known as Guest81018
31: [01:07:43] <ss23> DanaeNZ: this is my favorite video of all time http://web.archive.org/web/20150505103111/http://a.pomf.se/qyxrtf.webm
32: [01:08:05] <DanaeNZ> how sfw is it XD
33: [01:09:10] <ss23> Hmm
34: [01:09:15] <ss23> Pretty SFW I'd say
35: [01:09:27] <ss23> It's got Japanese audio (which is SFW) but may draw weir dlooks
36: [01:09:29] <spronk> what the fuck is this
37: [01:09:41] <ss23> The animation is SFW, but the text could be considered NSFW a tiny bit depending on where y ou work
38: [01:09:55] <ss23> "my hand itches from fapping" <- a line from it (though no other references to masturbation etc)
39: [01:10:05] <ss23> spronk: It's art
40: [01:11:41] <spronk> :|
41: [01:11:59] <DanaeNZ> i'm gonna put it in my pushbullet for later
42: [01:12:20] <antmas> dafuq is pushbullit
43: [01:12:27] <antmas> et*
44: [01:12:48] <spronk> sounds like some sort of sex toy
45: [01:12:49] <spronk> tbh
46: [01:13:24] <Colin[pi]> DanaeNZ: i'm gonna put it in my pushbullet for later
47: [01:13:26] <Colin[pi]> ( ͡o ͜ʖ ͡o)
48: [01:13:37] <antmas> LOL
49: [01:13:40] <DanaeNZ> HA
50: [01:13:41] <DanaeNZ> HAHA
51: [01:13:55] <DanaeNZ> nah it's just a push notification service thing
52: [01:14:05] <DanaeNZ> send files around the place easily
53: [01:15:24] * Guest81018 quit (Ping timeout: 246 seconds)
54: [01:15:31] <antmas> DanaeNZ: does it...
55: [01:15:40] <antmas> DanaeNZ: does it vibrate when you get the notifications?
56: [01:15:44] <ss23> rofl
57: [01:15:45] <antmas> ^.^
58: [01:17:10] <DanaeNZ> wink wonk
59: [01:17:32] * antmas rubs leg
60: [01:17:38] <DanaeNZ> whose leg
61: [01:17:40] <DanaeNZ> XD
62: [01:18:18] <Colin[pi]> http://i.imgur.com/BBP892y.gif
63: [01:18:30] <DanaeNZ> Colin[pi]: A+
64: [01:18:44] <ss23> you should just watch now, DanaeNZ
65: [01:18:45] <ss23> IT's A+
66: [01:18:54] * david______ quit (Ping timeout: 246 seconds)
67: [01:19:08] <antmas> Colin[pi]: LOL
68: [01:19:20] <Colin[pi]> http://i.imgur.com/SFJvO.gif
69: [01:19:49] <antmas> hahaha
70: [01:20:08] <antmas> you know your day's going slow when you have to write a class called 'Santa Sui'
71: [01:20:08] <Colin[pi]> http://i.imgur.com/gLdb50C.gif
72: [01:20:10] <antmas> Suit*
73: [01:21:01] <DanaeNZ> what does the class do
74: [01:21:55] <Colin[pi]> DanaeNZ: wrapper for the Santa class, duh
75: [01:22:03] <DanaeNZ> omg
76: [01:22:23] <antmas> Colin[pi]: dude
77: [01:22:31] <antmas> I got nothing
78: [01:22:35] <Colin[pi]> :D
79: [01:23:00] <antmas> I'm just staring at my screen
80: [01:23:27] <antmas> all I can see is that expectant eel joke face lol
81: [01:23:35] <DanaeNZ> SAME
82: [01:24:35] * Audlex has joined #silverstripe
83: [01:24:38] <Colin[pi]> http://i.imgur.com/N7QuwYx.gif it was pretty good
84: [01:24:48] <antmas> no it was!
85: [01:25:11] <antmas> if only you'd put it like 'a wrapper for the Santa clauss, duh'
86: [01:25:18] <Colin[pi]> ohhh 10/10
87: [01:25:20] <antmas> I would have stood up and left work
88: [01:25:52] <DanaeNZ> bahaha
89: [01:26:00] <DanaeNZ> ugh curl
90: [01:26:03] <DanaeNZ> UGH
91: [01:26:09] <DanaeNZ> show me my damn curlinfo
92: [01:26:12] <DanaeNZ> you piece of
93: [01:26:14] <DanaeNZ> dry turd
94: [01:28:16] <antmas> man
95: [01:28:27] <antmas> the number of times I've written 'fodler'
96: [01:29:19] <Colin[pi]> o_O
97: [01:29:28] <antmas> I can't help it
98: [01:29:28] <Colin[pi]> my faves are "pubic function"
99: [01:29:33] <antmas> lol yes
100: [01:29:42] <antmas> reslut is a good one
101: [01:29:44] <Colin[pi]> and "$list->cunt()"
102: [01:30:09] <DanaeNZ> pubic function reslut($list) { return $list->cunt(); }
103: [01:30:19] <Colin[pi]> DanaeNZ: LOL
104: [01:30:20] <Colin[pi]> nice
105: [01:30:27] * spronk quit (Ping timeout: 265 seconds)
106: [01:30:28] <antmas> we have someone here who pronounces 'specific' as 'pacific' 99% of the time
107: [01:30:35] <DanaeNZ> do you slap them?
108: [01:30:42] <antmas> I want to
109: [01:30:43] <Colin[pi]> because you should
110: [01:30:49] <antmas> or 'pendantic'
111: [01:32:37] <DanaeNZ> antmas: but that's harder to say
112: [01:32:40] <DanaeNZ> i don't understand
113: [01:33:16] <antmas> 'dayta' is another one that kills me a little bit
114: [01:33:55] <ss23> Dayta is pretty common though, right?
115: [01:34:22] <antmas> it is, but it just sounds so weird
116: [01:34:38] <Colin[pi]> merkin pronunciation
117: [01:34:45] <Colin[pi]> commander dayta
118: [01:35:06] <antmas> I often use american pronunciation for things
119: [01:35:09] <antmas> and spelling
120: [01:35:17] * spronk has joined #silverstripe
121: [01:35:22] <antmas> like with 'aluminium', I usually say 'aluminum'
122: [01:35:31] * Colin[pi] slaps antmas
123: [01:35:31] * DanaeNZ slaps antmas
124: [01:35:35] <Colin[pi]> ^
125: [01:35:36] <DanaeNZ> omg
126: [01:35:37] <DanaeNZ> haha
127: [01:35:39] <antmas> lol
128: [01:35:47] <Colin[pi]> one cheek each DanaeNZ!
129: [01:35:56] <DanaeNZ> i imagined like a really quick succession slap
130: [01:36:13] <antmas> powpow
131: [01:36:25] <Colin[pi]> pao, right in the kisser
132: [01:38:29] <Colin[pi]> years of html has made me write "center" now
133: [01:39:09] <antmas> mmm same with 'color'
134: [01:43:39] <DanaeNZ> UGH TOO SLEEPY
135: [01:43:46] <DanaeNZ> stupid lunch
136: [01:45:24] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
137: [01:52:32] * Motoservo has joined #silverstripe
138: [01:53:33] * Motoservo quit (Client Quit)
139: [01:59:06] * novaweb has joined #silverstripe
140: [01:59:58] <Stomach> Colin[pi] - fixed it
141: [02:00:04] <Stomach> installed nginz
142: [02:00:07] <Stomach> installed nginx*
143: [02:00:07] <Stomach> :D
144: [02:01:13] <Colin[pi]> Stomach: lol
145: [02:01:17] <Colin[pi]> well that'll do it
146: [02:01:22] * Hailwood quit (Remote host closed the connection)
147: [02:06:54] * novaweb quit (Remote host closed the connection)
148: [02:08:26] * novaweb has joined #silverstripe
149: [02:10:11] <Colin[pi]> ugh hurry up and give the launch green light >_<
150: [02:10:26] * novaweb quit (Read error: No route to host)
151: [02:14:12] <glenn-bautista> quick question, SS_SEND_ALL_EMAILS_TO still works even when in the 'live' environment, right?
152: [02:14:37] * MichaelHabib has joined #silverstripe
153: [02:17:16] * Seraphia_ quit (Ping timeout: 246 seconds)
154: [02:19:14] * zippy has joined #silverstripe
155: [02:19:54] * MarkGuinn quit (Ping timeout: 272 seconds)
156: [02:20:26] <zippy> so
157: [02:20:41] <antmas> so
158: [02:20:42] <zippy> in your mysite/_config.php you can global $database; and do $database = 'my db name';
159: [02:20:46] <zippy> all is good
160: [02:20:52] <zippy> but on the server I want to use a different DB name
161: [02:21:16] <antmas> so like an alias?
162: [02:21:17] <zippy> so in my _ss_environment, which comes AFTER the above I do global $database etc and set the name
163: [02:21:19] <zippy> but no fucks given.
164: [02:21:29] <zippy> local I want. foosite
165: [02:21:42] <zippy> remove theyhave some retarded foobar_site
166: [02:21:50] <zippy> I don't want that local!!
167: [02:22:46] * nontgor quit (Ping timeout: 240 seconds)
168: [02:24:12] * DanaeNZ quit (Remote host closed the connection)
169: [02:26:59] * MichaelHabib1 has joined #silverstripe
170: [02:27:22] * DanaeNZ has joined #silverstripe
171: [02:28:31] * MichaelHabib quit (Ping timeout: 268 seconds)
172: [02:28:52] * antmas quit (Quit: Page closed)
173: [02:32:26] * DanaeNZ sips coffee
174: [02:32:28] <DanaeNZ> haha oh man
175: [02:32:30] <DanaeNZ> I remember
176: [02:32:46] <DanaeNZ> at Armageddon one of my photographer friends brought a salad
177: [02:32:58] <DanaeNZ> and did a series of "laughing at salad" photos
178: [02:35:48] * nontgor has joined #silverstripe
179: [02:37:03] <zippy> hahaha --> salad
180: [02:37:04] <zippy> like that?
181: [02:37:25] <DanaeNZ> yeah like, "Oh, salad! What a hilarious joke!"
182: [02:37:37] <DanaeNZ> https://www.google.co.nz/search?q=laughing+at+salad&espv=2&biw=1820&bih=998&source=lnms&tbm=isch&sa=X&ved=0CAYQ_AUoAWoVChMI0If8m5HkyAIVISqmCh3KVw_p
183: [02:44:16] * MichaelHabib1 quit (Ping timeout: 250 seconds)
184: [02:44:43] * muskie9 has joined #silverstripe
185: [02:45:41] * chocolatemoose has joined #silverstripe
186: [02:46:09] <chocolatemoose> is it possible to hide a page type completely from the site tree?
187: [02:49:29] <muskie9> chocolatemoose like you don't want it used? or you want to manage it in a gridfield type setup?
188: [02:50:36] <muskie9> for the latter there's lumberjack... I think the silverstripe fork is a bit more updated... https://github.com/silverstripe/silverstripe-lumberjack
189: [02:50:45] <chocolatemoose> I want it managed in a gridfield instead
190: [02:51:11] <chocolatemoose> I looked into lumberjack, but it seems it is more for a parent -> child relationship
191: [02:51:20] <madmatt> Yep take a look at lumberjack then
192: [02:51:55] <madmatt> It's used to manage e.g. blog posts for a blog, media releases, news articles, that sort of thing where there's not a nice hierarchy to the content
193: [02:53:16] <muskie9> not sure how you'd manage a page's location in relation to the other pages in the tree if it wasn't in the tree, or hierarchical via lumberjack
194: [02:55:59] * muskie9__ has joined #silverstripe
195: [02:56:16] <muskie9__> clients and their vpn's lol
196: [02:56:26] * chocolatemoose quit ()
197: [02:59:52] * muskie9 quit (Ping timeout: 250 seconds)
198: [03:00:01] * muskie9__ is now known as muskie9
199: [03:03:26] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
200: [03:04:56] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
201: [03:07:50] * pandaux has joined #silverstripe
202: [03:09:17] <pandaux> Where should one set a release number for a site/webapp in SilverStripe ... config.yml? And if so how can I access this value from within my template e.g. to stamp my CSS e.g. styles.css?v=1.5.2
203: [03:12:00] <pandaux> I'm doing this to ensure users' browsers don't use a cached version when a new release of the site is deployed
204: [03:14:17] <micmania1> pandaux: ss doesn’t really provide a way out of the box. Its more part of your own release process. You can set a constant in _ss_environment.php or deploy a revision file including the version?
205: [03:14:29] * muskie9 has joined #silverstripe
206: [03:16:24] <pandaux> thnx micmania1 will probably go with the ss_environment option
207: [03:17:25] <muskie9> anyone ever experience local vagrant box issues when connecting to a vpn?
208: [03:30:23] * Phlunk3 quit (Remote host closed the connection)
209: [03:41:22] * joelpittet has joined #silverstripe
210: [03:55:28] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
211: [03:57:00] <helenclarko> I'm Done!
212: [03:57:02] * helenclarko quit (Quit: Ain't no lie, baby bye bye bye.)
213: [03:59:17] * r_hector has joined #silverstripe
214: [04:25:38] * DanaeNZ quit (Remote host closed the connection)
215: [04:30:11] * Motoservo has joined #silverstripe
216: [04:31:59] * glenn-bautista quit (Quit: Leaving.)
217: [05:07:01] * Stomach quit (Ping timeout: 246 seconds)
218: [05:16:34] * micmania1 quit (Quit: micmania1)
219: [05:37:33] * mahfuz quit (Ping timeout: 246 seconds)
220: [05:54:42] * pandaux quit (Ping timeout: 246 seconds)
221: [05:58:30] * Stomach has joined #silverstripe
222: [06:03:31] * spronk quit (Quit: I may need a longer sleep timer...)
223: [06:06:01] * Stomach quit (Quit: zzz)
224: [06:06:18] * joelpittet quit (Remote host closed the connection)
225: [06:14:09] * DanaeNZ has joined #silverstripe
226: [06:18:27] * DanaeNZ quit (Ping timeout: 250 seconds)
227: [06:18:41] * Motoservo quit (Quit: Over & out.)
228: [06:22:02] * Stomach has joined #silverstripe
229: [06:36:44] * Seraphia_ has joined #silverstripe
230: [06:48:17] * wmk has joined #silverstripe
231: [07:07:54] * Mike123 has joined #silverstripe
232: [07:22:32] <Mike123> Morning :))
233: [07:46:32] <ss23> yo, need an SS expert!
234: [07:46:40] <ss23> If I'm running stuff from the CLI, my "member" should be admin, right?
235: [07:46:48] <ss23> e.g. if I run a cron from CLi, I'd expect I could run $page->publish();
236: [07:47:12] <ss23> Alas, I cannot, because canPublish() returns false, because Member::currentUser() returns NULL
237: [07:47:15] <ss23> What's the issue going on there?
238: [07:47:25] * swaiba has joined #silverstripe
239: [07:47:44] <wmk> ss23, good question. maybe swaiba knows something about it?
240: [07:47:55] <swaiba> good morning...
241: [07:47:57] <swaiba> whats up?
242: [07:48:05] <wmk> though cli dev/build runs without problems...
243: [07:48:23] <swaiba> we do a curl request
244: [07:48:37] <wmk> swaiba, and do you login with curl?
245: [07:48:38] <swaiba> and have a "special filte" that places a site in dev mode
246: [07:48:46] <swaiba> *file
247: [07:48:59] <ss23> I'll repaste for swaiba
248: [07:49:02] <ss23> 20:46:41 <@ss23> If I'm running stuff from the CLI, my "member" should be admin, right?
249: [07:49:05] <ss23> 20:46:49 <@ss23> e.g. if I run a cron from CLi, I'd expect I could run $page->publish();
250: [07:49:08] <ss23> 20:47:12 <@ss23> Alas, I cannot, because canPublish() returns false, because Member::currentUser() returns NULL
251: [07:49:11] <ss23> 20:47:15 <@ss23> What's the issue going on there?
252: [07:49:55] <swaiba> sorry cannot help, as I said we use a special file to put site in temporary dev mode and we do a curl request
253: [07:50:03] <ss23> :(
254: [07:50:16] <swaiba> hey you can always to it our way :)
255: [07:50:38] <ss23> I'm sure this used to work
256: [07:50:38] <wmk> ss23 swaiba you can put isDev=1 in your commands in CLI
257: [07:50:58] <swaiba> and how would the user/pass then be entered?
258: [07:51:01] <ss23> But being in dev mode won't make canPublish return true
259: [07:51:14] <ss23> I need it to know I'm an admin, which I *thought* it did already...
260: [07:51:23] <swaiba> I mean you could use php to get the authash login from a member and use that... but...
261: [07:51:40] <swaiba> "I need it to know I'm an admin" we have another "special file" for that lol!
262: [07:51:49] <ss23> But I thought it already did this
263: [07:51:51] <ss23> Like..
264: [07:51:54] <ss23> I could've sworn it did
265: [07:51:57] * cupcake quit (Ping timeout: 246 seconds)
266: [07:52:00] <ss23> How else would all the other scripts work that publish stuff?
267: [07:52:28] <swaiba> ss23 with regret I'm unable to help more...
268: [07:52:56] <ss23> :(
269: [07:52:58] <ss23> sad ss23
270: [07:55:16] <ss23> Wow, I just checked with another site. It also said it couldn't publish it
271: [07:55:20] <ss23> I didn't know this was a thing
272: [07:57:05] <ss23> Okay, work around time
273: [07:57:08] <ss23> swaiba: How does your magic file work?
274: [07:57:15] <ss23> the "make me an admin when running this CLI thing"
275: [07:58:17] <swaiba> use a custom member class / extension and check for a file before doing "normal" logic
276: [07:58:53] <swaiba> althernatively put it in your _config.php to check for it and then do something (like member->login())
277: [08:00:01] <ss23> hmm
278: [08:00:10] <ss23> CAn probably do a workaroudn with just a Member::logIn(1); or something
279: [08:00:14] <ss23> wait
280: [08:00:16] <ss23> that's not how it works
281: [08:00:43] <ss23> swaiba: How do you like.. do the actual login?
282: [08:01:29] <swaiba> we don't, actually login, but as I said above you can just lookup a memeber and use that member to $member->Login()
283: [08:01:48] <ss23> oic, like Member::get()->byId then $that->login
284: [08:01:49] <ss23> ty swaiba
285: [08:01:59] <ss23> I was expecting a Member::loginAs
286: [08:02:01] <ss23> This owrks
287: [08:02:16] <swaiba> welcome - success!
288: [08:02:21] <ss23> :D
289: [08:03:19] <wmk> swaiba, cool... you should blog about it ;)
290: [08:03:36] * DanaeNZ has joined #silverstripe
291: [08:03:45] <swaiba> it's been a while wmk..
292: [08:03:51] <wmk> *G*
293: [08:04:24] <wmk> yeah. currently posting some issues about "your module has flaws with ss3.2"
294: [08:04:36] <wmk> ss23, you should update your nick btw
295: [08:04:45] <swaiba> ha!
296: [08:04:53] <swaiba> yeah, just a few years out of date
297: [08:05:03] <wmk> unfortunatley when it comes to cms js magic, it's not easy for me to provide fixes
298: [08:05:22] <swaiba> I'm going to have to write something of substance soon... what to chose...
299: [08:08:23] * DanaeNZ quit (Ping timeout: 260 seconds)
300: [08:09:54] <ss23> Bah!
301: [08:09:59] <ss23> My nick is't about "silverstripe 2.3" though
302: [08:10:07] <ss23> I just *happened* to start doing SilverStripe when 2.3 was around... :(
303: [08:10:31] <wmk> yeah, that times when book were written
304: [08:10:35] <wmk> books
305: [08:47:37] * marijnk has joined #silverstripe
306: [08:58:14] * SH__ has joined #silverstripe
307: [08:58:39] <SH__> Hey guys, what would be the best way to make sure, that a tracking code is only send after form submission, and not on page refresh?
308: [09:00:02] <wmk> SH__, send it with your form answer?
309: [09:01:30] <SH__> Yeah, im just having a hard time figuring out how to create some sort of IF in the templates, to check when the form has been send, so that it includes the tracking code
310: [09:04:24] <SH__> Ah wait I guess I can just do it with an onsubmit="" on the form
311: [09:04:28] <SH__> Woops!
312: [09:08:27] * stnvh has joined #silverstripe
313: [09:08:46] * Znorelo has joined #silverstripe
314: [09:09:21] <Znorelo> Hello World, I'm trying to run silverstripe in CLI and I get an error :
315: [09:09:24] <Znorelo> ERROR [User Error]: Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory IN GET dev/build
316: [09:09:39] <Znorelo> Do you know what it mean ?
317: [09:12:46] * aurelienchappard has joined #silverstripe
318: [09:12:46] <ss-helper> aurelienchappard: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
319: [09:13:14] <aurelienchappard> hello pp
320: [09:13:18] <aurelienchappard> Hello
321: [09:13:46] <aurelienchappard> Hello World, I'm trying to run silverstripe in CLI and I get an error :
322: [09:14:51] * aurelienchappard quit (Client Quit)
323: [09:16:01] * form_ has joined #silverstripe
324: [09:16:02] <ss-helper> form_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
325: [09:16:45] * spronka has joined #silverstripe
326: [09:16:47] * znorelo_ has joined #silverstripe
327: [09:16:47] <ss-helper> znorelo_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
328: [09:17:04] * Znorelo quit (Quit: Page closed)
329: [09:17:05] * znorelo_ is now known as znorelo
330: [09:17:16] * Stomach quit (Ping timeout: 272 seconds)
331: [09:17:35] <form_> i have a contact form: http://pastebin.com/qYgTxPi5, i have installed the https://github.com/silverstripe/silverstripe-spamprotection module with https://github.com/silverstripe/silverstripe-mathspamprotection, how do i enable this to my contact form?
332: [09:17:42] <znorelo> Hello everybody. I’m new on silverstripe
333: [09:18:06] <znorelo> I’m trying to run silverstripe via CLI
334: [09:18:21] <znorelo> an di’m getting this error :
335: [09:18:22] <znorelo> ERROR [User Error]: Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory
336: [09:18:23] <znorelo> IN GET dev/build
337: [09:18:34] <znorelo> Do you know what it mean ?
338: [09:19:39] <wmk> hehe, i love MockDataObjects module...
339: [09:19:51] <wmk> an image of a pig is funny when you fill the team page with mock data
340: [09:20:19] <ss23> lol
341: [09:21:57] <swaiba> form_ you add it like any other field... $fields->push(new MathSpamProtectorField('spam'));
342: [09:23:39] <form_> Thanks Swaiba! :)
343: [09:26:00] <wmk> znorelo, seems it cannot find the database
344: [09:26:01] <znorelo> this is my error : http://pastebin.com/kdbXGBZd
345: [09:26:34] <znorelo> wmk : I think you’re right. But In my brother, silverstripe know my database
346: [09:26:39] <wmk> znorelo, do you have a _ss_environment.php ?
347: [09:26:43] <znorelo> yes I have
348: [09:27:00] <wmk> and it works in the browser?
349: [09:27:20] <wmk> from the same machine?
350: [09:27:35] <znorelo> yes
351: [09:27:50] <znorelo> Hre is my _ss_environment.php : http://pastebin.com/fWXdXjUy
352: [09:29:07] <wmk> did you try to google that error?
353: [09:29:19] <znorelo> no result on Google :(
354: [09:29:23] <wmk> there are many questions like that on stackoverflow, e.g. http://stackoverflow.com/questions/2412009/starting-with-zend-tutorial-zend-db-adapter-throws-exception-sqlstatehy000
355: [09:29:59] <wmk> znorelo, http://lmgtfy.com/?q=Uncaught+PDOException%3A+SQLSTATE%5BHY000%5D+%5B2002%5D+No+such+file+or+directory
356: [09:30:17] <znorelo> I chnage define('SS_DATABASE_SERVER', ‘localhost); to define('SS_DATABASE_SERVER', '127.0.0.1'); and it’s works !!
357: [09:33:26] <wmk> znorelo, fine!
358: [09:33:41] <wmk> maybe php doesn't like localhost? dunno
359: [09:34:20] * spronka quit (Quit: Textual IRC Client: www.textualapp.com)
360: [09:36:43] <wmk> znorelo, you're on SS 3.2 ?
361: [09:36:57] <znorelo> yes
362: [09:36:59] <znorelo> why ?
363: [09:37:07] <wmk> just asking.
364: [09:37:10] <znorelo> :)
365: [09:37:33] <ss23> localhost and 127.0.0.1 are subtly diferent
366: [09:37:44] <ss23> You may get authentication errors on one but not the other
367: [09:37:46] <wmk> ss23, well...?
368: [09:37:59] <ss23> I haven't seen a "no such file or directory" error though
369: [09:38:05] <wmk> ah, so it's no routing problem but a mysql auth problem?
370: [09:38:08] <ss23> Hmm
371: [09:38:24] <ss23> when you use "localhost", PHP will try connect using the defined mysql.sock path
372: [09:38:32] <ss23> IF *that* file doesn't exist, you might get that error
373: [09:38:46] <ss23> So I'd call it a PHP configuration error, or possibly a MySQL configuration error (basically, they don't agree about where the unix socket file is)
374: [09:38:59] <ss23> That's my guess, anyway
375: [09:39:08] <wmk> BUT: if it works in browser (through webserver) with localhost
376: [09:39:15] <ss23> They use different php.ini files
377: [09:39:23] <ss23> They probably have different paths in them
378: [09:39:33] <wmk> ok..
379: [09:39:50] <znorelo> I can run dev/build in CLI but i’m trying to run php framework/cli-script.php ?flush . Not work
380: [09:41:36] <wmk> ss23, so with "localhost" it tries the sock file, with "127.0.0.1" it connects over TCP/IP ?
381: [09:42:53] <znorelo> http://pastebin.com/i0qFWeLn
382: [09:43:04] <ss23> wmk: Indeed
383: [09:43:28] <ss23> znorelo: That's not quite the right syntax
384: [09:43:29] <wmk> znorelo, /path/to/cli-script.php dev/build flush
385: [09:43:34] <ss23> What wmk said
386: [09:43:47] <wmk> or maybe flush=1 dunno
387: [09:44:07] <wmk> from 3.1.x on it shouldn't matter if flush=1 or flush=all, just flush
388: [09:44:57] <znorelo> ss23, It doen’t clear template cache using /path/to/cli-script.php dev/build flush
389: [09:45:04] <znorelo> just rebuilding database
390: [09:46:34] <wmk> hmm
391: [09:46:41] <wmk> then try dev/build flush=1
392: [09:47:58] <znorelo> noop :(
393: [09:48:06] <wmk> hmm..
394: [09:48:07] <znorelo> juste Building database
395: [09:50:50] <ss23> Yeah
396: [09:50:53] <ss23> You can't clear template cache like that
397: [09:51:08] <ss23> You have two options: Load a 'real' page and do flush=all, or rm -rf the tmp directory
398: [09:51:14] <ss23> But uh
399: [09:51:24] <ss23> znorelo: Clearing the templates for the *cli* doesn't clear it for the web
400: [09:51:29] <ss23> They're seperate directories
401: [09:51:36] <ss23> (at least, almost always they are... for reasons)
402: [09:51:37] <wmk> znorelo, well, one possible solution: you should have a $File_TO_URL_MAPPING in your _ss_environment.php
403: [09:51:58] <ss23> If you wish to clear it properly, one option is to rm -rf /tmp/silverstripe* -- that will be overzealous, but if it's a small site, it should be able to regenerate teh required manifests and caches just fine
404: [09:52:20] <wmk> ss23, with file-to-url-mapping... do you still have two cache dirs?
405: [09:52:27] <wmk> on my demo server i only see one
406: [09:52:48] <wmk> well, i'm also the same user in cli and over webserver (nginx)
407: [09:52:54] <wmk> so it could be this edge case
408: [09:52:54] <ss23> It depends, you can see what it's made up of
409: [09:52:57] <ss23> Path and user
410: [09:53:15] <ss23> The issue we run into is that we have symlinks, so the web user gets a path that looks like sites-sitename-releases-releaseid
411: [09:53:21] <ss23> But our CLI scripts use sites-sitename-www
412: [09:53:27] <ss23> (www is a symlink to releases/release-id)
413: [09:53:35] <ss23> But also as you pointed out, they'd have to be the same user
414: [09:53:51] <znorelo> Ah ok I understand now !
415: [09:54:40] <wmk> znorelo, http://www.silverstrip.es/blog/howto-fix-pdoexception-sqlstatehy000-2002-no-such-file-or-directory/
416: [10:05:58] * r_hector quit (Remote host closed the connection)
417: [10:31:41] * Liquide quit ()

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