#silverstripe IRC Log

IRC log for 26 July 2013

All timestamps are in UTC.

1: [00:07:29] * lietzmk quit (Remote host closed the connection)
2: [00:09:14] * mattybalaam has joined #silverstripe
3: [00:21:10] * pex quit (Ping timeout: 256 seconds)
4: [00:21:39] <zippy__> When doing Model::get()… is it really not possible to set a groupBy there?
5: [00:22:16] <simon_w> Well, you wrap the list in a GroupedList, or whatever it's called
6: [00:22:50] <ss23> simon_w: Can you think of any reason switching away from staticpublisher would cause issues later on when using the versionedfeed? (uses version::get_diff and stuff or something)
7: [00:23:07] <simon_w> Because it doesn't like you?
8: [00:23:11] <ss23> lol
9: [00:23:37] <zippy__> simon_w: Yea I could wrap it, I think I will just have to resort to raw sql for this one
10: [00:23:43] <ss23> simon_w: Is there a chance that if it ever had a listing in one of the static publisher tables, then you try instantiate a nold version that exists in the static publisher tables, it tries to use the StaticPublisher class/stuff and breaks?
11: [00:24:03] <simon_w> StaticPublisher uses tables?
12: [00:25:07] <ss23> I think so
13: [00:25:08] <ss23> Uh
14: [00:25:10] <ss23> Queued publisher
15: [00:25:14] <ss23> DataList::create Can't find data classes (classes linked to tables) for QueuedJobDescriptor. Please ensure you run dev/build after creating a new DataObject.
16: [00:25:38] <ss23> simon_w: But deos that sound like I'm on the right track?
17: [00:25:42] <simon_w> You've probably get some onafterpublish code that's trying to build the publish queue
18: [00:25:47] <ss23> hmm
19: [00:25:55] <ss23> Object->__call(PublishJob,Array)
20: [00:25:58] <ss23> Why would it call that?
21: [00:26:04] <ss23> Object->__call(PublishJob,Array)
22: [00:26:04] <ss23> DataDifferencer.php:100
23: [00:26:04] <ss23> HomePage->PublishJob()
24: [00:26:04] <ss23> DataDifferencer.php:100
25: [00:26:04] <ss23> DataDifferencer->diffedData()
26: [00:29:42] <ss23> $relField = "{$relName}ID";
27: [00:29:47] <ss23> that's the line that triggers a publishJob
28: [00:29:50] <ss23> Why would that do that, simon_w?
29: [00:29:55] <ss23> It looks like a __tostring or something?
30: [00:30:20] <simon_w> No idea. Look at the module.
31: [00:30:41] <ss23> What module?
32: [00:30:43] <ss23> This is in core
33: [00:32:34] * EasyCo has joined #silverstripe
34: [00:33:11] <ss23> laaame, got it
35: [00:33:31] <mobiusnz> What's the easiest way to show all the photos in a has_many relation? (in a template)
36: [00:33:49] <mobiusnz> <% loop Photos %>???<% end_loop %>
37: [00:34:53] <guzzlefry> Where should I start in finding out why /dev/build and /admin wont' work?
38: [00:43:36] <metanat> logs?
39: [00:43:42] <guzzlefry> [Thu Jul 25 20:32:48 2013] [error] [client 127.0.0.1] File does not exist: /home/gus/md/test/dev
40: [00:43:50] <guzzlefry> Yeah...that's odd.
41: [00:47:20] <zippy__> mobiusnz: yes
42: [00:49:58] <mobiusnz> zippy__: yeah what should the ??? be? $Me?
43: [00:51:19] <simon_w> guzzlefry, no rewrite
44: [00:52:04] <guzzlefry> odd
45: [00:52:18] <guzzlefry> Should have pull that in with the git modules. :/
46: [00:53:35] <zippy__> mobiusnz: http://doc.silverstripe.org/framework/en/reference/#resizing-in-templates
47: [00:57:03] * UncleCheese has joined #silverstripe
48: [01:01:47] <guzzlefry> simon_w: Same .htaccess as the working instance. :/
49: [01:02:04] <simon_w> guzzlefry, no AllowOverride or mod_rewrite
50: [01:02:09] <guzzlefry> Also appears that it's redirecting some things.
51: [01:04:24] <ss23> simon_w: Dod ypi wamma get ;imcj
52: [01:04:27] <ss23> simon_w: Did you wanna get lunch?
53: [01:06:45] <EasyCo> Do you have to define the inverse relation when using many_many?
54: [01:07:07] <guzzlefry> derp, it wasn't enabled. :P
55: [01:07:14] <simon_w> EasyCo, nope
56: [01:07:17] <simon_w> ss23, yeah
57: [01:07:20] <EasyCo> tx
58: [01:07:53] <ss23> simon_w: Nowish? 3 mins or something?
59: [01:08:09] <simon_w> ss23, 4 minutes
60: [01:08:13] <ss23> kk, cya then
61: [01:08:13] <ss23> :D
62: [01:09:05] <ss23> Hmm, pretty sure advandcedworkflow requires "silverstripe/queuedjobs"
63: [01:09:08] <ss23> But not 100% :<
64: [01:09:27] <simon_w> ss23, though now we're getting pizza
65: [01:09:40] <ss23> simon_w: Is that a "no, get your own lunch"?
66: [01:09:42] <ss23> ;_;
67: [01:09:49] <simon_w> yup
68: [01:09:52] <simon_w> Free pizza!
69: [01:09:54] <ss23> Ice cold, simon_w
70: [01:09:55] <ss23> ICE COLD.
71: [01:09:57] <ss23> :P
72: [01:10:09] <simon_w> Just call me Iceman :p
73: [01:10:33] <guzzlefry> Who gets to be Maverick?
74: [01:10:40] <simon_w> Woo, someone got it!
75: [01:10:54] <ss23> Hmmm
76: [01:10:55] <ss23> lol
77: [01:11:01] <guzzlefry> I just watched that movie for the first time a few weeks ago.
78: [01:11:02] <ss23> What if a module *sometimes* reqwuires another module
79: [01:11:05] <ss23> should it be in composer.json then/
80: [01:11:15] <simon_w> As in, it's optional?
81: [01:11:24] <ss23> It's reqwuired if you turn on an optional option
82: [01:11:26] <ss23> So yes, optional
83: [01:11:26] <ss23> :P
84: [01:11:37] <simon_w> There's a suggestions option in composer
85: [01:11:42] <simon_w> blog uses it
86: [01:11:46] <ss23> ty :D
87: [01:12:51] <irogue> FRIDAY FRIDAY
88: [01:13:23] <ss23> Be careful, simon_w will start singing *other* rebeca black!
89: [01:13:41] <simon_w> Cause this is my moment!
90: [01:13:57] <ss23> LOOK WHAT YOU'VE DONE
91: [01:14:04] <ss23> it's britney bitch
92: [01:14:14] * ss23 grinds on UncleCheese
93: [01:14:21] <ss23> GIMMIE GIMMIE MORE GIMMIE MORE
94: [01:14:25] <ss23> GIMMIE GIMMIE MORE~
95: [01:14:54] <guzzlefry> 0.o
96: [01:15:10] <ss23> I was going to go Spice Girls, but I thought Britney Spears might go better
97: [01:15:16] <guzzlefry> disturbing songs and images now in my head
98: [01:15:21] <ss23> XD
99: [01:15:22] <guzzlefry> thanks... :P
100: [01:15:31] <ss23> What, Britney Spears, but with my body instead?
101: [01:15:32] <ss23> :D
102: [01:15:38] <guzzlefry> You know what helps that though?
103: [01:15:50] <helenclarko> Danger Danger, High Voltage!
104: [01:16:44] <ss23> WHEN WE TOUCH
105: [01:16:46] <ss23> WHEN WE KISS
106: [01:16:48] <ss23> WHEN WE TOUCH, NEVER
107: [01:19:17] <guzzlefry> no, this: http://www.hulu.com/watch/229352
108: [01:19:38] <ss23> Sorry, currently our video library can only be watched from within the United States
109: [01:19:41] <ss23> yay
110: [01:19:59] <helenclarko> HULU, NOOOOOooooooo!
111: [01:21:05] <guzzlefry> oh
112: [01:21:24] <guzzlefry> ss23, It's that Kimmel Show cover of Friday
113: [01:21:31] <guzzlefry> Impossible to find on Youtube for some reason.
114: [01:21:52] * UncleCheese quit (Quit: UncleCheese)
115: [01:22:34] * UncleCheese has joined #silverstripe
116: [01:22:57] <ss23> oic
117: [01:23:09] <simon_w> Also, http://www.youtube.com/watch?v=2OxWD85Ngz4 has my line up there :p
118: [01:23:14] <UncleCheese> ew\
119: [01:24:57] * mattybalaam quit (Quit: mattybalaam)
120: [01:25:31] <ss23> blurgh
121: [01:25:38] <guzzlefry> Can you throw variables into the WYSIWYG editor? Stuff like username and current date?
122: [01:25:59] <ss23> guzzlefry: You can if you use it in a template, but not if you use it as $Content
123: [01:26:04] <ss23> like
124: [01:26:11] <ss23> If it's a stnadard page as $Content in Page.ss, no
125: [01:26:44] <guzzlefry> $Content is in the Layout template, does that make a difference?
126: [01:27:42] <helenclarko> hey colin[pi], still no luck finding a template for AddToCartForm... I have however asked Frank Mullenger for advice on creating one. It's the SwipeStripe module which creates the form.
127: [01:29:23] <guzzlefry> oh nevermind
128: [01:29:46] <guzzlefry> ss23: I see forgetting to ask the "why" of something when resented with a feature. :P
129: [01:29:49] <guzzlefry> err
130: [01:29:52] <guzzlefry> s/see/keep
131: [01:30:12] <Colin[pi]> helenclarko: OIC :\
132: [01:30:46] * unsignedint has joined #silverstripe
133: [01:31:17] <BV> Hi micmania1, I installed silverstripe again along with your Nivoslider module, and have added a slider and slides within the admin area.
134: [01:31:29] <ss23> Blurgh. I see the perfect question I have - https://groups.google.com/forum/#!msg/composer-dev/oPatHwN3ltg/5ZM6tOwSdwYJ
135: [01:31:33] <ss23> That doesn't answer it at all
136: [01:31:46] <EasyCo> UncleCheese: Why the backslash? https://github.com/unclecheese/silverstripe-gridfield-betterbuttons/blob/master/code/Button.php#L10
137: [01:31:56] <BV> how do I add the slider to the homepage though?
138: [01:32:23] <UncleCheese> because FormAction is in the global namespace
139: [01:32:56] <UncleCheese> Damn it.. my wife just discovered Briscoe's
140: [01:34:03] <irogue> hahaha
141: [01:34:19] <EasyCo> UncleCheese: Gotchya, I've never used namespaces in PHP before.
142: [01:35:06] <Colin[pi]> the global namespace is increasingly polluted so they are becoming handy
143: [01:35:57] <EasyCo> Fair enough, I always `namespace` in JS but was unaware of it in PHP. Good to know,
144: [01:36:13] <EasyCo> Weird syntax though.
145: [01:38:04] <EasyCo> Without explicitly putting a \ in front of the class, wouldn't' it default to Global anyways?
146: [01:38:26] <irogue> protip: they never ever don't have a sale of some kind on
147: [01:38:26] <irogue> and never buy anything that's not on sale
148: [01:38:26] <irogue> their sales are all like 50% off, 75% off - and if something isn't on sale this week, odds are it will be next week
149: [01:38:26] <helenclarko> Hey BV, try adding "<% include NivoSliderContainer %>" without quotes to the homepage.ss
150: [01:38:27] <helenclarko> of course this may not work, as all the back end cms only applies to the nivoslider page.
151: [01:39:11] <unsignedint> EasyCo: no it would default to the current namespace
152: [01:39:21] <UncleCheese> no
153: [01:39:30] <unsignedint> which is UncleCheese\BetterButtons\Buttons in his case
154: [01:39:49] <EasyCo> What about in this case?: https://github.com/unclecheese/silverstripe-gridfield-betterbuttons/blob/master/code/GridFieldBetterButtonsItemRequest.php#L38
155: [01:39:51] <UncleCheese> yeah, it would look for UncleCheese\BetterButtons\Buttons\Formaction
156: [01:39:55] <EasyCo> The class isn't namespaced
157: [01:40:11] <EasyCo> yet \SS_HTTPRequest
158: [01:40:27] <unsignedint> good practice?
159: [01:40:37] <unsignedint> if he wants to namespace it in the future, the code wont break
160: [01:40:40] <EasyCo> Ok, that's what I thought.
161: [01:41:02] <EasyCo> Perfect. Add that to the "learnt something new today" list.
162: [01:41:13] <EasyCo> tx
163: [01:41:48] <UncleCheese> EasyCo: Yeah, i'm way behind on namespacing, too, but it's used so heavily in basically every framework or large application other than SS
164: [01:41:55] <UncleCheese> for good reason.. it makes a lot of sense
165: [01:42:00] <UncleCheese> but it does take some getting used to
166: [01:42:06] <unsignedint> indeed
167: [01:42:12] <UncleCheese> Like you say, we're used to it in JS.. but that's not real namespacing
168: [01:42:21] <simon_w> Doesn't stop them from being horrible
169: [01:42:23] <EasyCo> Yah, just scoping really
170: [01:42:33] <unsignedint> JS has namespaces? I thought it just had scopes
171: [01:42:38] <EasyCo> ^
172: [01:42:39] <UncleCheese> simon_w: you got no love for Symfony?
173: [01:42:49] <UncleCheese> it's "namespacing"
174: [01:42:50] <simon_w> For PHP namespaces
175: [01:42:59] <UncleCheese> ohhh
176: [01:43:02] <UncleCheese> indeed
177: [01:43:17] <UncleCheese> i've seen implementations in other languages that are more elegant
178: [01:43:54] * Bollig|DesignCty has joined #silverstripe
179: [01:43:56] <simon_w> Well, I also don't like how verbose Symfony's namespaces are
180: [01:44:42] <UncleCheese> yeah, there's a lot of extra levels there..VendorName\Component\ApplicationName before you see anything meaningful
181: [01:45:09] <BV> Tried that but it comes up with '[User Warning] None of these templates can be found in theme 'foundation': NivoSliderContainer.ss'
182: [01:45:57] <BV> There's a PHP example on this page - https://github.com/micmania1/silverstripe-nivoslider
183: [01:46:24] <UncleCheese> irogue: thanks for the tip on Briscoe's.. i have visions of paycheck disappearing acts
184: [01:46:39] <simon_w> UncleCheese, just wait for a sale
185: [01:47:04] <UncleCheese> it could be worse.. i don't dare set foot in that Nood place
186: [01:47:52] <UncleCheese> Forget fancy housewares.. I can't figure out how you guys afford to eat here.. $7 for an aubergine? $10 for a pint of craft beer?
187: [01:48:14] <UncleCheese> Do kiwis have any idea what things cost in a real economy?
188: [01:48:47] <unsignedint> BW: did you actually follow that example? It looks like you have to apply the DataObjectExtensions to your page you want it on (which sets up a $has_one NivoSlider) and then you just do $NivoSlider in your template
189: [01:48:49] <simon_w> You mean in one where the people serving you are paid shit all? :p
190: [01:48:55] <unsignedint> err, BV*
191: [01:49:03] * DigNZ quit (Quit: DigNZ)
192: [01:49:30] <EasyCo> UncleCheese: Haha, it takes some getting used to. I'm originally from Canada and couldn't' believe the cost of some items in OZ
193: [01:49:33] * azureKnight has joined #silverstripe
194: [01:49:58] * azureKnight quit (Client Quit)
195: [01:50:20] <unsignedint> yeah aussie supermarkets are more expensive than even NZ
196: [01:50:24] <UncleCheese> I keep trying to remind myself that tax is included, so it is deceptively high
197: [01:50:26] <EasyCo> $45 for a case of beer… I couldn''t believe it
198: [01:50:43] <UncleCheese> yeah, a 30 pack of beer in the US starts at $9.99
199: [01:50:50] <unsignedint> its $30 for a cheap crate of beer and $40 for a better one here
200: [01:50:50] <UncleCheese> but i wouldn't touch that swill
201: [01:51:00] <EasyCo> haha, a bit o' Pabst
202: [01:51:06] <UncleCheese> Keystone
203: [01:51:11] <EasyCo> Even better
204: [01:51:19] <UncleCheese> I can't find a decent beer around here for under $18 a 6-pack
205: [01:51:23] <UncleCheese> anyone have any leads?
206: [01:51:23] <unsignedint> UncleCheese: does the US not have GST?
207: [01:51:31] <UncleCheese> no
208: [01:51:40] <UncleCheese> States do… but never on food and clothing
209: [01:51:45] <unsignedint> no wonder their shits cheaper then
210: [01:51:48] <EasyCo> The key is not buying 6 packs. Got the 24s and it's marginally cheaper
211: [01:52:05] <UncleCheese> but if you go out and buy an iPad, your state will impose a tax of between 6-7%.. some states have none
212: [01:52:06] <simon_w> unsignedint, the US seems to think that tax is an affront to freedom :p
213: [01:52:18] <UncleCheese> yeah, simon_w is right
214: [01:52:29] <EasyCo> Not health care though
215: [01:52:37] <simon_w> Whereas, we have decent public health care, roading, schooling, etc
216: [01:52:39] <UncleCheese> don't even bring that up
217: [01:52:43] <EasyCo> Haha
218: [01:52:47] <EasyCo> Ok
219: [01:52:53] <UncleCheese> you'll send me on a rant so long the IRC channel will fail
220: [01:52:59] <unsignedint> its coz they privatised everything. NZ is starting to do that too
221: [01:53:00] <simon_w> Oh, I can kick you :)
222: [01:53:28] <UncleCheese> but it's gotten to the point that not only can a politician not mention raising taxes, he can't even run without saying he'll get rid of taxes
223: [01:53:30] <UncleCheese> it's so stupid
224: [01:53:42] <unsignedint> 'MURRICA!
225: [01:53:51] <EasyCo> Fuck yah!
226: [01:54:26] <UncleCheese> and all the states that vote for these "screw the gummint, i ain't payin' no socialist taxes" whackos are the states using the most Federal funding
227: [01:54:28] <unsignedint> I wonder where the US government gets all its funds to police the world then
228: [01:54:42] <UncleCheese> they print it
229: [01:54:44] * SightUnseen has joined #silverstripe
230: [01:54:45] <UncleCheese> it's that simple
231: [01:54:51] * SightUnseen has left #silverstripe
232: [01:54:55] <unsignedint> ... theyre retarded then
233: [01:54:56] <EasyCo> Debase that economy!
234: [01:55:05] <unsignedint> it wont be scarce if they print it, and if its not scarce it has no value
235: [01:55:11] <UncleCheese> well
236: [01:55:23] <UncleCheese> when an economy is falling apart, a typical response is deflation
237: [01:55:28] <UncleCheese> they're printing money, which causes inflation
238: [01:55:31] <UncleCheese> so the net result is no change
239: [01:55:38] <UncleCheese> we're just all 10% poorer and we don't know it
240: [01:56:01] <unsignedint> because the more dollars there are, the less an individual dollar is worth
241: [01:56:16] <UncleCheese> all i can say is i better get back to work so i have some remote hope of renewing my work visa in three years
242: [01:56:26] <unsignedint> haha fair enough
243: [01:56:32] * unsignedint feels like a beer
244: [01:56:36] <UncleCheese> mmmm
245: [01:56:40] <UncleCheese> friday fives
246: [01:56:44] <unsignedint> indeed
247: [01:56:49] <UncleCheese> friday fish and chips, too
248: [01:56:52] <UncleCheese> they went all out here
249: [01:57:00] <unsignedint> wow fancy
250: [01:57:14] <unsignedint> actually I get to knock off at 4 on friday and drink free beers on teh company
251: [01:57:31] <unsignedint> so its not that bad
252: [01:57:38] <unsignedint> actually I think its illegal because theres no food
253: [01:57:39] <unsignedint> oh well
254: [01:57:55] <guzzlefry> eep, politics
255: [01:59:08] <EasyCo> simon_w: How does gridfield determine where and HTMLFragment in the grand scheme of the Gridfield?
256: [01:59:11] <guzzlefry> simon_w: Back in the day, when I asked you about adding a simple form to the CMS and you told me to check out CMSSettingsController, were you hinting at extending from that or using it as a reference when extending from LeftAndMain?
257: [01:59:17] <EasyCo> s/and/an
258: [01:59:54] <EasyCo> I mean: where an HTMLFragment is placed in the grand scheme of the GridField
259: [02:01:15] * nickmolhoek quit (Quit: nickmolhoek)
260: [02:03:18] * xini quit (Quit: Page closed)
261: [02:04:44] <guzzlefry> okay, obviously as a reference. :P
262: [02:04:50] <guzzlefry> nevermind ^_^
263: [02:05:23] <EasyCo> Nevermind just say it in the interface.
264: [02:05:26] <EasyCo> *saw
265: [02:18:46] * DesignerX has joined #silverstripe
266: [02:25:47] <guzzlefry> going through this: http://docs.silverstripe.org/framework/en/3.1/howto/extend-cms-interface
267: [02:26:05] <guzzlefry> I'm stuck at the "Overload a CMS Template" part.
268: [02:28:19] <UncleCheese> our container is in Mauritus!
269: [02:28:38] <UncleCheese> in other news: Mauritus exists!
270: [02:28:49] <guzzlefry> https://gist.github.com/anonymous/c914c794ecd99b477e37 <--- That's in my module's templates/Includes directory.
271: [02:28:59] <guzzlefry> Did a flush=all, not sure why the link doesn't show.
272: [02:35:42] <guzzlefry> Do I still need that zzz_admin hack in 3.1?
273: [02:35:59] <guzzlefry> I seems like it's removed from the 3.1 doc, but I don't know if that's accurate/intentional.
274: [02:56:21] <zippy__> Hmm
275: [03:02:06] <guzzlefry> hm, shouldn't take me two days to add an arbitrary form to the CMS. :/
276: [03:03:35] <ss23> guzzlefry: Sure, once you know how to do it nicely, it'll take like 1 hour
277: [03:03:36] <ss23> or less
278: [03:03:36] <ss23> :D
279: [03:03:59] <guzzlefry> yeah
280: [03:04:30] <guzzlefry> Seems to be my experience with things so far.
281: [03:04:51] <guzzlefry> I'll probably facepalm once I actually figure it out. :P
282: [03:06:22] <guzzlefry> ss23, Any pointers? I managed to figure out that MyClass extends LeftAndMain { static $url_segment = "stuff"; static $menu_title = "hallo"; } makes a new menu item in the left of the CMS. Stuck there. :P
283: [03:06:35] <ChronicD> haha just finished reading the nz pricing rant - i have to throw my voice in on this one. Though internal products are expensive because of high labour costs our strong kiwi dollar should have made imports cheaper - and it has made some like fuel but most (briscoes products :) ) have astronomical markups put on them and then claim to give you huge savings at the retail end. Food is a great example of this - lookup at aldi and lidl
284: [03:06:35] <ChronicD> Europe they have reshaped the supermarket scene there.
285: [03:06:44] <ss23> guzzlefry: Unfortunatly not. My only CMS customization has been via modeladmin
286: [03:07:10] <guzzlefry> ah :/
287: [03:07:31] <guzzlefry> I'd probably be using that, but this database wasn't designed with the task I need to do in mind.
288: [03:10:28] <DesignerX> guzzlefry: hi, for customizing the CMS, maybe wanna have a look at the Settings page in the CMS (how it lowds the fields for one object) or the Dashboard module by UC ? just an idea
289: [03:10:42] <DesignerX> loads*
290: [03:11:20] <ss23> Ohhhhh, I thought of a possible exploit for connecting to a rouge SSH server, kind of
291: [03:11:32] <ss23> A place like github would have good stats on how many people foward their SSH keys by default, which could be interesting
292: [03:11:58] <ss23> Since most people are fowarding keys that are in authorized_keys too, you could just connect right back (if you knew their username, presume it would be the same as their github, could try a few/think of other ways) and pwn them
293: [03:13:30] <guzzlefry> !
294: [03:14:15] * Stomach has joined #silverstripe
295: [03:19:34] <ss23> God, I hate Firefox, blurgh
296: [03:19:38] * Stomach has left #silverstripe
297: [03:23:30] * LoveDuckie quit (Ping timeout: 264 seconds)
298: [03:33:33] <ss23> Weird
299: [03:33:41] <ss23> Page.php -> $db = array('Abstract'...);
300: [03:33:47] <ss23> SQL fails with "page.abstract doesn't exist"
301: [03:38:37] <ss23> wtf, it does
302: [03:38:38] <ss23> hmm
303: [03:39:06] <simon_w> dev/build?
304: [03:39:25] <ss23> simon_w: No no, it *exists* in MySQL...
305: [03:39:34] <ss23> I can only imagine somehow... something is going wrong with the ORM
306: [03:39:41] <ss23> Reading large queries like this is not my forte though
307: [03:39:51] <ss23> I'll gist the relevant parts
308: [03:42:33] <ss23> simon_w: https://gist.github.com/ss23/6085972 Ideas?
309: [03:44:47] <ss23> fWIW it gives the same error as SS when I 'fix' the quotes
310: [03:45:10] <ss23> hmm
311: [03:45:10] <ss23> I see
312: [03:45:15] <ss23> simon_w: It's joining EventPage, but not Page?
313: [03:53:09] * zippy__ quit (Ping timeout: 248 seconds)
314: [03:55:23] <guzzlefry> ss23: Those quotes are kind of overkill.
315: [03:58:59] <ss23> lol
316: [03:59:02] <ss23> Silverstripe does it :P
317: [03:59:09] <ss23> Anyway, Sam confirmed it's a bug in hte ORM/Silverstripe
318: [04:03:12] <guzzlefry> :X
319: [04:13:34] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
320: [04:19:08] * mobiusnz quit (Quit: Leaving.)
321: [04:22:54] <ss23> Can you even search issues on Github?
322: [04:25:05] <simon_w> Yes, use the search thing at the top
323: [04:25:13] <simon_w> It's context-sensitive or some BS!
324: [04:34:53] * mirrors has joined #silverstripe
325: [04:35:36] <UncleCheese> hmm.. i have a weird issue with the lazy loading
326: [04:35:55] <mirrors> hey have anyone had any experience getting the display logic module to work with the bulk editing tools module?
327: [04:35:58] <UncleCheese> i need to get ->column('ID') from a DataList that has not been executed yet
328: [04:36:11] <UncleCheese> is there anyway to execute it without going into a loop?
329: [04:43:46] <UncleCheese> mirrors: what is the bulk editing tools module?
330: [04:45:55] <mirrors> https://github.com/colymba/GridFieldBulkEditingTools/tree/0.5
331: [04:47:50] <mirrors> allows you to upload bulk dataobjects...each of my dataobjects have display logic defined in the getCMSFields (which works perfectly BTW) however with the bulk upload all the fields are shown at once...so the fields that a hidden by display logic remain hidden
332: [04:53:24] <UncleCheese> ah, right
333: [04:53:45] <UncleCheese> yeah, i think that module renders forms a bit differently
334: [04:54:19] <helenclarko> hey does anyone know if I can hyperlink aheaderfield in php?
335: [04:54:38] <mirrors> from what i can see its mostly the same except it prepand the id's with e.g. record_15_
336: [04:54:57] <UncleCheese> i don't like that you can't just specify your own FieldList
337: [04:55:11] <UncleCheese> you have to hand it a whitelist/blacklist and it generates it for you
338: [04:55:19] <UncleCheese> that's why i was turned off by that module
339: [04:58:30] <ss23> simon_w: If you were interested in the details https://github.com/silverstripe/silverstripe-framework/issues/2269
340: [04:58:37] <ss23> Feel free to ignore though, idc about getting it fixed any time soon
341: [05:03:00] <simon_w> Heh, James' bug in HHVM is worse :p
342: [05:03:01] * helenclarko quit (Quit: Page closed)
343: [05:05:33] <ss23> Get him to fix it :D
344: [05:05:42] <ss23> simon_w: Does hhvm compile with clang?
345: [05:05:54] <simon_w> Oh, he might have to hand it off to FB
346: [05:05:55] <simon_w> nope
347: [05:06:07] <simon_w> And, even if you get it compiling, the JIT won't work
348: [05:06:13] <ss23> simon_w: If only you guys were a research place too, then you could just pick up the work that was done building a PHP front end to LLVM
349: [05:06:16] <ss23> :P
350: [05:06:40] <simon_w> That's not what HHVM is though
351: [05:07:18] <simon_w> It's a byte code cache/optimiser with a JIT you can turn on
352: [05:07:37] <simon_w> And the overhead of actually compiling PHP isn't worth it
353: [05:11:09] <ss23> Yeah, but *therotically*, you can get compiled code that works just as fast as JIT!
354: [05:11:12] <ss23> :D
355: [05:11:31] <EasyCo> Is there a method for throwing error from onBeforeWrite()?
356: [05:11:51] <EasyCo> I'm checking if a title is unique and need to stop the save process and alert the user if it's not.
357: [05:13:02] * mirrors quit (Quit: Page closed)
358: [05:14:28] <ss23> EasyCo: Return false I would assume?
359: [05:14:31] <ss23> Or throw an exception
360: [05:14:39] <ss23> EasyCo: To be honest, I assumed thats what that function was for (in large part)
361: [05:14:48] <simon_w> EasyCo, throw a ValidationException
362: [05:14:59] <EasyCo> That's what I was looking for! Thanks
363: [05:16:07] <EasyCo> How do the flash messages work in the CMS? Does ValidationException also trigger a flash message?
364: [05:16:16] <simon_w> Yes
365: [05:20:30] <EasyCo> Haha: http://funnie.st/280728/fully-grown-adults-recreate-their-childhood-photos/
366: [05:32:55] * UncleCheese quit (Quit: UncleCheese)
367: [05:42:55] <guzzlefry> guys! I made a form thingy in the CMS panel. :X
368: [05:44:13] <guzzlefry> hrm
369: [05:45:03] <guzzlefry> Is there a reason why certain things aren't in the API docs? Form and EmailFieldTest being some.
370: [05:46:13] * simon_w quit (Quit: This computer has gone to sleep)
371: [05:52:08] * SightUnseen has joined #silverstripe
372: [05:52:21] * SightUnseen has left #silverstripe
373: [05:56:53] * willr_ has joined #silverstripe
374: [06:04:36] * howardgrigg has joined #silverstripe
375: [06:08:29] <ss23> guzzlefry: Everyghing ins on api.silverstripe
376: [06:09:02] <ss23> guzzlefry: http://api.silverstripe.org/3.0/class-Form.html
377: [06:09:21] <guzzlefry> ss23: Yeah, finally found it. But it doesn't show up in the quick search thing for me.
378: [06:09:22] <ss23> guzzlefry: Tests on the other hand, I'm not so sure about
379: [06:09:26] <ss23> guzzlefry: Try doing Name::
380: [06:09:31] <ss23> It's like, really bad.
381: [06:09:47] <ss23> guzzlefry: It took me ages to make it work too :<
382: [06:09:57] <guzzlefry> ah, thanks
383: [06:10:28] <guzzlefry> ss23, good news, I finally have that form in the CMS. Now I'm just hoping that it triggers the correct action. :P
384: [06:10:44] <ss23> :D Nice
385: [06:12:13] <guzzlefry> Actually, I need to figure out how to grab some Video Series from the database to populate a select element.
386: [06:17:28] * willr_ quit (Quit: willr_)
387: [06:20:31] <guzzlefry> ss23: Can you do any magic like...autocomplete in these CMS fields?
388: [06:20:50] <guzzlefry> That might be overkill though. >_>
389: [06:21:01] * simon_w has joined #silverstripe
390: [06:21:17] <ss23> Hmmmm
391: [06:21:26] <ss23> guzzlefry: There's probably some kind of AJAX thing, maybe a module
392: [06:21:31] <ss23> But I'm not aware of one off hand, sorry
393: [06:21:42] <ss23> guzzlefry: But if you want to provide a dropdown for selecting a video, you can do that
394: [06:21:47] * willr_ has joined #silverstripe
395: [06:21:47] * willr_ quit (Changing host)
396: [06:21:47] * willr_ has joined #silverstripe
397: [06:21:56] <ss23> To do *autocomplete* with a video, there's probably a module for it
398: [06:21:58] <guzzlefry> yeah, the dropdown was very easy.
399: [06:22:14] <ss23> guzzlefry: http://www.ssbits.com/tutorials/2011/create-an-ajax-auto-complete-member-search-with-silverstripe-and-jquery/
400: [06:22:24] <ss23> um
401: [06:22:31] <ss23> Will take a decent amount of tweaking, as it's for 2
402: [06:23:19] <guzzlefry> yeah, that'll be for later. bookmarking it ;)
403: [06:23:22] <guzzlefry> thanks
404: [06:32:30] * wmk has joined #silverstripe
405: [06:44:10] * Zauberfisch_ quit (Ping timeout: 245 seconds)
406: [06:45:23] * cloph_away has joined #silverstripe
407: [06:46:16] * Zauberfisch_ has joined #silverstripe
408: [06:49:14] <guzzlefry> I should really be writing an article/blog thingy about this.
409: [06:51:18] * pippy has joined #silverstripe
410: [06:53:30] * pippy_ quit (Ping timeout: 264 seconds)
411: [06:55:02] <guzzlefry> Okay, now I'm stuck again. When I click the button to submit the form, all I get is an AJAX call in the background.
412: [06:55:43] * zfmf1 has joined #silverstripe
413: [06:55:53] * cloph_away quit (Remote host closed the connection)
414: [06:56:15] * cloph_away has joined #silverstripe
415: [06:59:09] * metanat quit (Ping timeout: 256 seconds)
416: [06:59:57] * UncleCheese has joined #silverstripe
417: [07:03:10] * willr_ quit (Quit: willr_)
418: [07:04:46] * UncleCheese quit (Client Quit)
419: [07:08:59] * Zauberfisch has joined #silverstripe
420: [07:21:21] <howardgrigg> anyone run into the issue where setting a HTMLEditorConfig causes the field to be duplicated in the CMS?
421: [07:27:20] * nightart has joined #silverstripe
422: [07:27:27] * PigeonFriend has joined #silverstripe
423: [07:29:08] * henkpoley has joined #silverstripe
424: [07:29:55] * metanat has joined #silverstripe
425: [07:31:56] * paulkwikrelease has joined #silverstripe
426: [07:34:00] * osterlaus has joined #silverstripe
427: [07:36:29] <paulkwikrelease> hi everyone. i have a question. I'm planning to deploy my site in silverstripe 3.1 beta. Is it recommended? I chose it because it fixes the Gridfield - Model Admin permission problem. Thank you for your replies
428: [07:37:09] <howardgrigg> paulkwikrelease: yea I don't think 3.1 is too far a way from a stable release
429: [07:37:26] * willr_ has joined #silverstripe
430: [07:37:37] <howardgrigg> but just make sure you test your site currently then update to the stable when it's released
431: [07:38:43] <howardgrigg> willr_: have you had the issue of duplicate HTMLEditor fields when using a custom config?
432: [07:38:55] <willr_> can't say I have.
433: [07:39:20] <paulkwikrelease> thank you @howardgrigg for your reply
434: [07:39:34] <howardgrigg> if I add HtmlEditorConfig::set_active('app'); inside my getCMSFields function I get duplicates for all my HTMLEditorfields
435: [07:40:35] * BV quit (Quit: Page closed)
436: [07:41:35] <willr_> I assume 3.1? Is there two instances of the HTML in the DOM or is the javascript executing twice?
437: [07:42:27] <wmk> paulkwikrelease, do you use latest 3.1 master-dev on github or the latest beta release?
438: [07:42:46] <Zauberfisch> paulkwikrelease: i use 3.1 dev in production
439: [07:43:05] <simon_w> wmk, master is a separate branch
440: [07:43:09] <howardgrigg> willr_: I'll check - just having issues at the mo
441: [07:45:02] <howardgrigg> willr_: just one in the DOM
442: [07:45:49] * paulkwikrelease quit (Ping timeout: 250 seconds)
443: [07:47:14] <wmk> simon_w, ok. i tried to ask "latest github" or "latest release".
444: [07:47:32] * paulkwikrelease has joined #silverstripe
445: [07:47:50] <paulkwikrelease> hello , sorry i got disconnected. I"m using silverstripe 3.1 beta 3
446: [07:48:22] <willr_> howardgrigg well that's good, way it should be. Tracking down where it includes duplicate initalize() calls probably be harder though
447: [07:48:56] <willr_> want to pastie.org your code snippet and I can check here
448: [07:51:01] * kinglozzer has joined #silverstripe
449: [07:51:51] <howardgrigg> willr_: http://pastie.org/8177107
450: [07:51:51] <Zauberfisch> paulkwikrelease: if you ask me, thats perfectly fine
451: [07:52:44] <Zauberfisch> I use 3.1 edge in production all the time
452: [07:52:44] * howardgrigg quit (Read error: Connection reset by peer)
453: [07:53:04] * howardgrigg has joined #silverstripe
454: [07:54:55] * UncleCheese has joined #silverstripe
455: [07:57:41] * metanat quit (Quit: Colloquy for iPhone - http://colloquy.mobi)
456: [07:59:16] <paulkwikrelease> thank you Zauberfisch for your feedback. i'll test and deploy my project using the 3.1
457: [08:01:41] <willr_> Halkyon you're working late? is mandrew up in the offices?
458: [08:02:01] * howardgr_ has joined #silverstripe
459: [08:02:14] * howardgrigg quit (Read error: Connection reset by peer)
460: [08:02:34] * jmConan has joined #silverstripe
461: [08:02:46] <willr_> howardgr_ can replicate your issue at least
462: [08:03:02] <howardgr_> willr_: that's good I guess... lol
463: [08:10:03] <ss23> 20:01:41 <@willr_> Halkyon you're working late? is mandrew up in the offices?
464: [08:10:07] <ss23> yeah
465: [08:10:12] <ss23> he was there when I left at... maybe... 7ish?
466: [08:10:31] <willr_> ss23 as well then. You didn't stay around?
467: [08:10:59] <ss23> Naw, we ran out of vodka jelly and I was hungry
468: [08:14:18] * osterlaus quit (Quit: Leaving.)
469: [08:17:48] <willr_> howardgr_ not sure what it could be, plugin doesn't seem to be initialised more than once. Might be something with the config
470: [08:19:37] <howardgr_> willr_: yea - outa my depth... how do you normally do it?
471: [08:19:50] <willr_> exactly like you have it.
472: [08:20:44] <kinglozzer> Hnnnng. How can I tell a Gridfield to use a different class for GridFieldPaginator?
473: [08:20:57] <kinglozzer> ->getComponentByType() etc?
474: [08:21:33] * lobarvaz has joined #silverstripe
475: [08:23:08] * openbees has joined #silverstripe
476: [08:23:15] * EasyCo has left #silverstripe
477: [08:25:11] <willr_> howardgr_ ok, fix is to set the mode
478: [08:26:10] <willr_> http://pastie.org/8177164
479: [08:27:42] <howardgr_> oh awesome - thanks!
480: [08:31:03] <howardgr_> works :)
481: [08:33:28] <howardgr_> UncleCheese: how is it now after a couple of weeks?
482: [08:38:43] * UncleCheese quit (Quit: UncleCheese)
483: [08:43:54] * willr_ quit (Quit: willr_)
484: [08:48:29] * Werner_2_ has joined #silverstripe
485: [08:52:21] * wmk quit (Ping timeout: 264 seconds)
486: [08:57:26] <ss23> Barnaby Jack died ;_;
487: [09:00:10] * mattybalaam has joined #silverstripe
488: [09:02:51] * ocm has joined #silverstripe
489: [09:02:57] <ocm> howdy!
490: [09:03:34] <ss23> Hai ^.^
491: [09:10:18] * UncleCheese has joined #silverstripe
492: [09:11:06] <simon_w> Bah, cleaning
493: [09:11:51] <ss23> :D
494: [09:15:18] * Shrike_Finland has joined #silverstripe
495: [09:19:54] * ARNHOE has joined #silverstripe
496: [09:20:50] <micmania1> Is there a method for getting the original content of a DataObject/
497: [09:20:53] <micmania1> ?
498: [09:21:00] <ss23> original == ?
499: [09:21:09] <micmania1> $this->original?
500: [09:21:41] <ss23> I don't understand
501: [09:21:44] <ss23> What does "original" mean?
502: [09:22:18] <micmania1> In DataObject you can use (eg) $this->Title and it will return $this->record['Title']
503: [09:22:40] <micmania1> There is also a $this->original['Title'] which holds the original values before any data was changed
504: [09:22:53] <ss23> Oh, original as in before the *write* happened, is it?
505: [09:22:58] <ss23> Like, that's what original means in Silverstripe?
506: [09:23:43] <micmania1> original as in the way it was when it was originally fetched from the db
507: [09:25:32] <micmania1> I can use DataObject->getChangedFields() and then figure it out from there, but just thought there would be a straight forward way of doing it.
508: [09:26:29] <ss23> Not sure, sorry :<
509: [09:26:39] <ss23> Sounds simple though, so if you hang around, someone else might know :)
510: [09:29:06] * metanat has joined #silverstripe
511: [09:29:53] * metanat quit (Client Quit)
512: [09:36:15] * simon_w|air has joined #silverstripe
513: [09:38:12] <ChronicD> micmania: i am just playing around with the nivoslider module - very cool btw. I have the code in my config.yml as per the instructions, but even after a dev/build?flush=1 i do not see the drop down menu in the pages area. have i missed something
514: [09:38:20] <ChronicD> ?
515: [09:45:30] <ocm> how can I get the count of DataObject::get ?
516: [09:45:35] <ocm> will ->value() work?
517: [09:46:48] <openbees> ocm : ->Count()
518: [09:48:32] <ocm> thnx :)
519: [09:54:32] <ocm> how do I get the value of a dataobjectfield? I have a field text which I would like to get
520: [09:55:02] <ocm> DataObject::get("SlideString", "SlideID LIKE '$slideId'", "","",""); is my query so far ( ->Count() gives the right number of objects)
521: [09:56:19] <openbees> ocm you want to get field value of one dataobject or for all ?
522: [09:56:27] <ocm> for all
523: [09:56:41] <ocm> desirably with linebreaks after each value
524: [09:56:59] <ocm> I have a has_many slides object with a gridfield
525: [09:57:06] <ocm> and each slide has many strings
526: [09:57:10] <ocm> which is a gridfield aswell
527: [09:57:20] <ocm> so I need the function for the summaryfield of the parent gridfield
528: [09:58:15] <ocm> with this: DB::query("SELECT Text FROM SlideString WHERE SlideID LIKE '$slideId'")->value(); I only get the first item
529: [09:59:09] <openbees> wait a minute is it SS 3.0 and also can you show some code
530: [09:59:22] <ocm> it is ss3.0
531: [09:59:27] <ocm> and sure, hang on
532: [10:00:35] * paulkwikrelease quit (Ping timeout: 250 seconds)
533: [10:01:36] <ocm> http://sspaste.com/paste/show/51f248607dd6a
534: [10:02:05] <ocm> line 19
535: [10:05:49] <openbees> first you don't have to run that query u can get $stringObject as "$stringObject = $this->SlideStrings();" this will give same result
536: [10:06:13] <openbees> then run a foreach on $stringObject .
537: [10:06:50] <ocm> but how to get the text only?
538: [10:07:37] <openbees> just a minute I am posting code
539: [10:11:12] <openbees> ocm : check my comment
540: [10:11:18] <openbees> http://sspaste.com/paste/show/51f248607dd6a
541: [10:12:51] <ocm> openbees, thankyou very much. Works like a charm
542: [10:13:04] <ocm> I was thinking for a too complex way to get it all together
543: [10:13:14] <openbees> yaah ;)
544: [10:13:29] * ocm note to self.. keep things easy :P
545: [10:13:41] <simon_w> ocm, implode(', ', $this->SlideStrings()->column('Text')); :p
546: [10:13:55] <openbees> here come Boss :D
547: [10:13:58] <ocm> hahaha
548: [10:14:12] <simon_w> Also: "DataObject::get("SlideString", "SlideID LIKE '$slideId'", "","","");"
549: [10:14:13] <simon_w> Please don't do this
550: [10:14:27] <ocm> why not? it works? :P
551: [10:14:28] <simon_w> SlideString::get()->filter('SlideID', $slideId)
552: [10:15:03] <ocm> ah I see what you did there
553: [10:15:06] <ocm> thanks all :)
554: [10:15:21] <simon_w> Because you should be writing as little actual SQL as possible :p
555: [10:15:22] <openbees> :O simon_w why not ? $this->SlideStrings();
556: [10:15:42] <simon_w> Yes, in this case $this->SlideStrings() is a much better idea
557: [10:16:16] <simon_w> Which is why my one-liner uses it :p
558: [10:16:37] <ocm> haha, perfect oneliner for me
559: [10:16:39] <ocm> works like a charm
560: [10:16:49] * openbees should not answer on this channel while simon_w around :D
561: [10:16:55] <ocm> haha
562: [10:17:36] <simon_w> I only gave an answer because it was more efficient :p
563: [10:18:06] <openbees> thanks man .. I never knew it could be done in this way ;)
564: [10:18:24] <ocm> we all learned something new today :D
565: [10:18:32] <openbees> :D
566: [10:18:32] <simon_w> ->column() doesn't have to insatiate every object before getting the value. It just pulls the values straight from the DB
567: [10:19:01] <ocm> the column() is very nice indeed
568: [10:19:12] <ocm> wasnt aware of its availability
569: [10:19:18] <openbees> cool ... no more foreach from today onwords :)
570: [10:19:43] <micmania1> ChronicD, Have you added the slide relation to your page object?
571: [10:21:18] * jon-shape quit (Ping timeout: 246 seconds)
572: [10:22:19] * jon-shape has joined #silverstripe
573: [10:22:25] * guci0 has joined #silverstripe
574: [10:22:29] <guci0> Hi all!
575: [10:22:51] <ocm> heya
576: [10:23:32] <guci0> ;)
577: [10:33:13] <ChronicD> Micmania: Ah i think will be the problem. I misunderstood the instructions. I will puzzle that out now. thanks
578: [10:35:30] * Dee has joined #silverstripe
579: [10:37:25] <guci0> Brain storm: How to get 1536 (16 x 16 x 6) new Clients :) Anybody.
580: [10:38:12] <guci0> Fax, Internet, Direct.
581: [10:38:22] <guci0> In 3 Steps.
582: [10:41:13] <guci0> Time start.
583: [10:46:45] <guci0> Category: Wedding
584: [10:49:33] * jmConan quit (Ping timeout: 250 seconds)
585: [10:50:41] <ocm> why 16*16*6?
586: [10:50:46] <ocm> :P
587: [10:51:59] <guci0> Province x Category x Records (Clients firms)
588: [10:52:42] <guci0> Records are limit inside Category _max = 6;
589: [10:53:09] <guci0> for two years, max limit will be 10.
590: [10:53:30] <guci0> 2560 :)
591: [10:53:40] <guci0> It's my target.
592: [10:55:03] * henkpoley quit (Quit: henkpoley)
593: [10:57:21] * Dee quit (Ping timeout: 250 seconds)
594: [10:58:54] <guci0> I'am wondering how to automatic whole process. From potencial Client data, to finishing deal. How to start. DB is need. % from return. Hmm...
595: [10:59:51] <guci0> Document flow.
596: [10:59:54] <guci0> *s
597: [11:00:26] <guci0> I need 6000 potencial Client.
598: [11:00:35] <guci0> (DB).
599: [11:00:50] <guci0> Whole country.
600: [11:01:09] <guci0> 6000 / 16 = 375 :)
601: [11:01:11] <guci0> WIW!
602: [11:01:16] <guci0> WOW!
603: [11:01:26] <guci0> Easy :)
604: [11:01:41] <guci0> What next.
605: [11:02:34] <guci0> Write, Call, Send.
606: [11:07:40] <ocm> spam your ass off? xD
607: [11:07:56] <guci0> No spam!
608: [11:11:30] <guci0> Number of the day is: 375.
609: [11:11:36] <guci0> End.
610: [11:12:07] <guci0> Precisely 342.
611: [11:12:45] <guci0> No 21 by Category.
612: [11:12:59] <guci0> Wonderfull :)
613: [11:15:50] * zippy__ has joined #silverstripe
614: [11:15:54] <ocm> 375? on what planned are you?
615: [11:16:11] * henkpoley has joined #silverstripe
616: [11:21:47] * BV has joined #silverstripe
617: [11:22:54] * henkpoley quit (Ping timeout: 264 seconds)
618: [11:23:20] <guci0> I don't understand what u ask, 375 is from Potencial Clients 6000 / 16. And next is / 16 (category).
619: [11:23:59] <guci0> ~ 25.
620: [11:24:08] <guci0> ~ 25 calls.
621: [11:24:20] <guci0> By category, inside Province.
622: [11:24:58] <guci0> It's a realistic simulation.
623: [11:25:00] <ocm> I see my question was badly formulated, but what are you trying to achieve exactly?
624: [11:25:24] <guci0> How to get 1536 :)
625: [11:25:33] <guci0> new Clients :)
626: [11:25:53] <ocm> why you need so many clients?
627: [11:26:28] <guci0> to be rich :) And to have more possibilities.
628: [11:26:32] <ocm> haha
629: [11:26:49] <guci0> ;)
630: [11:27:29] <guci0> It's good way. I have whole analitics for this :)
631: [11:27:44] <guci0> 16 x 16 x 10 x X x 4.
632: [11:27:46] <ocm> where do you find your potential clients?
633: [11:28:25] <guci0> Buy DB. One or two Province.
634: [11:28:36] <guci0> For one step.
635: [11:30:36] <guci0> and tests planned process - to achieve best goals / results.
636: [11:32:30] * swordsmanz quit (Ping timeout: 264 seconds)
637: [11:36:11] * lewellyn is totally lost here.
638: [11:39:13] <BV> Hi everyone, I installed Silverstripe earlier using the web installer, but could not get it to work with MySQL. It worked with SQL server, but I decided to uninstall it as I wanted it running with MySQL I've now installed WAMPSERVER and installed Silverstripe cms v3.0.5, but during installation it throws up Friendly URLs are not working. Looking through the forum posts, I've changed the httpd.conf to AllowOverride All and the r
639: [11:39:43] <BV> restarted apache a number of times, and downloaded both the tar and zip versions off of the Silverstripe site. I've also tried changing from localhost to 127.0.0.1 as per the SS forums. I've been delving through the forums and looking at this for a good few hours now, but cant resolve the 'friendly URLs are not working' message upon install. Any pointers on this would be most appreciated.
640: [11:40:04] <spronk> do you have the .htaccess file present/
641: [11:40:13] <spronk> and is it readable and executable by your web server
642: [11:40:52] <BV> This file? C:\wamp\www\silverstripe\mysite\.htaccess
643: [11:40:58] <spronk> ja
644: [11:41:16] <spronk> presumably its there then
645: [11:41:22] <spronk> #2: is mod_rewrite installed?
646: [11:41:28] <spronk> (apache mod)
647: [11:42:39] <BV> http://localhost/silverstripe/mysite/.htaccess - comes up with 'Forbidden You don't have permission to access /silverstripe/mysite/.htaccess on this server.'
648: [11:43:29] <ss23> spronk: lol, the guy who made the blog post about flush=1 did his talk at ISIG
649: [11:43:41] <BV> In wampserver under Apache modules the rewrite_module is checked
650: [11:43:45] <ss23> spronk: He quoted me and you. sepcifically, < spronk> I want to give that guy a kick in the teeth
651: [11:43:48] <ss23> or something
652: [11:43:50] <ss23> or punch in the face
653: [11:43:50] <ss23> idk
654: [11:44:54] <spronk> haha, really? D:
655: [11:44:56] <spronk> err
656: [11:44:57] <spronk> :D*
657: [11:45:01] <spronk> were you there?
658: [11:45:18] <spronk> BV: you shouldn't be able to access .htaccess files
659: [11:45:26] <spronk> BV: check your wampserver apache config to ensure mod rewrite is actually enabled
660: [11:45:44] * UncleCheese quit (Quit: UncleCheese)
661: [11:47:03] <BV> In the httpd.conf file this line LoadModule rewrite_module modules/mod_rewrite.so doesn't have a # in front of it
662: [11:47:47] <spronk> hrmm
663: [11:50:52] * howardgr_ quit (Remote host closed the connection)
664: [11:51:21] * howardgrigg has joined #silverstripe
665: [11:52:28] <spronk> ss23: were you there?
666: [11:54:36] * UndefinedOffset has joined #silverstripe
667: [11:55:52] <guci0> ocm: look http://grupakarczew.pl/assets/Uploads/_resampled/SetHeight700-Zrzut-ekranu-2012-01-23-godz.-09.31.41.png
668: [11:56:03] * howardgrigg quit (Ping timeout: 260 seconds)
669: [11:56:18] <guci0> it's possible for me :)
670: [11:57:21] <ss23> spronk: Yeah, I've been going to isig since I've been in wlngth
671: [11:57:21] * mattybalaam quit (Quit: mattybalaam)
672: [11:57:33] <ss23> spronk: I was quoted too, with my "This doesn't concern them, this is a technical person circlejerk"
673: [11:57:37] <ss23> :P
674: [11:58:34] <spronk> guy was a tool?
675: [11:58:36] <ocm> guci0, nice mapping
676: [11:58:49] <ocm> all full of potency? haha
677: [12:01:53] * zippy__ quit (Quit: zippy__)
678: [12:02:54] <ss23> spronk: he was fine, though very hyper
679: [12:03:21] <spronk> lol
680: [12:03:25] <spronk> sad
681: [12:03:31] * spronk is disappointed he wasn't a psycho freak
682: [12:04:39] * henkpoley has joined #silverstripe
683: [12:04:52] <ss23> XD
684: [12:04:57] <ss23> Poor you :P
685: [12:05:01] <spronk> yeah
686: [12:05:06] <spronk> also
687: [12:05:08] <spronk> quoting me without permission
688: [12:05:11] <ss23> haha
689: [12:05:13] <spronk> shit's copyright man
690: [12:05:15] <ss23> IRC is a public medium
691: [12:05:16] <ss23> haha
692: [12:05:21] <spronk> ;D
693: [12:05:23] <ss23> "fuck" -- copyright spronk
694: [12:05:24] <ss23> :P
695: [12:05:28] <spronk> 'sactly
696: [12:05:29] <spronk> anyway
697: [12:05:32] <spronk> SLEIP
698: [12:05:38] <spronk> BAI
699: [12:05:43] <ss23> nn spronk
700: [12:08:16] * Colin[pi] quit ()
701: [12:09:22] <ARNHOE> On my own modules I am using the _t function, but it seems alittle dodgy. It doesn't always show up the locale language I am in, but sometimes it does. So currently it is showing both English and Dutch together
702: [12:09:47] <ARNHOE> am I certain that I translated them all well, because sometimes they do work and sometimes they dont.
703: [12:10:57] * henkpoley quit (Read error: Connection reset by peer)
704: [12:11:31] <ss23> ARNHOE: hmmm
705: [12:11:36] <ss23> Too hard of a problem for me!
706: [12:11:41] <ss23> ARNHOE: But thank you for all the opensource commits :D
707: [12:12:01] * violetina has joined #silverstripe
708: [12:12:03] * henkpoley has joined #silverstripe
709: [12:12:05] <ARNHOE> haha, I am certain you guys could do without me, but I am trying to contribute!
710: [12:13:59] * kaktuspalme has joined #silverstripe
711: [12:14:17] * kaktuspalme has left #silverstripe
712: [12:15:06] * noonebutanyone has joined #silverstripe
713: [12:15:18] <noonebutanyone> Hi there
714: [12:15:21] * henkpoley_ has joined #silverstripe
715: [12:15:27] * openbees quit (Quit: Leaving)
716: [12:15:49] <noonebutanyone> What do you recommend, use 3.1 oder 3.0, I had to use 3.1 already on another site because of features/improvements
717: [12:16:45] <ARNHOE> I would recommend using 3.1, but I like living on the edge. As far I know 3.0 is the most stable right now, but I guess by now you can use 3.1 right?
718: [12:17:14] <noonebutanyone> 3.1 is still beta but it looks very stable at least for me
719: [12:17:43] * jcwacky has joined #silverstripe
720: [12:18:11] <jcwacky> Is there a way to suppress a single User Warning in SS?
721: [12:18:20] * henkpoley quit (Ping timeout: 245 seconds)
722: [12:18:20] * henkpoley_ is now known as henkpoley
723: [12:24:11] * henkpoley_ has joined #silverstripe
724: [12:25:25] * henkpoley quit (Ping timeout: 245 seconds)
725: [12:25:25] * henkpoley_ is now known as henkpoley
726: [12:25:35] * mattybalaam has joined #silverstripe
727: [12:39:44] * BV quit (Quit: Page closed)
728: [12:43:40] <Zauberfisch> hey gents
729: [12:43:47] <Zauberfisch> I am banging my head at the moment
730: [12:43:55] <Zauberfisch> fresh ubuntu with apache2
731: [12:44:10] <Zauberfisch> php.ini value: display_errors = Off
732: [12:44:23] <Zauberfisch> so I do: ini_set('display_errors', 1);
733: [12:44:38] <Zauberfisch> now: ini_get('display_errors') === 1
734: [12:44:48] <Zauberfisch> but it still does not display errors
735: [12:44:51] <Zauberfisch> what am I missing
736: [12:44:56] <kinglozzer> AllowOverride?
737: [12:45:01] <Zauberfisch> is on All
738: [12:45:10] <Zauberfisch> open_base dir is none
739: [12:45:13] <Zauberfisch> safe_mode is off
740: [12:45:20] <kinglozzer> Hmm, phpinfo() and see if any extra .ini's are being loaded
741: [12:45:39] <Zauberfisch> already did, its loading the php.ini that I looked into
742: [12:45:44] <Zauberfisch> ah, extra
743: [12:46:02] <Zauberfisch> well, even if it does load extra ini, it should still be overwritten by ini_set()
744: [12:46:06] <Zauberfisch> or am I mistaken?
745: [12:46:11] <kinglozzer> I think so :/
746: [12:46:25] <Zauberfisch> phpinfo() also shows diplay errors on
747: [12:46:42] <Zauberfisch> but the only place where the errors show up are the apache logs
748: [12:46:59] <kinglozzer> What's your error_reporting value?
749: [12:47:09] <Zauberfisch> E_ALL
750: [12:47:11] <Zauberfisch> but hold on
751: [12:47:39] <Zauberfisch> I am now getting error messages
752: [12:47:44] <Zauberfisch> but I am not sure what it was that I did
753: [12:48:25] <kinglozzer> "It doesn't work and I don't know why." .... "It works and I don't know why." <<< the joys of web development :D
754: [12:49:43] <Zauberfisch> yeah
755: [12:50:09] <Zauberfisch> and that even though I consider myself a rather experienced developer
756: [12:50:22] <Zauberfisch> I mean I am doing this bloody stuff since years
757: [12:51:03] <Zauberfisch> well, I will destroy and rebuild this VM
758: [12:51:08] * BV has joined #silverstripe
759: [12:51:09] <Zauberfisch> we will see if I can reproduce this error
760: [12:51:50] <ocm> zauberfisch, did you restart apache? common mistake
761: [12:51:57] <ocm> I find myself missing out on that sometimes
762: [12:52:10] <jon-shape> You should be able to reload apache conf rather than restarting
763: [12:52:29] <Zauberfisch> ocm: since I did not change any php.ini files nor any apache2 config files, there is no need for a restart
764: [12:52:34] <Zauberfisch> I don't want to change the system config
765: [12:53:09] <Zauberfisch> but give me a min
766: [12:53:14] <Zauberfisch> I am currently rebuilding the VM
767: [12:54:10] * henkpoley quit (Ping timeout: 245 seconds)
768: [12:54:53] <BV> Following on from my earlier woes with the friendly URL's I decided to shut my machine down. I rebooted and tried installing it again, this time using Chrome instead of firefox, and it successfully installed withouth the friendly url error message. Although once installed it then came up with message: Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\silverstripe\framework\thirdparty\zend_translate_railsya
769: [12:55:07] <BV> ty\sfYaml\lib\sfYamlParser.php on line 551 Is that something to worry about?
770: [12:57:44] <kinglozzer> BV: No, just means it hit the limit set in PHP's config for the maximum time a script is allowed to run for. Try it again
771: [12:58:12] * henkpoley has joined #silverstripe
772: [12:59:21] <BV> Site seems fine now when I browse to it at localhost, at least it doesn't show the php extensions in the URLs now :-)
773: [13:02:30] * henkpoley quit (Ping timeout: 245 seconds)
774: [13:03:53] * henkpoley has joined #silverstripe
775: [13:05:43] <Zauberfisch> yay, it works on a new fresh install of ubuntu+apache
776: [13:05:48] <Zauberfisch> no idea what I did wrong before
777: [13:07:32] * LoveDuckie has joined #silverstripe
778: [13:19:59] <ARNHOE> ss23: incase you want to know, for some reason when using public function fieldLabels($includerelations = true) { instead of _t('Editie.FieldKampioenFoto', 'Champion photo') directly in the formfield... doesn't work so dodgy
779: [13:23:31] <ss23> weird
780: [13:24:45] <Zauberfisch> shouldn't SS_LogFileWriter($logFile) create the log file for me if it does not exist? :O
781: [13:25:40] <kinglozzer> Zauberfisch: I think so, permissions?
782: [13:25:49] <Zauberfisch> well, yeah
783: [13:25:54] <Zauberfisch> but the folder is 777
784: [13:26:25] * henkpoley quit (Remote host closed the connection)
785: [13:26:25] <kinglozzer> Zauberfisch: Hmm... http://api.silverstripe.org/3.1/source-class-SS_LogFileWriter.html#61
786: [13:26:34] <kinglozzer> Can you use mkdir() to create a file?
787: [13:26:37] <Zauberfisch> yeah, I have the class open
788: [13:26:38] * henkpoley has joined #silverstripe
789: [13:26:43] <Zauberfisch> but that line just creates the folder
790: [13:26:43] * henkpoley quit (Remote host closed the connection)
791: [13:26:45] <Zauberfisch> not the file
792: [13:26:51] <kinglozzer> Lol, helpful!
793: [13:26:56] <Zauberfisch> it is the error_log function that creates the file
794: [13:27:01] <kinglozzer> Ahhhh I see
795: [13:27:03] <Zauberfisch> but it doesn't do that for me for some reason
796: [13:27:56] <Zauberfisch> sudo chmod -R 777 www/
797: [13:28:03] <Zauberfisch> still nothing
798: [13:28:16] <Zauberfisch> but if the file already exists, it can write to it
799: [13:34:11] * BV quit (Quit: Page closed)
800: [13:38:37] <Zauberfisch> well, I give up
801: [13:38:47] <Zauberfisch> I'll just let the install script create the file
802: [13:40:33] <ocm> zauberfisch, has the file the right user too?
803: [13:40:44] <ocm> chown -R uid:gid logfile.txt?
804: [13:41:08] <Zauberfisch> would it need the user to create a file in a 777 folder?
805: [13:41:48] <ocm> in normal situations you dont, but I have had that issue before on ubuntu / apache2
806: [13:42:11] <ocm> the uid:gid was not www-data:www-data so it neglected the ability to write to my folder
807: [13:44:53] <Zauberfisch> still no
808: [13:45:00] <Zauberfisch> chown -R www-data:www-data www/
809: [13:45:23] <Zauberfisch> well, back to giving up I am
810: [13:49:41] <ocm> strange
811: [13:49:46] <ocm> no error in apache log?
812: [13:50:28] <Zauberfisch> already deleted the log
813: [13:50:34] <Zauberfisch> but I have the browser output here
814: [13:50:41] <Zauberfisch> [Warning] error_log(../error.log): failed to open stream: Permission denied
815: [13:50:51] <Zauberfisch> (I also tried using an absolute path)
816: [13:51:51] * howardgrigg has joined #silverstripe
817: [13:55:06] <ocm> is the setup from apache's allow deny right?
818: [13:55:29] <ocm> did you try setting it to allow all?
819: [13:56:30] * howardgrigg quit (Ping timeout: 264 seconds)
820: [14:05:16] * Shrike_Finland quit (Quit: Leaving.)
821: [14:08:41] * howardgrigg has joined #silverstripe
822: [14:27:27] <Zauberfisch> ocm: http://paste2.org/2dOEGb6c
823: [14:28:01] <Zauberfisch> kinglozzer, ocm: I have finally figured out whay display_errors is 0 even though I set it to 1 in my _config.php
824: [14:28:18] <Zauberfisch> core/startup/ErrorControlChain.php sets display_errors to 0
825: [14:28:31] <Zauberfisch> son of a
826: [14:28:47] <kinglozzer> Curse those late changes :P
827: [14:29:05] <kinglozzer> I meant to take a look at that when I saw the commit for it but never got round to it
828: [14:32:50] <Zauberfisch> well, now that I have logging working its all a bit easier
829: [14:32:57] <Zauberfisch> I guess I can live with that bug for now
830: [14:33:39] <Zauberfisch> of course it needs fixing though, a lot of people are going to bang their heads over this
831: [14:34:10] * howardgrigg quit (Remote host closed the connection)
832: [14:39:09] <ocm> haha, well found Zauberfisch :)
833: [14:56:21] * catcher has joined #silverstripe
834: [15:00:26] <noonebutanyone> /exit
835: [15:00:29] * noonebutanyone quit (Quit: Leaving)
836: [15:06:11] * Nivery has joined #silverstripe
837: [15:25:57] <Zauberfisch> simon_w simon_w|air could you mark this bug https://github.com/silverstripe/silverstripe-framework/issues/2272 critical or blocker please?
838: [15:28:37] * lietzmk has joined #silverstripe
839: [15:44:38] * howardgrigg has joined #silverstripe
840: [15:48:46] * howardgrigg quit (Ping timeout: 246 seconds)
841: [15:52:15] * howardgrigg has joined #silverstripe
842: [15:57:09] * howardgrigg quit (Ping timeout: 264 seconds)
843: [15:59:04] * kinglozzer quit ()
844: [16:00:39] <Zauberfisch> anyone interested in trying a silverstripe vagrant setup?
845: [16:02:12] <Zauberfisch> I am puting together a small setup script and now I am looking for a hand full of beta testers (:
846: [16:03:49] * CodeTrap has joined #silverstripe
847: [16:22:01] * swordsmanz has joined #silverstripe
848: [16:36:34] * micmania1 quit (Quit: Leaving)
849: [16:36:52] * CodeTrap quit (Ping timeout: 276 seconds)
850: [16:40:33] * mattybalaam quit (Quit: mattybalaam)
851: [16:49:48] * lobarvaz quit (Remote host closed the connection)
852: [16:50:23] * abitran quit (Ping timeout: 240 seconds)
853: [16:52:21] * Zauberfisch quit (Quit: Leaving...)
854: [16:57:46] * PigeonFriend quit ()
855: [17:06:43] * _nightart has joined #silverstripe
856: [17:09:38] * nightart quit (Ping timeout: 246 seconds)
857: [17:19:33] * abitran has joined #silverstripe
858: [17:52:42] * howardgrigg has joined #silverstripe
859: [17:54:38] * zfmf1 has left #silverstripe
860: [17:56:52] * howardgrigg quit (Ping timeout: 246 seconds)
861: [17:57:57] * violetina quit (Remote host closed the connection)
862: [18:30:05] * ARNHOE quit (Remote host closed the connection)
863: [18:59:03] * Nivery quit (Quit: Nivery)
864: [18:59:45] * test3 has joined #silverstripe
865: [18:59:53] * test3 quit (Client Quit)
866: [19:08:02] * Nivery has joined #silverstripe
867: [19:09:02] * simon_w quit (Quit: Leaving)
868: [19:15:18] <AlphaCactus> It's still Friday ppl, get in here and chat
869: [19:16:00] <lewellyn> it's friday for way too long still.
870: [19:36:09] * catcher_dev has joined #silverstripe
871: [19:38:18] * UndefinedOffset quit (Read error: Connection reset by peer)
872: [19:46:59] * drazafsky has joined #silverstripe
873: [19:48:00] <catcher_dev> Any reason I shouldn't be able to use getJSON from some custom CMS js?
874: [19:53:09] * howardgrigg has joined #silverstripe
875: [19:57:23] * howardgrigg quit (Ping timeout: 240 seconds)
876: [20:03:16] * _nightart quit (Ping timeout: 260 seconds)
877: [20:21:22] * azureKnight has joined #silverstripe
878: [20:24:22] <AlphaCactus> nope
879: [20:24:44] <guzzlefry> Does anyone know how to make a form on the CMS actually redirect?
880: [20:24:53] <guzzlefry> Right now it just does an ajax call. :/
881: [20:25:00] <AlphaCactus> can't
882: [20:25:11] <guzzlefry> no way at all?
883: [20:25:37] <guzzlefry> Has to be a way to at least display a status message after submission. :/
884: [20:26:22] <AlphaCactus> I tried for a bit to figure something out cause I wanted to, but I couldn't find a way so I ended up returning a downloadable file. I had wanted to redirect to a printable page, but couldn't do it, so just return a PDF for download now, like CSV export does.
885: [20:26:58] <AlphaCactus> you can use the status message that they use for saving or for errors maybe?
886: [20:27:12] <guzzlefry> ah yeah, I was thinking that
887: [20:27:23] <guzzlefry> Have to figure out how though. :P
888: [20:30:53] * UncleCheese has joined #silverstripe
889: [20:30:55] <catcher_dev> Ooh, got it - getJSON was calling an internal Page subclass, which had a bunch of requirements that were being included after the request, breaking the CMS.
890: [20:35:42] * UncleCheese quit (Client Quit)
891: [20:40:36] <AlphaCactus> guzzlefry: take a look at the no-ajax css class, put it on your action button.
892: [20:43:50] <guzzlefry> ah thanks, I'll try it.
893: [20:57:09] * ss23 quit (Ping timeout: 248 seconds)
894: [20:57:49] * ss23 has joined #silverstripe
895: [21:05:22] * mattybalaam has joined #silverstripe
896: [21:06:09] * Nivery quit (Quit: Nivery)
897: [21:07:17] * Kolin quit (Read error: Operation timed out)
898: [21:07:24] * Kolin has joined #silverstripe
899: [21:08:26] * ajmitch_ quit (Read error: Operation timed out)
900: [21:08:40] * ajmitch has joined #silverstripe
901: [21:10:31] * SightUnseen has joined #silverstripe
902: [21:10:39] * SightUnseen has left #silverstripe
903: [21:28:44] * Werner_2_ quit (Read error: No route to host)
904: [21:30:04] <guzzlefry> gah
905: [21:30:36] <guzzlefry> still seems to do the ajax call.
906: [21:32:34] * priithansen quit (Quit: priithansen)
907: [21:52:46] <guzzlefry> okay...
908: [21:52:56] <guzzlefry> LeftAndMain::redirect(); kind of helps. :P
909: [21:53:33] * howardgrigg has joined #silverstripe
910: [21:54:43] * drazafsky quit (Ping timeout: 250 seconds)
911: [21:55:17] <guzzlefry> Do you guys accept simple updates such as added docstring stuff?
912: [21:57:53] * howardgrigg quit (Ping timeout: 240 seconds)
913: [22:05:43] * ARMWorksiMac1 has joined #silverstripe
914: [22:10:59] <ARMWorksiMac1> Quick reminder from someone? Rebuild a live remote hosted site (not /sitename/dev/build….). I get no joy from sitename/admin/build?flush=1 and variations.
915: [22:11:33] <guzzlefry> ARMWorksiMac1, /dev/build ?
916: [22:11:46] <guzzlefry> or flush=all
917: [22:12:00] <ARMWorksiMac1> after /admin ?
918: [22:12:07] <guzzlefry> nope
919: [22:12:15] <guzzlefry> http://example.com/dev/build
920: [22:12:29] <ARMWorksiMac1> There is no /dev directory
921: [22:12:44] <guzzlefry> Did you try running it that way?
922: [22:13:09] <guzzlefry> It does weird redirection stuff, so dev/ won't be on the top level.
923: [22:13:18] <ARMWorksiMac1> Trying...
924: [22:14:11] <ARMWorksiMac1> All page not found.
925: [22:14:35] <ARMWorksiMac1> Old version by the way. 2.2.3
926: [22:14:59] <guzzlefry> Oh, haven't a clue about that.
927: [22:15:06] <guzzlefry> I started learning on 3.1.
928: [22:15:25] <guzzlefry> And it doesn't look like they have docs for 2.2... :/
929: [22:15:31] <ARMWorksiMac1> Yes, I think it is different. I have it in a sandbox and have never finished updating.
930: [22:16:44] <ARMWorksiMac1> I need an old-timer.
931: [22:17:46] <ARMWorksiMac1> I ran into this a year ago and have forgotten. SOmeone finally understood I was updating remotely. It was easy to do, but there was a trick to it.
932: [22:21:42] <ARMWorksiMac1> Ah. Looks like the changes were loaded anyway. AT least I updqated the right file :-)
933: [22:22:24] <catcher_dev> Has anyone successfully created a DO via a RestfulServer post call?
934: [22:24:40] * willr_ has joined #silverstripe
935: [22:25:52] <catcher_dev> hey hey willr_
936: [22:25:59] <willr_> morn'
937: [22:27:15] <guzzlefry> Anyone here really really experienced with extending the CMS?
938: [22:27:42] <catcher_dev> You may be able to answer a question if you're so inclined. I'm trying to create a DO with a RestfulServer post from another SS site's RestfulService->request(). I seem to be stuck on how to pass the actual data.
939: [22:28:25] <catcher_dev> have you done that successfully willr_ ? I'm attempting to use XMLDataFormatter::create()->convertDataObject($Object);, but it doesn't seem to like that.
940: [22:28:52] <guzzlefry> I've extended LeftAndMain, I have a form that's kind of working, but it does some AJAX call, and then I'm left with a blank main pane. :/
941: [22:29:03] <guzzlefry> so at this point I just need it to show something in that pane. :P
942: [22:29:22] <guzzlefry> Also, none of the other CMS panels will load after that (Pages, Settings, etc.).
943: [22:30:01] <willr_> catcher_dev convertDataObject would sound like the place to be...
944: [22:31:23] <guzzlefry> https://gist.github.com/anonymous/a4d886ada80a5a46f28d There's the code. Any help is appreciated. Going on day 3 for this, and it's most likely going to be something obvious that I'll feel dumb about. :P
945: [22:31:39] <catcher_dev> The body ends up with <?xml version="1.0" encoding="UTF-8"?>, and the RestfulServer complains about &lt;. Do I need to do some conversion on it, and/or strip that <?xml declaration?
946: [22:34:43] <willr_> catcher_dev, nope you need the xml header. The & needs to be escaped to &amp; somewhere, guzzlefry how are you doing the ajax call? my suggestion would be to look at how the SettingsController works for an example
947: [22:36:36] <guzzlefry> willr_: I probably explained that poorly. The CMS is doing some AJAX call when I submit the form. Makes it hard for me to give some sort of error/success message back.
948: [22:37:13] <guzzlefry> I'm not even sure if that's possible at this point.
949: [22:38:12] <willr_> Anythings possible.. So that ajax call you want to stop that and do something else or it's going to the wrong place?
950: [22:41:05] * mattybalaam_ has joined #silverstripe
951: [22:42:59] * mattybalaam quit (Read error: No route to host)
952: [22:42:59] * mattybalaam_ quit (Remote host closed the connection)
953: [22:43:21] <guzzlefry> willr_: Basically, I just want it to do the form action and show the form again with a message up top.
954: [22:44:24] <willr_> pretty much what the settings page does so I'd reference that implementation as an example.
955: [22:46:05] <willr_> 3 files, CMSSettingsController, CMSSettingsController_Content and CMSSettingsController_EditForm or something like that. I can't remember any custom javascript needed for that
956: [22:46:18] <guzzlefry> ah yeah, I've been doing that. Lots of things to learn I guess. :P thanks.
957: [22:47:15] <willr_> If you manage a basic example knock up a little doc page about it. Would help the next guy
958: [22:47:35] <guzzlefry> Yeah, I was planning to write a blog entry or maybe some doc pages.
959: [22:48:02] * mattybalaam has joined #silverstripe
960: [22:48:38] * mattybalaam quit (Client Quit)
961: [22:48:47] <willr_> yeah odd that Extending The CMS Interface doesn't include anything about making a new interface ha
962: [22:48:49] <catcher_dev> willr_, do you know if the fields need to match one for one? Will extra or missing fields kill it? This is a tough thing to debug.
963: [22:49:38] <willr_> catcher_dev use the jsondataformatter rather than xml perhaps?
964: [22:50:54] <willr_> If you wanted to debug, just put a var_dump in convertDataObjectWithoutHeader and see what field is causing the issue in the loop it generates the xml
965: [22:51:03] <guzzlefry> willr_: I'd like to document the code better as well, noticed some @return doctags missing from things like Controller::Link(). Is the process basically fork the repo, commit my changes, and then send you a pull request?
966: [22:51:52] <willr_> Yep that is the process.http://doc.silverstripe.org/framework/en/trunk/misc/contributing/code has the long version
967: [22:54:23] <catcher_dev> willr_, when I remove all debug statements, it gets through and even creates the new DO on the server, but all the fields are null.
968: [22:54:47] <willr_> you'll need a die somewhere so you can see the results.
969: [22:55:41] <catcher_dev> willr_, yeah, and I'm seeing the data being populated all the way at the end of RestfulServer updateDataObject(), even after the write.
970: [22:55:51] <willr_> seems odd that you would need to convert & to &amp;
971: [22:57:21] <catcher_dev> I'm not actually doing any conversions now. Seems using anything except var_dump to show data is what's actually causing those errors.
972: [23:05:03] * lietzmk quit (Remote host closed the connection)
973: [23:12:43] <catcher_dev> willr_, looks like all the fields are getting put into an unnamed property on the object inside updateDataObject() with $obj->update($data);
974: [23:13:24] <catcher_dev> aha! The starting <? is missing. Wonder why.
975: [23:13:42] <guzzlefry> hm, so each panel in the CMS is it's own LeftAndMain subclass?
976: [23:14:15] <catcher_dev> convertStringToArray() is stripping it
977: [23:16:13] <ARMWorksiMac1> I'm looking for a template for a web store (a lot like Sparkfun.com) with breadcrumbs and all the goodies. I have a seperate shopping cart. Anysuggestions welcome.
978: [23:16:45] <ARMWorksiMac1> My site has grown into a mess. It turned out the Silverstripe template I started with was made by a high school kid and it di not grow well.
979: [23:17:10] <azureKnight> Is there a reason when I'm looping through an object, that when I try and do <% with %> the other object it's related to, I can't get that objects total items?
980: [23:18:20] <azureKnight> Whenever I loop, it does the $TotalItems fine, but will loop as many as there are, which is problematic.
981: [23:18:47] * guci0 quit (Ping timeout: 250 seconds)
982: [23:18:52] <AlphaCactus> guzzlefry: yes
983: [23:19:44] <AlphaCactus> azureKnight: confused
984: [23:19:55] <azureKnight> So am I... Haha.
985: [23:19:58] <azureKnight> Ok. Let me explain.
986: [23:20:18] <azureKnight> Ad has_one BusinessType but a BusinessType has_many Ads
987: [23:20:42] <azureKnight> So, I'm trying to loop by the BusinessType's, and then count how many ad's the businessType has
988: [23:21:37] <azureKnight> <% loop BusinessTypes %> $TotalItems returns 2, since there are two, but now I'm unable to count the object ads, unfortunately.
989: [23:24:13] <AlphaCactus> can you do $Ads.count
990: [23:25:33] <azureKnight> Nothing returns
991: [23:25:59] <catcher_dev> I lied, they're never making it to the postVars.
992: [23:26:02] <azureKnight> Hold up.
993: [23:26:14] <azureKnight> I might have just figured it out. Which is frustrating because I thought I tried that earlier.
994: [23:26:16] <azureKnight> Thanks AlphaCactus
995: [23:26:59] <AlphaCactus> yep
996: [23:27:53] <guzzlefry> PjaxResponseNegotiator::setCallback() <-- What's the function of this?
997: [23:30:34] * willr_ quit (Quit: willr_)
998: [23:34:15] <catcher_dev> rad, got it. Had to set the RestfulService headers explicitly.
999: [23:36:46] * gelignite has joined #silverstripe
1000: [23:37:46] * chrisrio has joined #silverstripe
1001: [23:38:44] <chrisrio> hey gents - this is a random one
1002: [23:38:58] <chrisrio> but is there any reason SS might have have a problem reading from php://input?
1003: [23:40:08] <chrisrio> I'm being curl'd a PUT request with some json - but I cant find the JSON.
1004: [23:40:39] <chrisrio> (it should just be sitting there on stdin waiting for me)
1005: [23:43:55] * LoveDuckie quit (Ping timeout: 276 seconds)
1006: [23:49:12] <guzzlefry> progress!
1007: [23:51:25] <guzzlefry> So I guess the form action needs to return a PjaxResponseNegotiator object?
1008: [23:53:59] * howardgrigg has joined #silverstripe
1009: [23:58:29] * howardgrigg quit (Ping timeout: 248 seconds)

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