#silverstripe IRC Log

IRC log for 31 May 2015

All timestamps are in UTC.

1: [00:20:47] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
2: [00:36:10] * micmania1 has joined #silverstripe
3: [01:24:15] * benjhocking has joined #silverstripe
4: [01:30:21] * benjhocking quit (Read error: Connection reset by peer)
5: [01:32:47] * benjhocking has joined #silverstripe
6: [02:10:29] * ss-helper quit (Remote host closed the connection)
7: [02:10:45] * ss-helper has joined #silverstripe
8: [02:12:58] * Azure quit (Remote host closed the connection)
9: [02:13:39] * Azure has joined #silverstripe
10: [02:24:16] * veb has joined #silverstripe
11: [03:35:34] * Kowiana has joined #silverstripe
12: [03:41:11] * micmania1 quit (Quit: micmania1)
13: [04:16:55] * micmania1 has joined #silverstripe
14: [04:36:37] * Kowiana has joined #silverstripe
15: [04:41:21] * nontgor quit (Ping timeout: 240 seconds)
16: [04:54:05] * nontgor has joined #silverstripe
17: [05:57:57] * veb quit (Quit: veb-irc: &)
18: [06:10:50] * ss-helper quit (Remote host closed the connection)
19: [06:11:05] * ss-helper has joined #silverstripe
20: [06:12:39] * CodeTrap has joined #silverstripe
21: [06:18:35] * simon_ has joined #silverstripe
22: [06:18:59] * simon_ quit (Client Quit)
23: [06:58:32] * TombL has joined #silverstripe
24: [07:17:20] * tmro quit (Quit: WeeChat 1.3-dev)
25: [07:20:48] * veb has joined #silverstripe
26: [07:35:25] * bemusedrat has joined #silverstripe
27: [07:40:08] * wmk has joined #silverstripe
28: [07:58:40] * bemusedrat quit (Quit: Leaving)
29: [07:59:38] <wmk> anyone can ping me a domain name and tell me if it works and what ip is resolved?
30: [08:04:37] * veb quit (Quit: veb-irc: &)
31: [08:24:12] * veb has joined #silverstripe
32: [09:08:49] <ss23> wmk: sure, what is it?
33: [09:17:52] * Kowiana has joined #silverstripe
34: [09:30:21] * darjus01 has joined #silverstripe
35: [09:31:23] <darjus01> Hi all is any tutorials how to make custom views in SS admin with custom button actions and views?
36: [09:32:54] * tmro has joined #silverstripe
37: [09:34:11] <wmk> darjus01, do you want to customize a ModelAdmin ?
38: [09:51:01] <darjus01> yes
39: [09:51:23] <darjus01> make own views like in swipe stripe setting view
40: [09:52:08] <darjus01> http://swipestripe.com/dev/docs/swipestripe/en/Basics/Admin
41: [09:52:12] <darjus01> like this
42: [09:53:09] <darjus01> I wa trying to read saphire docs but it was to confusing
43: [10:05:23] <wmk> darjus01, saphire: silverstripe 2.4
44: [10:05:34] <wmk> in 3.x it's renamed to silverstripe-framework
45: [10:11:19] * tmro quit (Ping timeout: 256 seconds)
46: [10:18:50] * tmro has joined #silverstripe
47: [10:21:16] * Azure quit (Excess Flood)
48: [10:21:55] * Azure has joined #silverstripe
49: [10:27:09] <darjus01> yes but i wanted to search if is any normal totorials how to use framework it self and make custom views in cms
50: [10:27:37] * veb quit (Quit: veb-irc: &)
51: [10:41:16] * ss-helper quit (Remote host closed the connection)
52: [10:41:29] * ss-helper has joined #silverstripe
53: [10:47:40] * wmk quit (Ping timeout: 255 seconds)
54: [10:54:37] * darjus01 quit (Ping timeout: 246 seconds)
55: [11:10:09] * Shrike_Finland has joined #silverstripe
56: [11:33:15] * jarr0dsz has joined #silverstripe
57: [11:52:03] * jarr0dsz quit (Quit: My Mac has gone to sleep. ZZZzzz…)
58: [12:19:41] * HelloWorld has joined #silverstripe
59: [12:20:19] <HelloWorld> HI - am trying to install silverstripe with postgres
60: [12:22:28] <HelloWorld> I've added the postgres plugin to the root directory, run the install.php file and it's giving some undefined database variable in the install.php5. Defined the database name in the config.yml as postgres but it's still coming up with that variable
61: [12:23:35] <micmania1> HelloWorld: What’s the variable name>
62: [12:23:37] <micmania1> ?
63: [12:23:41] <HelloWorld> And it's also complaining that I have the incorrect version of apache (SilverStripe requires Apache version 2 or greater). But I have 2.4.12
64: [12:24:31] <HelloWorld> PostgreSQLDatabase
65: [12:25:11] <micmania1> hmmm.. I’ve never installed it through the installer I’m afraid.
66: [12:25:20] <HelloWorld> So in the config.yml under mysite I have set it like this: Database: PostgreSQLDatabase
67: [12:25:29] <micmania1> the variable is $PostgresSQLDatabase?
68: [12:25:35] <HelloWorld> How do you install it?
69: [12:26:06] <HelloWorld> Nope it's just PostgreSQLDatabase
70: [12:26:08] <micmania1> I’ve only installed with Postgres once and I added it to an existing installation (using _ss_environment.php file)
71: [12:26:18] <micmania1> HelloWorld: That’s not a variable name
72: [12:26:24] <micmania1> Can you copy the exact error into here?
73: [12:26:41] <HelloWorld> OkNotice: Undefined variable: database in /Users/p/dev/foodengine/framework/dev/install/install.php5 on line 170
74: [12:27:22] <HelloWorld> So should I just create a ss_environment.php file and define all the db details in there?
75: [12:34:20] <micmania1> HelloWorld: on mysite/_config.php try doing global $database; $database = ‘';
76: [12:38:52] <HelloWorld> ok - what I've done is Im removing the install.php file
77: [12:39:14] <HelloWorld> and have created ss_environment file outside of the silverstripe root directory
78: [12:39:53] <HelloWorld> and I've defined all my database connection details (host, username, db name, etc) and default ss admin/password in the ss_environment file
79: [12:40:29] <HelloWorld> but how do you write this in yml? // Use _ss_environment.php file for configuration require_once("conf/ConfigureFromEnv.php");
80: [12:41:02] <HelloWorld> I now need to update my _config.yml file under mysite to point to my ss_environment file
81: [12:41:08] <micmania1> You put that in your mysite/_config.php
82: [12:41:12] <micmania1> gimme a sec
83: [12:41:36] <micmania1> <?php
84: [12:41:37] <micmania1>
85: [12:41:39] <micmania1> global $project;
86: [12:41:40] <micmania1> $project = 'mysite';
87: [12:41:42] <micmania1>
88: [12:41:43] <micmania1> global $database;
89: [12:41:44] <micmania1> $database = '';
90: [12:41:46] <micmania1>
91: [12:41:47] <micmania1> require_once('conf/ConfigureFromEnv.php');
92: [12:41:49] <micmania1>
93: [12:41:50] <micmania1> / Set the site locale
94: [12:41:51] <micmania1> i18n::set_locale('en_GB');
95: [12:41:52] <micmania1> I’ll try a gist :p
96: [12:42:05] <HelloWorld> so delete the _config.yml under mysite and create a new file _config.php with the above?
97: [12:42:26] <micmania1> HelloWorld: https://gist.github.com/micmania1/eabd62009c6143e7ab23
98: [12:42:34] <micmania1> That’s what mysite/_config.php looks like for me
99: [12:47:19] <HelloWorld> ah right - sorry should have just done a command p and searched for _config.php. I was assuming there was only a _config.yml under mysite
100: [13:05:22] <HelloWorld> so I've updated the ss_environment file and _config.php
101: [13:06:03] <HelloWorld> But I get this error when I visit my site http://localhost/mysite - Fatal error: Uncaught exception 'Zend_Cache_Exception' with message 'Invalid file_name_prefix : must use only [a-zA-Z0-9_]'
102: [13:18:49] * HelloWorld quit (Ping timeout: 246 seconds)
103: [13:20:00] * Azure quit (Read error: Connection reset by peer)
104: [13:20:38] * Azure has joined #silverstripe
105: [13:35:45] * Azure quit (Quit: Oops.)
106: [13:36:09] * Azure has joined #silverstripe
107: [13:47:08] * Shrike_Finland quit (Quit: Leaving.)
108: [15:11:43] * ss-helper quit (Remote host closed the connection)
109: [15:11:56] * ss-helper has joined #silverstripe
110: [15:23:49] * micmania1 quit (Quit: micmania1)
111: [16:36:49] * CodeTrap quit (Ping timeout: 252 seconds)
112: [16:47:50] * GastroGeek has joined #silverstripe
113: [16:56:30] <GastroGeek> Hi all. I have a Page.php with a very simple function (currently just exit(1) to stop flow so I know it is being called). If I call this function within a loop on the front end it does nothing. If I move it outside of the loop, its gets executed and kills the page. Any ideas? http://pastebin.com/2TmijjGe Driving me mad. Thank!
114: [17:08:19] * jarr0dsz has joined #silverstripe
115: [17:47:21] * GastroGeek quit (Quit: Page closed)
116: [17:59:06] * joelpittet has joined #silverstripe
117: [18:22:29] * DimiStripe has joined #silverstripe
118: [18:45:06] <DimiStripe> Hey guys, i have a set of filtered DataObjects as $records (selected via DataObject::get). How can I pick 10 of this list randomly ?
119: [19:04:51] * Frans_Amsterdam has joined #silverstripe
120: [19:06:25] <Frans_Amsterdam> Hi all, is there a way to filter dataObjects on base of their has_one Locale?
121: [19:54:33] * ss-helper quit (Ping timeout: 244 seconds)
122: [20:05:29] * ss-helper has joined #silverstripe
123: [20:15:21] * jarr0dsz quit (Quit: Textual IRC Client: www.textualapp.com)
124: [20:39:31] * Shrike_Finland has joined #silverstripe
125: [20:46:47] * Frans_Amsterdam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
126: [21:13:51] * DimiStripe quit (Quit: DimiStripe)
127: [21:16:21] * MichalKl_ has joined #silverstripe
128: [21:18:44] * MichalKleiner quit (Ping timeout: 264 seconds)
129: [21:44:27] * HelloWorld has joined #silverstripe
130: [21:49:40] <HelloWorld> Hi there - can anyone help me with this error msg when I'm trying to install silverstripe with postgres?
131: [21:49:42] <HelloWorld> Fatal error: Uncaught exception 'Zend_Cache_Exception' with message 'Invalid file_name_prefix : must use only [a-zA-Z0-9_]' in /Users/p/dev/foodengine/framework/thirdparty/Zend/Cache.php:209
132: [21:50:16] <HelloWorld> Any feedback would be awesome
133: [21:56:30] * veb has joined #silverstripe
134: [22:08:05] * simon_w|air has joined #silverstripe
135: [22:10:19] * simon_w|air changed the topic to 'Welcome to #silverstripe | Ask your questions! | Dev Mailing List: http://silverstripe.org/dev-list | IRC Logs: http://silverstripe.org/irc-logs | Feature requests: http://silverstripe.uservoice.com | Latest stable release: http://silverstripe.org/software/download/ | Release Archive: http://silverstripe.org/release-archive'
136: [22:19:32] * joelpittet quit (Remote host closed the connection)
137: [22:31:05] * Shrike_Finland quit (Quit: Leaving.)
138: [22:34:12] * mirrors has joined #silverstripe
139: [22:53:06] * Colin[pi] has joined #silverstripe
140: [22:53:50] <Colin[pi]> morning all o.
141: [23:04:49] <mirrors> Hey everyone....I need to install a shop in SilverStripe. I think I have narrowed it down to two options. SwipeStripe and SunnySideUp Ecommerce....Which module is better? Have I missed any others?
142: [23:05:51] * babak quit (Quit: Connection closed for inactivity)
143: [23:07:22] <Colin[pi]> mirrors: current consensus seems to be ss-shop as the preferred option
144: [23:07:32] <Colin[pi]> with SwipeStripe as second
145: [23:17:21] <mirrors> Colin[pi]: many thanks for bring ss-shop to my attention, just installing it now and having a play. So SunnySideUp module isnt worth looking at then?
146: [23:17:27] * nontgor quit (Ping timeout: 276 seconds)
147: [23:17:55] * simon_w|air quit (Quit: Textual IRC Client: www.textualapp.com)
148: [23:26:06] <Colin[pi]> mirrors: ss-shop is getting the most active development I believe
149: [23:28:56] * nontgor has joined #silverstripe
150: [23:29:49] * simon_w|air has joined #silverstripe
151: [23:30:18] * Pyromanik has joined #silverstripe
152: [23:30:23] <Pyromanik> bishplz
153: [23:30:31] * Pyromanik quit (Quit: Leaving)
154: [23:30:37] <Colin[pi]> wat
155: [23:39:01] * HelloWorld quit (Ping timeout: 246 seconds)
156: [23:46:51] <Colin[pi]> holiday in NZ right?
157: [23:56:02] * spronk has joined #silverstripe
158: [23:59:38] <Colin[pi]> hey spronkey

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