Mam pewien problem. Po zainstalowaniu custom CMS'a wchodząc na stronę główną pojawia się biały ekran z tym błędem:
Cytat
Fatal error: Class 'CForm' not found in /home/julcio/public_html/v2/admin/lib/forms.settings.php on line 23
Przedstawiam plik forms.settings.php od linijki 23
class CFormSettings extends CForm{ function CFormSettings($xml , $templates , $db , $tables) { parent::CForm($templates, $db , $tables,$xml); $this->name = "formsettings"; } /** * description * * @param * * @return * * @access */ //check if i should show the details $edit = true; } else { if ($_SERVER["REQUEST_METHOD"] == "POST") { //redirect to the showing mode; $location = new CTemplate($this->form["redirect"] , "string"); URLRedirect($location->Replace(parent::GlobalVars($this->form)) , "js"); } else $edit = $_GET["action"] == "edit" || $_GET["action"] == "store" ? true : false; } if ($edit == false) { //convert the editable fields to the showing ones parent::__private__showonly(&$this->form); } //remove the edit and back buttons if (!$_GET["returnurl"]) } else { //remove the edit button } return parent::Show( $this->form , "values" => $values, "error" => $this->error ), $extra ); } /** * description * * @param * * @return * * @access */ function Validate() { if ($_SERVER["REQUEST_METHOD"] != $this->method) return 1; if ($this->method == "GET" ) $data = &$_GET ; else $data = &$_POST; CForm::ProcessVariables($this->form, $data); $this->_errors = parent::Validate($this->form , $data); //$this->__private_process_uploads(); } function Done() { $this->Validate(); $this->Uploads(); if ($this->valid) { if ($_SERVER["REQUEST_METHOD"] == "POST") { $this->DoUploads(); return true; } } return false; } /** * description * * @param * * @return * * @access */ function Uploads() { foreach ($this->form["fields"] as $key => $val) { if (!$val["name"]) $val["name"] = $key; switch ($val["type"]) { case "upload": case "image": $this->__private_uploads_pre($val); break; } } } } /** * description * * @param * * @return * * @access */ function DoUploads() { foreach ($this->form["fields"] as $key => $val) { if (!$val["name"]) $val["name"] = $key; switch ($val["type"]) { case "upload": case "image": $this->__private_uploads_after($val); //remove the extra fields break; } } } } function DoEvents(){ } }