Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Blog installation problem

Go to End

3 Posts   1237 Views


Community Member, 46 Posts

28 January 2008 at 7:52pm

Hey there,

I am trying to install the blog module for silverstripe - I have unzipped the blog module into the correct directory, but when I attempt to flush the db, I get a whole lot of output like this:

"Datetime", "Author" => "Text", "Tags" => "Text" ); static $casting = array( "Date" => "Date" ); static $defaults = array( "ProvideComments" => true ); static $allowed_children = "none"; /** * overload so that the default date is today. */ public function populateDefaults(){ parent::populateDefaults(); $this->Date = date("d/m/Y H:i:s",time()); } /** * Ensures the most recent article edited on the same day is shown first. */ public function setDate($val){ $datepart = date("Y-m-d",strtotime($val)); $minutepart = date("H:i:s",time()); $date = $datepart . " " . $minutepart; return $this->setField("Date",$date); } function getCMSFields() { Requirements::javascript('blog/javascript/bbcodehelp.js'); Requirements::css('blog/css/bbcodehelp.css'); $firstName = Member::CurrentMember() ? Member::currentMember()->FirstName : ''; $codeparser = new BBCodeParser(); $fields = parent::getCMSFields();


From what I can tell, this is the content of the file BlogEntry.php. After this, I don't have the additional page types, so I assume this isn't working for me!

I am using php 5.2.3, silverstripe 2.2.1 on apache on windows (my dev machine).

Any help would be much appreciated.



Community Member, 46 Posts

28 January 2008 at 8:00pm

Haha figured it out - I have short_open_tag = Off in my php ini file, and BlogEntry.php starts with <?

Besides this little bump it is looking pretty good!


Community Member, 149 Posts

28 January 2008 at 10:23pm

TODO: make all opening tags <?php instead of <? :>