Jump to content
Sign in to follow this  

Не открывается карта сайта

Recommended Posts

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8296 bytes) in /home/admin/web/мойсайт/public_shtml/system/library/db/mysqli.php on line 18

Файл стандартный, я туда не лазил. Содержимое:


namespace DB;
final class MySQLi {
	private $connection;

	public function __construct($hostname, $username, $password, $database, $port = '3306') {
		$this->connection = new \mysqli($hostname, $username, $password, $database, $port);

		if ($this->connection->connect_error) {
			throw new \Exception('Error: ' . $this->connection->error . '<br />Error No: ' . $this->connection->errno);

		$this->connection->query("SET SQL_MODE = ''");

	public function query($sql) {
		$query = $this->connection->query($sql);

		if (!$this->connection->errno) {
			if ($query instanceof \mysqli_result) {
				$data = array();

				while ($row = $query->fetch_assoc()) {
					$data[] = $row;

				$result = new \stdClass();
				$result->num_rows = $query->num_rows;
				$result->row = isset($data[0]) ? $data[0] : array();
				$result->rows = $data;


				return $result;
			} else {
				return true;
		} else {
			throw new \Exception('Error: ' . $this->connection->error  . '<br />Error No: ' . $this->connection->errno . '<br />' . $sql);

	public function escape($value) {
		return $this->connection->real_escape_string($value);
	public function countAffected() {
		return $this->connection->affected_rows;

	public function getLastId() {
		return $this->connection->insert_id;
	public function connected() {
		return $this->connection->ping();
	public function __destruct() {


Хочу https://мойсайт/index.php?route=extension/feed/google_sitemap открыть и не могу.

На хостинге ответили:

Данная ошибка свидетельствует что скрипту не достаточно озу, выделенного для него.
Данных лимит в настройках php.ini я поднял до 512 Mb результат это не дало.
Большая доля вероятности что проблемы именно с самим скриптом.


Подскажите что нибудь, пожалуйста.

Share this post

Link to post
Share on other sites

нужно разбираться с контроллером google_sitemap

Share this post

Link to post
Share on other sites
1 час назад, ssa сказал:

нужно разбираться с контроллером google_sitemap

Разбираться - это процесс постоянный :grin:

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

Спасибо. Работает.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.


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.