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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Website Error After Creating Module


Go to End


4 Posts   1447 Views

Avatar
BrysaniStudios

Community Member, 12 Posts

21 April 2010 at 9:05am

Edited: 21/04/2010 9:06am

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?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

21 April 2010 at 9:18am

Make sure your site is in 'dev' mode.

Director::set_environment_type('dev');

Avatar
BrysaniStudios

Community Member, 12 Posts

21 April 2010 at 9:29am

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

Avatar
UncleCheese

Forum Moderator, 4102 Posts

21 April 2010 at 9:46am

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