Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

[Решено {magic}] Фатальная ошибка при попытке зайти в товары!


dmitriykonev

Recommended Posts

OpenCart 1.5.3.1

Изменений много!

 

При переходе на страницы каталога возникает следующая ошибка:

PHP Fatal error: Class 'Pagination' not found in /home/y/youfash/public_html/vqmod/vqcache/vq2-catalog_controller_product_category.php on line 345, referer: http://yourfashion-room.ru/

 

Очень нужна помощь!!!!

Надіслати
Поділитися на інших сайтах


Что-нибудь ставили в последнее время через vqmod, связанное с пагинацией? Очистите папку vqcache. Проверьте наличие класса Pagination в оригинальном файле catalog\controller\product\category.php

Надіслати
Поділитися на інших сайтах


Кэш чистил! 

 

Вот, что в catalog\controller\product\category.php   со словом Pagination 

$this->data['limits'][] = array(
'text'  => 75,
'value' => 75,
'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&limit=75')
);
 
$this->data['limits'][] = array(
'text'  => 100,
'value' => 100,
'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&limit=100')
);
 
$url = '';
 
if (isset($this->request->get['sort'])) {
$url .= '&sort=' . $this->request->get['sort'];
}
 
if (isset($this->request->get['order'])) {
$url .= '&order=' . $this->request->get['order'];
}
 
if (isset($this->request->get['limit'])) {
$url .= '&limit=' . $this->request->get['limit'];
}
 
$pagination = new Pagination();
$pagination->total = $product_total;
$pagination->page = $page;
$pagination->limit = $limit;
$pagination->text = $this->language->get('text_pagination');
$pagination->url = $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&page={page}');
 
$this->data['pagination'] = $pagination->render();
 
$this->data['sort'] = $sort;
$this->data['order'] = $order;
$this->data['limit'] = $limit;
 
$this->data['continue'] = $this->url->link('common/home');
 
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/category.tpl')) {
$this->template = $this->config->get('config_template') . '/template/product/category.tpl';
} else {
$this->template = 'default/template/product/category.tpl';
}
 
$this->children = array(
'common/column_left',
'common/column_right',
'common/content_top',
'common/content_bottom',
'common/footer',
'common/header'
);
 
$this->response->setOutput($this->render());
    } else {
$url = '';
 
if (isset($this->request->get['path'])) {
$url .= '&path=' . $this->request->get['path'];
}
 
if (isset($this->request->get['sort'])) {
$url .= '&sort=' . $this->request->get['sort'];
}
 
if (isset($this->request->get['order'])) {
$url .= '&order=' . $this->request->get['order'];
}
 
if (isset($this->request->get['page'])) {
$url .= '&page=' . $this->request->get['page'];
}
 
if (isset($this->request->get['limit'])) {
$url .= '&limit=' . $this->request->get['limit'];
}
 
$this->data['breadcrumbs'][] = array(
'text'      => $this->language->get('text_error'),
'href'      => $this->url->link('product/category', $url),
'separator' => $this->language->get('text_separator')
);
 
$this->document->setTitle($this->language->get('text_error'));
 
      $this->data['heading_title'] = $this->language->get('text_error');
 
      $this->data['text_error'] = $this->language->get('text_error');
 
      $this->data['button_continue'] = $this->language->get('button_continue');
 
      $this->data['continue'] = $this->url->link('common/home');
 
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/error/not_found.tpl')) {
$this->template = $this->config->get
Надіслати
Поділитися на інших сайтах


Код в теги и под спойлер. Постраничная навигация. А в файле vqmod/vqcache/vq2-catalog_controller_product_category.php код

$pagination = new Pagination();
$pagination->total = $product_total;
$pagination->page = $page;
$pagination->limit = $limit;
$pagination->text = $this->language->get('text_pagination');
$pagination->url = $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&page={page}');
 
$this->data['pagination'] = $pagination->render();

присутствует?

Надіслати
Поділитися на інших сайтах


вот что в vqmod/vqcache/vq2-catalog_controller_product_category.php

 

$pagination = new Pagination();
$pagination->total = $product_total;
$pagination->page = $page;
$pagination->limit = $limit;
$pagination->text = $this->language->get('text_pagination');
$pagination->url = $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&page={page}');
 
$this->data['pagination'] = $pagination->render();
 
$this->data['sort'] = $sort;
$this->data['order'] = $order;
$this->data['limit'] = $limit;
 
$this->data['continue'] = $this->url->link('common/home');
 
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/category.tpl')) {
$this->template = $this->config->get('config_template') . '/template/product/category.tpl';
} else {
$this->template = 'default/template/product/category.tpl';
}
 
$this->children = array(
'common/column_left',
'common/column_right',
'common/content_top',
'common/content_bottom',
'common/footer',
'common/header'
);
 
