#silverstripe IRC Log

IRC log for 28 April 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:13] * ss-helper has joined #silverstripe
3: [00:30:02] <ss-helper> Remove unwanted panels from SilverStripe Dashboard Module - http://stackoverflow.com/questions/35201543/remove-unwanted-panels-from-silverstripe-dashboard-module
4: [00:33:12] * PapaBearNZ quit (Quit: Page closed)
5: [00:38:46] * micmania1 quit (Quit: micmania1)
6: [00:43:55] * adrexia has joined #silverstripe
7: [00:50:47] * micmania1 has joined #silverstripe
8: [01:32:34] * DarjusIT quit (Read error: Connection reset by peer)
9: [01:32:35] * BrewNaked has joined #silverstripe
10: [01:37:00] * BrewNaked quit (Ping timeout: 246 seconds)
11: [01:41:50] * Stomach quit (Quit: zzz)
12: [01:48:26] * robbiea_ has joined #silverstripe
13: [01:51:15] <robbiea_> Hi all - I've got a problem using silverstripe-fluent - I'm trying to make a custom Field translatable using the module. The values are all saving into the correct fields in the DB rows, but just returning the default locale's value when I try and retrieve it for a different locale - any ideas?
14: [01:52:19] * Tanger has joined #silverstripe
15: [02:06:24] * Stomach has joined #silverstripe
16: [02:31:26] * saysora quit (Quit: My Mac has gone to sleep. ZZZzzz…)
17: [02:54:48] * Tanger quit (Remote host closed the connection)
18: [02:56:45] * Tanger has joined #silverstripe
19: [03:07:12] * Stomach quit (Quit: zzz)
20: [03:09:15] * Stomach has joined #silverstripe
21: [03:13:42] * robbiea_ quit (Ping timeout: 250 seconds)
22: [03:21:24] * BrewNaked has joined #silverstripe
23: [03:21:48] * spronk has joined #silverstripe
24: [03:25:59] * BrewNaked quit (Ping timeout: 250 seconds)
25: [03:44:49] <MichalKleiner> hmmm, is_callable for methods implemented in dataextension returns false..
26: [03:45:30] <MichalKleiner> anyone using any workaround?
27: [04:01:10] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
28: [04:23:36] <EasyCo> Anybody use the behat silvestripe addon?
29: [04:29:58] <EasyCo> Everytime I visit a page in a Behat scenario the page content returns: Fatal error: DB::connect: Not passed a valid database config in /var/www/myproject/framework/model/DB.php on line 168
30: [04:30:12] <EasyCo> Works fine if I visit it manually but not in the test.
31: [04:30:14] <EasyCo> I
32: [04:54:47] * Phlunk3 quit (Remote host closed the connection)
33: [05:10:17] * BrewNaked has joined #silverstripe
34: [05:15:32] * BrewNaked quit (Ping timeout: 276 seconds)
35: [05:36:56] <Stomach> ss23 quick poke ed and tell him I need him
36: [05:41:21] * robbiea has joined #silverstripe
37: [05:41:35] * eightythree has joined #silverstripe
38: [05:42:26] * wmk has joined #silverstripe
39: [06:03:06] * Agilix_ has joined #silverstripe
40: [06:03:20] <Agilix_> Mornin o/
41: [06:04:32] * micmania1 quit (Quit: micmania1)
42: [06:10:12] * marvanni has joined #silverstripe
43: [06:15:08] <ss-helper> SilverStripe wysiwyg images not working without base_tag - http://stackoverflow.com/questions/36906422/silverstripe-wysiwyg-images-not-working-without-base-tag
44: [06:34:53] <wmk> Agilix_, moaning
45: [06:36:59] <Stomach> hallo
46: [06:39:24] * robbiea quit (Remote host closed the connection)
47: [06:40:33] <Agilix_> hi wmk Stomach :)
48: [06:42:35] <Agilix_> How are you guys doing today?
49: [06:42:56] <wmk> thanks. as always hunting bugs
50: [06:42:57] <Stomach> tired of waiting for deployments
51: [06:43:34] <wmk> tired of waiting for my new dev machine... should arrive soon
52: [06:44:59] * Eliseth has joined #silverstripe
53: [06:45:32] * spronk quit (Quit: I may need a longer sleep timer...)
54: [06:47:15] * robbiea has joined #silverstripe
55: [06:52:15] * robbiea quit (Remote host closed the connection)
56: [06:52:39] <Agilix_> wmk: what machine did you order? :)
57: [06:52:49] <Agilix_> Stomach: haha I know that one :p
58: [06:53:47] <wmk> Agilix_, have to run, you won't believe who called me just this moment
59: [06:59:12] * BrewNaked has joined #silverstripe
60: [06:59:13] <swaiba> wmk has a new laptop...
61: [06:59:13] <Agilix_> haha the shop? :p
62: [07:00:08] <ss-helper> Needs Regarding Stripe Fee Calculation - http://stackoverflow.com/questions/36907341/needs-regarding-stripe-fee-calculation
63: [07:03:31] * BrewNaked quit (Ping timeout: 250 seconds)
64: [07:07:44] * arnhoe has joined #silverstripe
65: [07:17:59] * lerni has joined #silverstripe
66: [07:27:53] * UndefinedOffset has joined #silverstripe
67: [07:32:05] * MichalKl_ has joined #silverstripe
68: [07:34:00] * MichalKleiner quit (Ping timeout: 246 seconds)
69: [07:36:58] * MichalKl_ quit (Read error: Connection reset by peer)
70: [07:37:32] * MichalKleiner has joined #silverstripe
71: [07:39:00] * ss23 quit (Ping timeout: 276 seconds)
72: [07:39:22] * Boobeus quit (Ping timeout: 260 seconds)
73: [07:45:28] * ss23 has joined #silverstripe
74: [07:46:43] <ss23> someone tell robiea he's unbanned if he asks I guess
75: [07:46:59] <ss23> Stomach: I don't work at SS anymore!
76: [07:51:21] * Tanger quit (Ping timeout: 276 seconds)
77: [07:53:48] * Teddy_ has joined #silverstripe
78: [07:54:02] * Boobeus has joined #silverstripe
79: [07:54:31] * Stomach quit (Quit: zzz)
80: [07:57:56] * UndefinedOffset quit (Quit: Leaving.)
81: [07:59:53] * kinglozzer has joined #silverstripe
82: [08:00:45] * UndefinedOffset has joined #silverstripe
83: [08:05:20] * eightythree quit (Ping timeout: 250 seconds)
84: [08:16:34] * MichalKleiner quit (Ping timeout: 240 seconds)
85: [08:30:51] * UndefinedOffset quit (Quit: Leaving.)
86: [08:40:25] * agent44 has joined #silverstripe
87: [08:45:31] * MichalKleiner has joined #silverstripe
88: [08:48:06] * BrewNaked has joined #silverstripe
89: [08:52:34] <wmk> ss23, how that..?
90: [08:53:01] <ss23> How don't I work at SS anymore? I wanted a new job
91: [08:53:17] * BrewNaked quit (Ping timeout: 276 seconds)
92: [08:53:20] <wmk> can happen...
93: [09:07:03] <wmk> hey, any injector expert here?
94: [09:07:23] <kinglozzer> wmk: No :D
95: [09:07:25] <wmk> I subclassed Email for some purpose and now we injected another class for Email.
96: [09:07:38] <wmk> MySubclass::create() returns now the injected class, instead of mine
97: [09:07:46] <wmk> bug or feature?
98: [09:07:48] <kinglozzer> Ahhh wmk, that old chestnut
99: [09:07:57] <kinglozzer> Bug, been discussing it on Github recently
100: [09:08:13] <kinglozzer> You'll need to do MySubclass: class: MySubclass in your injector config
101: [09:08:19] <kinglozzer> pain :(
102: [09:08:31] <wmk> ok. kinda bad for Email. There are not enough hooks in...
103: [09:08:35] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/issues/4774
104: [09:09:36] <wmk> we installed markguinn/silverstripe-email-helpers, which does pretty nothing than overwriting parseVariables
105: [09:11:06] <wmk> imho we need some hooks in Email class, no injector in this case.
106: [09:13:37] <kinglozzer> wmk: Yeah some hooks would be nice, it’s a bit overkill to have to subclass and use Injector
107: [09:14:12] <wmk> hmm... maybe Firesphere wants to clean up email after he's done with security...?
108: [09:23:07] * eightythree has joined #silverstripe
109: [09:33:04] * Teddy_ quit (Ping timeout: 240 seconds)
110: [09:33:39] * thesaysora quit (Quit: Leaving)
111: [09:44:55] * martimiz has joined #silverstripe
112: [09:46:57] * martimiz quit (Client Quit)
113: [09:47:20] * martimiz has joined #silverstripe
114: [09:50:02] <martimiz> Hi guys
115: [09:50:28] <martimiz> ddoes anyone know how to alter/update the Config in tests?
116: [09:51:32] <martimiz> because the test will var_dump the new settings, and then testresults for the old settings are returned...
117: [09:53:23] <marvanni> Config::inst()->remove(‘’,’’);
118: [09:53:29] <marvanni> before the updated config
119: [09:54:26] <marvanni> https://github.com/axyr/silverstripe-ideannotator/blob/master/tests/AnnotatePermissionCheckerTest.php#L43
120: [09:54:37] <martimiz> yes I did that.. tried it in setUp and in the test itself...
121: [09:55:13] * Teddy_ has joined #silverstripe
122: [09:55:14] <marvanni> those examples pass, so it should work :)
123: [09:55:29] * agent44 quit (Quit: zzz)
124: [09:55:52] <martimiz> seems like during execution the updated settings are overwritten by the actual yml settings...
125: [09:56:37] <marvanni> code?
126: [09:56:50] <wmk> martimiz, i tested like http://sspaste.com/paste/show/5721de5079aec
127: [09:56:54] <wmk> seen this in silvershop tests
128: [09:57:21] <martimiz> extra info: the setting is an array...
129: [09:57:48] <wmk> martimiz, if you can collect all info before... ;)
130: [09:58:47] <wmk> But Foo::config()->bar = ['new value'] doesn't override the whole bar config?
131: [09:59:35] <martimiz> I do: Config::inst()->remove('SimpleFulltextSearchForm', 'classes_to_search');
132: [09:59:49] <martimiz> then Config::inst()->update('SimpleFulltextSearchForm', 'classes_to_search', self::$classes_to_search);
133: [10:00:17] <martimiz> then this returns the new settings: var_export(Config::inst()->get('SimpleFulltextSearchForm', 'classes_to_search'));
134: [10:00:46] <wmk> martimiz, some weeks ago i managed to use xdebug on unit tests in a vagrant vm. phpstorm is capable of this feature, it helped me a lot getting tests working...
135: [10:00:53] * agent44 has joined #silverstripe
136: [10:01:19] <martimiz> ok... using netbeans...
137: [10:02:00] <wmk> dunno, should be possilbe there. dunno if it has good docs for it
138: [10:02:19] <wmk> using var_dump might work, too, but it's not so sexy / efficient
139: [10:02:38] <martimiz> :)
140: [10:03:05] <wmk> Did you try SimpleFulltextSearchForm::config()->classes_to_search = ['Foo', 'Bar'] ??
141: [10:03:49] <martimiz> I do lots of var_dumps now :) But thanks anyway. wil test with string values first, then the array, as it should work...
142: [10:04:13] <wmk> i dunno if config system has magic setters...
143: [10:04:18] <wmk> but i guess...
144: [10:05:13] <martimiz> I need a more complex nested array for it to work :)
145: [10:06:02] <marvanni> as far as I understand update on arrays adds the new items to existing ones
146: [10:07:00] <martimiz> Yes... but even if you remove the whole array first?
147: [10:07:45] <martimiz> Guess I'll have to test this behaviour on a simpler object first
148: [10:08:20] <martimiz> Many thanks for your thoughts anyway! :)
149: [10:10:41] <martimiz> @wmk Oh and thanks for the code snippet - I'll start by that :)
150: [10:13:27] * MichalKleiner quit ()
151: [10:15:12] <ss-helper> Silverstripe 3.1.5 - Upload Error SyntaxError: Unexpected token < - http://stackoverflow.com/questions/25197661/silverstripe-3-1-5-upload-error-syntaxerror-unexpected-token
152: [10:35:39] * martimiz quit (Quit: Page closed)
153: [10:35:56] * martimiz has joined #silverstripe
154: [10:37:01] * BrewNaked has joined #silverstripe
155: [10:42:04] * BrewNaked quit (Ping timeout: 268 seconds)
156: [10:43:23] <swaiba> martimiz o/
157: [10:58:14] * eightythree quit (Ping timeout: 250 seconds)
158: [11:06:21] <marvanni> If a module has more meta data files then code files. should I rethink deploying it as a module ?
159: [11:06:22] <marvanni> https://github.com/axyr/silverstripe-flashmessage
160: [11:11:34] <wmk> marvanni, depends
161: [11:14:10] <marvanni> its a piece of functionality that I use often, and always copy pasted between projects. but the amount of files that can be added for all the services and of course the silverstirpe addon score…
162: [11:15:26] <wmk> yup. but often a module is just a file or extension or two
163: [11:17:37] * agent44 quit (Quit: zzz)
164: [11:25:01] * martimiz quit (Quit: Page closed)
165: [11:25:23] * martimiz has joined #silverstripe
166: [12:02:34] <martimiz> @wmk @marvanni: as to the config problem in tests: turns out it was the static 'enable' cal from _config.php - it cached some result based on the settings
167: [12:03:23] <martimiz> so updating the config from the test had no influence on the cache.
168: [12:05:42] <martimiz> No easy way to intercept that static call from _Config.php I guess. So updating config worked just fine after all - it just happened too late. Thanks for your help anyway guys!
169: [12:24:04] <marvanni> but the Config::inst()->update() in _conifg.php can be replaced with a yml config so is is loaded in cache?
170: [12:24:52] * cloph_away is now known as cloph
171: [12:25:51] * BrewNaked has joined #silverstripe
172: [12:26:15] * UndefinedOffset has joined #silverstripe
173: [12:30:22] * BrewNaked quit (Ping timeout: 252 seconds)
174: [12:31:47] * agent44 has joined #silverstripe
175: [12:35:18] * Agilix_ quit (Ping timeout: 250 seconds)
176: [12:40:15] <swaiba> marvanni of course better to set the yml right and not have to override int he _config with php
177: [12:51:33] <Teddy_> guys anyone know if you can rename the tabs you crated in ModelAdmin
178: [12:51:48] <martimiz> @marvanni: aah
179: [12:53:25] <martimiz> :) I updated the Config in the unit test, but the module itself has a static call from _config.php, based on the original SearchForm functionality
180: [12:54:09] <martimiz> I'll look for another better way :)
181: [12:55:48] <Teddy_> guys anyone know if you can do this ? public static $managed_models = array( 'UglyName' => 'PrettyName', 'SomeOtherOne' );
182: [12:59:27] <swaiba> Teddy_ you probably want to set the singular and plural names on the dataobjects themselves instead
183: [12:59:52] <swaiba> http://api.silverstripe.org/3.1/source-class-DataObject.html#690-703
184: [13:00:39] <Teddy_> swaiba, so if i define a plural name for it, can use that to call it in the model admin ?
185: [13:01:11] <swaiba> if you define a singular and a plural name in the data objects as static vars
186: [13:01:33] <swaiba> then in ALL gui situations that silverstripe scafolds search fields, tab names, add buttons, etc
187: [13:01:39] <swaiba> it will use the names set
188: [13:01:52] <swaiba> so you can have a "developer name" e.g. the class name
189: [13:02:01] <swaiba> and a "gui name" what the public sees
190: [13:02:50] <Teddy_> swaiba, great, i'll try to get that in :D
191: [13:03:05] <marvanni> 'MyObjectClass' => array('title' => "Custom title")
192: [13:04:15] <marvanni> https://github.com/silverstripe/silverstripe-framework/blob/3/admin/code/ModelAdmin.php#L30
193: [13:05:25] <Teddy_> marvanni, sweet that works too, however it seems to now put it first in the list
194: [13:05:31] <Teddy_> marvanni, any idea around that ?
195: [13:05:54] <marvanni> first in what list?
196: [13:06:31] <Teddy_> marvanni, i have multiple objs referenced in managed_models
197: [13:07:06] <Teddy_> marvanni, most are ok names, but the new one with a custom name using the function you showed me, becomes the first in the list
198: [13:07:11] <marvanni> ah ok. i guess swaiba s method is a better choice..
199: [13:09:26] <marvanni> otherwise you can overload getManagedModels() to apply custom sorting on the parent::getManagedModels()
200: [13:14:38] <Teddy_> marvanni, thx for the help ;) got it working just right
201: [13:16:20] <kinglozzer> Ughhh
202: [13:16:41] <kinglozzer> @unlink('/foo/bar') is somehow throwing an InvalidArgumentException on one of our sites...
203: [13:17:18] <kinglozzer> unlink() definitely doesn't throw exceptions, it raises notices... so it must be something in the error handling that I can't recreate locally ><
204: [13:17:32] <kinglozzer> And I also don't know why the '@' is being ignored...
205: [13:21:20] <swaiba> http://www.php.net/manual/de/book.scream.php kinglozzer ?
206: [13:21:36] <swaiba> or event eh en version...
207: [13:21:45] <swaiba> http://www.php.net/manual/en/book.scream.php
208: [13:22:44] <kinglozzer> swaiba: I've certainly not installed it... but maybe the host has, lemme check
209: [13:23:18] <swaiba> it's the only thing I can think of overiding the @
210: [13:25:00] <kinglozzer> Nope, not installed :/
211: [13:25:37] <kinglozzer> It's triggering the exception handler set with set_exception_handler()...
212: [13:25:42] <kinglozzer> ARGH
213: [13:26:12] <swaiba> oh
214: [13:31:59] <kinglozzer> The line of code is: return @unlink($filename) || ! file_exists($filename);
215: [13:32:10] <kinglozzer> HOW CAN THAT THROW AN EXCEPTION?! D:
216: [13:36:08] <swaiba> http://php.net/manual/en/function.file-exists.php
217: [13:36:09] * lerni has left #silverstripe
218: [13:36:17] <swaiba> Errors/Exceptions => Upon failure, an E_WARNING is emitted.
219: [13:36:23] <swaiba> ^^^^ kinglozzer
220: [13:36:33] <swaiba> maybe put an @ infront of that too
221: [13:38:17] <kinglozzer> swaiba: It's part of doctrine/cache so I don't want to alter it, for now I'll just wrap the call in an extra check if the file exists
222: [13:38:32] <kinglozzer> Thanks anyway, scream was a good suggestion, didn't know about that
223: [13:38:49] <swaiba> no worries, always glad to be of some help :)
224: [13:41:35] <kinglozzer> swaiba: I think it might be something with doctrine actually... because it doesn't happen if I try @unlink outside of that context
225: [13:43:10] * SH__ has joined #silverstripe
226: [13:47:32] <SH__> Hey guys, I just tried changing the string for NumericField.VALIDATION in framework/lang/en.yml, and it does not change this string in the frontend. could this be a bug?
227: [13:47:54] <SH__> I have of course tried changing it in my own project folder before trying in the core yml file
228: [13:54:44] <SH__> Nevermind guys, it seems the form messages got saved in the session and therefore not updated.. hehe
229: [13:58:34] <kinglozzer> swaiba: A-ha! Tracked it down...
230: [13:58:48] <kinglozzer> It's a problem with PHP
231: [13:59:03] <swaiba> go on...
232: [13:59:42] <kinglozzer> Create a class that implements IteratorAggregate, public function getIterator() { @unlink('/i/do/not/exist'); }, it'll throw an error
233: [13:59:58] <kinglozzer> Fatal error: Uncaught exception 'InvalidArgumentException' with message 'unlink(/...): No such file or directory'
234: [14:00:06] <kinglozzer> gj PHP
235: [14:01:10] <swaiba> gj?
236: [14:02:25] <kinglozzer> good job
237: [14:04:51] <swaiba> lol - I'm still new to all this "txt spk" stuff
238: [14:05:31] <kinglozzer> swaiba: https://3v4l.org/iTPtA
239: [14:06:30] <swaiba> yeah you would not have seen that coming!
240: [14:14:48] * BrewNaked has joined #silverstripe
241: [14:17:36] * terryapodaca has joined #silverstripe
242: [14:17:58] * muskie9 has joined #silverstripe
243: [14:18:15] <terryapodaca> Hey guys, first time installing SS 3.3.1 and I keep getting a couple errors
244: [14:18:59] <terryapodaca> but first, which version of mysql should we be installing? MySQLi or PDO?
245: [14:19:19] * BrewNaked quit (Ping timeout: 260 seconds)
246: [14:20:11] <swaiba> PDO for the win terryapodaca
247: [14:22:24] <terryapodaca> thanks swaiba
248: [14:22:56] <terryapodaca> the first error I get is "Can I ALTER tables" = "Silverstripe cannot alter tables. This won't prevent installation, however it may cause issues if you try to run a /dev/build once installed."
249: [14:23:10] <terryapodaca> but when I go check, the user has FULL permissions
250: [14:23:28] <terryapodaca> is this a bug or false error?
251: [14:23:43] <terryapodaca> errr...I guess it's a warning, not an error
252: [14:23:56] <swaiba> not seen that before
253: [14:24:12] <swaiba> I consistently have it hang when it says it's redirecting to the build site after installation
254: [14:24:21] <swaiba> but I only have to F5 it
255: [14:24:30] <swaiba> other than that never had an issue installing
256: [14:26:18] <terryapodaca> welp, after clicking Install, it installed fine, didn't hang so it redirected back to the Installation Successful page
257: [14:26:28] <terryapodaca> Now I have to worry about being able to dev/build
258: [14:26:45] <terryapodaca> oh, and this was the fastest install I have seen SS do EVAR!!!
259: [14:28:49] <swaiba> terryapodaca yeah and check the speed when using it, PDO has made a significant difference
260: [14:33:54] <kinglozzer> Yep, PDO plus a lot of optimisation of the config layer
261: [14:48:46] * SH__ quit (Ping timeout: 250 seconds)
262: [15:01:47] <terryapodaca> Hell yeah!
263: [15:02:07] <terryapodaca> I wished I had it in the budget to upgrade all my SS sites now
264: [15:02:26] <terryapodaca> This is so much faster!
265: [15:03:40] <wmk> terryapodaca, ? php7 or what?
266: [15:04:11] <terryapodaca> wmk: no, I thought SS wouldn't run on PHP7
267: [15:04:29] <muskie9> SS4 will run on php7, but SS3 won't
268: [15:04:33] <wmk> there is a patch for it and markguinn made a fork with this patch
269: [15:04:38] <terryapodaca> This is the first time I installed SS 3.3.1 with MySQL PDO
270: [15:04:47] <wmk> https://github.com/lekoala/silverstripe-327
271: [15:05:05] <terryapodaca> Ahh...ok
272: [15:05:17] <terryapodaca> I'll stick with using the stable version for clients right now
273: [15:05:31] <wmk> i also didn't try it yet :(
274: [15:06:10] <terryapodaca> but, like swaiba and kinglozzer said, using PDO and the optimizations to the config layer has sped up SS considerably
275: [15:06:26] <wmk> so 3.3. is faster than 3.1/3.2 ?
276: [15:06:33] <terryapodaca> I mean, the install felt like it only took maybe a couple seconds
277: [15:06:47] <terryapodaca> yep
278: [15:06:48] <kinglozzer> wmk: 3.2 is definitely faster than 3.1, not sure about 3.3 vs 3.2 as I can't really remember what changed
279: [15:07:07] <wmk> could be... i had this feeling today. dunno right now what version we used in the last project, but with some modules and stuff dev/build was dead slow
280: [15:07:21] <terryapodaca> wmk
281: [15:07:23] <terryapodaca> yeah
282: [15:07:31] <terryapodaca> I'm about to test that with 3.3
283: [15:07:35] <wmk> today in a fresh project (without many modules yet), dev build was quite fast.
284: [15:07:39] <wmk> on my old machine...
285: [15:07:57] * agent44 quit (Quit: zzz)
286: [15:08:13] <kinglozzer> master should be faster and more memory efficient still
287: [15:08:18] <terryapodaca> but so far with my custom objects and the couple Grid modules installed, this version flies considerably faster than older versions
288: [15:09:27] <kinglozzer> dev/build will be *way* faster, as there's no parsing of PHP files for private statics anymore - https://github.com/silverstripe/silverstripe-framework/pull/4148
289: [15:11:30] <wmk> neat
290: [15:16:54] <kinglozzer> There are some more optimisations in master that I can't remember :D mainly because we can finally remove deprecated, slow things from 3
291: [15:17:00] <terryapodaca> Anyone know of a super simple Cart module or jquery cart system that only uses PayPal?
292: [15:17:35] <terryapodaca> I've used this (http://demo.ss-shop.org/) before but that seems like overkill for what I need
293: [15:19:06] <swaiba> https://docs.google.com/document/d/1inhksXbY-oetccBuJatUBdZkriqzJLFGV51M4nwfOxE/edit
294: [15:19:17] <swaiba> existing options on the above terryapodaca
295: [15:19:34] <swaiba> anyone heard anything on this after SS con? (it's the ecommerce discussion)
296: [15:19:50] * eightythree has joined #silverstripe
297: [15:19:57] * wmk quit (Ping timeout: 244 seconds)
298: [15:22:07] <terryapodaca> swaiba: from what I understand is a few got together with Jeremy to really enhance his module to be the "official" ecommerce/shop module, which is the one I linked to.
299: [15:22:10] <terryapodaca> https://github.com/silvershop/silvershop-core
300: [15:22:23] <terryapodaca> so ss-shop is now called SilverShop
301: [15:22:47] <swaiba> good to know, thanks terryapodaca
302: [15:23:13] <terryapodaca> I think the best way to follow the progress is: https://gitter.im/silvershop/silvershop-core
303: [15:27:12] <swaiba> i see, thanks again
304: [15:28:00] * agent44 has joined #silverstripe
305: [15:29:24] * arnhoe quit ()
306: [15:31:13] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
307: [15:33:51] <eightythree> Hi, I've got this error: Uncaught SS_DatabaseException: Couldn't run query: SELECT DISTINCT "SiteTree_Live"."ClassName", "SiteTree_Live"."LastEdited", "SiteTree_Live"."Created", "SiteTree_Live"."URLSegment", "SiteTree_Live"."Title", "SiteTree_Live"."MenuTitle" (...) after I've added "SiteTree" into search index ... what's happening?
308: [15:35:00] <kinglozzer> eightythree: What does the rest of the error say?
309: [15:35:03] <kinglozzer> Have you run a /dev/build?
310: [15:35:21] <eightythree> This is a whole message: Uncaught SS_DatabaseException: Couldn't run query: SELECT DISTINCT "SiteTree_Live"."ClassName", "SiteTree_Live"."LastEdited", "SiteTree_Live"."Created", "SiteTree_Live"."URLSegment", "SiteTree_Live"."Title", "SiteTree_Live"."MenuTitle", "SiteTree_Live"."Content", "SiteTree_Live"."MetaDescription", "SiteTree_Live"."ExtraMeta", "SiteTree_Live"."ShowInMenus", "SiteTree_Live"."ShowInSearch", "SiteTree
311: [15:35:46] <eightythree> "HasBrokenFile", "SiteTree_Live"."HasBrokenLink", "SiteTree_Live"."ReportClass", "SiteTree_Live"."CanViewType", "SiteTree_Live"."CanEditType", "SiteTree_Live"."Version", "SiteTree_Live"."ParentID", "SiteTree_Live"."ID", CASE WHEN "SiteTree_Live"."ClassName" IS NOT NULL THEN "SiteTree_Live"."ClassName" ELSE 'SiteTree' END AS "RecordClassName" FROM "SiteTree_Live" WHERE (("SiteTree_Live"."Title" LIKE ?) OR ("SiteTree_Live"."M
312: [15:35:53] <eightythree> ("SiteTree_Live"."Content" LIKE ?) OR ("SiteTree_Live"."URLSegment" LIKE ?) OR ("PrimaryIntro__Title" LIKE ?) OR ("PrimaryIntro__Text" LIKE ?) OR ("SecondaryIntro__Title" LIKE ?) OR ("SecondaryIntro__Text" LIKE ?)) ORDER BY "SiteTree_Live"."Sort" ASC LIMIT 5 Unknown column 'PrimaryIntro__Title' in 'where clause'
313: [15:36:12] <eightythree> Yes I have /dev/build + flush
314: [15:37:23] <eightythree> This error shows after submit search input
315: [15:37:38] <eightythree> Till then everything works fine
316: [15:38:35] * BrewNaked has joined #silverstripe
317: [15:45:32] * martimiz quit (Ping timeout: 250 seconds)
318: [15:46:00] <eightythree> When I change SiteTree to HomePage for example, everything works it seems only SiteTree gets an error
319: [15:46:55] * BrewNaked quit (Remote host closed the connection)
320: [15:51:41] * scpi has joined #silverstripe
321: [15:51:54] <kinglozzer> eightythree: Can you add Page instead of SiteTree then?
322: [15:52:51] <eightythree> Page as "Page" ?
323: [15:52:52] <eightythree> Nope
324: [15:52:59] <eightythree> Same Error
325: [15:54:26] <kinglozzer> What search index are you referring to?
326: [15:54:31] <kinglozzer> Fulltextsearchable or something?
327: [15:55:44] <kinglozzer> I'm assuming that those fields (PrimaryIntro__Title / SecondaryIntro__Title) are defined in HomePage and not page, you're missing a join or something
328: [15:56:14] * BrewNaked has joined #silverstripe
329: [15:56:24] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
330: [15:58:21] <eightythree> Actually it's https://github.com/i-lateral/silverstripe-searchable
331: [15:58:28] * swaiba quit (Remote host closed the connection)
332: [15:58:38] <eightythree> i've adde something like Searchable::add("OurRange", array("Title","MenuTitle","Content","URLSegment","PrimaryIntro__Title", "PrimaryIntro__Text", "SecondaryIntro__Title", "SecondaryIntro__Text"), "Pages"); to my config
333: [15:59:45] <eightythree> PrimaryIntro and Secoindary indeed are defined in HomePage and other Pages
334: [16:00:14] <eightythree> Join?
335: [16:01:27] <kinglozzer> https://github.com/i-lateral/silverstripe-searchable/issues/1
336: [16:01:40] <kinglozzer> eightythree: ^^
337: [16:03:24] <eightythree> OMG
338: [16:03:24] <eightythree> :D
339: [16:03:33] * muskie9 has joined #silverstripe
340: [16:04:12] <eightythree> I quess the darkest place is under the candlestick :D
341: [16:04:44] <eightythree> Thanks kinglozzer, youre golden :)
342: [16:06:26] <eightythree> Btw, maybe you will know the answer. Is there possibility to "tell" SilverStripe to treat my custom fields like "PrimaryIntro_Text" as "Content" so i can use $Content variable in my template ?
343: [16:07:11] <eightythree> Something like "MyCustomField" => $this->$Content - I see it that way, do you know what I mean?
344: [16:10:53] <kinglozzer> eightythree: Hmm, I'm not sure what you mean
345: [16:11:09] <kinglozzer> Do you mean that you want $Content in templates to output the content of MyCustomField?
346: [16:12:02] <eightythree> Yes
347: [16:12:09] <kinglozzer> You should just be able to create a method to return it - public function getContent() { return $this->dbObject('MyCustomField'); }
348: [16:12:53] <kinglozzer> When you use $Content, SilverStripe will look for a function with that name, or get<name>, then fall back to database fields
349: [16:13:00] <eightythree> And then in template jsut $Content or $Content.MyCustomField?
350: [16:13:05] <kinglozzer> Just $Content
351: [16:13:08] <eightythree> OH
352: [16:13:17] <eightythree> Is that simple
353: [16:13:23] <eightythree> Nice :)
354: [16:13:35] <eightythree> Thank you kinglozzer :)
355: [16:13:54] * BrewNaked quit (Remote host closed the connection)
356: [16:29:03] * kinglozzer quit (Quit: home time!)
357: [16:56:31] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
358: [16:58:51] * agent44 quit (Quit: zzz)
359: [16:59:31] * agent44 has joined #silverstripe
360: [17:00:29] * agent44 quit (Client Quit)
361: [17:00:35] * terryapodaca quit (Quit: Leaving.)
362: [17:12:00] * scpi has left #silverstripe
363: [17:30:19] * BrewNaked has joined #silverstripe
364: [17:34:34] * Teddy_ quit (Ping timeout: 240 seconds)
365: [17:36:29] * slievr_ quit (Ping timeout: 260 seconds)
366: [17:37:37] * BrewNaked quit (Remote host closed the connection)
367: [17:39:18] * wmk has joined #silverstripe
368: [17:43:45] * BrewNaked has joined #silverstripe
369: [18:02:55] * martimiz has joined #silverstripe
370: [18:13:59] * gelignite has joined #silverstripe
371: [18:29:48] * BrewNaked quit (Remote host closed the connection)
372: [18:43:36] * mnaatz has joined #silverstripe
373: [18:43:36] <ss-helper> mnaatz: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
374: [18:44:10] <mnaatz> our home page suddenly isn't loading properly
375: [18:44:13] <mnaatz> help!
376: [18:45:47] * muskie9 has joined #silverstripe
377: [18:50:34] * mnaatz quit (Ping timeout: 250 seconds)
378: [18:54:01] * robbiea has joined #silverstripe
379: [18:58:30] * robbiea quit (Ping timeout: 244 seconds)
380: [19:01:39] * Werner_2_ has joined #silverstripe
381: [19:05:27] * wmk quit (Ping timeout: 250 seconds)
382: [19:07:05] * marvanni quit (Quit: marvanni)
383: [19:07:14] <eightythree> Hey guys, I can't figure this out http://kopy.io/XsZ5N - how can I send results into actual Page, for example SearchPage that inherit styles and layout from Page.php? I got my results in page (virtual?) but none of the styles nor layout is loaded, how come?
384: [19:08:14] <muskie9> eightythree move the array in your $this->customise() as the second param for your $this->renderWith()
385: [19:08:38] <muskie9> http://kopy.io/SxMN1
386: [19:09:25] <muskie9> sorry, meant to update the index method... but same concept
387: [19:10:12] <muskie9> at least that's been it in my exp
388: [19:16:29] * marvanni has joined #silverstripe
389: [19:23:37] <eightythree> Thanks again muskie9, I'll try to implement that
390: [19:24:06] <eightythree> But what is the reason that results don't inherit Page.php layout and styles?
391: [19:25:01] <eightythree> I want to understand that, because it's rocekt science to me atm
392: [19:31:19] <marvanni> return $this->renderWith(array(
393: [19:31:19] <marvanni> "SearchResults",
394: [19:31:20] <marvanni> "Page"
395: [19:31:21] <marvanni> ));
396: [19:31:23] <marvanni> I would doe :
397: [19:32:01] <marvanni> return array()
398: [19:32:25] <marvanni> move al the code in your controller actions to a seperate method SearchResults
399: [19:33:00] <marvanni> create a template Page_results and a controller action function results() {return [];}
400: [19:33:16] <marvanni> that should to it. You making it way harder than it is
401: [19:34:37] <marvanni> ah… I see you use a seperate controller. if you use the cms, I would put that in a SearchPage and SearchPage_Controller, but this might work…
402: [19:35:07] <marvanni> the fact that you dont extends page, is why you dont have the styles
403: [19:38:42] <eightythree> Actually I've tried pt that code in a SearchPage and SearchPage_Controller, but all I achieved was refreshing page at submit search and nothing more
404: [19:39:17] <marvanni> where is that code coming from
405: [19:39:35] <marvanni> And what do you need to search for?
406: [19:39:43] <eightythree> It's part of https://github.com/i-lateral/silverstripe-searchable
407: [19:40:07] * Stomach has joined #silverstripe
408: [19:40:14] <eightythree> I'm trying to get simple search - pages + dataobjects
409: [19:40:20] <eightythree> Nothing fancy
410: [19:40:26] <marvanni> ok
411: [19:41:22] <eightythree> It's just that one thing (results on SearchPage) separates me from finalizing my project
412: [19:42:43] <eightythree> I'm web designer/front-end developer so it's difficult to me to customize php code
413: [19:43:03] <eightythree> So SS community is my last chance
414: [19:43:07] <marvanni> have you tried searchable dataobjets?
415: [19:44:21] <eightythree> Yes, but couldn't get it to work
416: [19:45:10] <eightythree> This silverstripe-searchable is the first that works for me
417: [19:48:39] <marvanni> http://sspaste.com/paste/show/57226902d6154
418: [19:48:52] <marvanni> untested, but from what i see from the code this should work
419: [19:49:24] <marvanni> create a template SearchPage.ss in Layout and loop over $SearchResults
420: [19:50:04] <marvanni> this removes all the extra code for searching 1 dataobject type, which makes it simpler to start with
421: [19:50:36] <marvanni> I did not installed Searhable so I have to assume all that works
422: [19:51:47] <eightythree> Thank you marvanni
423: [19:52:06] <eightythree> And what about that controller code?
424: [19:52:53] <eightythree> Should I delete it or it will be overwritten?
425: [19:54:25] <marvanni> keep it for now, you can just create a new class
426: [19:54:36] <marvanni> in a new file
427: [19:59:50] <eightythree> Hmmm, I got this page: "Welcome to SilverStripe" instead search results
428: [20:01:57] <marvanni> ?Search=sometext in url ?
429: [20:02:07] <marvanni> are you on the SearchPage ?
430: [20:02:52] <eightythree> url : results?Search=info&action_results=Go
431: [20:03:20] <eightythree> I don't think it's SearchPage
432: [20:03:36] <eightythree> Just Getting Started Welcome Page
433: [20:03:49] <eightythree> Never seen it before
434: [20:03:51] <marvanni> did you create a SearchPage in the cms?
435: [20:03:55] <eightythree> Yes
436: [20:04:18] <marvanni> and that url is?
437: [20:06:41] <eightythree> http://postimg.org/image/49a62b8b5/
438: [20:08:12] <marvanni> That is not a Page from the cms sitetree but a controlle
439: [20:13:05] <eightythree> Although SearchPage is created in the CMS /new-search-page?stage=Stage
440: [20:13:26] <marvanni> ok
441: [20:13:28] * Admonish has joined #silverstripe
442: [20:14:02] <marvanni> new-search-page?Search=info&action_results=Go
443: [20:14:21] <Admonish> Hello everyone
444: [20:14:42] <marvanni> if you have create a template Searchpage.ss and a <% loop SearchResults %> it should show some results
445: [20:14:56] <marvanni> if info gives any reults ofcourse
446: [20:15:55] * Werner__ has joined #silverstripe
447: [20:16:35] * Werner__ quit (Client Quit)
448: [20:20:20] <Admonish> One quick question. Does addFieldsToTab() create subtabs even if the main tab is missing? For example, would addFieldsToTab('Root.Main.Sub',array(...)) create both the Main tab as well as the sub tab if the main tab wasnt already created?
449: [20:22:14] * Werner_2_ is now known as wmk
450: [20:22:19] <wmk> Admonish, i'd guess so
451: [20:23:31] <Admonish> wmk thanks for the reply
452: [20:25:53] <Admonish> wmk I just tried it out and I can confirm that it does create both
453: [20:26:16] <Admonish> wooties :D
454: [20:26:20] <Admonish> XD
455: [20:27:10] * UndefinedOffset quit (Quit: Leaving.)
456: [20:28:34] <Admonish> One thing that got me with the sub tabs is the fact that if you only have one subtab it wont even show the subtab bar.
457: [20:29:36] <eightythree> Indeed
458: [20:29:42] <Admonish> Which makes sense but can throw you off a bit.
459: [20:30:04] * BrewNaked has joined #silverstripe
460: [20:34:34] * martimiz quit (Ping timeout: 250 seconds)
461: [20:38:08] * robbiea has joined #silverstripe
462: [20:39:26] * robbiea quit (Client Quit)
463: [20:43:37] <Stomach> ss23 NOOOOOO I forgot
464: [20:43:38] <Stomach> :(
465: [20:49:18] * eightythree quit (Ping timeout: 250 seconds)
466: [20:50:21] * eightythree has joined #silverstripe
467: [21:07:33] * marvanni quit (Quit: marvanni)
468: [21:11:32] * UncleCheese has joined #silverstripe
469: [21:21:05] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
470: [21:22:31] * nghtjr has joined #silverstripe
471: [21:22:31] <ss-helper> nghtjr: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
472: [21:22:50] <nghtjr> it's Friday Friday Friday
473: [21:23:05] <nghtjr> which seat will I sit in?
474: [21:24:41] * Admonish has joined #silverstripe
475: [21:26:32] * micmania1 has joined #silverstripe
476: [21:28:44] <nghtjr> areet micmania1
477: [21:28:53] <micmania1> nghtjr: areeet
478: [21:29:55] <micmania1> nghtjr: how’s the job hunt going?
479: [21:33:03] * vanny has joined #silverstripe
480: [21:45:02] <nghtjr> micmania1, looks like it might be over soon like
481: [21:45:22] <micmania1> nghtjr: sweet, where abouts?
482: [21:50:42] * Stomach quit (Quit: zzz)
483: [21:54:55] * Stomach has joined #silverstripe
484: [22:06:13] * micmania1 quit (Quit: micmania1)
485: [22:07:29] <nghtjr> I thought there was a way to run a single module's unit tests... was I dreaming?
486: [22:08:08] <nghtjr> I know I can run any particular class test
487: [22:08:17] <BrewNaked> Hiya alls.
488: [22:10:55] <nghtjr> hi
489: [22:11:48] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
490: [22:13:03] <nghtjr> ah, module/tests, not tests/module
491: [22:14:54] <nghtjr> oh again. I was almost there, sake dev/tests/[module/]all
492: [22:15:12] <nghtjr> didn't have the all on the end :)
493: [22:16:15] * micmania1 has joined #silverstripe
494: [22:18:18] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
495: [22:23:06] * Stomach quit (Quit: zzz)
496: [22:25:15] * Stomach has joined #silverstripe
497: [22:27:38] * spronk has joined #silverstripe
498: [22:51:43] <nghtjr> who's been trolling in the testing docs?
499: [22:53:11] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
500: [22:57:34] * spronk quit (Quit: I may need a longer sleep timer...)
501: [22:59:11] <Stomach> betchya it was ss23
502: [22:59:17] <Stomach> he doesn't even work for SS anymore
503: [22:59:19] <Stomach> :(
504: [23:14:37] * BrewNaked quit (Ping timeout: 250 seconds)
505: [23:19:01] * BrewNaked has joined #silverstripe
506: [23:23:13] <micmania1> Stomach: ss23 is still leader of the docs. He’s not getting away that easy
507: [23:23:28] <Stomach> hahaha :D
508: [23:23:37] <Stomach> someone has to be in charge of docs and subsites
509: [23:25:38] * chillu_23 has joined #silverstripe
510: [23:26:00] <Stomach> woah a wild chillu_23 appears
511: [23:26:17] <chillu_23> *cautiously looks around* ;)
512: [23:26:32] <Stomach> hows it going ingo
513: [23:27:18] <chillu_23> Ah, its Stevie! Yeah, I’m good. Figured I’ll give IRC another shot. Because I don’t have enough distractions in the company Slack :D
514: [23:27:35] <nghtjr> guys I've just made the most impacting pull request the project has seen in a while.
515: [23:27:38] <Stomach> just close it :P
516: [23:27:43] <chillu_23> Has anybody here tried integrating IRC into Slack BTW?
517: [23:27:44] <Stomach> not the PR, slack
518: [23:27:55] <Stomach> chillu_23 yeah, its doable but weird
519: [23:28:02] <Stomach> like what gitter ended up like
520: [23:28:20] * eightythree quit (Ping timeout: 250 seconds)
521: [23:28:21] <Stomach> that slight delay can really ruin your context
522: [23:28:21] <chillu_23> So IRC is still the best solution for real time community comms then?
523: [23:28:35] <nghtjr> yup.
524: [23:28:38] <Stomach> I think a free slack is now
525: [23:28:52] <xyphoid_> we ran a slack<->irc gateway without much pain
526: [23:28:55] <nghtjr> there is an open source slack or there
527: [23:29:04] <chillu_23> Ah right, they removed the max user restriction on free channels at some point, right?
528: [23:29:07] <Stomach> yeah
529: [23:29:09] <nghtjr> slack alternative*
530: [23:29:21] <Stomach> we use it for javascript nz and it works really well
531: [23:29:22] <Stomach> http://slack.javascript.org.nz/
532: [23:31:30] <nghtjr> irc with pictures.
533: [23:31:33] <chillu_23> So with free Slack, we’d lose archiving (10k most recent), hmmm
534: [23:31:37] <nghtjr> $$$
535: [23:31:47] <nghtjr> who would have thought
536: [23:32:08] <Stomach> but irc still works
537: [23:32:12] <Stomach> so its not worth it
538: [23:32:14] <Stomach> :P
539: [23:32:24] <Stomach> people are even helpful in here sometimes
540: [23:32:25] <Stomach> its weird
541: [23:32:29] <Stomach> not like the old days at all
542: [23:32:32] <chillu_23> And of course put an open source community at the whim of a commercial company. I’m not a zealot about it, but its a consideration
543: [23:33:46] <xyphoid_> the main pain with slack for public stuff is still the invite step
544: [23:33:47] <Stomach> yeah not ideal
545: [23:33:59] <chillu_23> Oh, cool! Yeah I gave up on this IRC chat for a while - also because it just doesn’t fit into my open source workflow. Already got way more “long form” async responses than I can handle (issues, pull requests). But it’s also the only channel for core devs like us two talking in real time :)
546: [23:35:18] <xyphoid_> when did they remove the cap? i thought people were still running into that for free slack
547: [23:35:54] <chillu_23> https://news.ycombinator.com/item?id=10486541
548: [23:37:31] <nghtjr> chillu_23 Stomach: mattermost.org ?
549: [23:38:11] <chillu_23> Yeah just stumbled on that. Not really keen to maintain yet another stack though (yes, one line Docker install bla bla, but it never is heh)
550: [23:38:43] <nghtjr> yeah, irc is fine tho
551: [23:38:51] <nghtjr> no need to change
552: [23:38:55] <Stomach> chillu_23 - yeah I was going to bring that up in a committers meeting, we should have a channel on the SS slack or somewhere where we can actually chat - I have so many different channels for talking to people
553: [23:39:23] <nghtjr> got web client and stuff to, ease of access for those not in the know
554: [23:40:42] <chillu_23> Yeah I guess for core commiter talk, we could make do with a channel on SS slack - but it puts more conversations into a walled garden. Better than core committers not talking to each other at all of course (or just async via Github and monthly at the core committer meetings)
555: [23:40:56] <chillu_23> Maybe start a discussion on the core-committers list?
556: [23:44:33] <Stomach> yeah will do - thought it was weird when I got added
557: [23:44:44] <Stomach> haven't really had any instruction - its a bit of a free for all :P
558: [23:46:06] <chillu_23> You mean the core committers hangout is a free-for-all?
559: [23:46:30] <Stomach> nah, just the actual core committer - its kind of like "here you go you are one now good luck"
560: [23:47:32] <chillu_23> Ah right! Well, you’ve earned it! There’s no special super powers that you need for being a core committer (well, other than Damian and his superhuman efforts to keep things running)
561: [23:49:13] <Stomach> yeah I had lunch with him last week - really keen to take some of the release management pressure off of him
562: [23:54:10] * spronk has joined #silverstripe

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