Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Website Error After Creating Module

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 794 Views
  • BrysaniStudios
    Avatar
    Community Member
    12 Posts

    Website Error After Creating Module Link to this post

    I was going through this documentation
    http://doc.silverstripe.org/doku.php?id=leftandmain&s=leftandmain

    I was just trying to get a simple blank module to work so i can start creating it. It was displaying fine from the backend and displayed another tab in the top CMS menu. But being logged out i get the "Website Error - There has been an error...". When I remove the folder from the directory the site works fine. Any Ideas what I might be doing wrong? Or what's some pointers to get it to work?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Website Error After Creating Module Link to this post

    Make sure your site is in 'dev' mode.

    Director::set_environment_type('dev');

  • BrysaniStudios
    Avatar
    Community Member
    12 Posts

    Re: Website Error After Creating Module Link to this post

    Where can I place that code? Also that may fix it temporarily, but i was wondering there were any key things to include when creating a module. I looked through the code in the blog and the userforms modules to see what I could be missing. Not sure why it works when im logged in, but when im logged out, it doesn't work

  • UncleCheese
    Avatar
    4085 Posts

    Re: Website Error After Creating Module Link to this post

    You'll only know what is wrong if you turn on your error reporting. Put that line in your config.

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