Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Module installations failing

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: 728 Views
  • Dennis
    Community Member
    7 Posts

    Module installations failing Link to this post

    I'm having a problem installing modules. I've followed the directions unpack, move, run db/build?flush=1.

    the build?flush spews a lot of php code onto the page (small sample of the beginning follows) and doesn't provide any new pagetypes in the CMS. I thought perhaps I had munged something in my first install, so I created another and installed SS again (with no errors) to try the module install on a 'clean' framework. Alas, I got the same results...

    On my earlier SS install I saw the same effects with a couple of different modules, but had successfully installed the external authentication module (LDAP).

    Anyone have any ideas to get me past this problem?


    "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(); $fields->removeFieldFromTab("Root.Content.Main","Content"); $fields->addFieldToTab("Root.Content.Main", new TextareaField("Content", "Content", 20)); $fields->addFieldToTab("Root.Content.Main", new CalendarDateField("Date", "Date"),"Content"); $fields->addFieldToTab("Root.Content.Main", new TextField("Author", "Author", $firstName),"Content"); $fields->addFieldToTab("Root.Content.Main", new LiteralField("BBCodeHelper", "
    " . "BBCode help" . "

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.