Перейти к публикации
Поиск в
  • Дополнительно...
Искать результаты, содержащие...
Искать результаты в...

Срочно нужна помощь


dupont89
 Поделиться

Рекомендованные сообщения

Сразу скажу что я только учусь. Особо не разбираюсь. Вот магазин http://ves-ivtextil.ru. Понять не могу но похоже после установки модуля seo pro  перестал открываться товар.Делал бекап перед установкой модулей. Но он не помогает.Все равно не открывается .Что делать подскажите !!!


в корне сайта htaccess.txt переименуйте в .htaccess -пробывал.

Options +SymLinksIfOwnerMatch -на это менять пробывал.

Какой лог ошибок может показать . 

Ссылка на комментарий
Поделиться на других сайтах


 

Что то ничего не выходит. Пробывал переустановить SEo Pro. Все по инструкции.Может Лог ошибок что даст

ivtextil.ru/public_html/system/modification/catalog/controller/module/featured.php on line 27
2016-05-25 0:49:00 - PHP Warning:  Invalid argument supplied for foreach() in /home/e/evpdaowr/ves-ivtextil.ru/public_html/system/modification/catalog/controller/module/featured.php on line 29
2016-05-25 0:49:10 - PHP Warning:  array_slice() expects parameter 1 to be array, string given in /home/e/evpdaowr/ves-ivtextil.ru/public_html/system/modification/catalog/controller/module/featured.php on line 27
2016-05-25 0:49:10 - PHP Warning:  Invalid argument supplied for foreach() in /home/e/evpdaowr/ves-ivtextil.ru/public_html/system/modification/catalog/controller/module/featured.php on line 29
2016-05-25 9:39:32 - PHP Warning:  array_slice() expects parameter 1 to be array, string given in /home/e/evpdaowr/ves-ivtextil.ru/public_html/system/modification/catalog/controller/module/featured.php on line 27
2016-05-25 9:39:32 - PHP Warning:  Invalid argument supplied for foreach() in /home/e/evpdaowr/ves-ivtextil.ru/public_html/system/modification/catalog/controller/module/featured.php on line 29
2016-05-25 11:12:02 - PHP Notice:  Error: Duplicate column name 'main_category'<br />Error No: 1060<br />ALTER TABLE `oc_product_to_category` add `main_category` tinyint(1) NOT NULL DEFAULT '0';
 in /home/e/evpdaowr/ves-ivtextil.ru/public_html/system/library/db/mysqli.php on line 40
Ссылка на комментарий
Поделиться на других сайтах


Может вот здесь.Вроде на это файл ошибки валятся.

 

$data['button_cart'] = $this->language->get('button_cart');
$data['button_wishlist'] = $this->language->get('button_wishlist');
$data['button_compare'] = $this->language->get('button_compare');


$this->load->model('catalog/product');


                $this->load->model('journal2/product');
            


$this->load->model('tool/image');


$data['products'] = array();


if (!$setting['limit']) {
$setting['limit'] = 4;
}


$products = array_slice($setting['product'], 0, (int)$setting['limit']);


