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

DenPo

Новачок
  
  • Публікації

    38
  • З нами

  • Відвідування

Усі публікації користувача DenPo

  1. Спасибо, ошибка пропала. Есть еще одна, правда она появилась до изменений... тоже последняя строчка. PHP Warning: unlink(/var/www/vhosts/demo.com/storage/cache/cache.catalog.language.1625743068): No such file or directory in /var/www/vhosts/demo.com/httpdocs/system/library/cache/file.php on line 68 <?php namespace Cache; class File { private $expire; public function __construct($expire = 3600) { $this->expire = $expire; $files = glob(DIR_CACHE . 'cache.*'); if ($files) { foreach ($files as $file) { $time = substr(strrchr($file, '.'), 1); if ($time < time()) { if (file_exists($file)) { unlink($file); } } } } } public function get($key) { $files = glob(DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\._-]/i', '', $key) . '.*'); if ($files) { $handle = fopen($files[0], 'r'); flock($handle, LOCK_SH); $data = fread($handle, filesize($files[0])); flock($handle, LOCK_UN); fclose($handle); return json_decode($data, true); } return false; } public function set($key, $value) { $this->delete($key); $file = DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\._-]/i', '', $key) . '.' . (time() + $this->expire); $handle = fopen($file, 'w'); flock($handle, LOCK_EX); fwrite($handle, json_encode($value)); fflush($handle); flock($handle, LOCK_UN); fclose($handle); } public function delete($key) { $files = glob(DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\._-]/i', '', $key) . '.*'); if ($files) { foreach ($files as $file) { if (file_exists($file)) { unlink($file); } } } } }
  2. Короче мне этого не понять, я в коде не силен) Нужно писать разрабу шаблона
  3. Строка из журнала ошибок: PHP Notice: Undefined variable: header in /var/www/vhosts/demo.com/httpdocs/catalog/controller/tmarket/header.php on line 108 Последняя строчка. Как победить проблему? <?php class ControllerTmarketHeader extends Controller { public function index() { $this->load->language('common/header'); if ($this->request->server['HTTPS']) { $server = $this->config->get('config_ssl'); } else { $server = $this->config->get('config_url'); } if (is_file(DIR_IMAGE . $this->config->get('config_logo'))) { $data['logo'] = $server . 'image/' . $this->config->get('config_logo'); } else { $data['logo'] = ''; } // Wishlist 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['text_logged'] = sprintf($this->language->get('text_logged'), $this->url->link('account/account', '', true), $this->customer->getFirstName(), $this->url->link('account/logout', '', true)); $data['home'] = $this->url->link('common/home'); $data['wishlist'] = $this->url->link('account/wishlist', '', true); $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['shopping_cart'] = $this->url->link('checkout/cart'); $data['checkout'] = $this->url->link('checkout/checkout', '', true); $data['contact'] = $this->url->link('information/contact'); $data['telephone'] = $this->config->get('config_telephone'); $data['compare'] = $this->url->link('product/compare'); $data['language'] = $this->load->controller('common/language'); $data['currency'] = $this->load->controller('common/currency'); $data['search'] = $this->load->controller('common/search'); $data['cart'] = $this->load->controller('common/cart'); $data['menu'] = $this->load->controller('common/menu'); $search_status = $this->config->get('module_ptsearch_status'); if($search_status) { $data['search'] = $this->load->controller('extension/module/ptsearch'); $data['search_status'] = true; } else { $data['search'] = $this->load->controller('common/search'); $data['search_status'] = false; } $data['store_id'] = $this->config->get('config_store_id'); // tmarket Module Postion $data['position1'] = $this->load->controller('common/position1'); $data['position2'] = $this->load->controller('common/position2'); $data['position3'] = $this->load->controller('common/position3'); $data['position4'] = $this->load->controller('common/position4'); $data['position5'] = $this->load->controller('common/position5'); $data['position6'] = $this->load->controller('common/position6'); $data['position7'] = $this->load->controller('common/position7'); $data['position8'] = $this->load->controller('common/position8'); $data['position9'] = $this->load->controller('common/position9'); $data['position10'] = $this->load->controller('common/position10'); // End tmarket Module Postion /* General */ /* Catalog Mode */ /* Header */ if(isset($this->config->get('module_ptcontrolpanel_header_cart')[$data['store_id']])) { $data['header_cart'] = (int) $this->config->get('module_ptcontrolpanel_header_cart')[$data['store_id']]; } else { $data['header_cart'] = 0; } if(isset($this->config->get('module_ptcontrolpanel_header_currency')[$data['store_id']])) { $data['header_currency'] = (int) $this->config->get('module_ptcontrolpanel_header_currency')[$data['store_id']]; } else { $data['header_currency'] = 0; } if(isset($this->config->get('module_ptcontrolpanel_module_quickview')[$data['store_id']])) { $module_quick_view = (int) $this->config->get('module_ptcontrolpanel_module_quickview')[$data['store_id']]; } else { $module_quick_view = 0; } if(isset($this->config->get('module_ptcontrolpanel_cate_quickview')[$data['store_id']])) { $category_quick_view = (int) $this->config->get('module_ptcontrolpanel_cate_quickview')[$data['store_id']]; } else { $category_quick_view = 0; } if($module_quick_view || $category_quick_view) { $data['use_quick_view'] = true; } else { $data['use_quick_view'] = false; } return $this->load->view('tmarket/page_section/header/header' . $header, $data); } }
  4. Вот только разобрались с этой проблемой. Оказывается режим обслуживания в OpenCart надо отключить и все заработает.
  5. Моя выше ошибка уже не актуальна. Брандмауер ModSecurity не пропускал, добавил идентификатор модуля в исключение и ошибка 403 пропала. Но сейчас такая же проблема как у вас (зависание), как вы решили этот вопрос? http://prntscr.com/18kyz3l Брандмауер пишет при обновлении кеша: http://prntscr.com/18l6a7s
  6. Сижу мучаюсь, оказывается обновление вышло. У меня версия модуля - 1.1.3 и OpenCart v3.0.3.2. Можно как-то получить обновление?
  7. Как это не должен. Автор заверился, что предоставит модуль когда деньги будет уплачены.... деньги уплачены, с этого момента должен. Где-то ошибки в модуле или еще что-то - это я понимаю, что на это нужно время для решения и не всегда все просто. Но хотя бы обратная связь должна быть, что так мол и так решаем проблему. А со стороны смотрится как наплевательское отношение.
  8. Я не пойму, это что за наплевательское отношение? Почему все должны выжидать ваше величество когда вы там накуражитесь? Если забросили это дело - снимайте модуль с продажи.
×
×
  • Створити...

Important Information

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