Darvel
Постоялец
- Регистрация
- 29 Июл 2008
- Сообщения
- 114
- Реакции
- 63
- Автор темы
- #1
Здравствуйте. Ставил шаблон Revolution v3.1.2 nulled по инструкции, сначала файлы из аплоад, потом фикс, потом обновить кеш в списке дополнений. После обновления крашится весь сайт, при чем пробовал OcStore все версии 2.3.х и 2.1.0.2.1.
Выдает такую ошибку
Запускаю на последней версии опен сервера.
Выдает такую ошибку
Код:
Fatal error: Cannot redeclare Document::$og_image in C:\OSPanel\domains\site2.ru\system\storage\modification\system\library\document.php on line 18
<?php
class Document {
private $title;
private $description;
private $keywords;
private $links = array();
private $styles = array();
private $scripts = array();
private $og_image;
public function setOgImage($image) {
$this->og_image = $image;
}
public function getOgImage() {
return $this->og_image;
}
private $og_image;
public function setTitle($title) {
$this->title = $title;
}
public function getTitle() {
return $this->title;
}
public function setDescription($description) {
$this->description = $description;
}
public function getDescription() {
return $this->description;
}
public function setKeywords($keywords) {
$this->keywords = $keywords;
}
public function getKeywords() {
return $this->keywords;
}
public function addLink($href, $rel) {
$this->links[$href] = array(
'href' => $href,
'rel' => $rel
);
}
public function getLinks() {
return $this->links;
}
public function addStyle($href, $rel = 'stylesheet', $media = 'screen') {
$this->styles[$href] = array(
'href' => $href,
'rel' => $rel,
'media' => $media
);
}
public function getStyles() {
return $this->styles;
}
public function addScript($href, $postion = 'header') {
$this->scripts[$postion][$href] = $href;
}
public function getScripts($postion = 'header') {
if (isset($this->scripts[$postion])) {
return $this->scripts[$postion];
} else {
return array();
}
}
public function setOgImage($image) {
$this->og_image = $image;
}
public function getOgImage() {
return $this->og_image;
}
}
class Document {
private $title;
private $description;
private $keywords;
private $links = array();
private $styles = array();
private $scripts = array();
private $og_image;
public function setOgImage($image) {
$this->og_image = $image;
}
public function getOgImage() {
return $this->og_image;
}
private $og_image;
public function setTitle($title) {
$this->title = $title;
}
public function getTitle() {
return $this->title;
}
public function setDescription($description) {
$this->description = $description;
}
public function getDescription() {
return $this->description;
}
public function setKeywords($keywords) {
$this->keywords = $keywords;
}
public function getKeywords() {
return $this->keywords;
}
public function addLink($href, $rel) {
$this->links[$href] = array(
'href' => $href,
'rel' => $rel
);
}
public function getLinks() {
return $this->links;
}
public function addStyle($href, $rel = 'stylesheet', $media = 'screen') {
$this->styles[$href] = array(
'href' => $href,
'rel' => $rel,
'media' => $media
);
}
public function getStyles() {
return $this->styles;
}
public function addScript($href, $postion = 'header') {
$this->scripts[$postion][$href] = $href;
}
public function getScripts($postion = 'header') {
if (isset($this->scripts[$postion])) {
return $this->scripts[$postion];
} else {
return array();
}
}
public function setOgImage($image) {
$this->og_image = $image;
}
public function getOgImage() {
return $this->og_image;
}
}