Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Blog installation problem

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

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

Page: 1
Go to End
Author Topic: 1029 Views
  • Apophenian
    Avatar
    Community Member
    46 Posts

    Blog installation problem Link to this post

    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();

    etc

    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.

    Rane.

  • Apophenian
    Avatar
    Community Member
    46 Posts

    Re: Blog installation problem Link to this post

    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!

  • Wojtek
    Avatar
    Community Member
    149 Posts

    Re: Blog installation problem Link to this post

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

    1029 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.