Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Document' not found


Denyelle
 Share

Recommended Posts

Сайт перtстал работать - пишет вот такую ошибку - PHP Fatal error: Class 'Document' not found in /var/www/alfa2/data/www/sait/index.php on line 207

Подскажите что за трабл?

Link to comment
Share on other sites


вы как проверили? по атрибуту файла? Проверяйте содержимое. А дату изменения я могу вам влегкую хоть 1812 поставить

Link to comment
Share on other sites


<?php
class Document {
	private $title;
	private $description;
	private $keywords;
	private $links = array();
	private $styles = array();
	private $scripts = array();
	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;
	}
}

Такой вот. Сравнил с другим файлом - такой же.

Link to comment
Share on other sites


1 час назад, Denyelle сказал:

Сайт перtстал работать - пишет вот такую ошибку - PHP Fatal error: Class 'Document' not found in /var/www/alfa2/data/www/sait/index.php on line 207

Подскажите что за трабл?

Удалите кеш vqmod

vqmod/vqcache/

mods.cache и checked.cache

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.