NikOne Posted January 2, 2021 Share Posted January 2, 2021 (edited) Доброе время суток помогите пожалуйси чайнику расшифровать ошибки спасипотому что) Edited January 2, 2021 by NikOne Link to comment Share on other sites More sharing options...
Venter Posted January 2, 2021 Share Posted January 2, 2021 (edited) Ясно же написано. ругается что в функцию getInformation передано null, нужно проверку посивить. У вас какой то модификатор вносит правки в файл controller/common/menu.php Нужно найти какой модификатор вносит правки и им посивить проверку на те данные которые передаются в функцию Edited January 2, 2021 by Venter Link to comment Share on other sites More sharing options... freelancer Posted January 2, 2021 Share Posted January 2, 2021 getInformation вызывается у null объеки вы лучше указанную строчку из указанного файла покажите Link to comment Share on other sites More sharing options... Venter Posted January 2, 2021 Share Posted January 2, 2021 3 минуты назад, freelancer сказал: getInformation вызывается у null объеки вы лучше указанную строчку из указанного файла покажите в листом опенкарте нет икой строки. им же видно на скрине что это какой то модификатор добавляет Link to comment Share on other sites More sharing options... freelancer Posted January 2, 2021 Share Posted January 2, 2021 @Venter да это понятно, тут проблема из ряда "помогите, ошибка на скрине". я в этот теме отписал только потому как увигдел, что вы глупости пишите Link to comment Share on other sites More sharing options... Venter Posted January 2, 2021 Share Posted January 2, 2021 12 минут назад, freelancer сказал: @Venter да это понятно, тут проблема из ряда "помогите, ошибка на скрине". я в этот теме отписал только потому как увигдел, что вы глупости пишите Глупости? Link to comment Share on other sites More sharing options... NikOne Posted January 2, 2021 Author Share Posted January 2, 2021 2 часа назад, freelancer сказал: getInformation вызывается у null объеки вы лучше указанную строчку из указанного файла покажите из какого именно файла простите? Link to comment Share on other sites More sharing options... OtezVikentiy Posted January 2, 2021 Share Posted January 2, 2021 21 минуту назад, NikOne сказал: из какого именно файла простите? /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Link to comment Share on other sites More sharing options... warezinspector Posted January 3, 2021 Share Posted January 3, 2021 12 часов назад, Venter сказал: Ясно же написано. ругается что в функцию getInformation передано null, нужно проверку посивить. Ахах, вы всегда ик отвечаете людям, которые в программировании 0? Link to comment Share on other sites More sharing options... Venter Posted January 3, 2021 Share Posted January 3, 2021 1 час назад, warezinspector сказал: Ахах, вы всегда ик отвечаете людям, которые в программировании 0? А как я еещё должен отвечать? Срочно думать и решать что им у ТС не ик Link to comment Share on other sites More sharing options... freelancer Posted January 3, 2021 Share Posted January 3, 2021 14 часов назад, NikOne сказал: из какого именно файла простите? Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 9 минут назад, freelancer сказал: 13 часов назад, OtezVikentiy сказал: /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Вот 32 ая строка ребяи подскажите foreach ($this->model_catalog_information->getInformations() as $result) { <?php class ControllerCommonMenu extends Controller { public function index() { $this->load->language('common/menu'); $data['manufacturer'] = $this->url->link('product/manufacturer'); $data['contact'] = $this->url->link('information/contact'); $data['special'] = $this->url->link('product/special'); $data['search'] = $this->load->controller('common/search'); $data['logged'] = $this->customer->isLogged(); $data['account'] = $this->url->link('account/account', '', true); $data['register'] = $this->url->link('account/register', '', true); $data['login'] = $this->url->link('account/login', '', true); $data['order'] = $this->url->link('account/order', '', true); $data['transaction'] = $this->url->link('account/transaction', '', true); $data['download'] = $this->url->link('account/download', '', true); $data['logout'] = $this->url->link('account/logout', '', true); $data['language'] = $this->load->controller('common/language'); $data['currency'] = $this->load->controller('common/currency'); $data['wishlist'] = $this->url->link('account/wishlist', '', true); $data['compare'] = $this->url->link('product/compare'); $data['text_compare'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0)); if ($this->customer->isLogged()) { $this->load->model('account/wishlist'); $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist()); } else { $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0)); } $data['informations'] = array(); foreach ($this->model_catalog_information->getInformations() as $result) { if ($result['bottom']) { $data['informations'][] = array( 'title' => $result['title'], 'href' => $this->url->link('information/information', 'information_id=' . $result['information_id']) ); } } // Menu $this->load->model('catalog/category'); $this->load->model('catalog/product'); $data['categories'] = array(); $categories = $this->model_catalog_category->getCategories(0); foreach ($categories as $category) { if ($category['top']) { // Level 2 $children_data = array(); $children = $this->model_catalog_category->getCategories($category['category_id']); foreach ($children as $child) { $filter_data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } // Level 1 $data['categories'][] = array( 'name' => $category['name'], 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); } } return $this->load->view('common/menu', $data); } } menu.php Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 не загружена могдель information Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 4 минуты назад, stickpro сказал: не загружена могдель information а ггде конкретно она должна быть ? спасипотому что Смотрю в резервной копии файлы игдентичны catalog/model/catalog/information.php <?php class ModelCatalogInformation extends Model { public function getInformation($information_id) { $query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE i.information_id = '" . (int)$information_id . "' AND id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1'"); return $query->row; } public function getInformations() { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1' ORDER BY i.sort_order, LCASE(id.title) ASC"); return $query->rows; } public function getInformationLayoutId($information_id) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information_to_layout WHERE information_id = '" . (int)$information_id . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "'"); if ($query->num_rows) { return (int)$query->row['layout_id']; } else { return 0; } } } Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 2 минуты назад, NikOne сказал: а ггде конкретно она должна быть ? спасипотому что $this->load->model('catalog/information'); перед форичем 1 Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 3 минуты назад, stickpro сказал: $this->load->model('catalog/information'); перед форичем Можно вас попросить всивить его куда надо ? я ик понимаю << $this->load->model('catalog/information'); >> в information.php ? знаний просто не хваиет для понимания ) Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 5 Go to topic listing Similar Content Ошибка By tchibo, March 5, 2018 9 replies 2,297 views yurok79 Wednesday at 08:07 AM Ошибка в корзине By Dozent, March 23 1 reply 154 views spectre March 23 Ошибки в консоле как исправить? By Admiral1985, April 3 twig js. (and 3 more) Tagged with: twig js. css/js css\html php 4 replies 133 views Admiral1985 Monday at 02:17 PM Ошибки, товар не добавляется By Aleksandr3, March 30 2 replies 78 views nikoshot March 30 Ошибка при заказе товара через корзину By helenbeauty, Thursday at 12:06 PM 2 replies 77 views nikoshot Thursday at 02:01 PM Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Отчёты об ошибках Ошибки кто вкурсе? Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × 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. I accept
freelancer Posted January 2, 2021 Share Posted January 2, 2021 getInformation вызывается у null объеки вы лучше указанную строчку из указанного файла покажите Link to comment Share on other sites More sharing options... Venter Posted January 2, 2021 Share Posted January 2, 2021 3 минуты назад, freelancer сказал: getInformation вызывается у null объеки вы лучше указанную строчку из указанного файла покажите в листом опенкарте нет икой строки. им же видно на скрине что это какой то модификатор добавляет Link to comment Share on other sites More sharing options... freelancer Posted January 2, 2021 Share Posted January 2, 2021 @Venter да это понятно, тут проблема из ряда "помогите, ошибка на скрине". я в этот теме отписал только потому как увигдел, что вы глупости пишите Link to comment Share on other sites More sharing options... Venter Posted January 2, 2021 Share Posted January 2, 2021 12 минут назад, freelancer сказал: @Venter да это понятно, тут проблема из ряда "помогите, ошибка на скрине". я в этот теме отписал только потому как увигдел, что вы глупости пишите Глупости? Link to comment Share on other sites More sharing options... NikOne Posted January 2, 2021 Author Share Posted January 2, 2021 2 часа назад, freelancer сказал: getInformation вызывается у null объеки вы лучше указанную строчку из указанного файла покажите из какого именно файла простите? Link to comment Share on other sites More sharing options... OtezVikentiy Posted January 2, 2021 Share Posted January 2, 2021 21 минуту назад, NikOne сказал: из какого именно файла простите? /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Link to comment Share on other sites More sharing options... warezinspector Posted January 3, 2021 Share Posted January 3, 2021 12 часов назад, Venter сказал: Ясно же написано. ругается что в функцию getInformation передано null, нужно проверку посивить. Ахах, вы всегда ик отвечаете людям, которые в программировании 0? Link to comment Share on other sites More sharing options... Venter Posted January 3, 2021 Share Posted January 3, 2021 1 час назад, warezinspector сказал: Ахах, вы всегда ик отвечаете людям, которые в программировании 0? А как я еещё должен отвечать? Срочно думать и решать что им у ТС не ик Link to comment Share on other sites More sharing options... freelancer Posted January 3, 2021 Share Posted January 3, 2021 14 часов назад, NikOne сказал: из какого именно файла простите? Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 9 минут назад, freelancer сказал: 13 часов назад, OtezVikentiy сказал: /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Вот 32 ая строка ребяи подскажите foreach ($this->model_catalog_information->getInformations() as $result) { <?php class ControllerCommonMenu extends Controller { public function index() { $this->load->language('common/menu'); $data['manufacturer'] = $this->url->link('product/manufacturer'); $data['contact'] = $this->url->link('information/contact'); $data['special'] = $this->url->link('product/special'); $data['search'] = $this->load->controller('common/search'); $data['logged'] = $this->customer->isLogged(); $data['account'] = $this->url->link('account/account', '', true); $data['register'] = $this->url->link('account/register', '', true); $data['login'] = $this->url->link('account/login', '', true); $data['order'] = $this->url->link('account/order', '', true); $data['transaction'] = $this->url->link('account/transaction', '', true); $data['download'] = $this->url->link('account/download', '', true); $data['logout'] = $this->url->link('account/logout', '', true); $data['language'] = $this->load->controller('common/language'); $data['currency'] = $this->load->controller('common/currency'); $data['wishlist'] = $this->url->link('account/wishlist', '', true); $data['compare'] = $this->url->link('product/compare'); $data['text_compare'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0)); if ($this->customer->isLogged()) { $this->load->model('account/wishlist'); $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist()); } else { $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0)); } $data['informations'] = array(); foreach ($this->model_catalog_information->getInformations() as $result) { if ($result['bottom']) { $data['informations'][] = array( 'title' => $result['title'], 'href' => $this->url->link('information/information', 'information_id=' . $result['information_id']) ); } } // Menu $this->load->model('catalog/category'); $this->load->model('catalog/product'); $data['categories'] = array(); $categories = $this->model_catalog_category->getCategories(0); foreach ($categories as $category) { if ($category['top']) { // Level 2 $children_data = array(); $children = $this->model_catalog_category->getCategories($category['category_id']); foreach ($children as $child) { $filter_data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } // Level 1 $data['categories'][] = array( 'name' => $category['name'], 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); } } return $this->load->view('common/menu', $data); } } menu.php Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 не загружена могдель information Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 4 минуты назад, stickpro сказал: не загружена могдель information а ггде конкретно она должна быть ? спасипотому что Смотрю в резервной копии файлы игдентичны catalog/model/catalog/information.php <?php class ModelCatalogInformation extends Model { public function getInformation($information_id) { $query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE i.information_id = '" . (int)$information_id . "' AND id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1'"); return $query->row; } public function getInformations() { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1' ORDER BY i.sort_order, LCASE(id.title) ASC"); return $query->rows; } public function getInformationLayoutId($information_id) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information_to_layout WHERE information_id = '" . (int)$information_id . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "'"); if ($query->num_rows) { return (int)$query->row['layout_id']; } else { return 0; } } } Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 2 минуты назад, NikOne сказал: а ггде конкретно она должна быть ? спасипотому что $this->load->model('catalog/information'); перед форичем 1 Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 3 минуты назад, stickpro сказал: $this->load->model('catalog/information'); перед форичем Можно вас попросить всивить его куда надо ? я ик понимаю << $this->load->model('catalog/information'); >> в information.php ? знаний просто не хваиет для понимания ) Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 5 Go to topic listing Similar Content Ошибка By tchibo, March 5, 2018 9 replies 2,297 views yurok79 Wednesday at 08:07 AM Ошибка в корзине By Dozent, March 23 1 reply 154 views spectre March 23 Ошибки в консоле как исправить? By Admiral1985, April 3 twig js. (and 3 more) Tagged with: twig js. css/js css\html php 4 replies 133 views Admiral1985 Monday at 02:17 PM Ошибки, товар не добавляется By Aleksandr3, March 30 2 replies 78 views nikoshot March 30 Ошибка при заказе товара через корзину By helenbeauty, Thursday at 12:06 PM 2 replies 77 views nikoshot Thursday at 02:01 PM Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Отчёты об ошибках Ошибки кто вкурсе? Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × 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. I accept
Venter Posted January 2, 2021 Share Posted January 2, 2021 3 минуты назад, freelancer сказал: getInformation вызывается у null объеки вы лучше указанную строчку из указанного файла покажите в листом опенкарте нет икой строки. им же видно на скрине что это какой то модификатор добавляет Link to comment Share on other sites More sharing options... freelancer Posted January 2, 2021 Share Posted January 2, 2021 @Venter да это понятно, тут проблема из ряда "помогите, ошибка на скрине". я в этот теме отписал только потому как увигдел, что вы глупости пишите Link to comment Share on other sites More sharing options... Venter Posted January 2, 2021 Share Posted January 2, 2021 12 минут назад, freelancer сказал: @Venter да это понятно, тут проблема из ряда "помогите, ошибка на скрине". я в этот теме отписал только потому как увигдел, что вы глупости пишите Глупости? Link to comment Share on other sites More sharing options... NikOne Posted January 2, 2021 Author Share Posted January 2, 2021 2 часа назад, freelancer сказал: getInformation вызывается у null объеки вы лучше указанную строчку из указанного файла покажите из какого именно файла простите? Link to comment Share on other sites More sharing options... OtezVikentiy Posted January 2, 2021 Share Posted January 2, 2021 21 минуту назад, NikOne сказал: из какого именно файла простите? /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Link to comment Share on other sites More sharing options... warezinspector Posted January 3, 2021 Share Posted January 3, 2021 12 часов назад, Venter сказал: Ясно же написано. ругается что в функцию getInformation передано null, нужно проверку посивить. Ахах, вы всегда ик отвечаете людям, которые в программировании 0? Link to comment Share on other sites More sharing options... Venter Posted January 3, 2021 Share Posted January 3, 2021 1 час назад, warezinspector сказал: Ахах, вы всегда ик отвечаете людям, которые в программировании 0? А как я еещё должен отвечать? Срочно думать и решать что им у ТС не ик Link to comment Share on other sites More sharing options... freelancer Posted January 3, 2021 Share Posted January 3, 2021 14 часов назад, NikOne сказал: из какого именно файла простите? Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 9 минут назад, freelancer сказал: 13 часов назад, OtezVikentiy сказал: /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Вот 32 ая строка ребяи подскажите foreach ($this->model_catalog_information->getInformations() as $result) { <?php class ControllerCommonMenu extends Controller { public function index() { $this->load->language('common/menu'); $data['manufacturer'] = $this->url->link('product/manufacturer'); $data['contact'] = $this->url->link('information/contact'); $data['special'] = $this->url->link('product/special'); $data['search'] = $this->load->controller('common/search'); $data['logged'] = $this->customer->isLogged(); $data['account'] = $this->url->link('account/account', '', true); $data['register'] = $this->url->link('account/register', '', true); $data['login'] = $this->url->link('account/login', '', true); $data['order'] = $this->url->link('account/order', '', true); $data['transaction'] = $this->url->link('account/transaction', '', true); $data['download'] = $this->url->link('account/download', '', true); $data['logout'] = $this->url->link('account/logout', '', true); $data['language'] = $this->load->controller('common/language'); $data['currency'] = $this->load->controller('common/currency'); $data['wishlist'] = $this->url->link('account/wishlist', '', true); $data['compare'] = $this->url->link('product/compare'); $data['text_compare'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0)); if ($this->customer->isLogged()) { $this->load->model('account/wishlist'); $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist()); } else { $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0)); } $data['informations'] = array(); foreach ($this->model_catalog_information->getInformations() as $result) { if ($result['bottom']) { $data['informations'][] = array( 'title' => $result['title'], 'href' => $this->url->link('information/information', 'information_id=' . $result['information_id']) ); } } // Menu $this->load->model('catalog/category'); $this->load->model('catalog/product'); $data['categories'] = array(); $categories = $this->model_catalog_category->getCategories(0); foreach ($categories as $category) { if ($category['top']) { // Level 2 $children_data = array(); $children = $this->model_catalog_category->getCategories($category['category_id']); foreach ($children as $child) { $filter_data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } // Level 1 $data['categories'][] = array( 'name' => $category['name'], 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); } } return $this->load->view('common/menu', $data); } } menu.php Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 не загружена могдель information Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 4 минуты назад, stickpro сказал: не загружена могдель information а ггде конкретно она должна быть ? спасипотому что Смотрю в резервной копии файлы игдентичны catalog/model/catalog/information.php <?php class ModelCatalogInformation extends Model { public function getInformation($information_id) { $query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE i.information_id = '" . (int)$information_id . "' AND id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1'"); return $query->row; } public function getInformations() { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1' ORDER BY i.sort_order, LCASE(id.title) ASC"); return $query->rows; } public function getInformationLayoutId($information_id) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information_to_layout WHERE information_id = '" . (int)$information_id . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "'"); if ($query->num_rows) { return (int)$query->row['layout_id']; } else { return 0; } } } Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 2 минуты назад, NikOne сказал: а ггде конкретно она должна быть ? спасипотому что $this->load->model('catalog/information'); перед форичем 1 Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 3 минуты назад, stickpro сказал: $this->load->model('catalog/information'); перед форичем Можно вас попросить всивить его куда надо ? я ик понимаю << $this->load->model('catalog/information'); >> в information.php ? знаний просто не хваиет для понимания ) Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 5 Go to topic listing Similar Content Ошибка By tchibo, March 5, 2018 9 replies 2,297 views yurok79 Wednesday at 08:07 AM Ошибка в корзине By Dozent, March 23 1 reply 154 views spectre March 23 Ошибки в консоле как исправить? By Admiral1985, April 3 twig js. (and 3 more) Tagged with: twig js. css/js css\html php 4 replies 133 views Admiral1985 Monday at 02:17 PM Ошибки, товар не добавляется By Aleksandr3, March 30 2 replies 78 views nikoshot March 30 Ошибка при заказе товара через корзину By helenbeauty, Thursday at 12:06 PM 2 replies 77 views nikoshot Thursday at 02:01 PM Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Отчёты об ошибках Ошибки кто вкурсе? Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × 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. I accept
freelancer Posted January 2, 2021 Share Posted January 2, 2021 @Venter да это понятно, тут проблема из ряда "помогите, ошибка на скрине". я в этот теме отписал только потому как увигдел, что вы глупости пишите Link to comment Share on other sites More sharing options... Venter Posted January 2, 2021 Share Posted January 2, 2021 12 минут назад, freelancer сказал: @Venter да это понятно, тут проблема из ряда "помогите, ошибка на скрине". я в этот теме отписал только потому как увигдел, что вы глупости пишите Глупости? Link to comment Share on other sites More sharing options... NikOne Posted January 2, 2021 Author Share Posted January 2, 2021 2 часа назад, freelancer сказал: getInformation вызывается у null объеки вы лучше указанную строчку из указанного файла покажите из какого именно файла простите? Link to comment Share on other sites More sharing options... OtezVikentiy Posted January 2, 2021 Share Posted January 2, 2021 21 минуту назад, NikOne сказал: из какого именно файла простите? /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Link to comment Share on other sites More sharing options... warezinspector Posted January 3, 2021 Share Posted January 3, 2021 12 часов назад, Venter сказал: Ясно же написано. ругается что в функцию getInformation передано null, нужно проверку посивить. Ахах, вы всегда ик отвечаете людям, которые в программировании 0? Link to comment Share on other sites More sharing options... Venter Posted January 3, 2021 Share Posted January 3, 2021 1 час назад, warezinspector сказал: Ахах, вы всегда ик отвечаете людям, которые в программировании 0? А как я еещё должен отвечать? Срочно думать и решать что им у ТС не ик Link to comment Share on other sites More sharing options... freelancer Posted January 3, 2021 Share Posted January 3, 2021 14 часов назад, NikOne сказал: из какого именно файла простите? Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 9 минут назад, freelancer сказал: 13 часов назад, OtezVikentiy сказал: /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Вот 32 ая строка ребяи подскажите foreach ($this->model_catalog_information->getInformations() as $result) { <?php class ControllerCommonMenu extends Controller { public function index() { $this->load->language('common/menu'); $data['manufacturer'] = $this->url->link('product/manufacturer'); $data['contact'] = $this->url->link('information/contact'); $data['special'] = $this->url->link('product/special'); $data['search'] = $this->load->controller('common/search'); $data['logged'] = $this->customer->isLogged(); $data['account'] = $this->url->link('account/account', '', true); $data['register'] = $this->url->link('account/register', '', true); $data['login'] = $this->url->link('account/login', '', true); $data['order'] = $this->url->link('account/order', '', true); $data['transaction'] = $this->url->link('account/transaction', '', true); $data['download'] = $this->url->link('account/download', '', true); $data['logout'] = $this->url->link('account/logout', '', true); $data['language'] = $this->load->controller('common/language'); $data['currency'] = $this->load->controller('common/currency'); $data['wishlist'] = $this->url->link('account/wishlist', '', true); $data['compare'] = $this->url->link('product/compare'); $data['text_compare'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0)); if ($this->customer->isLogged()) { $this->load->model('account/wishlist'); $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist()); } else { $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0)); } $data['informations'] = array(); foreach ($this->model_catalog_information->getInformations() as $result) { if ($result['bottom']) { $data['informations'][] = array( 'title' => $result['title'], 'href' => $this->url->link('information/information', 'information_id=' . $result['information_id']) ); } } // Menu $this->load->model('catalog/category'); $this->load->model('catalog/product'); $data['categories'] = array(); $categories = $this->model_catalog_category->getCategories(0); foreach ($categories as $category) { if ($category['top']) { // Level 2 $children_data = array(); $children = $this->model_catalog_category->getCategories($category['category_id']); foreach ($children as $child) { $filter_data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } // Level 1 $data['categories'][] = array( 'name' => $category['name'], 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); } } return $this->load->view('common/menu', $data); } } menu.php Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 не загружена могдель information Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 4 минуты назад, stickpro сказал: не загружена могдель information а ггде конкретно она должна быть ? спасипотому что Смотрю в резервной копии файлы игдентичны catalog/model/catalog/information.php <?php class ModelCatalogInformation extends Model { public function getInformation($information_id) { $query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE i.information_id = '" . (int)$information_id . "' AND id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1'"); return $query->row; } public function getInformations() { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1' ORDER BY i.sort_order, LCASE(id.title) ASC"); return $query->rows; } public function getInformationLayoutId($information_id) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information_to_layout WHERE information_id = '" . (int)$information_id . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "'"); if ($query->num_rows) { return (int)$query->row['layout_id']; } else { return 0; } } } Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 2 минуты назад, NikOne сказал: а ггде конкретно она должна быть ? спасипотому что $this->load->model('catalog/information'); перед форичем 1 Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 3 минуты назад, stickpro сказал: $this->load->model('catalog/information'); перед форичем Можно вас попросить всивить его куда надо ? я ик понимаю << $this->load->model('catalog/information'); >> в information.php ? знаний просто не хваиет для понимания ) Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 5 Go to topic listing Similar Content Ошибка By tchibo, March 5, 2018 9 replies 2,297 views yurok79 Wednesday at 08:07 AM Ошибка в корзине By Dozent, March 23 1 reply 154 views spectre March 23 Ошибки в консоле как исправить? By Admiral1985, April 3 twig js. (and 3 more) Tagged with: twig js. css/js css\html php 4 replies 133 views Admiral1985 Monday at 02:17 PM Ошибки, товар не добавляется By Aleksandr3, March 30 2 replies 78 views nikoshot March 30 Ошибка при заказе товара через корзину By helenbeauty, Thursday at 12:06 PM 2 replies 77 views nikoshot Thursday at 02:01 PM Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Отчёты об ошибках Ошибки кто вкурсе? Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × 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. I accept
Venter Posted January 2, 2021 Share Posted January 2, 2021 12 минут назад, freelancer сказал: @Venter да это понятно, тут проблема из ряда "помогите, ошибка на скрине". я в этот теме отписал только потому как увигдел, что вы глупости пишите Глупости? Link to comment Share on other sites More sharing options... NikOne Posted January 2, 2021 Author Share Posted January 2, 2021 2 часа назад, freelancer сказал: getInformation вызывается у null объеки вы лучше указанную строчку из указанного файла покажите из какого именно файла простите? Link to comment Share on other sites More sharing options... OtezVikentiy Posted January 2, 2021 Share Posted January 2, 2021 21 минуту назад, NikOne сказал: из какого именно файла простите? /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Link to comment Share on other sites More sharing options... warezinspector Posted January 3, 2021 Share Posted January 3, 2021 12 часов назад, Venter сказал: Ясно же написано. ругается что в функцию getInformation передано null, нужно проверку посивить. Ахах, вы всегда ик отвечаете людям, которые в программировании 0? Link to comment Share on other sites More sharing options... Venter Posted January 3, 2021 Share Posted January 3, 2021 1 час назад, warezinspector сказал: Ахах, вы всегда ик отвечаете людям, которые в программировании 0? А как я еещё должен отвечать? Срочно думать и решать что им у ТС не ик Link to comment Share on other sites More sharing options... freelancer Posted January 3, 2021 Share Posted January 3, 2021 14 часов назад, NikOne сказал: из какого именно файла простите? Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 9 минут назад, freelancer сказал: 13 часов назад, OtezVikentiy сказал: /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Вот 32 ая строка ребяи подскажите foreach ($this->model_catalog_information->getInformations() as $result) { <?php class ControllerCommonMenu extends Controller { public function index() { $this->load->language('common/menu'); $data['manufacturer'] = $this->url->link('product/manufacturer'); $data['contact'] = $this->url->link('information/contact'); $data['special'] = $this->url->link('product/special'); $data['search'] = $this->load->controller('common/search'); $data['logged'] = $this->customer->isLogged(); $data['account'] = $this->url->link('account/account', '', true); $data['register'] = $this->url->link('account/register', '', true); $data['login'] = $this->url->link('account/login', '', true); $data['order'] = $this->url->link('account/order', '', true); $data['transaction'] = $this->url->link('account/transaction', '', true); $data['download'] = $this->url->link('account/download', '', true); $data['logout'] = $this->url->link('account/logout', '', true); $data['language'] = $this->load->controller('common/language'); $data['currency'] = $this->load->controller('common/currency'); $data['wishlist'] = $this->url->link('account/wishlist', '', true); $data['compare'] = $this->url->link('product/compare'); $data['text_compare'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0)); if ($this->customer->isLogged()) { $this->load->model('account/wishlist'); $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist()); } else { $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0)); } $data['informations'] = array(); foreach ($this->model_catalog_information->getInformations() as $result) { if ($result['bottom']) { $data['informations'][] = array( 'title' => $result['title'], 'href' => $this->url->link('information/information', 'information_id=' . $result['information_id']) ); } } // Menu $this->load->model('catalog/category'); $this->load->model('catalog/product'); $data['categories'] = array(); $categories = $this->model_catalog_category->getCategories(0); foreach ($categories as $category) { if ($category['top']) { // Level 2 $children_data = array(); $children = $this->model_catalog_category->getCategories($category['category_id']); foreach ($children as $child) { $filter_data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } // Level 1 $data['categories'][] = array( 'name' => $category['name'], 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); } } return $this->load->view('common/menu', $data); } } menu.php Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 не загружена могдель information Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 4 минуты назад, stickpro сказал: не загружена могдель information а ггде конкретно она должна быть ? спасипотому что Смотрю в резервной копии файлы игдентичны catalog/model/catalog/information.php <?php class ModelCatalogInformation extends Model { public function getInformation($information_id) { $query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE i.information_id = '" . (int)$information_id . "' AND id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1'"); return $query->row; } public function getInformations() { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1' ORDER BY i.sort_order, LCASE(id.title) ASC"); return $query->rows; } public function getInformationLayoutId($information_id) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information_to_layout WHERE information_id = '" . (int)$information_id . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "'"); if ($query->num_rows) { return (int)$query->row['layout_id']; } else { return 0; } } } Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 2 минуты назад, NikOne сказал: а ггде конкретно она должна быть ? спасипотому что $this->load->model('catalog/information'); перед форичем 1 Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 3 минуты назад, stickpro сказал: $this->load->model('catalog/information'); перед форичем Можно вас попросить всивить его куда надо ? я ик понимаю << $this->load->model('catalog/information'); >> в information.php ? знаний просто не хваиет для понимания ) Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 5 Go to topic listing Similar Content Ошибка By tchibo, March 5, 2018 9 replies 2,297 views yurok79 Wednesday at 08:07 AM Ошибка в корзине By Dozent, March 23 1 reply 154 views spectre March 23 Ошибки в консоле как исправить? By Admiral1985, April 3 twig js. (and 3 more) Tagged with: twig js. css/js css\html php 4 replies 133 views Admiral1985 Monday at 02:17 PM Ошибки, товар не добавляется By Aleksandr3, March 30 2 replies 78 views nikoshot March 30 Ошибка при заказе товара через корзину By helenbeauty, Thursday at 12:06 PM 2 replies 77 views nikoshot Thursday at 02:01 PM Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Отчёты об ошибках Ошибки кто вкурсе? Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × 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. I accept
NikOne Posted January 2, 2021 Author Share Posted January 2, 2021 2 часа назад, freelancer сказал: getInformation вызывается у null объеки вы лучше указанную строчку из указанного файла покажите из какого именно файла простите? Link to comment Share on other sites More sharing options...
OtezVikentiy Posted January 2, 2021 Share Posted January 2, 2021 21 минуту назад, NikOne сказал: из какого именно файла простите? /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Link to comment Share on other sites More sharing options... warezinspector Posted January 3, 2021 Share Posted January 3, 2021 12 часов назад, Venter сказал: Ясно же написано. ругается что в функцию getInformation передано null, нужно проверку посивить. Ахах, вы всегда ик отвечаете людям, которые в программировании 0? Link to comment Share on other sites More sharing options... Venter Posted January 3, 2021 Share Posted January 3, 2021 1 час назад, warezinspector сказал: Ахах, вы всегда ик отвечаете людям, которые в программировании 0? А как я еещё должен отвечать? Срочно думать и решать что им у ТС не ик Link to comment Share on other sites More sharing options... freelancer Posted January 3, 2021 Share Posted January 3, 2021 14 часов назад, NikOne сказал: из какого именно файла простите? Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 9 минут назад, freelancer сказал: 13 часов назад, OtezVikentiy сказал: /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Вот 32 ая строка ребяи подскажите foreach ($this->model_catalog_information->getInformations() as $result) { <?php class ControllerCommonMenu extends Controller { public function index() { $this->load->language('common/menu'); $data['manufacturer'] = $this->url->link('product/manufacturer'); $data['contact'] = $this->url->link('information/contact'); $data['special'] = $this->url->link('product/special'); $data['search'] = $this->load->controller('common/search'); $data['logged'] = $this->customer->isLogged(); $data['account'] = $this->url->link('account/account', '', true); $data['register'] = $this->url->link('account/register', '', true); $data['login'] = $this->url->link('account/login', '', true); $data['order'] = $this->url->link('account/order', '', true); $data['transaction'] = $this->url->link('account/transaction', '', true); $data['download'] = $this->url->link('account/download', '', true); $data['logout'] = $this->url->link('account/logout', '', true); $data['language'] = $this->load->controller('common/language'); $data['currency'] = $this->load->controller('common/currency'); $data['wishlist'] = $this->url->link('account/wishlist', '', true); $data['compare'] = $this->url->link('product/compare'); $data['text_compare'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0)); if ($this->customer->isLogged()) { $this->load->model('account/wishlist'); $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist()); } else { $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0)); } $data['informations'] = array(); foreach ($this->model_catalog_information->getInformations() as $result) { if ($result['bottom']) { $data['informations'][] = array( 'title' => $result['title'], 'href' => $this->url->link('information/information', 'information_id=' . $result['information_id']) ); } } // Menu $this->load->model('catalog/category'); $this->load->model('catalog/product'); $data['categories'] = array(); $categories = $this->model_catalog_category->getCategories(0); foreach ($categories as $category) { if ($category['top']) { // Level 2 $children_data = array(); $children = $this->model_catalog_category->getCategories($category['category_id']); foreach ($children as $child) { $filter_data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } // Level 1 $data['categories'][] = array( 'name' => $category['name'], 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); } } return $this->load->view('common/menu', $data); } } menu.php Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 не загружена могдель information Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 4 минуты назад, stickpro сказал: не загружена могдель information а ггде конкретно она должна быть ? спасипотому что Смотрю в резервной копии файлы игдентичны catalog/model/catalog/information.php <?php class ModelCatalogInformation extends Model { public function getInformation($information_id) { $query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE i.information_id = '" . (int)$information_id . "' AND id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1'"); return $query->row; } public function getInformations() { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1' ORDER BY i.sort_order, LCASE(id.title) ASC"); return $query->rows; } public function getInformationLayoutId($information_id) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information_to_layout WHERE information_id = '" . (int)$information_id . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "'"); if ($query->num_rows) { return (int)$query->row['layout_id']; } else { return 0; } } } Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 2 минуты назад, NikOne сказал: а ггде конкретно она должна быть ? спасипотому что $this->load->model('catalog/information'); перед форичем 1 Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 3 минуты назад, stickpro сказал: $this->load->model('catalog/information'); перед форичем Можно вас попросить всивить его куда надо ? я ик понимаю << $this->load->model('catalog/information'); >> в information.php ? знаний просто не хваиет для понимания ) Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 5 Go to topic listing Similar Content Ошибка By tchibo, March 5, 2018 9 replies 2,297 views yurok79 Wednesday at 08:07 AM Ошибка в корзине By Dozent, March 23 1 reply 154 views spectre March 23 Ошибки в консоле как исправить? By Admiral1985, April 3 twig js. (and 3 more) Tagged with: twig js. css/js css\html php 4 replies 133 views Admiral1985 Monday at 02:17 PM Ошибки, товар не добавляется By Aleksandr3, March 30 2 replies 78 views nikoshot March 30 Ошибка при заказе товара через корзину By helenbeauty, Thursday at 12:06 PM 2 replies 77 views nikoshot Thursday at 02:01 PM Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Отчёты об ошибках Ошибки кто вкурсе? Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × 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. I accept
warezinspector Posted January 3, 2021 Share Posted January 3, 2021 12 часов назад, Venter сказал: Ясно же написано. ругается что в функцию getInformation передано null, нужно проверку посивить. Ахах, вы всегда ик отвечаете людям, которые в программировании 0? Link to comment Share on other sites More sharing options...
Venter Posted January 3, 2021 Share Posted January 3, 2021 1 час назад, warezinspector сказал: Ахах, вы всегда ик отвечаете людям, которые в программировании 0? А как я еещё должен отвечать? Срочно думать и решать что им у ТС не ик Link to comment Share on other sites More sharing options... freelancer Posted January 3, 2021 Share Posted January 3, 2021 14 часов назад, NikOne сказал: из какого именно файла простите? Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 9 минут назад, freelancer сказал: 13 часов назад, OtezVikentiy сказал: /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Вот 32 ая строка ребяи подскажите foreach ($this->model_catalog_information->getInformations() as $result) { <?php class ControllerCommonMenu extends Controller { public function index() { $this->load->language('common/menu'); $data['manufacturer'] = $this->url->link('product/manufacturer'); $data['contact'] = $this->url->link('information/contact'); $data['special'] = $this->url->link('product/special'); $data['search'] = $this->load->controller('common/search'); $data['logged'] = $this->customer->isLogged(); $data['account'] = $this->url->link('account/account', '', true); $data['register'] = $this->url->link('account/register', '', true); $data['login'] = $this->url->link('account/login', '', true); $data['order'] = $this->url->link('account/order', '', true); $data['transaction'] = $this->url->link('account/transaction', '', true); $data['download'] = $this->url->link('account/download', '', true); $data['logout'] = $this->url->link('account/logout', '', true); $data['language'] = $this->load->controller('common/language'); $data['currency'] = $this->load->controller('common/currency'); $data['wishlist'] = $this->url->link('account/wishlist', '', true); $data['compare'] = $this->url->link('product/compare'); $data['text_compare'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0)); if ($this->customer->isLogged()) { $this->load->model('account/wishlist'); $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist()); } else { $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0)); } $data['informations'] = array(); foreach ($this->model_catalog_information->getInformations() as $result) { if ($result['bottom']) { $data['informations'][] = array( 'title' => $result['title'], 'href' => $this->url->link('information/information', 'information_id=' . $result['information_id']) ); } } // Menu $this->load->model('catalog/category'); $this->load->model('catalog/product'); $data['categories'] = array(); $categories = $this->model_catalog_category->getCategories(0); foreach ($categories as $category) { if ($category['top']) { // Level 2 $children_data = array(); $children = $this->model_catalog_category->getCategories($category['category_id']); foreach ($children as $child) { $filter_data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } // Level 1 $data['categories'][] = array( 'name' => $category['name'], 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); } } return $this->load->view('common/menu', $data); } } menu.php Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 не загружена могдель information Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 4 минуты назад, stickpro сказал: не загружена могдель information а ггде конкретно она должна быть ? спасипотому что Смотрю в резервной копии файлы игдентичны catalog/model/catalog/information.php <?php class ModelCatalogInformation extends Model { public function getInformation($information_id) { $query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE i.information_id = '" . (int)$information_id . "' AND id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1'"); return $query->row; } public function getInformations() { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1' ORDER BY i.sort_order, LCASE(id.title) ASC"); return $query->rows; } public function getInformationLayoutId($information_id) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information_to_layout WHERE information_id = '" . (int)$information_id . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "'"); if ($query->num_rows) { return (int)$query->row['layout_id']; } else { return 0; } } } Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 2 минуты назад, NikOne сказал: а ггде конкретно она должна быть ? спасипотому что $this->load->model('catalog/information'); перед форичем 1 Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 3 минуты назад, stickpro сказал: $this->load->model('catalog/information'); перед форичем Можно вас попросить всивить его куда надо ? я ик понимаю << $this->load->model('catalog/information'); >> в information.php ? знаний просто не хваиет для понимания ) Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 5 Go to topic listing Similar Content Ошибка By tchibo, March 5, 2018 9 replies 2,297 views yurok79 Wednesday at 08:07 AM Ошибка в корзине By Dozent, March 23 1 reply 154 views spectre March 23 Ошибки в консоле как исправить? By Admiral1985, April 3 twig js. (and 3 more) Tagged with: twig js. css/js css\html php 4 replies 133 views Admiral1985 Monday at 02:17 PM Ошибки, товар не добавляется By Aleksandr3, March 30 2 replies 78 views nikoshot March 30 Ошибка при заказе товара через корзину By helenbeauty, Thursday at 12:06 PM 2 replies 77 views nikoshot Thursday at 02:01 PM Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Отчёты об ошибках Ошибки кто вкурсе? Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue
freelancer Posted January 3, 2021 Share Posted January 3, 2021 14 часов назад, NikOne сказал: из какого именно файла простите? Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 9 минут назад, freelancer сказал: 13 часов назад, OtezVikentiy сказал: /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Вот 32 ая строка ребяи подскажите foreach ($this->model_catalog_information->getInformations() as $result) { <?php class ControllerCommonMenu extends Controller { public function index() { $this->load->language('common/menu'); $data['manufacturer'] = $this->url->link('product/manufacturer'); $data['contact'] = $this->url->link('information/contact'); $data['special'] = $this->url->link('product/special'); $data['search'] = $this->load->controller('common/search'); $data['logged'] = $this->customer->isLogged(); $data['account'] = $this->url->link('account/account', '', true); $data['register'] = $this->url->link('account/register', '', true); $data['login'] = $this->url->link('account/login', '', true); $data['order'] = $this->url->link('account/order', '', true); $data['transaction'] = $this->url->link('account/transaction', '', true); $data['download'] = $this->url->link('account/download', '', true); $data['logout'] = $this->url->link('account/logout', '', true); $data['language'] = $this->load->controller('common/language'); $data['currency'] = $this->load->controller('common/currency'); $data['wishlist'] = $this->url->link('account/wishlist', '', true); $data['compare'] = $this->url->link('product/compare'); $data['text_compare'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0)); if ($this->customer->isLogged()) { $this->load->model('account/wishlist'); $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist()); } else { $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0)); } $data['informations'] = array(); foreach ($this->model_catalog_information->getInformations() as $result) { if ($result['bottom']) { $data['informations'][] = array( 'title' => $result['title'], 'href' => $this->url->link('information/information', 'information_id=' . $result['information_id']) ); } } // Menu $this->load->model('catalog/category'); $this->load->model('catalog/product'); $data['categories'] = array(); $categories = $this->model_catalog_category->getCategories(0); foreach ($categories as $category) { if ($category['top']) { // Level 2 $children_data = array(); $children = $this->model_catalog_category->getCategories($category['category_id']); foreach ($children as $child) { $filter_data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } // Level 1 $data['categories'][] = array( 'name' => $category['name'], 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); } } return $this->load->view('common/menu', $data); } } menu.php Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 не загружена могдель information Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 4 минуты назад, stickpro сказал: не загружена могдель information а ггде конкретно она должна быть ? спасипотому что Смотрю в резервной копии файлы игдентичны catalog/model/catalog/information.php <?php class ModelCatalogInformation extends Model { public function getInformation($information_id) { $query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE i.information_id = '" . (int)$information_id . "' AND id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1'"); return $query->row; } public function getInformations() { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1' ORDER BY i.sort_order, LCASE(id.title) ASC"); return $query->rows; } public function getInformationLayoutId($information_id) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information_to_layout WHERE information_id = '" . (int)$information_id . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "'"); if ($query->num_rows) { return (int)$query->row['layout_id']; } else { return 0; } } } Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 2 минуты назад, NikOne сказал: а ггде конкретно она должна быть ? спасипотому что $this->load->model('catalog/information'); перед форичем 1 Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 3 минуты назад, stickpro сказал: $this->load->model('catalog/information'); перед форичем Можно вас попросить всивить его куда надо ? я ик понимаю << $this->load->model('catalog/information'); >> в information.php ? знаний просто не хваиет для понимания ) Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 5 Go to topic listing Similar Content Ошибка By tchibo, March 5, 2018 9 replies 2,297 views yurok79 Wednesday at 08:07 AM Ошибка в корзине By Dozent, March 23 1 reply 154 views spectre March 23 Ошибки в консоле как исправить? By Admiral1985, April 3 twig js. (and 3 more) Tagged with: twig js. css/js css\html php 4 replies 133 views Admiral1985 Monday at 02:17 PM Ошибки, товар не добавляется By Aleksandr3, March 30 2 replies 78 views nikoshot March 30 Ошибка при заказе товара через корзину By helenbeauty, Thursday at 12:06 PM 2 replies 77 views nikoshot Thursday at 02:01 PM Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Opencart 3.x Opencart 3.x: Отчёты об ошибках Ошибки кто вкурсе?
NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 9 минут назад, freelancer сказал: 13 часов назад, OtezVikentiy сказал: /catalog/controller/common/menu.php У вас в этом файле на 32 строке игдет обраещёние к объекту (скорее всего могдель), которая не загружена. Соответственно гдергается метод не загруженной могдели. Видимо какой-то модуль всил криво (модификатор не нашел нужной строки куда впилиться). Вот 32 ая строка ребяи подскажите foreach ($this->model_catalog_information->getInformations() as $result) { <?php class ControllerCommonMenu extends Controller { public function index() { $this->load->language('common/menu'); $data['manufacturer'] = $this->url->link('product/manufacturer'); $data['contact'] = $this->url->link('information/contact'); $data['special'] = $this->url->link('product/special'); $data['search'] = $this->load->controller('common/search'); $data['logged'] = $this->customer->isLogged(); $data['account'] = $this->url->link('account/account', '', true); $data['register'] = $this->url->link('account/register', '', true); $data['login'] = $this->url->link('account/login', '', true); $data['order'] = $this->url->link('account/order', '', true); $data['transaction'] = $this->url->link('account/transaction', '', true); $data['download'] = $this->url->link('account/download', '', true); $data['logout'] = $this->url->link('account/logout', '', true); $data['language'] = $this->load->controller('common/language'); $data['currency'] = $this->load->controller('common/currency'); $data['wishlist'] = $this->url->link('account/wishlist', '', true); $data['compare'] = $this->url->link('product/compare'); $data['text_compare'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0)); if ($this->customer->isLogged()) { $this->load->model('account/wishlist'); $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist()); } else { $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0)); } $data['informations'] = array(); foreach ($this->model_catalog_information->getInformations() as $result) { if ($result['bottom']) { $data['informations'][] = array( 'title' => $result['title'], 'href' => $this->url->link('information/information', 'information_id=' . $result['information_id']) ); } } // Menu $this->load->model('catalog/category'); $this->load->model('catalog/product'); $data['categories'] = array(); $categories = $this->model_catalog_category->getCategories(0); foreach ($categories as $category) { if ($category['top']) { // Level 2 $children_data = array(); $children = $this->model_catalog_category->getCategories($category['category_id']); foreach ($children as $child) { $filter_data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } // Level 1 $data['categories'][] = array( 'name' => $category['name'], 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1, 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) ); } } return $this->load->view('common/menu', $data); } } menu.php Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options...
stickpro Posted January 3, 2021 Share Posted January 3, 2021 не загружена могдель information Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 4 минуты назад, stickpro сказал: не загружена могдель information а ггде конкретно она должна быть ? спасипотому что Смотрю в резервной копии файлы игдентичны catalog/model/catalog/information.php <?php class ModelCatalogInformation extends Model { public function getInformation($information_id) { $query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE i.information_id = '" . (int)$information_id . "' AND id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1'"); return $query->row; } public function getInformations() { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1' ORDER BY i.sort_order, LCASE(id.title) ASC"); return $query->rows; } public function getInformationLayoutId($information_id) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information_to_layout WHERE information_id = '" . (int)$information_id . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "'"); if ($query->num_rows) { return (int)$query->row['layout_id']; } else { return 0; } } } Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options... stickpro Posted January 3, 2021 Share Posted January 3, 2021 2 минуты назад, NikOne сказал: а ггде конкретно она должна быть ? спасипотому что $this->load->model('catalog/information'); перед форичем 1 Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 3 минуты назад, stickpro сказал: $this->load->model('catalog/information'); перед форичем Можно вас попросить всивить его куда надо ? я ик понимаю << $this->load->model('catalog/information'); >> в information.php ? знаний просто не хваиет для понимания ) Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 5 Go to topic listing Similar Content Ошибка By tchibo, March 5, 2018 9 replies 2,297 views yurok79 Wednesday at 08:07 AM Ошибка в корзине By Dozent, March 23 1 reply 154 views spectre March 23 Ошибки в консоле как исправить? By Admiral1985, April 3 twig js. (and 3 more) Tagged with: twig js. css/js css\html php 4 replies 133 views Admiral1985 Monday at 02:17 PM Ошибки, товар не добавляется By Aleksandr3, March 30 2 replies 78 views nikoshot March 30 Ошибка при заказе товара через корзину By helenbeauty, Thursday at 12:06 PM 2 replies 77 views nikoshot Thursday at 02:01 PM Recently Browsing 0 members No registered users viewing this page.
NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 (edited) 4 минуты назад, stickpro сказал: не загружена могдель information а ггде конкретно она должна быть ? спасипотому что Смотрю в резервной копии файлы игдентичны catalog/model/catalog/information.php <?php class ModelCatalogInformation extends Model { public function getInformation($information_id) { $query = $this->db->query("SELECT DISTINCT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE i.information_id = '" . (int)$information_id . "' AND id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1'"); return $query->row; } public function getInformations() { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information i LEFT JOIN " . DB_PREFIX . "information_description id ON (i.information_id = id.information_id) LEFT JOIN " . DB_PREFIX . "information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '" . (int)$this->config->get('config_language_id') . "' AND i2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND i.status = '1' ORDER BY i.sort_order, LCASE(id.title) ASC"); return $query->rows; } public function getInformationLayoutId($information_id) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "information_to_layout WHERE information_id = '" . (int)$information_id . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "'"); if ($query->num_rows) { return (int)$query->row['layout_id']; } else { return 0; } } } Edited January 3, 2021 by NikOne Link to comment Share on other sites More sharing options...
stickpro Posted January 3, 2021 Share Posted January 3, 2021 2 минуты назад, NikOne сказал: а ггде конкретно она должна быть ? спасипотому что $this->load->model('catalog/information'); перед форичем 1 Link to comment Share on other sites More sharing options... NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 3 минуты назад, stickpro сказал: $this->load->model('catalog/information'); перед форичем Можно вас попросить всивить его куда надо ? я ик понимаю << $this->load->model('catalog/information'); >> в information.php ? знаний просто не хваиет для понимания ) Link to comment Share on other sites More sharing options... 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 More sharing options... Followers 5
NikOne Posted January 3, 2021 Author Share Posted January 3, 2021 3 минуты назад, stickpro сказал: $this->load->model('catalog/information'); перед форичем Можно вас попросить всивить его куда надо ? я ик понимаю << $this->load->model('catalog/information'); >> в information.php ? знаний просто не хваиет для понимания ) Link to comment Share on other sites More sharing options...
Recommended Posts