Hi,
I have been working on a SS website on my desktop (Localhost - Install 3.4.0) . Everything worked perfectly fine, also the 3 additional custom pages that I created.
I just moved all the files to the webserver with a clean install. I can create a normal page, but when I want to create one of the custom pages (HomePage.php) an error appears "Notice at line 214 of /../public_html/framework/dev/Deprecation.php".
I don 't think I used any deprecated coding as I did not see any deprecation errors on my local install. Can anyone please tell me what I am doing wrong? The code that I used for the HomePage.php can be found below.
PHP version Local (Wamp server) 5.5.12
PHP version Web server 5.4.45
Thank you in advance
<?php
class HomePage extends Page {
private static $db = array (
'FeaturedTitle' => 'Text',
'FeaturedContent' => 'Text',
);
private static $can_be_root = true;
public function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Main', TextField::create('FeaturedTitle','Featured Heading'),'Content');
$fields->addFieldToTab('Root.Main', TextareaField::create('FeaturedContent','Featured Content'),'Content');
$fields->removeFieldFromTab("Root.Content.Main","Content");
$fields->removeFieldFromTab("Root.Content.Main","Title");
$fields->removeFieldFromTab("Root.Content.Main","LessonsTitle");
$fields->removeFieldFromTab("Root.Content.Main","CostsTitle");
$fields->removeFieldFromTab("Root.Content.Main","LessonsContent");
$fields->removeFieldFromTab("Root.Content.Main","CostsContent");
$fields->removeFieldFromTab("Root.Content.Main","AgendaTitle");
$fields->removeFieldFromTab("Root.Content.Main","ContactTitle");
return $fields;
}
public function getValidPerformances()
{
return FeaturedPage::get()
;
}
private static $allowed_children = array('FeaturedPage');
}
class HomePage_Controller extends Page_Controller {
}
[/code}