I have herited a site but...

Silverstripe Version:


Hi, ive herited a site on which i have worked. The guy customized the site to the point where i cannot hover le SS logo to see which version he used.

Second, i am trying to add a Boolean button to the CMS

I have done a dev/build (no error) and a flush=all (no error).

but i get a 500 error when i click on the page thats get that code.

Here is the code :

class Page extends SiteTree {

	private static $db = array(
	"ShowPopup" => "Boolean"

	private static $has_one = array(

	public function getCMSFields() {
		$fields = parent::getCMSFields();

			$fields->addFieldToTab('Root.Main', CheckboxField::create('ShowPopup', 'Affiche popup sur la page'),'Content');


		return $fields;


Of course, knowing which version would help!!! :slight_smile:

If there is a composer.lock file in the project root you should be able to see the version from that.

Can you check the error log to see what the actual error is? Putting ?isDev=1 in the URL might tell you more about it too.

The code looks okay to me, only thing that jumps to mind is that if this is an SS4 site then CheckboxField would be namespaced so you would need to add a use statement for it or use the full classname with namespace e.g. \SilverStripe\Forms\CheckboxField.