Jump to:

10931 Posts in 2614 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » userforms - dev/build doesn't work

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 273 Views
  • bones
    Avatar
    Community Member
    104 Posts

    userforms - dev/build doesn't work Link to this post

    Running dev/build after added the userforms module doesn't work. The rebuild halts after "VirtualPage". There are no error messages.

    The front-end of the website continues to work, but admin just shows a white screen.

    I'm using Director: environment_type: 'dev' in my site/_config/config.yml but there aren't any errors displayed.

    Running SS3.1 and the current version of userforms. I'm also running a second (separate) SS3.1 website with userforms and this one works fine.

    Can anybody suggest what's going wrong, please?

    Thanks

  • bones
    Avatar
    Community Member
    104 Posts

    Re: userforms - dev/build doesn't work Link to this post

    I've just found this in php_error.log

    [27-Mar-2014 15:52:07 Europe/Berlin] PHP Fatal error: Access level to ErrorPage::$db must be public (as in class Page) in /Applications/MAMP/htdocs/AffordableWDC/cms/code/model/ErrorPage.php on line 14
    [27-Mar-2014 15:52:19 Europe/Berlin] PHP Fatal error: Access level to UserDefinedForm::$has_many must be public (as in class Page) in /Applications/MAMP/htdocs/AffordableWDC/userforms/code/model/UserDefinedForm.php on line 7

    I think I've done something wrong when changing page.php (or one of the other page types). Still trying to get to grips with 3.1. Any pointers? Thanks

  • bones
    Avatar
    Community Member
    104 Posts

    Re: userforms - dev/build doesn't work Link to this post

    Fixed it.
    I had public static $has_many = array( where I should have had a private static $has_many = array(

    273 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.