$this->response->setOutput($this->render());
    } else {
$url = '';
 
if (isset($this->request->get['path'])) {
$url .= '&path=' . $this->request->get['path'];
}
 
if (isset($this->request->get['sort'])) {
$url .= '&sort=' . $this->request->get['sort'];
}
 
if (isset($this->request->get['order'])) {
$url .= '&order=' . $this->request->get['order'];
}
 
if (isset($this->request->get['page'])) {
$url .= '&page=' . $this->request->get['page'];
}
 
if (isset($this->request->get['limit'])) {
$url .= '&limit=' . $this->request->get['limit'];
}
 
$this->data['breadcrumbs'][] = array(
'text'      => $this->language->get('text_error'),
'href'      => $this->url->link('product/category', $url),
'separator' => $this->language->get('text_separator')
);
 
$this->document->setTitle($this->language->get('text_error'));
 
      $this->data['heading_title'] = $this->language->get('text_error');
 
      $this->data['text_error'] = $this->language->get('text_error');
Надіслати
Поділитися на інших сайтах


В своих сообщениях прежде, чем вставить код нажмите на кнопку code.png Спойлер найдете под этой кнопкой ips_bbcode.png А последнее - ответ на ваш вопрос

 

не знаю что такое пагинация!?

:wink:

Надіслати
Поділитися на інших сайтах


Если проблема возникла после установки модуля, попробуйте его удалить, очистить папку vqcache, очистить кэш браузера и посмотрите, осталась ли проблема.

Надіслати
Поділитися на інших сайтах


[spoiler]$pagination = new Pagination();
$pagination->total = $product_total;
$pagination->page = $page;
$pagination->limit = $limit;
$pagination->text = $this->language->get('text_pagination');
$pagination->url = $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&page={page}');

$this->data['pagination'] = $pagination->render();

$this->data['sort'] = $sort;
$this->data['order'] = $order;
$this->data['limit'] = $limit;

$this->data['continue'] = $this->url->link('common/home');

if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/category.tpl')) {
$this->template = $this->config->get('config_template') . '/template/product/category.tpl';
} else {
$this->template = 'default/template/product/category.tpl';
}

$this->children = array(
'common/column_left',
'common/column_right',
'common/content_top',
'common/content_bottom',
'common/footer',
'common/header'
);

$this->response->setOutput($this->render());
} else {
$url = '';

if (isset($this->request->get['path'])) {
$url .= '&path=' . $this->request->get['path'];
}

if (isset($this->request->get['sort'])) {
$url .= '&sort=' . $this->request->get['sort'];
}

if (isset($this->request->get['order'])) {
$url .= '&order=' . $this->request->get['order'];
}

if (isset($this->request->get['page'])) {
$url .= '&page=' . $this->request->get['page'];
}

if (isset($this->request->get['limit'])) {
$url .= '&limit=' . $this->request->get['limit'];
}

$this->data['breadcrumbs'][] = array(
'text' => $this->language->get('text_error'),
'href' => $this->url->link('product/category', $url),
'separator' => $this->language->get('text_separator')
);

$this->document->setTitle($this->language->get('text_error'));

$this->data['heading_title'] = $this->language->get('text_error');

$this->data['text_error'] = $this->language->get('text_error');

[/spoiler]

Так?

Надіслати
Поділитися на інших сайтах


Вот последние ошибки в error_log:

95.79.36.127] PHP Fatal error:  Class 'Pagination' not found in /home/y/youfash/public_html/vqmod/vqcache/vq2-catalog_controller_product_category.php on line 345, referer: http://yourfashion-room.ru/
[Sat Oct 05 12:13:58 2013] [error] [client 95.79.36.127] PHP Fatal error:  Class 'Pagination' not found in /home/y/youfash/public_html/vqmod/vqcache/vq2-catalog_controller_product_category.php on line 345, referer: http://yourfashion-room.ru/
[Sat Oct 05 12:14:42 2013] [error] [client 95.79.36.127] PHP Fatal error:  Class 'Pagination' not found in /home/y/youfash/public_html/vqmod/vqcache/vq2-catalog_controller_product_category.php on line 345, referer: http://yourfashion-room.ru/
[Sat Oct 05 12:14:48 2013] [error] [client 95.79.36.127] PHP Fatal error:  Class 'Pagination' not found in /home/y/youfash/public_html/vqmod/vqcache/vq2-catalog_controller_product_category.php on line 345, referer: http://yourfashion-room.ru/
[Sat Oct 05 12:15:01 2013] [error] [client 95.79.36.127] PHP Fatal error:  Class 'Pagination' not found in /home/y/youfash/public_html/admin/controller/catalog/suppler.php on line 382, referer: http://yourfashion-room.ru/admin/index.php?route=module/alsopurchased&token=6998abdbcf05f96fb1c8fdfa464bbe5d

Надіслати
Поділитися на інших сайтах


Створіть аккаунт або увійдіть для коментування

Ви повинні бути користувачем, щоб залишити коментар

Створити обліковий запис

Зареєструйтеся для отримання облікового запису. Це просто!

Зареєструвати аккаунт

Вхід

Уже зареєстровані? Увійдіть тут.

Вхід зараз
  • Зараз на сторінці   0 користувачів

    • Ні користувачів, які переглядиють цю сторінку

×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.