#silverstripe IRC Log

IRC log for 29 December 2014

All timestamps are in UTC.

1: [01:14:04] * veb has joined #silverstripe
2: [01:36:59] * Azure has joined #silverstripe
3: [01:43:27] * veb is now known as vebb
4: [01:54:13] * vebb is now known as veb
5: [02:13:08] * starlifterdigi has joined #silverstripe
6: [02:15:39] * r_hector quit (Quit: Leaving.)
7: [02:22:59] <starlifterdigi> How do I fix the following error: “[SOLVED] SS3 installation error: [Warning] is_readable(): open_basedir restriction in effect”. I don’t have access to the global php.ini
8: [02:37:31] <veb> holy shit
9: [02:37:36] <veb> that episode of top gear
10: [02:37:38] <veb> O_O
11: [02:39:01] <starlifterdigi> That was an episode of Top Gear :D
12: [02:40:27] <veb> was on the edge of my seat man
13: [02:40:36] <veb> jesus christ
14: [02:51:56] <Zauberfisch> starlifterdigi: many web hosts allow you to disable open_basedir in their management interface
15: [02:52:22] <Zauberfisch> I think it is possible to run ss with open_basedir somehow, but I never manged to get it running
16: [02:52:46] <Zauberfisch> but I haven't given it much effort though
17: [02:54:31] <starlifterdigi> Thanks Zauberfisch.
18: [02:56:00] <starlifterdigi> I can change the php.ini but it’ll affect the entire server. There’s no traditional cpanel for this server.
19: [02:56:08] * gelignite quit (Quit: http://bit.ly/nkczDT)
20: [02:56:36] <starlifterdigi> Would it make sense if zend was installed in a different location...
21: [02:58:47] <starlifterdigi> or if I18nRailsYamlAdapter.php wasn’t installed at all...
22: [03:00:49] <Zauberfisch> no idea
23: [03:01:02] <Zauberfisch> haven't had problems like that in ages
24: [03:04:31] * veb quit (Quit: veb-irc: &)
25: [03:08:29] * mobiusnz quit (Quit: Leaving.)
26: [03:13:27] <starlifterdigi> I’ll keep trucking. Thanks anyway :D
27: [03:31:44] * starlifterdigi quit (Ping timeout: 265 seconds)
28: [04:47:19] * camfindlay quit (Quit: camfindlay)
29: [05:17:47] * Err404NotFound quit (Quit: User guilty of hitting the Big Red X...)
30: [05:24:55] * r_hector has joined #silverstripe
31: [05:51:27] * Azure quit (Quit: Blue Sky Fish)
32: [06:08:11] * Error404NotFound has joined #silverstripe
33: [06:23:43] * Azure has joined #silverstripe
34: [06:25:22] * jedateach has joined #silverstripe
35: [06:34:50] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
36: [06:43:23] * jedateach quit (Quit: jedateach)
37: [06:52:09] * Error404NotFound has joined #silverstripe
38: [07:07:22] * babak quit (Quit: Connection closed for inactivity)
39: [07:56:53] * Teddy_ has joined #silverstripe
40: [07:59:23] * Kapdap_ has joined #silverstripe
41: [08:00:18] * Kapdap quit (Ping timeout: 252 seconds)
42: [08:00:19] * Teddy__ quit (Ping timeout: 252 seconds)
43: [08:00:21] * Snowman23 quit (Ping timeout: 252 seconds)
44: [08:01:54] * Eliseth has joined #silverstripe
45: [08:02:06] * Snowman23 has joined #silverstripe
46: [08:02:16] <Eliseth> Morning
47: [08:04:51] * kerosene_ has joined #silverstripe
48: [08:06:07] * kerosene quit (Ping timeout: 245 seconds)
49: [08:06:25] * kerosene_ is now known as kerosene
50: [08:54:16] * Eliseth quit (Ping timeout: 255 seconds)
51: [08:55:30] * jedateach has joined #silverstripe
52: [09:16:19] * Shrike_Finland has joined #silverstripe
53: [09:19:01] * Shrike_Finland quit (Client Quit)
54: [09:25:43] * simon_w has joined #silverstripe
55: [09:26:32] * jedateach has left #silverstripe
56: [09:30:15] * CodeTrap has joined #silverstripe
57: [09:41:54] * eagles0513875 quit (Ping timeout: 245 seconds)
58: [09:42:54] * CodeTrap quit (Quit: CodeTrap)
59: [09:48:51] * Eliseth has joined #silverstripe
60: [09:50:10] * Shrike_Finland has joined #silverstripe
61: [09:54:48] * eagles0513875 has joined #silverstripe
62: [09:59:13] * Shrike_Finland quit (Quit: Leaving.)
63: [10:12:48] * Shrike_Finland has joined #silverstripe
64: [10:17:23] * r_hector quit (Remote host closed the connection)
65: [10:28:04] * r_hector has joined #silverstripe
66: [10:57:15] * Shrike_Finland quit (Quit: Leaving.)
67: [11:02:54] * Shrike_Finland has joined #silverstripe
68: [11:03:04] * ocmnt has joined #silverstripe
69: [11:03:09] <ocmnt> howdy
70: [11:09:43] * CodeTrap has joined #silverstripe
71: [11:11:50] <Eliseth> oi
72: [11:28:26] <ocmnt> merry xmas everybody (though it is a bit late) :D
73: [11:36:28] * Pybtwnk has joined #silverstripe
74: [11:38:12] <ocmnt> hi Pybtwnk!
75: [11:38:18] <Pybtwnk> Gidday ocmnt :>
76: [11:41:30] * CodeTrap quit (Quit: CodeTrap)
77: [11:58:50] <Pybtwnk> Not got a holiday break either ocmnt ?
78: [11:59:05] <ocmnt> not that much
79: [11:59:18] <ocmnt> but had hangovers, so had fun!
80: [11:59:28] <Pybtwnk> hehe
81: [12:00:20] <Pybtwnk> I had fun too. I had a hotel room though, not a hangover.
82: [12:00:26] <ocmnt> no minibar?
83: [12:00:32] <Pybtwnk> No minibar.
84: [12:01:06] <Pybtwnk> But, a supermarket right across the road with lots of choice in alcohol!
85: [12:01:56] <ocmnt> hurray!
86: [12:13:25] * simon_w quit (Quit: Ping timeout: your mum)
87: [12:54:39] * Shrike_Finland quit (Quit: Leaving.)
88: [13:03:09] * Shrike_Finland has joined #silverstripe
89: [13:11:59] * Shrike_Finland quit (Quit: Leaving.)
90: [13:17:31] * Shrike_Finland has joined #silverstripe
91: [13:17:59] * headtrip has joined #silverstripe
92: [13:29:46] * Shrike_Finland quit (Quit: Leaving.)
93: [13:31:01] * Shrike_Finland has joined #silverstripe
94: [13:36:46] * Shrike_Finland quit (Quit: Leaving.)
95: [13:38:01] * lerni_ has joined #silverstripe
96: [13:40:01] * Shrike_Finland has joined #silverstripe
97: [13:45:58] * Shrike_Finland quit (Quit: Leaving.)
98: [13:48:09] * Shrike_Finland has joined #silverstripe
99: [14:12:19] * Teddy__ has joined #silverstripe
100: [14:15:57] * Teddy_ quit (Ping timeout: 240 seconds)
101: [14:16:20] * Teddy_ has joined #silverstripe
102: [14:16:57] * Teddy__ quit (Ping timeout: 240 seconds)
103: [14:40:20] * Teddy_ quit (Quit: Leaving)
104: [14:42:22] * ss31noob has joined #silverstripe
105: [14:44:35] * Azure quit (Quit: Blue Sky Fish)
106: [14:45:58] * Shrike_Finland quit (Quit: Leaving.)
107: [14:46:17] * Shrike_Finland has joined #silverstripe
108: [14:52:31] * Azure has joined #silverstripe
109: [14:59:37] * Shrike_Finland quit (Quit: Leaving.)
110: [15:00:41] * lerni_ quit ()
111: [15:18:05] * Shrike_Finland has joined #silverstripe
112: [15:26:57] * babak has joined #silverstripe
113: [15:27:08] * kerosene is now known as keroberros
114: [15:33:10] * _hschillig has joined #silverstripe
115: [15:33:58] <_hschillig> Hi on my dev server, my database tables are all lowercase, but on my live server, they are camel case... So when I run queries like this: JobPosting::get(), it breaks on my dev, but not my live.. is there anyway to make it not case sensitive?
116: [15:34:47] <Pybtwnk> that isn't the cause.
117: [15:35:03] <Pybtwnk> JobPosting::get() generates a camelcase query
118: [15:35:33] <Pybtwnk> everything is exactly the same between the systems in terms of what SS does.
119: [15:35:57] <Pybtwnk> guessing here, but the issue is probably that your dev server is on windows.
120: [15:36:05] <Pybtwnk> mysql by default on windows is case insensitive.
121: [15:36:36] <Pybtwnk> the instructions sent to mysql are still in camel case, it just doesn't care & makes tables lower case, etc.
122: [15:36:58] <Pybtwnk> I'm going to guess further _hschillig that you've migrated the database between dev and live.
123: [15:37:11] <_hschillig> yeah it is on windows.. I just ran a dev/build and it has a record in the "JobPosting" table and I'm querying it just by doing JobPosting::get().. shouldn't it return that one record?
124: [15:37:16] <Pybtwnk> a dev/build _should_ rename tables from lower to camel.
125: [15:37:38] <Pybtwnk> _hschillig: are you actually getting an error, or are you just getting no results?
126: [15:37:59] <Pybtwnk> you said 'breaks' so I assumed it was giving an error.
127: [15:38:13] <_hschillig> [User Error] Couldn't run query: SELECT DISTINCT "JobPosting"."ClassName", "JobPosting"."Created", "JobPosting"."LastEdited", "JobPosting"."Title", "JobPosting"."PositionType", "JobPosting"."Location", "JobPosting"."EducationLevel", "JobPosting"."ExperienceLevel", "JobPosting"."Wage", "JobPosting"."CoverContentID", "JobPosting"."DetailContentID", "JobPosting"."EmploymentPageID", "JobPosting"."ID", CASE WHEN "JobPosting"."ClassName" IS NOT NULL THEN
128: [15:38:24] <Pybtwnk> yeah but what is the actual error.
129: [15:38:28] <Pybtwnk> ?
130: [15:38:30] <_hschillig> That's the only error I get...
131: [15:38:39] <_hschillig> Line 592 in E:\WD SmartWare.swstor\HALEY-HP\Source\SCDL\scdl\framework\model\MySQLDatabase.php
132: [15:38:43] <Pybtwnk> it's not the full error
133: [15:38:52] <Pybtwnk> copy the _end_ of that line.
134: [15:39:31] <_hschillig> The MySQLDatabase.php file line? That's literally the only error I get.
135: [15:39:33] <Pybtwnk> ie the part that probably says 'Unknown field' or 'You have an error in your sql syntax'...
136: [15:39:42] <Pybtwnk> no, the [user error] line
137: [15:39:48] <Pybtwnk> the one you just tried to paste.
138: [15:40:09] <_hschillig> http://s1.postimg.org/s64cx7767/mysql_error.png
139: [15:40:54] <Pybtwnk> inconnu dans field list
140: [15:41:30] <Pybtwnk> Champ 'JobPosting.EmploymentPageID' inconnu dans field list
141: [15:42:59] <Pybtwnk> _hschillig: seems to me like you just need to run dev/build
142: [15:43:43] <Pybtwnk> or perhaps you've forgotten to add a has_one to the JobPosting (assuming EmploymentPage has_many JobPosting)
143: [15:45:22] <ss31noob> hi guys.. anone knows which class restrict the access for the assets folder in silverstripe 3..?
144: [15:45:32] <Pybtwnk> ss31noob: there is none.
145: [15:45:51] <_hschillig> No I have that relation... and already just ran a dev/build =/
146: [15:45:58] <ss31noob> Pybtwnk, so you mean by default, visitor can access the assets folder?
147: [15:46:03] <Pybtwnk> ss31noob: yes.
148: [15:46:25] <Pybtwnk> of course, unless you don't want any images to load for your visitors until they register or something...
149: [15:46:27] * Pybtwnk shrugs
150: [15:46:51] <Pybtwnk> _hschillig: what happens when you run it again?
151: [15:47:10] <_hschillig> I removed the relation and ran the dev/build and now it's working.
152: [15:47:20] <ss31noob> well, it should be the assets that is not accessible (returns 404).. but images inside that should be accessible..
153: [15:49:14] <Pybtwnk> _hschillig: odd. You'll be getting _all_ the JobPostings without the has_one though.
154: [15:49:29] <Pybtwnk> ss31noob: well yeah, it's not indexible.
155: [15:49:42] <Pybtwnk> you can't browse it as an index.
156: [15:51:38] <ss31noob> yeah.. thats what i thought so too.. but when i access for example this site.com/assets .. this is what i got.. seems to be an infinite redirect loop site.com/assets/?url=/assets&url=/assets&url=/assets&url=/assets&url=/assets&url=/assets&url=/assets&url=/assets&url=/assets&url=/assets&url=/assets
157: [15:52:17] * Shrike_Finland quit (Quit: Leaving.)
158: [15:53:35] <Pybtwnk> ss31noob: that's a web server configuration issue, not a silverstripe issue.
159: [15:54:07] <Pybtwnk> well... probably.
160: [15:54:26] <Pybtwnk> are you using apache or ... ?
161: [15:54:32] <ss31noob> we are using nginx
162: [15:54:40] <Pybtwnk> yep, thought so.
163: [15:54:47] <Pybtwnk> you gotta configure it better.
164: [15:54:54] <ss31noob> so you think its a web server configuration?
165: [15:55:02] <Pybtwnk> yes, most likely.
166: [15:57:20] <Pybtwnk> ss31noob: what version of SS are you using?
167: [16:03:13] * ss31noob quit (Ping timeout: 246 seconds)
168: [16:06:41] * Shrike_Finland has joined #silverstripe
169: [16:13:37] * Shrike_Finland quit (Quit: Leaving.)
170: [16:13:46] * Shrike_Finland has joined #silverstripe
171: [16:17:23] * catcher has joined #silverstripe
172: [16:20:31] <_hschillig> I wanted all the job postings :P So it worked out
173: [16:25:33] * jenniferaslan has joined #silverstripe
174: [16:34:42] <Pybtwnk> _hschillig: oh, in that case don't use $page->relation() just use JobListing::get() or whatever it is.
175: [16:34:56] <Pybtwnk> make a getter for it on the controller :>
176: [16:36:11] * Kapdap_ quit (Ping timeout: 244 seconds)
177: [16:36:20] * Kapdap has joined #silverstripe
178: [16:36:41] <Pybtwnk> so yeah, removing the relation probably the right thing in the end anyway :>
179: [16:54:34] * Shrike_Finland quit (Quit: Leaving.)
180: [17:04:01] * Shrike_Finland has joined #silverstripe
181: [17:05:11] <Pybtwnk> ciao!
182: [17:05:12] * Pybtwnk quit ()
183: [17:10:25] * Shrike_Finland1 has joined #silverstripe
184: [17:10:38] * Shrike_Finland quit (Read error: Connection reset by peer)
185: [17:23:09] * origincube has joined #silverstripe
186: [17:25:56] * origincube has left #silverstripe
187: [17:27:34] * origincube_ has joined #silverstripe
188: [17:32:06] <origincube_> hey guys, do you guys know if you can update a piece decorator code after its been built? i ask as i had a blogentrydecorator which just added an image the blog entry, but now i need to add in a checkbox, the blog entry edit form shows me the checkbox, but when i try view the blogpost now it throws an exception saying that it can't find data classes for Boolean, please make sure you run dev/build after creating a new DataObject
189: [17:32:24] <origincube_> I've run dev/build at least a dozen times and its doesn't help
190: [17:33:23] * r_hector quit (Quit: Leaving.)
191: [17:33:34] <origincube_> so i'm a bit confused, since the admin side shows the checkbox perfectly, but the view won't render it?
192: [17:35:29] <catcher> origincube_, try a ?flush=all, and a manual cache clear if that doesn't work
193: [17:35:52] <origincube_> yeah always ?flush=all when i do a dev/build
194: [17:35:56] <origincube_> have tried it by itself as well
195: [17:36:12] <origincube_> hence my o.O
196: [17:36:22] <origincube_> :?
197: [17:36:29] <catcher> origincube_, comment out the decorator extension application, /dev/build, then add it back in
198: [17:36:52] <origincube_> just comment it out from the yaml config?
199: [17:37:16] <catcher> origincube_, yep
200: [17:37:36] <origincube_> hmm, let me give that a try
201: [17:38:03] <origincube_> ok commented it out and rebuilt
202: [17:38:08] <origincube_> now going to add back and then build again
203: [17:39:28] <origincube_> nope neither of those builds seemed to change the db
204: [17:39:36] <origincube_> its utterly baffling
205: [17:41:07] <origincube_> actually i wonder
206: [17:41:17] <origincube_> might be because i put the boolean into the had_one definition
207: [17:42:27] <origincube_> yip that worked
208: [17:42:33] <origincube_> clearly me being an idiot!
209: [17:43:04] <catcher> origincube_, if that's the worst that happens today, not bad.
210: [17:43:46] <origincube_> hehe yeah, thats true. i still haven't wrapped my head around how to do regular php type stuff in SS
211: [17:44:47] <origincube_> have a little info processing app i wrote for a client in php, and now they're moving to SS and i haven't a clue how to make that happen :o makes me feel like such a newb
212: [17:45:21] <catcher> origincube_, On the upside, that'll be a nice way to learn SS better.
213: [17:45:45] <origincube_> true, although don't suppoe you have some handy tutorial links?
214: [17:47:56] <catcher> origincube_, if you haven't been through these, they're great: http://doc.silverstripe.org/framework/en/tutorials/
215: [17:50:28] <origincube_> yeah i have been through some of them
216: [17:55:46] * Shrike_Finland1 quit (Quit: Leaving.)
217: [18:16:15] * Snowman24 has joined #silverstripe
218: [18:18:56] * mobiusnz has joined #silverstripe
219: [18:19:44] * toddmorey has joined #silverstripe
220: [18:27:14] * Snowman23 quit (*.net *.split)
221: [18:32:37] * Shrike_Finland has joined #silverstripe
222: [18:57:22] * Snowman24 is now known as Snowman23
223: [19:04:11] * Azure quit (Quit: My MBP went to sleep.)
224: [19:06:17] * headtrip quit (Quit: (null))
225: [19:18:31] * toddmorey quit (Ping timeout: 246 seconds)
226: [19:20:12] * Vanny has joined #silverstripe
227: [19:21:39] <Vanny> Hi All, I am trying to loop through custom fields rather than use a generic $FormField call. Any ideas where to start. I am guessing I need to initiate the object, and them loop through it
228: [19:25:54] <catcher> Vanny, sure, return a viewable list (DataList or ArrayList), and <% loop $list %> in the template
229: [19:26:03] <catcher> bbs
230: [19:47:10] <origincube_> do any of you know how to register a shortcode in the config yaml file?
231: [19:47:21] <origincube_> or do i have to do it in the _config.php file?
232: [19:52:29] * camfindlay has joined #silverstripe
233: [20:18:02] * ocmnt quit (Ping timeout: 244 seconds)
234: [20:20:29] * Shrike_Finland quit (Quit: Leaving.)
235: [20:27:06] * muskie9 has joined #silverstripe
236: [20:32:57] * mobiusnz quit (Quit: Leaving.)
237: [20:51:13] * Vanny quit (Quit: Page closed)
238: [21:10:07] * gelignite has joined #silverstripe
239: [21:19:11] <catcher> Anyone experienced with GridFieldExtensions / EditableColumns? I can set a boolean field with a checkbox, but unsetting does nothing. grid->Value()[__CLASS__] is not set when a box is unchecked, and thus it's skipped: https://github.com/silverstripe-australia/silverstripe-gridfieldextensions/blob/master/code/GridFieldEditableColumns.php#L61
240: [21:29:26] <catcher> Maybe a bug in GridField as I look more.
241: [21:36:46] <camfindlay> catcher, would pay to raise it in the modules issues section on github if you think there is a bug once you’ve played around a bit of course :)
242: [21:37:09] * origincube_ has left #silverstripe
243: [21:38:00] <catcher> camfindlay, thanks, I've already done both. Now I'll try to locate some patience. :)
244: [21:39:57] * _hschillig has left #silverstripe
245: [21:40:49] <catcher> camfindlay, though I noticed a similar issue with a regular gridfield. In case the bug is there, do you have thoughts as to where the value isn't being set when it should?
246: [21:41:08] <catcher> I suspect it's passed over because it appears to be null.
247: [21:41:29] <camfindlay> have you got a paste of your code in a gist or something I could look at?
248: [21:46:04] <catcher> camfindlay, sure thing, https://gist.github.com/clyonsEIS/5b62bb938fba80b42777
249: [21:47:16] <catcher> camfindlay, the Taggable extension is applied to each of the many_many item classes.
250: [21:50:02] <camfindlay> cheers, I’ve left you a note (I’m just in the middle of some mother work at the moment and I’ve made a note to take a look at it later on in the day).
251: [21:56:15] <catcher> camfindlay, much appreciated.
252: [22:04:05] <camfindlay> catcher did you remove your gist?
253: [22:04:43] <catcher> camfindlay, yes, and updated for privacy: http://sspaste.com/paste/show/54a1cf51253df
254: [22:04:48] <catcher> camfindlay, sorry for the switcharoo
255: [22:17:16] <camfindlay> catcher all good, post it up on forum with a bit more content about your use case and intended functionally so we have a place holder to discuss :)
256: [22:22:43] <catcher> camfindlay, will do. Which category would you suggest?
257: [22:23:48] <camfindlay> this is for CMS side right? perhaps the customising the CMS topic would be appropriate
258: [22:25:47] * Azure has joined #silverstripe
259: [22:27:23] <simon_w|air> catcher, that's how checkboxes work
260: [22:27:41] <simon_w|air> If they're empty, they're not set
261: [22:28:15] <simon_w|air> *sent
262: [22:32:13] <catcher> simon_w|air, it seems GF doesn't know to set missing checkboxes to 0, does that sound right?
263: [22:33:10] <simon_w|air> catcher, the Form class doesn't do that either (and this has nothing to do with GF, just the specific component)
264: [22:33:10] <catcher> better said, the values are not set to 0 when checkboxes go from checked to empty.
265: [22:34:37] <catcher> simon_w|air, is a custom onBeforeWrite my best/only option?
266: [22:34:57] <catcher> Will that work with many_many_extraFields?
267: [22:35:11] <simon_w|air> catcher, saveInto's a better idea
268: [22:36:41] <catcher> simon_w|air, the saveInto exists in this module, but it's never reached because of this: https://github.com/silverstripe-australia/silverstripe-gridfieldextensions/blob/master/code/GridFieldEditableColumns.php#L61
269: [22:37:02] <catcher> Do you have suggestions for an alternative test?
270: [22:44:32] * veb has joined #silverstripe
271: [22:44:33] * veb quit (Changing host)
272: [22:44:33] * veb has joined #silverstripe
273: [23:23:37] * veb quit (Quit: veb-irc: &)
274: [23:45:40] * catcher quit (Quit: Leaving)

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