foreach ($products as $product_id) {
$product_info = $this->model_catalog_product->getProduct($product_id);


if ($product_info) {
if ($product_info['image']) {
$image = $this->model_tool_image->resize($product_info['image'], $setting['width'], $setting['height']);
} else {
$image = $this->model_tool_image->resize('placeholder.png', $setting['width'], $setting['height']);
}


if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {
$price = $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax')));
} else {
$price = false;
}


if ((float)$product_info['special']) {
$special = $this->currency->format($this->tax->calculate($product_info['special'], $product_info['tax_class_id'], $this->config->get('config_tax')));
} else {
$special = false;
Ссылка на комментарий
Поделиться на других сайтах


Полный файл

 

?php
class ControllerModuleFeatured extends Controller {
public function index($setting) {
$this->load->language('module/featured');


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


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


$data['button_cart'] = $this->language->get('button_cart');
$data['button_wishlist'] = $this->language->get('button_wishlist');
$data['button_compare'] = $this->language->get('button_compare');


$this->load->model('catalog/product');


                $this->load->model('journal2/product');
            


$this->load->model('tool/image');


$data['products'] = array();


if (!$setting['limit']) {
$setting['limit'] = 4;
}


$products = array_slice($setting['product'], 0, (int)$setting['limit']);


foreach ($products as $product_id) {
$product_info = $this->model_catalog_product->getProduct($product_id);


if ($product_info) {
if ($product_info['image']) {
$image = $this->model_tool_image->resize($product_info['image'], $setting['width'], $setting['height']);
} else {
$image = $this->model_tool_image->resize('placeholder.png', $setting['width'], $setting['height']);
}


if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {
$price = $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax')));
} else {
$price = false;
}


if ((float)$product_info['special']) {
$special = $this->currency->format($this->tax->calculate($product_info['special'], $product_info['tax_class_id'], $this->config->get('config_tax')));
} else {
$special = false;
}


if ($this->config->get('config_tax')) {
$tax = $this->currency->format((float)$product_info['special'] ? $product_info['special'] : $product_info['price']);
} else {
$tax = false;
}


if ($this->config->get('config_review_status')) {
$rating = $product_info['rating'];
} else {
$rating = false;
}




                $additional_images = $this->model_catalog_product->getProductImages($product_id);


                $image2 = false;


                if (count($additional_images) > 0) {
                    $image2 = $this->model_tool_image->resize($additional_images[0]['image'], $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height'));
                }
            
$data['products'][] = array(
'product_id'  => $product_info['product_id'],
'thumb'       => $image,


                'thumb2'       => $image2,
            


                'labels'        => $this->model_journal2_product->getLabels($product_id),
            
'name'        => $product_info['name'],
'description' => utf8_substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..',
'price'       => $price,
'special'     => $special,
'tax'         => $tax,
'rating'      => $rating,
'href'        => $this->url->link('product/product', 'product_id=' . $product_info['product_id'])
);
}
}


if ($data['products']) {
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/featured.tpl')) {
return $this->load->view($this->config->get('config_template') . '/template/module/featured.tpl', $data);
} else {
return $this->load->view('default/template/module/featured.tpl', $data);
Ссылка на комментарий
Поделиться на других сайтах


27 $products = array_slice($setting['product'], 0, (int)$setting['limit']);

28

29foreach ($products as $product_id) {

30$product_info = $this->model_catalog_product->getProduct($product_id);
 
 
Ошибка где то тут????ПОМОГИТЕ
Ссылка на комментарий
Поделиться на других сайтах


Еще нашел файл htaccess в папке journal-cache там вот это :

 

RewriteEngine On
RewriteCond %{REQUEST_URI} !.*\.(js|css)
RewriteRule .* - [F]
 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* ../index.php?route=error/not_found [L]
 
может оно что мешает работать.Уточню сейчаас seo pro установлен
Изменено пользователем dupont89
Ссылка на комментарий
Поделиться на других сайтах


Создайте аккаунт или войдите в него для комментирования

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйтесь для получения аккаунта. Это просто!

Зарегистрировать аккаунт

Войти

Уже зарегистрированы? Войдите здесь.

Войти сейчас
 Поделиться

  • Сейчас на странице   0 пользователей

    • Нет пользователей, просматривающих эту страницу.
×
×
  • Создать...

Важная информация

На нашем сайте используются файлы cookie и происходит обработка некоторых персональных данных пользователей, чтобы улучшить пользовательский интерфейс. Чтобы узнать для чего и какие персональные данные мы обрабатываем перейдите по ссылке. Если Вы нажмете «Я даю согласие», это означает, что Вы понимаете и принимаете все условия, указанные в этом Уведомлении о Конфиденциальности.