10441 Posts in 2220 Topics by 1717 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 684 Views |
-
Website Error After Creating Module

21 April 2010 at 9:05am Last edited: 21 April 2010 9:06am
I was going through this documentation
http://doc.silverstripe.org/doku.php?id=leftandmain&s=leftandmainI 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?
-
Re: Website Error After Creating Module

21 April 2010 at 9:18am
Make sure your site is in 'dev' mode.
Director::set_environment_type('dev');
-
Re: Website Error After Creating Module

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
-
Re: Website Error After Creating Module

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.
| 684 Views | ||
|
Page:
1
|
Go to Top |

