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.

Customising the CMS /

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

"$project is n't set" then blank site :(


Go to End


2 Posts   1058 Views

Avatar
nekranox

Community Member, 31 Posts

9 November 2011 at 11:46am

Hey guys,

I accidentally removed:

global $project;
$project = 'mysite';

from my _config.php and did a dev/build.

it gave me the "$project isn't set" error and when I added back in I accidentally set it to something else.

when i realise and set it back to "mysite" the dev build now works again but isn't detecting any of my custom classes such as blog or custom page types. both front-end and admin are blank. database seems to be untouched.

please help!

Avatar
nekranox

Community Member, 31 Posts

9 November 2011 at 11:53am

never mind! the problem was the dev build wasnt completing because i had a PHP error. please ignore.